+
Staff Cases
+
+
+
';
+
+if (isset($_POST['update'])) {
+ $staffn = $_POST['staffn'];
+ $personr = $_POST['personr'];
+ $personbr = $_POST['personbr'];
+ $uid = $_POST['uid'];
+ $report = $_POST['report'];
+ $outcome = $_POST['outcome'];
+
+}
+$messageIdent = md5($_POST['update'] . $_POST['staffn'] . $_POST['personr'] . $_POST['personbr'] . $_POST['uid'] . $_POST['report'] . $_POST['outcome']);
+
+$sessionMessageIdent = isset($_SESSION['messageIdent'])?$_SESSION['messageIdent']:'';
+
+ if($messageIdent!=$sessionMessageIdent){//if its different:
+ //save the session var:
+ $_SESSION['messageIdent'] = $messageIdent;
+ //and...
+ $UpdateQ = "INSERT INTO staff_logs (staffn,personr,personbr,playerid,report,outcome,staff_name) VALUES ('$staffn','$personr','$personbr','$uid','$report','$outcome','$user');";
+ mysqli_query($dbcon, $UpdateQ);
+ } else {
+ //you've sent this already!
+ }
+?>
+
+
+
+
+
+
+
+
+
+ | Case Id |
+ Staff Name |
+ Person Reporting |
+ Person Being Reported |
+ PlayerID |
+ Reported For |
+ Outcome |
+ Admin |
+ Time Stamp |
+
+
+
+
+';
+ echo ''.$row['case_id'].' | ';
+ echo ''.$row['staffn'].' | ';
+ echo ''.$row['personr'].' | ';
+ echo ''.$row['personbr'].' | ';
+ echo ''.$row['playerid'].' | ';
+ echo ''.$row['report'].' | ';
+ echo ''.$row['outcome'].' | ';
+ echo ''.$row['staff_name'].' | ';
+ echo ''.$row['timestamp'].' | ';
+ echo '';
+}
+
+echo '
';
+?>
+
+