forked from SWU-Petranaki/SWUOnline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBootPlayer.php
More file actions
29 lines (21 loc) · 749 Bytes
/
BootPlayer.php
File metadata and controls
29 lines (21 loc) · 749 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
27
28
29
<?php
include "./Libraries/HTTPLibraries.php";
include_once './includes/functions.inc.php';
include_once "./includes/dbh.inc.php";
include "Libraries/SHMOPLibraries.php";
session_start();
if (!isset($_SESSION["useruid"])) {
echo ("Please login to view this page.");
exit;
}
$useruid = $_SESSION["useruid"];
if ($useruid != "OotTheMonk" && $useruid != "love" && $useruid != "ninin" && $useruid != "Brubraz") {
echo ("You must log in to use this page.");
exit;
}
$gameToken = TryGET("gameToClose", "");
$playerToBoot = TryGET("playerToBoot", "");
SetCachePiece($gameToken, $playerToBoot+3, 2);//internet connection status
SetCachePiece($gameToken, $playerToBoot+14, 3);//forced disconnect status
header("Location: ./zzModPage.php");
?>