window.location.replace('index.php?all');"; die(); } if (isset($_GET['page'])) { $currentPage = ($_GET['page'] <= 0) ? 1 : $_GET['page']; } else { $currentPage = 1; } $resultsPerPage = 20; $resultsStart = (($currentPage - 1) * $resultsPerPage); $pageType = "all"; $sql = 'SELECT * FROM `EntWatch_Current_Eban` '; if (isset($_GET['active'])) { $sql = 'SELECT * FROM `EntWatch_Current_Eban` WHERE `is_expired` = 0 '; $pageType = "active"; } elseif (isset($_GET['expired'])) { $pageType = "expired"; $sql = 'SELECT * FROM `EntWatch_Current_Eban` WHERE `is_expired` = 1 '; } if (isset($_GET['s'])) { $input = $_GET['s']; $method = formatMethod(intval($_GET['m'])); if ($method == "client_steamid" || $method == "admin_steamid") { if (!str_contains($input, "STEAMID")) { if (str_contains($input, " ")) { $input = str_replace(" ", "", $input); } } $steam = new Steam(); $result = $steam->verifyAndConvertSteamID($input); if ($result['success']) { $convertedSteamID = $result['steamID2']; $input = $convertedSteamID; } else { error_log("Error converting SteamID: " . $result['error']); } } if ($pageType == "all") { $sql = "SELECT * FROM `EntWatch_Current_Eban` WHERE `$method` LIKE '%$input%' "; } else { $sql .= "AND `$method` LIKE '%$input%' "; } } $sql_query = $GLOBALS['DB']->query($sql); $resultsCount = $sql_query->num_rows; $totalPages = ceil(($resultsCount / $resultsPerPage)); $sql_query->free(); if ($totalPages != 0 && $currentPage > $totalPages) { $currentPage = $totalPages; } $pageActiveNum = 2; if ($pageType == "all") { $pageActiveNum = 0; $pageName = "Eban List"; $icon = ""; } elseif ($pageType == "active") { $pageActiveNum = 1; $pageName = "Active Eban"; $icon = ""; } elseif ($pageType == "expired") { $pageActiveNum = 2; $pageName = "Expired Eban"; $icon = ""; } echo ""; ?> query($sql . "ORDER BY `time_stamp_start` DESC LIMIT $resultsStart, $resultsPerPage"); $results1 = $query->fetch_all(MYSQLI_ASSOC); $resultsRealCount = $query->num_rows; $query->free(); $url = $_SERVER['REQUEST_URI']; if (str_contains($url, '&page')) { $url = substr($url, 0, strpos($url, '&page')); } ?>
>  Total Ebans:
| Game | Date | Player | Reason | Admin | Duration | ||||
|---|---|---|---|---|---|---|---|---|---|
![]() | ";
echo "$dateB | "; if (empty($clientName)) { echo "No nickname present | "; } else { echo "$clientName | "; } if ($count >= 2) { if ($count == $realcount) { echo "$realcount | "; } else { echo "$realcount ($count) | "; } } else { echo ""; } echo " | $reason | "; echo "$adminName | "; echo "$length | "; echo "