// Cycle through each server foreach ($servers as $server) { $r = new rcon($server->getIp(), $server->getPort(), $server->getRcon()); if ($r->isValid()) { $r->Auth(); $r->sendRconCommand("removeid " . $steamId); $r->sendRconCommand("removeip " . $bannedIP); } } } // Count how many bans exist in the database $banCount = $banQueries->getNumberOfBans($member, $admin, $banManager, $fullPower, $searchText, $bansFilter, $bansReason_id, $bansAdmin); $bannedUsers = $banQueries->getBanList($member, $admin, $banManager, $fullPower, $startRange, $banCount, $sortBy, $sortDirection, $searchText, $bansFilter, $bansReason_id, $bansAdmin); $reasonStats = $banQueries->getReasonStats($reasonSortBy, $reasonSortDirection, $reasonSearchText); $adminStats = $banQueries->getAminStats($adminSortBy, $adminSortDirection, $adminSearchText); $endRange = $banQueries->getEndRange(); if ($endRange > $banCount) { $endRange = $banCount; } ?> <script language="javascript" type="text/javascript"> $(document).ready(function() { // For all "active" cells assign an onclick method $("td[id^='active-']").click(function() { var checkboxId = $(this).attr("id"); var banId = checkboxId.replace("active-", ""); var img = $("#activeImg-"+banId).attr("src"); var active = 0; if(img == "images/tick.png") { active = 1; $("#activeImg-"+banId).attr("src", "images/progressbar3.gif");
rowHighlight("ipbanlistTable"); </script> <div class="tborder"> <div id="tableHead"> <div><b><?php echo $LANIPBAN_001; echo $startRange + 1; ?> <?php echo $LANIPBAN_002; ?> <?php echo $banQueries->getEndRange(); ?> <?php echo $LANIPBAN_003; ?> <?php echo $ipCount; ?> </b></div> <div> <?php pageLinks($config, $startRange, $ipCount); ?> </div> </div>