From c0b2f6f579a864db9b3ff09fa7bd7480e0cfc9f4 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 20 Jul 2022 09:41:58 -0400 Subject: [PATCH] Add files via upload --- lounge/cont_stafflog.php | 81 ++++++ lounge/index.php | 537 ++++++++++++++++++++++++++++++++++++++- lounge/sniffer.php | 70 +++++ lounge/work.php | 224 ++++++++++++++++ 4 files changed, 911 insertions(+), 1 deletion(-) create mode 100644 lounge/cont_stafflog.php create mode 100644 lounge/sniffer.php create mode 100644 lounge/work.php diff --git a/lounge/cont_stafflog.php b/lounge/cont_stafflog.php new file mode 100644 index 0000000..55a2aad --- /dev/null +++ b/lounge/cont_stafflog.php @@ -0,0 +1,81 @@ + + + + + Lounge - Misdew + + + + + + + "; + } + if($css_type == "raw") { + echo ""; + } + ?> + + + + + +
+ "; + echo "Staff Log:

"; + + + + + $chat_q = mysqli_query($conx, "SELECT * FROM lounge_log ORDER BY id DESC"); + while($chat_r = mysqli_fetch_assoc($chat_q)) { + $lounge_uid = $chat_r['uid']; + $lounge_uidaff = $chat_r['uid_affected']; + $lounge_action = $chat_r['action']; + $lounge_comments = $chat_r['comments']; + $lounge_tstamp = $chat_r['tstamp']; + $usr_q = mysqli_query($conx, "SELECT username FROM accounts WHERE uid='$lounge_uidaff'"); + while($usr_r = mysqli_fetch_assoc($usr_q)) { + $aff_username = $usr_r['username']; + } + $usr_qq = mysqli_query($conx, "SELECT username FROM accounts WHERE uid='$lounge_uid'"); + while($usr_rr = mysqli_fetch_assoc($usr_qq)) { + $staff_username = $usr_rr['username']; + } + echo "$staff_username $lounge_action $aff_username "; + echo timeago($lounge_tstamp); + echo " ago
"; + echo "$lounge_comments

"; + } + + + + echo "
"; + ?> +
+ + diff --git a/lounge/index.php b/lounge/index.php index 8b13789..0d014c9 100644 --- a/lounge/index.php +++ b/lounge/index.php @@ -1 +1,536 @@ - + + + + + Lounge - Misdew + + + + + + + "; + } + if($css_type == "raw") { + echo ""; + } + ?> + + + + + +
+ "; + echo "
"; + echo "
"; + if($u_comm_mang == 'yes') { + echo "
"; + echo "
Community Manager
"; + # PROMOTION + echo "Promotion
"; + echo "You can grant access to badges here."; + echo "
+ + + + + +
+ + + + + + + +
"; + # DEMOTION + echo "Demotion
"; + echo "You can revoke access to badges here."; + echo "
+ + + + + +
+ + + + + + + +
"; + # NOTIFICATION + echo "Notification
"; + echo "You can notify users here."; + echo "
+ + +
+ +
"; + echo "Staff Log
"; + echo "Check what the staff have been up to by tapping here."; + } + if($u_cont_mang == 'yes') { + echo "
"; + echo "
Content Manager
"; + echo "Cleanup
"; + echo "You can remove spam from the site here.
This will pretty much erase their existence from the site."; + echo "
"; + echo ""; + echo ""; + echo "

"; + echo "
+
"; + echo "Striking
"; + echo "You can issue strikes here.
Each violation automatically adds up.
Jailing occurs after 2 strikes.
"; + echo "
"; + echo ""; + echo ""; + echo "

"; + echo "
+
"; + echo "Exiling
"; + echo "Sentence a user to jail for life here.
"; + echo "
"; + echo ""; + echo ""; + echo "
+
"; + echo "Pardoning
"; + echo "Release a user from jail here.
"; + echo "
"; + echo ""; + echo ""; + echo "
+
"; + echo "Alternate Account Check
"; + echo "Check for those evading jailing here.
Tap the clock to auto-strike the user for evading."; + echo "
"; + echo ""; + echo ""; + echo ""; + echo "
+ +
"; + } + if($u_design_pol == 'yes') { + echo "
"; + echo "
Design Police
"; + echo "Disabling
"; + echo "Kill the designing of a user here.
Their CSS will be erased permanently.
Their Design Editor will be temporarily disabled.
"; + echo "
"; + echo ""; + echo ""; + echo "
+
"; + echo "Enabling
"; + echo "Revive the designing of a user here.
"; + echo "
"; + echo ""; + echo ""; + echo "
+
"; + echo "
"; + } + if($u_peacekpr == 'yes') { + echo "
"; + echo "
Peacekeeper
"; + echo "Your task is to stay calm in hostile situations. Do your best to help resolve issues amongst other users peacefully."; + echo "
"; + } + // Footer + require_once("../inc/footer.php"); + ?> +
+ + + diff --git a/lounge/sniffer.php b/lounge/sniffer.php new file mode 100644 index 0000000..4ac340f --- /dev/null +++ b/lounge/sniffer.php @@ -0,0 +1,70 @@ +"; +echo " $gg_username"; +echo ""; +echo "$gg_currip"; +echo ""; +echo "$gg_uagent"; +echo ""; +echo "This Updates Constantly:"; +echo ""; +echo "$gg_upduagent"; +echo ""; +$ggcnt = mysqli_num_rows($ggq = mysqli_query($conx, "SELECT uid,username,current_ip,uagent FROM accounts WHERE current_ip='$gg_currip' AND username!='$gg_username'")); +while($ggr = mysqli_fetch_assoc($ggq)) { + $gg_uid = $ggr['uid']; + $ggg_username = $ggr['username']; + $gg_currip = $ggr['current_ip']; + $gg_uagent = $ggr['uagent']; + // User theme colors + $usri_q2 = mysqli_query($conx, "SELECT username_color,text_color FROM user_theme_colors WHERE uid='$gg_uid' && theme_id='$g_themeid'"); + $usri_r2 = mysqli_fetch_assoc($usri_q2); + $username_color = $usri_r2['username_color']; + $username_tcolor = $usri_r2['text_color']; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "
$ggg_username
$gg_currip
$gg_uagent
"; +} +if($ggcnt != '0') { + //echo "
Possible detection of evasion.
If correct, please add an additional week.
"; +} +?> diff --git a/lounge/work.php b/lounge/work.php new file mode 100644 index 0000000..e1b634d --- /dev/null +++ b/lounge/work.php @@ -0,0 +1,224 @@ +$u_username has issued you a strike.
Violated Code #$code_num - $code_weight','','$tstamp')"); + mysqli_query($conx, "UPDATE accounts SET strikes='$affct_strikes'+1 WHERE uid='$affct_uid'"); + mysqli_query($conx, "UPDATE accounts SET jailed_count='$affct_jailed_count'+1 WHERE uid='$affct_uid'"); + mysqli_query($conx, "UPDATE accounts SET jailed='yes' WHERE uid='$affct_uid'"); + // Total Jail Time + $time_to_serve = time() + $j_seconds; + $time_to_serve = $time_to_serve + $code_seconds; + $total_weight = "$code_weight + $j_vtime"; + mysqli_query($conx, "UPDATE accounts SET release_time='$time_to_serve' WHERE uid='$affct_uid'"); + mysqli_query($conx, "INSERT INTO account_strikes (uid_issuee,uid_issuer,violation_code,violation_time,last_strike,total_time,issued_tstamp) VALUES ('$affct_uid','$u_uid','$code_num','$code_weight','yes','$total_weight','$tstamp')"); + mysqli_query($conx, "UPDATE account_figures SET behavior='$affct_behavior'-10 WHERE uid='$affct_uid'"); + } + else { + if($is_evade == 'evade') { + // + // NEW: LOUNGE LOG + // KEEP STAFF UNDER CONTROL AND MAKE SURE THEY ARE BEHAVING + // + $lounge_tstamp = time(); + $lounge_comments = "added extra jail to a user for evading"; + $lounge_action = "usr_evad"; + mysqli_query($conx, "INSERT INTO lounge_log (uid, uid_affected, action, comments, tstamp) VALUES ('$u_uid','$affct_uid','$lounge_action','$lounge_comments','$lounge_tstamp')"); + // + // NEW: LOUNGE LOG + // KEEP STAFF UNDER CONTROL AND MAKE SURE THEY ARE BEHAVING + // + mysqli_query($conx, "UPDATE accounts SET release_time='$affct_release_time'+604800 WHERE uid='$affct_uid'"); + mysqli_query($conx, "UPDATE account_figures SET behavior='$affct_behavior'-20 WHERE uid='$affct_uid'"); + } + mysqli_query($conx, "INSERT INTO notifs (rstring, uid, snoozeable, app_uqid, message, view_link, tstamp) VALUES ('$tstamp','$affct_uid','no','misdew','$u_username has issued you a strike.
Violated Code #$code_num - $code_weight','','$tstamp')"); + mysqli_query($conx, "UPDATE accounts SET strikes='$affct_strikes'+1 WHERE uid='$affct_uid'"); + mysqli_query($conx, "INSERT INTO account_strikes (uid_issuee,uid_issuer,violation_code,violation_time,last_strike,issued_tstamp,seconds) VALUES ('$affct_uid','$u_uid','$code_num','$code_weight','no','$tstamp','$code_seconds')"); + mysqli_query($conx, "UPDATE account_figures SET behavior='$affct_behavior'-10 WHERE uid='$affct_uid'"); + // + // NEW: LOUNGE LOG + // KEEP STAFF UNDER CONTROL AND MAKE SURE THEY ARE BEHAVING + // + $lounge_tstamp = time(); + $lounge_comments = "striked a user for Code #$code_num"; + $lounge_action = "usr_strk"; + mysqli_query($conx, "INSERT INTO lounge_log (uid, uid_affected, action, comments, tstamp) VALUES ('$u_uid','$affct_uid','$lounge_action','$lounge_comments','$lounge_tstamp')"); + // + // NEW: LOUNGE LOG + // KEEP STAFF UNDER CONTROL AND MAKE SURE THEY ARE BEHAVING + // + } + } + # STRIKING ACCOUNTS + if($waction == 'perma') { + $code_weight = "∞"; + $code_seconds = ''; + // + // NEW: LOUNGE LOG + // KEEP STAFF UNDER CONTROL AND MAKE SURE THEY ARE BEHAVING + // + $lounge_tstamp = time(); + $lounge_comments = "perma banned a user"; + $lounge_action = "perma_ban"; + mysqli_query($conx, "INSERT INTO lounge_log (uid, uid_affected, action, comments, tstamp) VALUES ('$u_uid','$affct_uid','$lounge_action','$lounge_comments','$lounge_tstamp')"); + // + // NEW: LOUNGE LOG + // KEEP STAFF UNDER CONTROL AND MAKE SURE THEY ARE BEHAVING + // + mysqli_query($conx, "INSERT INTO account_strikes (uid_issuee,uid_issuer,violation_code,violation_time,last_strike,issued_tstamp,seconds) VALUES ('$affct_uid','$u_uid','0','$code_weight','no','$tstamp','$code_seconds')"); + mysqli_query($conx, "UPDATE accounts SET jailed='yes' WHERE uid='$affct_uid'"); + mysqli_query($conx, "UPDATE accounts SET release_time='perma' WHERE uid='$affct_uid'"); + mysqli_query($conx, "UPDATE account_figures SET behavior='0' WHERE uid='$affct_uid'"); + } + # PARDONING ACCOUNTS + if($waction == 'pardon') { + // + // NEW: LOUNGE LOG + // KEEP STAFF UNDER CONTROL AND MAKE SURE THEY ARE BEHAVING + // + $lounge_tstamp = time(); + $lounge_comments = "unbanned a user"; + $lounge_action = "usr_pardn"; + mysqli_query($conx, "INSERT INTO lounge_log (uid, uid_affected, action, comments, tstamp) VALUES ('$u_uid','$affct_uid','$lounge_action','$lounge_comments','$lounge_tstamp')"); + // + // NEW: LOUNGE LOG + // KEEP STAFF UNDER CONTROL AND MAKE SURE THEY ARE BEHAVING + // + mysqli_query($conx, "UPDATE accounts SET jailed='no' WHERE uid='$affct_uid'"); + mysqli_query($conx, "UPDATE accounts SET release_time='' WHERE uid='$affct_uid'"); + } +} +// Design Police Permissions +if($u_design_pol == 'yes') { + # DISABLE DESIGN + if($waction == 'disable') { + mysqli_query($conx, "UPDATE canvas_design SET uid='_$affct_uid' WHERE uid='$affct_uid'"); + mysqli_query($conx, "UPDATE accounts SET css='' WHERE uid='$affct_uid'"); + } + # ENABLE DESIGN + if($waction == 'enable') { + mysqli_query($conx, "UPDATE canvas_design SET uid='$affct_uid' WHERE uid='_$affct_uid'"); + } +} +// Peacekeeper Permissions +if($u_peacekpr == 'yes') { + +} +?>