From 2d54ab00a39ddfbf0d01630354e980b386ec039f Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 20 Jul 2022 09:40:41 -0400 Subject: [PATCH] Add files via upload --- jail/index.php | 296 +++++++++++++++++++++++++++++++++++++++++- jail/release_time.php | 93 +++++++++++++ 2 files changed, 388 insertions(+), 1 deletion(-) create mode 100644 jail/release_time.php diff --git a/jail/index.php b/jail/index.php index 8b13789..fd4a5ed 100644 --- a/jail/index.php +++ b/jail/index.php @@ -1 +1,295 @@ - + 0) { + $logged_in = true; + } + else { + $logged_in = false; + } + # STUFF FOR BEING LOGGED IN + if($logged_in == true) { + $x = mysqli_query($conx, "SELECT uid,verified,username,jailed,release_time,chat_attack_hp FROM accounts WHERE rstringa='$rstra' && rstringb='$rstrb' && rstringc='$rstrc'"); + $y = mysqli_fetch_assoc($x); + $u_uid = $y['uid']; + $u_verified = $y['verified']; + $cfffchat_attack_hp = $y['chat_attack_hp']; + if($u_verified != 'yes') { + $kill = ''; + $msg = 'nvdjrj6jfnxalpowqnzaiywliz'; + setcookie("akgnxoPwqlIs", $kill, time()+3600*24*30, '/', '.justa.us'); + setcookie("LoILilzcnmwe", $kill, time()+3600*24*30, '/', '.justa.us'); + setcookie("puTtxXvbEkOo", $kill, time()+3600*24*30, '/', '.justa.us'); + setcookie("hwsmnzeiopqm", $msg, time()+3600*24*30, '/', '.justa.us'); + header("location: /"); + exit(); + } + $u_username = $y['username']; + $u_jailed = $y['jailed']; + $u_release_time = $y['release_time']; + if($u_jailed != 'yes') { + header("location: /hub"); + exit(); + } + if($u_jailed == 'no') { + exit(); + } + $u_release_time = $y['release_time']; + } + else { + header("location: /"); + exit(); + } +} +// User theme colors +$usri_q2 = mysqli_query($conx, "SELECT username_color,text_color FROM user_theme_colors WHERE uid='$u_uid' && theme_id='1'"); +$usri_r2 = mysqli_fetch_assoc($usri_q2); +$username_color = $usri_r2['username_color']; +$username_tcolor = $usri_r2['text_color']; +function timeago($session_time) { + $time_difference = time() - $session_time; + $seconds = $time_difference; + $minutes = round($time_difference/60); + $hours = round($time_difference/3600); + $days = round($time_difference/86400); + $weeks = round($time_difference/604800); + $months = round($time_difference/2419200); + $years = round($time_difference/29030400); + $s_ago = "s"; $m_ago = "m"; $h_ago = "h"; $w_ago = "w"; $d_ago = "d"; + if($seconds <= 59) { echo "$seconds$s_ago"; } + else if($minutes <= 59) { + if($minutes == 1) { echo "1$m_ago"; } + else { echo "$minutes$m_ago"; } + } + else if($hours <= 23) { + if($hours == 1) { echo "1$h_ago"; } + else { echo "$hours$h_ago"; } + } + else if($days <= 6) { + if($days == 1) { echo "1$d_ago"; } + else { echo "$days$d_ago"; } + } + else if($weeks > 0) { + if($weeks == 1) { echo "1$w_ago"; } + else { echo "$weeks$w_ago"; } + } +} +function release_time($session_time) { + $time_difference = $session_time - time(); + $seconds = $time_difference; + $minutes = round($time_difference/60); + $hours = round($time_difference/3600); + $days = round($time_difference/86400); + $weeks = round($time_difference/604800); + $months = round($time_difference/2419200); + $years = round($time_difference/29030400); + $s_ago = "s"; $m_ago = "m"; $h_ago = "h"; $w_ago = "w"; $d_ago = "d"; + if($seconds <= 59) { echo "$seconds$s_ago"; } + else if($minutes <= 59) { + if($minutes == 1) { echo "1$m_ago"; } + else { echo "$minutes$m_ago"; } + } + else if($hours <= 23) { + if($hours == 1) { echo "1$h_ago"; } + else { echo "$hours$h_ago"; } + } + else if($days <= 6) { + if($days == 1) { echo "1$d_ago"; } + else { echo "$days$d_ago"; } + } + else if($weeks > 0) { + if($weeks == 1) { echo "1$w_ago"; } + else { echo "$weeks$w_ago"; } + } +} +?> + + + + Jail - Misdew + + + + + + + + + + + +
+
+ + + + +
+

+
+ $u_username"; ?> +
+ ------------------------------------
"; + echo "No worries, $u_username.

"; + echo "You were only jailed by the Chat Attack game.

"; + echo "You recieved no strikes and have done nothing wrong.

"; + echo "This game only jails you for 2 minutes.

"; + echo "The amount of jail time left is automatically updated below.

"; + echo "Have fun!
"; + echo "------------------------------------"; + echo "

"; + } + ?> + Your account has been banned- you no longer have access to your Misdew.com account. You are in jail. + If you are curious on what you have done wrong, please review the content below.

+ Do not create another account. If you think that this is a mistake, please email me@justa.us

+ If you would like us to remove all of your content, please let us know at the email me@justa.us
+ + + + + +
+ + + Released! Refresh."; + mysqli_query($conx, "UPDATE accounts SET jailed='no' WHERE uid='$u_uid'"); + mysqli_query($conx, "UPDATE accounts SET release_time='' WHERE uid='$u_uid'"); + if($cfffchat_attack_hp <= 0) { + mysqli_query($conx, "UPDATE accounts SET chat_attack_hp='100' WHERE uid='$u_uid'"); + } + } + else { + echo release_time($u_release_time) . " left"; + } + ?> + + + + +
+
+

+
+ Violated Code #$cnvstr_violation_code
"; + echo ""; + echo "This offense took place "; + echo timeago($cnvstr_issued_tstamp); + echo " ago and resulted in 1 strike "; + echo "with the weight of $cnvstr_code_weight."; + if($cnvstr_last_strike == 'yes') { + echo " It also resulted in the account being jailed for $cnvstr_total_time."; + } + echo " It was recorded and taken care of by $cnvstr_username.
"; + } + ?> +
+
+ Code of Conduct
+ #$code_num: "; + echo "$code_content [ $code_weight ]
"; + } + echo ""; + echo "Each violation automatically adds up. Jailing occurs after 2 strikes.
"; + echo "You also agree to the terms of service by accessing Misdew.
"; + echo "The Code of Conduct and Terms of Service may be modified at any time without prior notice."; + echo "
"; + echo "

By accessing or using Misdew in any manner, including, but not limited to, visiting or browsing Misdew or contributing content or other materials to Misdew, you agree to be bound by these Terms of Service. Capitalized terms are defined in this agreement. +
+ Intellectual Property
+ Misdew and its original content, features and functionality are owned by Misdew and are protected by international copyright, trademark, patent, trade secret and other intellectual property or proprietary rights laws. +
+ Termination
+ We may terminate your access to Misdew, without cause or notice, which may result in the forfeiture and destruction of all information associated with you. All provisions of this agreement that by their nature should survive termination shall survive termination, including, without limitation, ownership provisions, warranty disclaimers, indemnity, and limitations of liability. +
+ Links to other websites
+ Misdew may contain links to third-party websites that are not owned or controlled by Misdew. +
+ Misdew has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third party websites or services. We strongly advise you to read the terms and conditions and privacy policy of any third-party website that you visit. +
+ Governing law
+ This agreement (and any further rules, polices, or guidelines incorporated by reference) shall be governed and construed in accordance with the laws of Indiana, without giving effect to any principles of conflicts of law. +
+ Changes to this agreement
+ We reserve the right, at our sole discretion, to modify or replace these Terms of Service by posting the updated terms on Misdew. Your continued use of Misdew after any such changes constitutes your acceptance of the new Terms of Service. +
+ Please review this agreement periodically for changes. If you do not agree to any of this agreement or any changes to this agreement, do not use, access or continue to access Misdew or discontinue any use of Misdew immediately. +
+ Contact us
+ If you have any questions about this agreement, please contact me@justa.us +
"; + ?> +

+
+
+ If you believe that any of this is a mistake, please contact me@justa.us +
+

+
+ + + + diff --git a/jail/release_time.php b/jail/release_time.php new file mode 100644 index 0000000..094e700 --- /dev/null +++ b/jail/release_time.php @@ -0,0 +1,93 @@ + 0) { + $logged_in = true; + } + else { + $logged_in = false; + } + # STUFF FOR BEING LOGGED IN + if($logged_in == true) { + $x = mysqli_query($conx, "SELECT uid,verified,username,jailed,release_time,chat_attack_hp FROM accounts WHERE rstringa='$rstra' && rstringb='$rstrb' && rstringc='$rstrc'"); + $y = mysqli_fetch_assoc($x); + $u_uid = $y['uid']; + $u_verified = $y['verified']; + $asdfasdfasdf = $y['chat_attack_hp']; + if($u_verified != 'yes') { + $kill = ''; + $msg = 'nvdjrj6jfnxalpowqnzaiywliz'; + setcookie("akgnxoPwqlIs", $kill, time()+3600*24*30, '/', '.justa.us'); + setcookie("LoILilzcnmwe", $kill, time()+3600*24*30, '/', '.justa.us'); + setcookie("puTtxXvbEkOo", $kill, time()+3600*24*30, '/', '.justa.us'); + setcookie("hwsmnzeiopqm", $msg, time()+3600*24*30, '/', '.justa.us'); + header("location: /"); + exit(); + } + $u_username = $y['username']; + $u_jailed = $y['jailed']; + if($u_jailed == 'no') { + echo "Released! Refresh."; + exit(); + } + $u_release_time = $y['release_time']; + $u_release_time = $y['release_time']; + } + else { + header("location: /"); + exit(); + } +} +function release_time($session_time) { + $time_difference = $session_time - time(); + $seconds = $time_difference; + $minutes = round($time_difference/60); + $hours = round($time_difference/3600); + $days = round($time_difference/86400); + $weeks = round($time_difference/604800); + $months = round($time_difference/2419200); + $years = round($time_difference/29030400); + $s_ago = "s"; $m_ago = "m"; $h_ago = "h"; $w_ago = "w"; $d_ago = "d"; + if($seconds <= 59) { echo "$seconds$s_ago"; } + else if($minutes <= 59) { + if($minutes == 1) { echo "1$m_ago"; } + else { echo "$minutes$m_ago"; } + } + else if($hours <= 23) { + if($hours == 1) { echo "1$h_ago"; } + else { echo "$hours$h_ago"; } + } + else if($days <= 6) { + if($days == 1) { echo "1$d_ago"; } + else { echo "$days$d_ago"; } + } + else if($weeks > 0) { + if($weeks == 1) { echo "1$w_ago"; } + else { echo "$weeks$w_ago"; } + } +} +if($u_release_time == 'perma') { + echo "Sentenced to Life."; +} +elseif($u_release_time <= time()) { + echo "Released! Refresh."; + mysqli_query($conx, "UPDATE accounts SET jailed='no' WHERE uid='$u_uid'"); + mysqli_query($conx, "UPDATE accounts SET release_time='' WHERE uid='$u_uid'"); + if($asdfasdfasdf <= 0) { + mysqli_query($conx, "UPDATE accounts SET chat_attack_hp='100' WHERE uid='$u_uid'"); + } +} +else { + echo release_time($u_release_time) . " left"; +} +?>