|
|
@ -6,9 +6,17 @@ if (php_sapi_name() == 'cli') { |
|
|
|
if (isset($argv[1])) { |
|
|
|
if (isset($argv[1])) { |
|
|
|
parse_str($argv[1], $_GET); |
|
|
|
parse_str($argv[1], $_GET); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($argv[2])) { |
|
|
|
|
|
|
|
parse_str($argv[2], $_POST); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!isset($_POST["adminKey"]) || $_POST["adminKey"] != $_ENV["ADMIN_KEY"]){ |
|
|
|
|
|
|
|
echo "Forbidden"; |
|
|
|
|
|
|
|
die; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$tracker = new Tracker(); |
|
|
|
$tracker = new Tracker(); |
|
|
|
if (!$tracker->remove($_GET["gameName"], $_GET["tagLine"], $message)){ |
|
|
|
if (!$tracker->remove($_POST["gameName"], $_POST["tagLine"], $message)){ |
|
|
|
echo "Failure: ".$message; |
|
|
|
echo "Failure: ".$message; |
|
|
|
} |
|
|
|
} |
|
|
|