security concern, some moderation pages not restricted
This commit is contained in:
parent
4dd6d90908
commit
3ac34f1c90
|
|
@ -1,5 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if(!$user->isStaff())
|
||||||
|
{
|
||||||
|
redirect("/");
|
||||||
|
}
|
||||||
|
|
||||||
$body = <<<EOT
|
$body = <<<EOT
|
||||||
<h5 class="text-center">Chat Logs</h5>
|
<h5 class="text-center">Chat Logs</h5>
|
||||||
<h5 class="text-center">You can sort by Censored, by username and search for words</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("access-control-allow-credentials: true");
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
|
if(!$user->isStaff())
|
||||||
|
{
|
||||||
|
redirect("/");
|
||||||
|
}
|
||||||
|
|
||||||
//get params
|
//get params
|
||||||
$username = $_GET['username'];
|
$username = $_GET['username'];
|
||||||
$userid = getID($username);
|
$userid = getID($username);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(!($user->isStaff()))
|
if(!$user->isStaff())
|
||||||
{
|
{
|
||||||
die();
|
redirect("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
$alert = '';
|
$alert = '';
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(!($user->isStaff())) {
|
if(!$user->isStaff())
|
||||||
die();
|
{
|
||||||
|
redirect("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
//headers
|
//headers
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,11 @@ header("Access-Control-Allow-Origin: https://www.alphaland.cc");
|
||||||
header("access-control-allow-credentials: true");
|
header("access-control-allow-credentials: true");
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
|
if(!$user->isStaff())
|
||||||
|
{
|
||||||
|
redirect("/");
|
||||||
|
}
|
||||||
|
|
||||||
$xml = file_get_contents('compress.zlib://PlayerReport.txt');
|
$xml = file_get_contents('compress.zlib://PlayerReport.txt');
|
||||||
|
|
||||||
$validXML = true;
|
$validXML = true;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if(!$user->isStaff())
|
||||||
|
{
|
||||||
|
redirect("/");
|
||||||
|
}
|
||||||
|
|
||||||
if (!$_GET['id'])
|
if (!$_GET['id'])
|
||||||
{
|
{
|
||||||
redirect("/MCP/reports/");
|
redirect("/MCP/reports/");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue