security concern, some moderation pages not restricted

This commit is contained in:
Austin 2021-10-30 05:17:43 -04:00
parent 4dd6d90908
commit 3ac34f1c90
6 changed files with 25 additions and 4 deletions

View File

@ -1,5 +1,10 @@
<?php
if(!$user->isStaff())
{
redirect("/");
}
$body = <<<EOT
<h5 class="text-center">Chat Logs</h5>
<h5 class="text-center">You can sort by Censored, by username and search for words</h5>

View File

@ -9,6 +9,11 @@ header("Access-Control-Allow-Origin: https://www.alphaland.cc");
header("access-control-allow-credentials: true");
header('Content-Type: application/json');
if(!$user->isStaff())
{
redirect("/");
}
//get params
$username = $_GET['username'];
$userid = getID($username);

View File

@ -1,8 +1,8 @@
<?php
if(!($user->isStaff()))
if(!$user->isStaff())
{
die();
redirect("/");
}
$alert = '';

View File

@ -1,7 +1,8 @@
<?php
if(!($user->isStaff())) {
die();
if(!$user->isStaff())
{
redirect("/");
}
//headers

View File

@ -4,6 +4,11 @@ header("Access-Control-Allow-Origin: https://www.alphaland.cc");
header("access-control-allow-credentials: true");
header('Content-Type: application/json');
if(!$user->isStaff())
{
redirect("/");
}
$xml = file_get_contents('compress.zlib://PlayerReport.txt');
$validXML = true;

View File

@ -1,5 +1,10 @@
<?php
if(!$user->isStaff())
{
redirect("/");
}
if (!$_GET['id'])
{
redirect("/MCP/reports/");