diff --git a/html/MCP/reports/data/index.php b/html/MCP/reports/data/index.php index daf3504..eae0259 100644 --- a/html/MCP/reports/data/index.php +++ b/html/MCP/reports/data/index.php @@ -42,7 +42,7 @@ if ($validXML) { $abuserid = (int)filter_var($commentdata[0], FILTER_SANITIZE_NUMBER_INT); $reportreason = (string)trim($commentdata[1]); - $reportdescription = (string)trim($commentdata[2]); + $reportdescription = (string)$commentdata[2]; $chats = $ParsedXML->xpath('//message'); @@ -50,7 +50,7 @@ if ($validXML) { "ReporterUid" => $reporteruserid, "PlaceId" => $placeid, "JobId" => $jobid, - "AbuserId" => $abuserid, + "AbuserUid" => $abuserid, "Reason" => $reportreason, "Description" => $reportdescription ); @@ -70,4 +70,5 @@ if ($validXML) { } die(json_encode($jsonData)); -} \ No newline at end of file +} +die(json_encode(["alert"=>"Error Occurred"])); \ No newline at end of file diff --git a/html/MCP/reports/index.php b/html/MCP/reports/index.php index a3ef85a..7227a77 100644 --- a/html/MCP/reports/index.php +++ b/html/MCP/reports/index.php @@ -5,5 +5,8 @@ Active Reports */ -if (!$GLOBALS['user']->isAdmin()) - die(); \ No newline at end of file +if(!$user->isStaff()) { + redirect("/"); +} + +echo "soon"; \ No newline at end of file diff --git a/html/MCP/reports/view.php b/html/MCP/reports/view.php index f19f335..7ccf0f4 100644 --- a/html/MCP/reports/view.php +++ b/html/MCP/reports/view.php @@ -52,10 +52,10 @@ var getparam = new URLSearchParams(window.location.search).get("id"); function populateReport() { getJSONCDS("https://www.alphaland.cc/MCP/reports/data/?id="+getparam) .done(function(jsonData) { - $("#reporter-id").html("Reporter ID: "+jsonData.ReporterUid); + $("#reporter-id").html("Reporter UID: "+jsonData.ReporterUid); $("#place-id").html("Place ID: "+jsonData.PlaceId); $("#job-id").html('Job ID: "'+jsonData.JobId+'"'); - $("#abuser-id").html("Abuser ID: "+jsonData.AbuserId); + $("#abuser-id").html("Abuser UID: "+jsonData.AbuserUid); $("#report-reason").html('Report Reason: "'+jsonData.Reason+'"'); $("#report-description").html('Report Description: "'+jsonData.Description+'"'); diff --git a/html_api/moderation/AbuseReport/InGameChatHandler.php b/html_api/moderation/AbuseReport/InGameChatHandler.php index 93b555f..7a3949f 100644 --- a/html_api/moderation/AbuseReport/InGameChatHandler.php +++ b/html_api/moderation/AbuseReport/InGameChatHandler.php @@ -2,7 +2,7 @@ /* Alphaland 2021 - Absue reports + Abuse reports */ RCCHeaderEnvironment(); diff --git a/html_api/moderation/AbuseReport/PlayerReport.txt b/html_api/moderation/AbuseReport/PlayerReport.txt deleted file mode 100644 index 28478e6..0000000 --- a/html_api/moderation/AbuseReport/PlayerReport.txt +++ /dev/null @@ -1,55 +0,0 @@ - - AbuserID:3;Cheating/Exploiting; Short Description (Optional) - - ass - nigger - ass - nigger - ass - ass - niggre - nigger - ass - a - a - a - a - a - a - a - chode - what - ass - ass - ass - nigger - assssss - ass - nigger - a - a - ass - ass - asss - ass - ass - ass - ass - nigger - ngg - ass - a - ass - ass - ass - ass - a - a - chode - what - a - a - ass - ass - - \ No newline at end of file diff --git a/html_api/moderation/AbuseReport/test.txt b/html_api/moderation/AbuseReport/test.txt deleted file mode 100644 index 4435211..0000000 --- a/html_api/moderation/AbuseReport/test.txt +++ /dev/null @@ -1,4 +0,0 @@ - - AbuserID:0;Bad Model or Script;test - - \ No newline at end of file