forked from Talishar/Talishar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzzGameStatsAPI.php
More file actions
25 lines (20 loc) · 778 Bytes
/
zzGameStatsAPI.php
File metadata and controls
25 lines (20 loc) · 778 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
<?php
include "Libraries/HTTPLibraries.php";
$playerID = $_GET["playerID"];
$gameName = $_GET["gameName"];
if (!IsGameNameValid($gameName)) {
echo ("Invalid game name.");
exit;
}
include "./Libraries/SHMOPLibraries.php";
include "./ParseGamestate.php";
include_once "./includes/functions.inc.php";
include "./GameLogic.php";
include "./Libraries/UILibraries.php";
include "./Libraries/StatFunctions.php";
include "./Libraries/PlayerSettings.php";
include_once 'Assets/patreon-php-master/src/PatreonDictionary.php';
include "./GameTerms.php";
include "./HostFiles/Redirector.php";
echo(SerializeGameResult($playerID, "", file_get_contents("./Games/" . $gameName . "/p" . $playerID . "Deck.txt"), $gameName, includeFullLog:false));
?>