session_start(); require "database/connect.php"; require "database/requests.php"; require "database/users.php"; $pageTitle = "Requests"; $javascript = "manageRequests.js"; require 'includes/adminHeader.php'; $userID = $_SESSION["id"]; $flag = "-1"; ?> <br> <?php $reqCount = requestCount($userID); if ($reqCount > "0") { $requests = array(); $requests = loadRequests($userID, $flag); ?> <table width="540" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align="center"> <tr> <td class="headerCell"></td> <td class="headerCell"><b>From</b></td> <td class="headerCell"><b>Type</b></td> <td class="headerCell"><b>Start</b></td> <td class="headerCell"><b>End</b></td> </tr> <?php for ($i = 0; $i < count($requests); $i++) { ?>
include 'topSecretShizzle.php'; $opts = array('http' => array('method' => "GET", 'header' => array("Accept: application/json", "Authorization: Bearer " . $api_key))); $url = $url . '/' . rawurlencode($tag); $contents = file_get_contents($url, null, stream_context_create($opts)); $jsonArray = json_decode($contents, true); if (!$contents) { echo "Shit is kapot G"; ?> </br><img src="image/shitiskapotG.jpg" alt="Shit is kapot G"><?php } else { echo " "; ?> <div id = "log"> <?php donationCount($jsonArray); donationRatio($jsonArray); requestCount($jsonArray); DonMemberCount($jsonArray); FakeEmptyTable(); //Empty table to fix the 'created by' not in correct place bug stats($jsonArray); } ?> </div> <P> Created by Rizzle & Justin © 2015 - <?php echo date("Y"); ?> </p> </body> </html>