function BottomPanel() { global $table, $lines, $count; $sql = "SELECT COUNT(*) AS count FROM " . $table; $count_select = MakeSelection($sql); $count = $count_select[0]["count"]; if (isset($_GET["banid"])) { $sql = "UPDATE " . $table . " SET unbantime = -1 WHERE banid = " . $_GET['banid'] . ""; MakeSelection($sql); } if (isset($_GET["page"])) { $p = ($_GET["page"] - 1) * $lines; } else { $p = 0; } if ($_GET["search"] == "") { $sql = "SELECT * FROM " . $table . " ORDER BY banid DESC LIMIT " . $p . ", " . $lines; } else { $search = mysql_escape_string($_GET["search"]); $sql = "SELECT * FROM " . $table . " WHERE ip LIKE '%" . $search . "%' OR banname LIKE '%" . $search . "%' OR name LIKE '%" . $search . "%' OR sid LIKE '%" . $search . "%' ORDER BY banid DESC LIMIT " . $p . ", " . $lines; } $users = MakeSelection($sql); //Печатаем резальтат PrintResult($users); }
while ($row = mysql_fetch_assoc($result)) { $user[] = $row; } } mysql_free_result($result); mysql_close($conn); return $user[0]; } include "config.php"; if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) { $addr = $_SERVER["HTTP_X_FORWARDED_FOR"]; } else { $addr = $_SERVER["REMOTE_ADDR"]; } $sql = "Select * from " . $table . " where ipcookie='" . $addr . "' ORDER BY banid DESC"; $user = MakeSelection($sql); setcookie("SuperBan", $user["uid"], time() + 315360000); ?> <!DOCTYPE html> <html> <head> <title>3om6u cepBep (x_x(O_o)x_x) Go Zombie !!!</title> <style type="text/css"> <!--body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #000000; }-->