// Start Range } else { $sortDirection = "DESC"; } if (!empty($_POST['searchText'])) { $searchText = $_POST['searchText']; // Start Range } else { $searchText = ""; } $lan_file = ROOTDIR . '/languages/' . $LANGUAGE . '/lan_ipbanlist.php'; include file_exists($lan_file) ? $lan_file : ROOTDIR . "/languages/English/lan_ipbanlist.php"; $banQueries = new BanQueries(); // Count how many bans exist in the database $ipCount = $banQueries->getNumberOfIpBans($banManager, $fullPower, $searchText); $bannedIps = $banQueries->getIpBanList($banManager, $fullPower, $startRange, $ipCount, $sortBy, $sortDirection, $searchText); ?> <div id="search" align="right"> <form action="" method="post"> <input name="searchText" id="searchText" type="text" value="<?php echo $searchText; ?> " size="40" maxLength="40"/> <input type="submit" value="<?php echo $LANIPBAN_011; ?> "> </form> </div> <?php if (count($bannedIps) > 0) {