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:

totalresults=>displaying of results | 0) { $href = $url . "&page=$previousPage"; echo " previous |"; } if ($nextPage > 0 && $nextPage <= $totalPages) { $href = $url . "&page=$nextPage"; echo " next "; } echo " "; ?>

GetAdminNameFromSteamID($adminSteamID); $isPermanent = ($duration == 0); $length = $isPermanent ? "Permanent" : $Eban->formatPlaytime($duration); if (($isExpired == true && $isRemoved == false)) { $length .= ' (Expired)'; if (isset($_GET['active'])) { continue; } } if ($isRemoved == true) { $length .= ' (Removed)'; } $class = "row-expired"; if (!$isExpired && !$isRemoved) { $class = "row-active"; } if ($isPermanent) { $class = "row-permanent"; } if ($isRemoved) { $class = "row-expired"; } $count = 0; $realcount = 0; $count = $Eban->GetEbansNumber($clientSteamID); $realcount = $Eban->GetRealEbansNumber($clientSteamID); $dateA->setTimestamp($time_stamp_start); $dateB = $dateA->format(DATE_TIME_FORMAT); echo ""; echo ""; echo ""; if (empty($clientName)) { echo ""; } else { echo ""; } if ($count >= 2) { if ($count == $realcount) { echo ""; } else { echo ""; } } else { echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } ?>
Game Date Player Reason Admin Duration
css$dateBNo nickname present$clientName $realcount $realcount ($count)$reason$adminName$length