<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <!-- PHP ================== --> <?php include_once "/var/www/php/sql_connect.php"; if (isset($_COOKIE["token"])) { $token = $_COOKIE["token"]; } include "/var/www/web_classes/DHunter.php"; $hunter = new DHunter($token); $quarry = $hunter->Quarry(); if (isset($_FILES["hpic"])) { $tmpdir = tempnam("/var/www/sites/oitgaming/uploads", "img_"); // unlink($tmpdir); $tmpdir = $tmpdir; $path = explode("oitgaming", $tmpdir); if ($_FILES["hpic"]["type"] === "image/jpeg" and $_FILES["hpic"]["size"] < 10 * 1024 * 1024) { if (move_uploaded_file($_FILES["hpic"]["tmp_name"], $tmpdir)) { fixOrientation($tmpdir); $img_text = $hunter->ChangeAvatar($path[1]); } } else { $img_text = "That's not a jpeg or it is over 6MB"; } } else { $img_text = "";
<?php include_once "/var/www/php/sql_connect.php"; include_once "/var/www/web_classes/DHunter.php"; sleep(1); $token = $_POST["token"]; $enteredHID = $_POST["quarry"]; $user = new DHunter($token); if ($enteredHID === "NEW") { $timeTil = $user->requestNewQuarry(); if ($timeTil === true) { echo "TRUE"; } else { echo $timeTil; } } else { $assignedQuarry = $user->Quarry(); if ($enteredHID === $assignedQuarry) { echo "Contract Redeemed"; $user->IncrementPoints(); $user->getQuarry(); $user->pushQuarry(); addToGameLog($user->HID(), $assignedQuarry); } else { echo "That is not the ID of your target"; } }