security concern, some moderation pages not restricted
This commit is contained in:
parent
4dd6d90908
commit
3ac34f1c90
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
if(!($user->isStaff()))
|
||||
if(!$user->isStaff())
|
||||
{
|
||||
die();
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
$alert = '';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
|
||||
if(!($user->isStaff())) {
|
||||
die();
|
||||
if(!$user->isStaff())
|
||||
{
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
//headers
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
<?php
|
||||
|
||||
if(!$user->isStaff())
|
||||
{
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
if (!$_GET['id'])
|
||||
{
|
||||
redirect("/MCP/reports/");
|
||||
|
|
|
|||
Loading…
Reference in New Issue