forked from SWU-Petranaki/SWUOnline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzzBugAPI.php
More file actions
26 lines (19 loc) · 762 Bytes
/
zzBugAPI.php
File metadata and controls
26 lines (19 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
include_once 'MenuBar.php';
include_once './includes/functions.inc.php';
include_once "./includes/dbh.inc.php";
if (!isset($_SESSION["useruid"])) {
echo ("Please login to view this page.");
exit;
}
$useruid = $_SESSION["useruid"];
if ($useruid != "OotTheMonk" && $useruid != "love" && $useruid != "Cazargar") {
echo ("You must log in to use this page.");
exit;
}
$bugReport = $_GET["bugReport"];
$filename = "./BugReports/" . $bugReport . "/gamestateBackup.txt";
echo("<div style='background-color:rgba(0,0,0,.9); text-color:black; top:10%;left:3%; width:94%; height:85%; position:absolute; overflow-y:scroll;'>");
echo(implode("<BR>", explode("\r\n", file_get_contents($filename))));
echo("</div>");
?>