You do not have access to this page.

"; die(); } $admin = new Admin(); $admin->UpdateAdminInfo($_COOKIE['steamID']); if(!$admin->DoesHaveFullAccess()) { echo "

You do not have access to this page.

"; die(); } if(isset($_GET['page'])) { $currentPage = max(1, (int) $_GET['page']); } else { $currentPage = 1; } $isWeb = false; $isSrv = false; if(isset($_GET['web'])) { $isWeb = true; } if(isset($_GET['srv'])) { $isSrv = true; } $resultsPerPage = 20; $resultsStart = (($currentPage - 1) * $resultsPerPage); $sql = "SELECT * FROM "; $sql .= ($isWeb) ? "`KbRestrict_weblogs`" : "`KbRestrict_srvlogs`"; if(isset($_GET['s']) && isset($_GET['m'])) { $input = trim($_GET['s']); $method = formatMethod(intval($_GET['m'])); if($method == "client_steamid" || $method == "admin_steamid") { $steamInput = str_replace(" ", "", $input); $steam = new Steam(); $result = $steam->verifyAndConvertSteamID($steamInput); if ($result['success'] && !empty($result['steamID2'])) { $input = $result['steamID2']; } else { error_log("Error converting SteamID: " . $result['error']); } } $input = $GLOBALS['DB']->real_escape_string($input); $sql .= " WHERE `$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; } $num = ($isWeb) ? 4 : 5; $pageType = ($isWeb) ? "web" : "srv"; echo ""; ?> query($sql . " ORDER BY time_stamp 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')); } ?>

Logs

  Total Logs:

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

GetAdminNameFromSteamID($adminSteamID); $date->setTimestamp($time_stamp); $dateFormated = $date->format(DATE_TIME_FORMAT); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } ?>
Date Player Admin Action
$dateFormated$clientName ($clientSteamID)$adminName$message