require "\x2e\x2e\57\143\157\156\146\151\147\56\160\x68\160"; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; goto zVZFn; BznMQ: require_once __DIR__ . "\57\x2e\56\57\x6d\x61\x69\x6c\145\162\x2f\141\165\164\x6f\x6c\157\141\144\x2e\160\150\x70"; goto Oma5e; gO8L4: if (isset($_POST["\x63\150\x65\143\x6b\137\154\151\x63"])) { echo allowSave() ? "\61" : "\x30"; die; } goto aSXAJ; aSXAJ: if (isset($_POST["\x66\x69\162\145\x77\x61\x6c\154\x5f\145\156\x61\142\154\x65"])) { $new = intval($_POST["\x66\151\x72\145\167\141\154\154\x5f\145\156\141\x62\x6c\145"]) ? 1 : 0; $result = $mysqli->query("\125\x50\x44\101\124\x45\x20\x62\x6f\x6f\x6d\137\163\x65\164\164\151\156\x67\40\123\x45\124\40\146\151\162\145\167\141\154\154\x5f\x65\x6e\141\142\154\145\x20\75\40{$new}"); boomSaveSettings(); reloadSettings(); echo json_encode(array("\x73\164\141\x74\x75\163" => $result ? 1 : 0)); die; } goto apHz1; Pf2kx: if (isset($_POST["\x66\162\145\145\x5f\x63\141\x6c\x6c"])) { $free = escape($_POST["\x66\162\145\145\x5f\x63\141\154\x6c"]); if (in_array($free, array(0, 1))) { $mysqli->query("\125\120\x44\101\124\x45\x20\x62\x6f\x6f\x6d\x5f\163\145\164\x74\151\156\147\40\123\x45\124\40\146\162\x65\x65\x5f\143\141\x6c\154\x20\x3d\x20\x27{$free}\x27"); echo json_encode(array("\163\164\141\164\165\163" => 1)); boomSaveSettings(); reloadSettings(); } else { echo json_encode(array("\163\164\x61\x74\x75\163" => 0)); } die; } goto Cy2UZ; o51VU: if (isset($_POST["\141\143\164\x69\x76\141\x74\145\x5f\141\144\144\x6f\156\163"], $_POST["\141\x64\x64\x6f\x6e\x73"]) && boomAllow($setting["\143\x61\x6e\x5f\x6d\x61\144\x64\157\x6e\x73"])) { $nameaddon = escape($_POST["\x61\x64\x64\157\x6e\x73"]); if (strpos($nameaddon, "\x42\114\x4b\137") !== false || strpos($nameaddon, "\141\x70\163\x5f") !== false) { echo "\x30"; die; } if ($mysqli->query("\x53\105\114\105\x43\124\40\x61\x64\144\157\x6e\163\x20\106\122\117\x4d\40\142\157\x6f\155\137\x61\144\x64\x6f\x6e\x73\40\127\x48\105\x52\105\x20\141\x64\x64\x6f\156\x73\x3d\47{$nameaddon}\47")->num_rows > 0) { echo "\x30"; die; } $install_file = BOOM_PATH . "\x2f\141\x64\144\x6f\x6e\163\57{$nameaddon}\57\x73\171\163\164\x65\155\x2f\x69\x6e\163\x74\x61\154\x6c\x2e\160\x68\160"; if (!file_exists($install_file)) { echo "\x30"; die; } require $install_file; if (!isset($ad["\x6e\141\x6d\x65"])) { echo "\60"; die; } $load = isset($ad["\x6c\x6f\x61\144"]) ? escape($ad["\x6c\157\141\144"]) : 0; $custom1 = escape($ad["\143\x75\x73\x74\157\x6d\61"] ?? ''); $custom2 = escape($ad["\x63\x75\x73\164\x6f\x6d\x32"] ?? ''); $custom3 = escape($ad["\143\165\x73\164\157\x6d\63"] ?? ''); $custom4 = escape($ad["\x63\x75\163\x74\x6f\155\x34"] ?? ''); $custom5 = escape($ad["\x63\x75\163\x74\157\155\65"] ?? ''); $custom6 = escape($ad["\143\x75\163\x74\x6f\155\66"] ?? ''); $custom7 = escape($ad["\x63\165\163\x74\x6f\155\67"] ?? ''); $custom8 = escape($ad["\143\x75\x73\x74\x6f\x6d\70"] ?? ''); $custom9 = escape($ad["\x63\x75\163\164\x6f\x6d\x39"] ?? ''); $custom10 = escape($ad["\143\x75\x73\x74\157\x6d\61\60"] ?? ''); $res2 = $mysqli->query("\123\105\x4c\x45\x43\x54\40\115\x41\130\x28\x61\144\x64\x6f\x6e\x73\x5f\151\x64\51\40\x41\123\40\x6d\141\x78\141\x69\144\x20\x46\122\117\x4d\x20\142\x6f\157\x6d\137\141\x64\x64\157\156\x73"); $row2 = $res2->fetch_assoc(); $next_addons = $row2["\x6d\141\170\x61\x69\144"] + 1; if (isset($ad["\142\157\x74\x5f\x6e\x61\155\145"], $ad["\x62\157\164\137\164\x79\x70\145"])) { $bot_name = escape($ad["\x62\157\x74\137\x6e\x61\x6d\x65"]); $bot_type = (int) $ad["\142\x6f\164\x5f\164\x79\x70\145"]; $res = $mysqli->query("\x53\x45\114\x45\x43\124\x20\x4d\x41\130\50\x75\x73\x65\162\137\x69\144\x29\40\101\x53\40\155\141\170\151\x64\x20\106\x52\117\115\40\x62\x6f\157\x6d\x5f\165\163\x65\x72\163"); $row = $res->fetch_assoc(); $next_id = $row["\x6d\141\x78\151\x64"] + 1; $pass = randomPass(); $time = time(); $mysqli->query("\x49\116\x53\x45\122\x54\x20\111\x4e\x54\117\40\x62\157\157\x6d\x5f\x75\x73\x65\162\x73\x28\165\x73\145\x72\x5f\x69\144\x2c\165\x73\145\162\137\x6e\x61\155\x65\x2c\165\163\145\x72\137\151\160\54\165\163\145\x72\137\x6a\157\x69\x6e\54\x75\163\x65\x72\137\x70\141\163\163\167\157\x72\144\x2c\165\163\145\x72\x5f\162\x61\156\153\54\165\x73\x65\162\x5f\164\x75\155\x62\54\165\x73\145\162\137\142\x6f\x74\x29\40\126\x41\114\125\105\x53\x28{$next_id}\x2c\47{$bot_name}\x27\x2c\47\60\x2e\x30\x2e\x30\x2e\x30\47\x2c\x27{$time}\47\x2c\x27{$pass}\x27\54\x27\x36\x39\47\x2c\x27\x64\x65\x66\x61\x75\154\x74\137\x73\171\x73\x74\x65\155\x2e\x70\156\x67\x27\54\47{$bot_type}\47\x29"); $sql = "\111\x4e\123\105\122\x54\x20\111\116\124\117\40\142\x6f\x6f\x6d\137\141\x64\144\157\x6e\163\x28\141\144\144\x6f\156\x73\137\x69\x64\x2c\141\144\144\x6f\x6e\x73\x2c\x61\144\144\157\156\163\137\x6c\157\141\x64\x2c\141\144\x64\x6f\156\x73\x5f\x6b\145\x79\x2c\x61\144\144\x6f\156\x73\x5f\x61\143\143\x65\x73\x73\54\142\x6f\164\137\x6e\x61\155\145\54\x62\x6f\164\137\151\144\54\143\x75\x73\164\x6f\x6d\x31\x2c\x63\x75\x73\x74\157\x6d\62\54\x63\165\x73\x74\157\x6d\63\x2c\x63\x75\163\x74\157\x6d\64\54\143\x75\163\x74\x6f\155\65\54\x63\x75\x73\x74\x6f\155\x36\54\x63\x75\163\x74\157\x6d\67\x2c\143\165\163\x74\x6f\155\x38\x2c\143\x75\163\164\157\155\x39\54\x63\165\163\164\x6f\x6d\61\x30\51\x20\x56\101\x4c\125\x45\123\50{$next_addons}\x2c\x27{$nameaddon}\x27\54\47{$load}\x27\54\x27\47\x2c\47\x30\47\54\47{$bot_name}\47\x2c\x27{$next_id}\x27\54\47{$custom1}\47\54\x27{$custom2}\47\54\47{$custom3}\47\54\x27{$custom4}\x27\x2c\x27{$custom5}\47\54\x27{$custom6}\x27\54\x27{$custom7}\x27\54\x27{$custom8}\x27\x2c\47{$custom9}\47\54\x27{$custom10}\x27\51"; } else { if (!isset($ad["\x61\143\143\145\163\163"])) { echo "\x30"; die; } $access = escape($ad["\x61\143\143\x65\163\163"]); $sql = "\111\x4e\123\x45\x52\x54\40\x49\x4e\x54\x4f\x20\x62\157\157\155\x5f\141\144\x64\157\x6e\x73\50\x61\144\144\x6f\156\x73\137\151\144\x2c\x61\x64\x64\x6f\x6e\x73\54\x61\x64\x64\157\x6e\x73\x5f\x6c\x6f\x61\144\54\141\x64\144\x6f\x6e\163\x5f\153\x65\x79\x2c\x61\x64\x64\x6f\x6e\x73\137\x61\143\143\145\163\163\x2c\x63\x75\163\164\x6f\x6d\61\54\x63\165\x73\164\157\155\62\54\143\165\x73\164\157\x6d\x33\54\143\x75\x73\x74\157\155\x34\54\143\165\x73\164\x6f\x6d\x35\54\143\x75\163\x74\157\155\66\x2c\143\x75\163\x74\x6f\x6d\67\54\x63\165\163\164\157\x6d\x38\54\143\165\x73\164\157\x6d\x39\54\x63\x75\x73\x74\157\x6d\x31\60\51\x20\126\101\x4c\125\x45\123\50{$next_addons}\x2c\x27{$nameaddon}\47\x2c\x27{$load}\47\54\47\47\54\x27{$access}\47\x2c\x27{$custom1}\x27\54\x27{$custom2}\47\x2c\47{$custom3}\47\54\x27{$custom4}\47\x2c\x27{$custom5}\47\x2c\x27{$custom6}\47\54\47{$custom7}\47\54\x27{$custom8}\47\54\47{$custom9}\47\54\47{$custom10}\x27\51"; } echo $mysqli->query($sql) ? "\x31" : "\x30"; die; } goto NIvfO; Cy2UZ: if (isset($_POST["\x63\x69\143\157\x6e\137\x6c\x6f\143\x61\164\x69\x6f\x6e"], $_POST["\143\141\154\154\x5f\163\145\162\x76\x65\x72"])) { $loc = (int) $_POST["\x63\x69\143\x6f\156\x5f\154\157\143\x61\164\151\157\x6e"]; $server = $mysqli->real_escape_string(trim($_POST["\x63\x61\154\154\x5f\163\x65\162\166\145\162"])); if (in_array($loc, array(0, 1, 2, 3), true)) { $mysqli->query("\xa\x20\40\x20\40\40\x20\x20\40\x20\40\x20\40\125\120\x44\x41\124\x45\40\x60\x62\x6f\x6f\x6d\x5f\x73\x65\164\x74\151\156\x67\140\xa\40\40\40\40\40\40\40\40\x20\x20\x20\40\40\40\x20\x53\x45\x54\40\x60\x63\x69\x63\x6f\156\x5f\x6c\157\x63\141\x74\x69\157\156\x60\40\75\40{$loc}\x2c\12\x20\x20\40\40\40\x20\x20\x20\x20\40\x20\40\40\x20\40\40\40\x20\40\x60\x63\141\154\x6c\137\x73\x65\162\x76\145\x72\x60\40\40\40\40\75\x20\47{$server}\47\xa\40\x20\x20\x20\x20\40\40\x20"); boomSaveSettings(); reloadSettings(); echo json_encode(array("\163\x74\x61\164\x75\x73" => 1)); } else { echo json_encode(array("\163\x74\x61\164\165\x73" => 0)); } die; } goto jIArc; zVZFn: if (!allowSave()) { die; } goto BznMQ; jIArc: if (isset($_POST["\163\141\166\145\137\160\141\147\x65"], $_POST["\160\141\147\145\137\164\x61\162\x67\145\164"], $_POST["\x70\x61\147\145\x5f\143\x6f\x6e\x74\x65\156\x74"])) { $page_target = trim($_POST["\x70\141\x67\145\137\x74\x61\162\x67\x65\x74"]); $page_content = trim($_POST["\x70\x61\147\145\137\x63\x6f\156\x74\x65\156\164"]); $update = $mysqli->query("\125\120\x44\101\x54\105\x20\x62\x6f\157\x6d\137\160\x61\x67\x65\x20\123\105\x54\x20\x70\141\x67\x65\x5f\143\x6f\156\164\145\156\x74\x20\x3d\x20\47{$page_content}\47\40\127\110\x45\x52\105\40\x70\141\x67\x65\137\156\x61\155\145\x20\x3d\x20\47{$page_target}\47"); if ($update) { echo 1; } else { echo 0; } } goto o51VU; TWaXN: if (isset($_FILES["\151\x6d\x61\147\x65"]) && isset($_POST["\x6e\x61\x6d\x65"])) { $uploadDir = BOOM_PATH . "\57\144\x65\x66\141\165\154\x74\137\x69\x6d\x61\x67\x65\163\57"; $fileName = basename($_POST["\x6e\141\155\145"]); $targetFile = $uploadDir . $fileName; $allowedTypes = array("\x69\x6d\x61\x67\x65\x2f\x6a\x70\x65\147", "\x69\x6d\141\x67\145\x2f\160\x6e\x67", "\151\x6d\x61\147\x65\57\147\x69\146"); $fileType = $_FILES["\x69\x6d\141\147\145"]["\x74\171\x70\x65"]; if (!in_array($fileType, $allowedTypes)) { echo 0; die; } if (file_exists($targetFile)) { unlink($targetFile); } if (move_uploaded_file($_FILES["\151\155\x61\147\145"]["\x74\155\160\x5f\156\141\x6d\x65"], $targetFile)) { boomCacheUpdate(); opcache_reset(); redisFlushAll(); echo 1; } else { echo 0; } } goto Pf2kx; niHWr: if (isset($_POST["\163\x70\145\145\x64\137\x74\x65\163\x74"])) { $url = (isset($_SERVER["\110\124\x54\120\123"]) ? "\150\164\164\x70\x73" : "\x68\x74\x74\x70") . "\x3a\57\57" . $_SERVER["\x48\124\124\120\x5f\110\117\123\124"] . "\57"; $ch = curl_init($url); curl_setopt_array($ch, array(CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_NOBODY => true, CURLOPT_TIMEOUT => 10, CURLOPT_HEADER => false)); curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); echo json_encode(array("\163\160\x65\x65\x64" => round($info["\164\157\x74\141\154\x5f\164\151\x6d\x65"] * 1000) . "\x20\155\163")); die; } goto TWaXN; Oma5e: if (isset($_POST["\163\x61\x76\145\x5f\141\144\x6d\151\x6e\x5f\155\141\x69\x6e"]) && isset($_POST["\x73\x65\164\137\151\156\144\x65\x78\x5f\160\x61\164\150"]) && isset($_POST["\x73\x65\164\137\164\x69\164\x6c\145"]) && isset($_POST["\x73\x65\164\137\164\151\x6d\x65\x7a\x6f\x6e\145"]) && isset($_POST["\x73\x65\164\x5f\x64\x65\146\x61\x75\154\164\x5f\x6c\141\156\147\165\x61\147\x65"]) && isset($_POST["\x73\145\x74\137\x73\151\x74\x65\137\x64\x65\x73\x63\162\x69\160\164\151\x6f\x6e"]) && isset($_POST["\x73\145\x74\137\163\151\164\x65\137\153\x65\171\x77\157\x72\144"])) { $index = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\151\156\144\145\x78\137\160\141\164\x68"]); $title = $mysqli->real_escape_string($_POST["\x73\145\x74\137\x74\x69\164\154\145"]); $timezone = $mysqli->real_escape_string($_POST["\163\x65\164\137\x74\x69\x6d\145\x7a\157\x6e\145"]); $language = $mysqli->real_escape_string($_POST["\163\145\164\137\144\145\146\x61\165\x6c\164\137\x6c\x61\156\x67\165\x61\x67\145"]); $description = $mysqli->real_escape_string($_POST["\163\x65\x74\x5f\163\x69\x74\145\x5f\144\145\163\x63\162\151\160\x74\x69\157\x6e"]); $keyword = $mysqli->real_escape_string($_POST["\163\x65\x74\x5f\x73\151\164\145\x5f\x6b\145\x79\167\157\x72\x64"]); $query = "\125\120\x44\101\124\105\x20\x62\157\x6f\155\137\x73\145\x74\x74\151\156\147\x20\xa\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\40\40\123\x45\x54\x20\x64\157\155\x61\x69\156\x20\x3d\x20\77\54\40\12\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x74\x69\x74\154\x65\x20\x3d\x20\77\54\40\12\40\40\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\x73\151\164\x65\x5f\x64\145\x73\143\x72\x69\x70\164\151\157\156\x20\75\x20\x3f\54\x20\12\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\40\40\40\40\x20\x73\x69\x74\145\137\x6b\145\171\x77\x6f\162\x64\40\75\x20\x3f\x2c\x20\12\x20\40\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\x74\x69\x6d\145\172\x6f\156\145\x20\x3d\40\77\x2c\40\xa\x20\x20\40\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\40\40\x20\x6c\141\156\x67\x75\141\x67\145\x20\75\40\x3f\40\12\40\40\x20\40\40\x20\40\40\x20\x20\40\40\40\40\x57\110\105\x52\x45\x20\x69\144\40\75\x20\x27\61\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163\163\x73\163\163\x73", $index, $title, $description, $keyword, $timezone, $language); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } $stmt->close(); } else { echo 3; } } elseif (isset($_POST["\163\x61\166\x65\x5f\x61\144\155\151\x6e\x5f\141\x70\x70"]) && isset($_POST["\x73\x65\x74\x5f\x75\163\x65\x5f\x61\160\x70"]) && isset($_POST["\x73\x65\x74\x5f\x61\x70\160\137\x6e\x61\155\145"]) && isset($_POST["\x73\145\x74\x5f\141\x70\160\137\x63\157\x6c\x6f\x72"])) { $use_app = $mysqli->real_escape_string($_POST["\163\145\x74\137\x75\163\x65\x5f\141\160\x70"]); $app_name = $mysqli->real_escape_string($_POST["\x73\145\164\137\x61\x70\x70\137\x6e\141\x6d\145"]); $app_color = $mysqli->real_escape_string($_POST["\x73\x65\164\x5f\x61\x70\160\x5f\143\157\154\157\162"]); $query = "\125\120\104\101\x54\x45\x20\x62\157\157\155\137\163\x65\x74\164\x69\156\x67\x20\xa\40\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\40\x20\x53\105\x54\40\165\x73\x65\x5f\x61\x70\x70\x20\x3d\x20\77\x2c\40\12\x20\x20\40\40\x20\40\40\40\40\40\40\x20\x20\x20\x20\x20\40\40\x61\160\160\137\156\x61\x6d\145\x20\x3d\40\x3f\x2c\40\12\x20\40\40\40\40\40\40\x20\40\40\x20\40\40\40\40\x20\x20\40\141\x70\x70\x5f\x63\x6f\x6c\x6f\x72\40\x3d\40\x3f\x20\xa\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\x57\110\x45\x52\x45\x20\x69\144\40\75\x20\47\x31\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163\163\163", $use_app, $app_name, $app_color); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } $stmt->close(); } else { echo 3; } } elseif (isset($_POST["\x73\141\x76\x65\137\x61\x64\155\151\x6e\137\x6d\141\x69\x6e\x74\145\x6e\141\x6e\x63\x65"]) && isset($_POST["\x73\x65\x74\137\155\141\x69\x6e\x74\137\x6d\157\x64\145"])) { $maint_mode = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\155\141\x69\x6e\164\x5f\x6d\157\144\145"]); $query = "\125\120\104\x41\x54\105\40\x62\x6f\x6f\155\137\163\x65\x74\164\x69\x6e\x67\x20\xa\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\123\x45\124\x20\x6d\x61\x69\156\164\137\155\x6f\x64\x65\40\x3d\x20\x3f\x20\12\x20\40\40\x20\40\40\40\x20\x20\x20\40\40\x20\x20\x57\110\x45\122\x45\x20\x69\x64\x20\75\x20\x27\x31\x27"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163", $maint_mode); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } $stmt->close(); } else { echo 3; } } elseif (isset($_POST["\163\141\166\145\137\141\x64\155\x69\x6e\x5f\167\x61\154\x6c\145\x74"]) && isset($_POST["\x73\145\164\137\x75\x73\x65\x5f\167\141\x6c\x6c\145\164"]) && isset($_POST["\163\x65\x74\137\143\141\x6e\137\163\x77\141\154\x6c\145\164"]) && isset($_POST["\163\x65\164\x5f\143\x61\156\137\147\x6f\154\x64"]) && isset($_POST["\163\x65\x74\x5f\147\x6f\x6c\144\x5f\144\x65\x6c\141\x79"]) && isset($_POST["\x73\145\x74\x5f\x67\157\154\x64\x5f\142\x61\x73\x65"]) && isset($_POST["\163\x65\164\x5f\143\141\x6e\137\x72\x75\142\171"]) && isset($_POST["\x73\x65\164\137\162\165\x62\171\x5f\144\x65\x6c\x61\x79"]) && isset($_POST["\163\145\x74\137\x72\x75\x62\171\137\x62\141\x73\145"])) { $use_wallet = $mysqli->real_escape_string($_POST["\x73\x65\164\137\x75\x73\145\x5f\x77\x61\x6c\154\145\x74"]); $can_swallet = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\x63\141\156\x5f\x73\x77\x61\x6c\x6c\145\x74"]); $can_gold = $mysqli->real_escape_string($_POST["\x73\145\x74\137\143\141\x6e\137\147\x6f\154\144"]); $gold_delay = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\147\157\x6c\x64\137\x64\145\x6c\141\x79"]); $gold_base = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\147\157\154\144\137\142\x61\163\145"]); $can_ruby = $mysqli->real_escape_string($_POST["\163\x65\164\137\143\141\x6e\x5f\x72\x75\x62\x79"]); $ruby_delay = $mysqli->real_escape_string($_POST["\x73\145\164\137\162\x75\x62\171\137\x64\145\154\x61\x79"]); $ruby_base = $mysqli->real_escape_string($_POST["\x73\x65\164\137\x72\x75\142\171\137\142\x61\163\x65"]); $query = "\x55\120\104\x41\124\x45\40\142\x6f\x6f\x6d\x5f\163\x65\164\164\151\156\x67\x20\xa\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\x20\40\123\x45\124\40\x75\x73\145\x5f\x77\x61\x6c\x6c\145\x74\x20\x3d\40\77\x2c\40\12\x20\40\40\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x20\40\x20\143\141\x6e\137\x73\167\141\154\154\x65\x74\40\x3d\x20\77\54\40\12\x20\40\x20\x20\40\40\x20\40\40\x20\40\x20\40\x20\40\40\x20\40\x63\x61\156\x5f\x67\x6f\x6c\x64\40\x3d\x20\x3f\x2c\x20\12\40\x20\40\40\40\40\40\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\x67\157\x6c\144\137\144\145\x6c\141\171\40\x3d\40\x3f\x2c\40\xa\x20\40\40\40\x20\40\40\40\x20\x20\x20\40\40\40\x20\x20\40\40\147\x6f\x6c\x64\x5f\142\x61\163\145\40\75\x20\77\54\40\12\40\x20\x20\x20\40\40\40\x20\x20\40\x20\40\40\x20\40\x20\x20\40\143\141\x6e\x5f\x72\x75\x62\x79\x20\x3d\x20\77\x2c\x20\xa\40\40\x20\40\x20\x20\40\40\x20\40\40\x20\40\40\x20\x20\40\x20\x72\x75\x62\x79\137\144\145\154\141\x79\40\x3d\x20\x3f\x2c\40\12\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x72\x75\142\171\137\142\141\x73\145\40\75\x20\x3f\x20\xa\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\127\x48\x45\x52\105\x20\x69\x64\40\75\40\47\61\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\x73\163\x73\x73\x73\163\x73\x73", $use_wallet, $can_swallet, $can_gold, $gold_delay, $gold_base, $can_ruby, $ruby_delay, $ruby_base); if ($stmt->execute()) { if ($stmt->affected_rows > 0) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } else { echo 3; } $stmt->close(); } else { echo 4; } } elseif (isset($_POST["\163\141\x76\145\x5f\x61\144\x6d\151\156\x5f\x67\151\x66\164"]) && isset($_POST["\x73\145\x74\x5f\165\163\145\137\147\151\x66\x74"])) { $use_gift = $mysqli->real_escape_string($_POST["\x73\x65\164\137\x75\x73\145\137\x67\x69\x66\164"]); $query = "\125\x50\x44\x41\x54\x45\x20\x62\x6f\x6f\155\x5f\163\x65\164\x74\x69\156\x67\40\xa\40\40\40\x20\40\x20\40\40\40\x20\40\x20\x20\40\123\x45\124\x20\165\163\145\x5f\x67\151\x66\x74\40\x3d\40\77\40\xa\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\127\110\x45\x52\x45\40\151\144\40\x3d\x20\x27\61\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163", $use_gift); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\163\141\166\x65\137\141\x64\155\x69\x6e\x5f\x6c\x65\166\145\x6c"]) && isset($_POST["\x73\x65\164\x5f\x75\163\x65\137\154\x65\x76\x65\154"]) && isset($_POST["\163\x65\164\x5f\154\x65\x76\145\x6c\137\155\x6f\144\145"]) && isset($_POST["\x73\x65\164\137\x65\170\160\137\143\150\x61\x74"]) && isset($_POST["\x73\145\x74\137\x65\x78\x70\x5f\160\162\x69\166"]) && isset($_POST["\x73\145\x74\137\145\170\x70\137\160\x6f\163\164"]) && isset($_POST["\x73\145\164\137\145\170\160\137\x67\x69\x66\164"])) { $use_level = $mysqli->real_escape_string($_POST["\163\x65\164\137\165\x73\x65\x5f\x6c\145\166\145\154"]); $level_mode = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\154\145\x76\145\x6c\x5f\155\x6f\x64\x65"]); $exp_chat = $mysqli->real_escape_string($_POST["\x73\145\164\137\x65\170\160\137\143\150\x61\x74"]); $exp_priv = $mysqli->real_escape_string($_POST["\x73\145\164\137\x65\170\x70\x5f\160\162\x69\166"]); $exp_post = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\145\170\160\x5f\160\157\163\x74"]); $exp_gift = $mysqli->real_escape_string($_POST["\163\145\164\137\145\170\160\137\147\x69\x66\164"]); $query = "\x55\120\104\101\124\x45\40\142\x6f\157\x6d\137\x73\x65\x74\164\151\x6e\147\x20\xa\x20\x20\40\40\40\x20\x20\x20\40\40\x20\x20\40\40\x53\x45\x54\40\165\163\145\137\x6c\x65\166\145\x6c\40\x3d\x20\77\54\40\xa\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\x6c\145\166\145\x6c\137\x6d\x6f\x64\145\40\x3d\x20\77\54\40\12\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\40\40\x20\x20\145\x78\160\137\143\x68\x61\164\x20\75\40\x3f\x2c\40\xa\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\40\x20\40\40\x20\40\40\x65\x78\x70\x5f\x70\162\151\166\40\x3d\40\x3f\x2c\x20\12\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\40\145\x78\x70\x5f\x70\157\163\x74\x20\x3d\40\77\54\x20\xa\x20\x20\x20\x20\40\40\x20\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x65\x78\160\137\147\151\146\x74\x20\x3d\40\x3f\40\xa\40\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\x20\127\110\105\x52\x45\x20\x69\144\x20\75\40\x27\61\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\x73\x73\163\x73\163\163", $use_level, $level_mode, $exp_chat, $exp_priv, $exp_post, $exp_gift); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\x73\141\166\145\x5f\x61\144\155\x69\x6e\137\x62\141\x64\147\145"]) && isset($_POST["\x73\145\164\x5f\x75\163\x65\137\142\141\x64\147\145"]) && isset($_POST["\163\x65\x74\x5f\x62\141\143\150\141\164"]) && isset($_POST["\163\x65\164\137\x62\141\x67\x69\146\x74"]) && isset($_POST["\x73\x65\x74\137\x62\x61\154\151\x6b\x65"]) && isset($_POST["\163\x65\x74\x5f\142\141\x66\x72\151\x65\156\144"]) && isset($_POST["\x73\145\x74\x5f\x62\141\x72\x75\142\171"]) && isset($_POST["\163\145\x74\137\x62\141\147\157\154\x64"]) && isset($_POST["\163\145\164\137\x62\141\x62\x65\x61\x74"])) { $use_badge = $mysqli->real_escape_string($_POST["\163\145\x74\137\165\x73\x65\x5f\x62\x61\144\147\x65"]); $bachat = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\x62\141\x63\x68\x61\164"]); $bagift = $mysqli->real_escape_string($_POST["\x73\x65\164\x5f\142\141\147\151\146\x74"]); $balike = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\142\x61\x6c\x69\x6b\145"]); $bafriend = $mysqli->real_escape_string($_POST["\x73\145\164\137\142\141\146\162\151\x65\156\x64"]); $baruby = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\142\141\x72\165\x62\171"]); $bagold = $mysqli->real_escape_string($_POST["\163\145\x74\137\142\x61\147\x6f\x6c\144"]); $babeat = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\142\x61\142\145\141\x74"]); $query = "\x55\x50\x44\101\124\x45\40\x62\157\x6f\x6d\137\163\145\x74\164\x69\x6e\147\40\12\40\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\x53\x45\124\40\165\163\x65\137\142\x61\x64\x67\x65\40\x3d\x20\77\54\40\xa\x20\x20\x20\40\x20\40\40\x20\x20\40\40\40\40\x20\40\40\x20\40\x62\141\143\150\x61\164\40\x3d\40\x3f\54\x20\xa\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\142\141\147\151\146\164\40\x3d\x20\77\54\40\xa\x20\40\40\40\40\40\40\x20\40\40\x20\x20\40\40\x20\40\40\40\x62\141\154\x69\153\145\x20\x3d\40\x3f\54\40\xa\40\40\40\40\40\x20\40\x20\40\40\40\x20\40\x20\40\x20\x20\x20\x62\x61\146\x72\x69\145\156\x64\40\x3d\x20\77\x2c\x20\12\40\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\40\40\40\40\40\142\x61\162\x75\142\x79\40\x3d\x20\77\x2c\x20\xa\x20\x20\40\40\x20\40\x20\40\x20\x20\40\40\x20\x20\40\x20\x20\40\x62\141\x67\x6f\x6c\144\x20\x3d\x20\x3f\x2c\40\xa\x20\x20\40\40\x20\40\40\x20\x20\40\x20\40\40\40\40\x20\40\40\x62\141\x62\x65\141\164\x20\x3d\x20\x3f\x20\12\x20\x20\x20\40\x20\40\40\x20\40\x20\x20\40\40\x20\127\x48\x45\122\x45\40\151\x64\40\x3d\x20\x27\61\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163\163\x73\163\x73\x73\163\163", $use_badge, $bachat, $bagift, $balike, $bafriend, $baruby, $bagold, $babeat); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\x73\x61\x76\x65\x5f\141\144\155\151\x6e\137\x64\141\164\x61"]) && isset($_POST["\x73\145\164\x5f\x6d\141\x78\x5f\x61\166\x61\x74\x61\162"]) && isset($_POST["\163\x65\x74\x5f\155\141\170\x5f\143\x6f\x76\x65\x72"]) && isset($_POST["\x73\145\164\137\155\141\170\137\162\x69\x63\x6f\156"]) && isset($_POST["\163\145\x74\137\155\141\170\137\x66\151\154\x65"])) { $max_avatar = $mysqli->real_escape_string($_POST["\163\145\164\137\x6d\x61\x78\x5f\141\166\141\164\141\162"]); $max_cover = $mysqli->real_escape_string($_POST["\x73\x65\164\137\155\x61\170\x5f\143\x6f\x76\x65\x72"]); $max_ricon = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\155\x61\x78\137\162\x69\143\x6f\156"]); $max_file = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\x6d\141\170\x5f\x66\x69\x6c\145"]); $query = "\125\x50\x44\101\x54\105\x20\142\157\x6f\x6d\137\x73\x65\164\x74\151\x6e\x67\40\xa\x20\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\123\x45\124\x20\x6d\141\170\x5f\141\x76\141\x74\x61\x72\x20\x3d\x20\77\54\40\12\40\40\x20\x20\40\x20\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\155\x61\x78\137\x63\157\x76\145\x72\40\x3d\40\x3f\54\40\xa\x20\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\40\40\40\155\141\x78\x5f\162\x69\x63\x6f\156\x20\x3d\x20\77\54\x20\12\40\40\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\146\151\154\x65\x5f\x77\x65\x69\147\x68\x74\x20\x3d\40\x3f\40\xa\x20\40\40\40\40\40\40\x20\x20\x20\40\x20\x20\40\x57\x48\x45\x52\x45\x20\x69\144\x20\x3d\40\x27\x31\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\x73\163\x73\x73", $max_avatar, $max_cover, $max_ricon, $max_file); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\x73\141\x76\145\x5f\x61\x64\x6d\151\x6e\137\160\x6c\141\x79\x65\x72"]) && isset($_POST["\x73\145\x74\x5f\x64\x65\x66\x61\165\x6c\164\x5f\x70\154\141\x79\145\162"])) { $default_player = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\144\x65\x66\141\165\154\x74\137\160\x6c\x61\171\145\162"]); $query = "\125\x50\x44\x41\x54\x45\x20\142\157\x6f\x6d\x5f\163\x65\164\164\151\x6e\x67\x20\xa\40\x20\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\123\x45\124\40\160\154\141\171\145\162\137\151\144\x20\75\40\x3f\40\xa\x20\x20\x20\x20\40\40\x20\40\40\40\x20\x20\40\x20\x57\x48\x45\122\x45\40\151\144\40\x3d\40\x27\61\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163", $default_player); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\163\141\x76\145\x5f\x61\x64\155\x69\156\137\145\155\x61\x69\x6c"]) && isset($_POST["\x73\x65\x74\137\x6d\141\x69\154\x5f\x74\171\160\145"]) && isset($_POST["\x73\145\164\137\163\x69\x74\x65\137\x65\x6d\x61\x69\154"]) && isset($_POST["\x73\x65\164\x5f\x65\155\141\x69\x6c\137\x66\x72\x6f\155"]) && isset($_POST["\163\x65\x74\137\x73\x6d\164\160\137\x68\157\163\164"]) && isset($_POST["\163\145\164\x5f\x73\x6d\x74\x70\137\x75\x73\x65\162\x6e\141\155\145"]) && isset($_POST["\x73\145\164\x5f\163\155\x74\x70\137\160\141\163\x73\x77\157\162\144"]) && isset($_POST["\163\x65\x74\137\163\155\164\160\137\160\157\x72\x74"]) && isset($_POST["\163\x65\164\x5f\163\155\x74\160\x5f\x74\171\160\145"])) { $mail_type = $mysqli->real_escape_string($_POST["\163\145\164\x5f\x6d\141\x69\x6c\x5f\x74\171\x70\x65"]); $site_email = $mysqli->real_escape_string($_POST["\163\145\164\x5f\x73\x69\x74\x65\x5f\145\x6d\x61\x69\154"]); $email_from = $mysqli->real_escape_string($_POST["\x73\145\x74\x5f\x65\155\x61\x69\154\x5f\146\162\x6f\x6d"]); $smtp_host = $mysqli->real_escape_string($_POST["\x73\145\164\137\163\x6d\x74\x70\x5f\x68\x6f\163\164"]); $smtp_username = $mysqli->real_escape_string($_POST["\163\145\164\x5f\163\155\x74\x70\x5f\165\163\145\162\156\141\155\x65"]); $smtp_password = $mysqli->real_escape_string($_POST["\x73\145\x74\x5f\x73\x6d\x74\x70\x5f\x70\141\163\163\167\157\162\x64"]); $smtp_port = $mysqli->real_escape_string($_POST["\x73\145\x74\x5f\163\x6d\164\160\137\160\x6f\162\164"]); $smtp_type = $mysqli->real_escape_string($_POST["\x73\145\x74\137\163\x6d\164\x70\137\x74\x79\160\145"]); $query = "\125\x50\x44\101\124\105\x20\142\x6f\x6f\x6d\137\163\145\164\164\151\x6e\147\x20\xa\40\40\40\x20\x20\40\40\x20\40\x20\40\40\40\x20\x53\x45\124\x20\155\141\151\154\137\x74\171\x70\x65\40\75\x20\77\54\40\12\40\40\40\x20\40\40\x20\x20\40\40\x20\x20\40\x20\40\40\40\x20\163\x69\x74\x65\x5f\x65\155\x61\x69\x6c\40\x3d\x20\x3f\54\x20\12\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\40\x20\x65\155\141\151\154\x5f\146\162\x6f\155\40\x3d\40\77\x2c\40\12\x20\x20\x20\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x73\x6d\x74\x70\x5f\x68\157\x73\x74\x20\x3d\x20\77\x2c\x20\12\40\x20\x20\40\x20\40\x20\40\40\40\40\x20\40\x20\x20\x20\x20\40\163\155\x74\x70\137\165\x73\x65\162\156\141\x6d\145\40\x3d\40\77\x2c\x20\12\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\40\x20\40\163\155\164\160\x5f\160\141\163\163\167\x6f\162\x64\x20\x3d\x20\x3f\54\x20\xa\40\40\40\40\40\x20\40\40\x20\x20\x20\40\40\40\40\x20\40\40\163\x6d\x74\x70\137\160\x6f\162\x74\40\75\40\77\54\40\12\x20\x20\x20\40\x20\x20\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\x73\155\164\160\x5f\x74\x79\160\145\x20\75\40\77\x20\12\40\x20\40\40\40\x20\40\x20\40\40\40\x20\40\40\x57\110\105\122\105\x20\151\x64\40\75\40\47\x31\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163\163\x73\x73\x73\x73\x73\163", $mail_type, $site_email, $email_from, $smtp_host, $smtp_username, $smtp_password, $smtp_port, $smtp_type); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\x73\141\x76\145\x5f\x61\x64\155\x69\156\137\143\x61\143\150\145"]) && isset($_POST["\163\x65\x74\137\x72\145\x64\151\x73\137\163\164\141\164\165\x73"])) { $redis_status = $mysqli->real_escape_string($_POST["\x73\145\164\137\162\145\x64\151\163\x5f\163\164\141\x74\x75\x73"]); $query = "\x55\120\104\x41\x54\105\x20\x62\x6f\157\x6d\x5f\163\x65\164\164\151\x6e\147\x20\12\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x53\105\x54\x20\x72\145\x64\x69\x73\x5f\163\164\x61\164\165\x73\x20\x3d\x20\x3f\40\12\40\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\127\x48\105\122\105\40\x69\144\x20\75\x20\47\61\47"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163", $redis_status); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\x73\141\166\145\137\141\x64\x6d\151\x6e\x5f\x67\165\x65\163\164"]) && isset($_POST["\163\145\x74\x5f\141\154\154\157\x77\x5f\147\x75\145\x73\164"]) && isset($_POST["\x73\145\x74\x5f\155\x61\170\x5f\x67\162\x65\147"]) && isset($_POST["\163\x65\164\x5f\147\165\x65\163\164\x5f\x66\157\162\x6d"])) { $allow_guest = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\141\154\154\157\x77\x5f\147\165\145\x73\164"]); $max_greg = $mysqli->real_escape_string($_POST["\163\x65\x74\137\155\141\170\137\x67\162\x65\147"]); $guest_form = $mysqli->real_escape_string($_POST["\163\145\164\x5f\x67\x75\x65\163\164\137\x66\157\162\x6d"]); $query = "\125\120\x44\x41\124\x45\40\x62\x6f\x6f\x6d\x5f\x73\x65\x74\164\x69\156\x67\x20\xa\x20\x20\x20\x20\40\40\x20\40\40\40\40\40\x20\x20\x53\105\x54\x20\x61\x6c\x6c\x6f\167\137\x67\x75\x65\163\x74\x20\75\x20\x3f\x2c\x20\xa\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\40\40\155\141\x78\137\x67\x72\x65\147\40\x3d\x20\77\x2c\x20\xa\40\40\40\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\147\x75\x65\x73\x74\137\x66\157\162\155\x20\x3d\40\77\x20\12\40\40\40\40\x20\40\40\x20\x20\x20\40\x20\40\x20\x57\x48\105\x52\105\x20\151\144\40\75\40\47\61\x27"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\x73\x73\x73", $allow_guest, $max_greg, $guest_form); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\x73\141\x76\145\x5f\x61\144\x6d\151\156\137\144\151\x73\160\x6c\141\171"]) && isset($_POST["\x73\145\164\137\x6d\x61\x69\156\x5f\x74\150\145\155\145"]) && isset($_POST["\x73\145\164\137\154\157\x67\151\156\x5f\160\141\x67\x65"]) && isset($_POST["\x73\x65\164\137\165\x73\145\137\x67\x65\x6e\x64\x65\x72"]) && isset($_POST["\163\x65\164\x5f\x75\163\x65\x5f\146\x6c\141\147"])) { $main_theme = $mysqli->real_escape_string($_POST["\x73\145\x74\x5f\x6d\141\x69\x6e\137\x74\150\145\155\145"]); $login_page = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\x6c\x6f\147\x69\x6e\x5f\x70\x61\x67\x65"]); $use_gender = $mysqli->real_escape_string($_POST["\x73\x65\164\x5f\165\163\x65\x5f\147\145\156\144\145\x72"]); $use_flag = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\165\163\x65\x5f\x66\154\141\147"]); $query = "\125\120\104\101\x54\x45\x20\x62\x6f\x6f\155\137\x73\145\x74\x74\x69\x6e\x67\x20\12\x20\x20\40\x20\40\x20\x20\40\40\x20\40\x20\40\40\x53\105\x54\40\144\x65\146\141\165\x6c\164\x5f\x74\150\x65\x6d\x65\40\75\40\x3f\x2c\x20\12\40\40\x20\x20\40\40\x20\40\40\40\40\x20\x20\40\40\40\x20\40\x6c\157\147\151\156\137\x70\141\x67\145\x20\x3d\x20\77\x2c\x20\12\40\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\x20\x20\x20\40\x20\x75\x73\x65\x5f\x67\145\156\x64\x65\162\40\x3d\x20\x3f\x2c\x20\xa\40\x20\40\x20\x20\40\40\40\40\40\x20\40\x20\40\40\40\x20\40\x75\163\145\137\x66\154\141\147\40\x3d\40\x3f\40\12\40\x20\x20\x20\x20\40\x20\40\40\40\x20\40\40\x20\127\110\x45\122\105\40\151\144\40\x3d\40\x27\61\x27"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163\x73\163\x73", $main_theme, $login_page, $use_gender, $use_flag); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["\163\141\x76\x65\x5f\x61\x64\x6d\151\156\x5f\x62\x72\x69\144\147\x65"]) && isset($_POST["\x73\x65\164\x5f\165\163\x65\x5f\142\x72\151\144\x67\145"])) { $use_bridge = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\x75\163\x65\137\x62\162\151\144\x67\x65"]); $query = "\x55\120\104\101\x54\x45\x20\142\157\157\155\x5f\163\145\x74\164\151\156\x67\40\12\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\123\x45\x54\40\165\163\x65\x5f\142\162\x69\144\x67\x65\40\x3d\40\x3f\40\12\40\40\x20\40\x20\x20\40\40\40\x20\x20\x20\40\x20\x57\110\105\x52\105\x20\x69\144\40\x3d\x20\x27\x31\x27"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("\163", $use_bridge); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 404; return; } } elseif (isset($_POST["\163\141\166\145\137\x61\144\x6d\151\x6e\137\165\163\145\x72\x5f\x70\145\162\155\x69\x73\163\x69\157\156"]) && isset($_POST["\x73\145\x74\137\x61\x6c\x6c\x6f\167\137\141\x76\141\x74\141\x72"]) && isset($_POST["\x73\145\x74\x5f\141\154\154\x6f\x77\x5f\143\157\x76\x65\162"]) && isset($_POST["\x73\145\x74\x5f\x61\x6c\154\157\x77\x5f\x67\x63\157\166\x65\x72"]) && isset($_POST["\163\x65\164\137\x61\154\154\157\167\137\143\165\160\154\x6f\x61\x64"]) && isset($_POST["\163\145\164\x5f\x61\x6c\154\157\x77\137\160\165\x70\154\157\141\144"]) && isset($_POST["\x73\x65\x74\x5f\x61\x6c\154\157\x77\137\x77\165\x70\154\157\x61\x64"]) && isset($_POST["\163\145\x74\137\141\154\154\157\x77\137\166\x69\x64\x65\157"]) && isset($_POST["\163\x65\x74\x5f\141\154\x6c\x6f\x77\x5f\141\x75\144\151\x6f"]) && isset($_POST["\x73\x65\164\x5f\141\154\x6c\x6f\167\x5f\x7a\151\160"]) && isset($_POST["\x73\145\164\x5f\x61\154\154\x6f\167\137\x6d\x61\x69\156"]) && isset($_POST["\x73\x65\x74\137\141\154\x6c\x6f\167\x5f\160\162\151\x76\x61\x74\x65"]) && isset($_POST["\x73\x65\x74\x5f\x61\x6c\154\157\x77\x5f\x71\165\x6f\164\x65"]) && isset($_POST["\163\x65\164\x5f\x61\154\x6c\x6f\167\x5f\160\161\165\157\x74\x65"]) && isset($_POST["\163\x65\x74\x5f\x65\155\x6f\x5f\x70\154\x75\163"]) && isset($_POST["\x73\x65\x74\x5f\x61\x6c\x6c\157\167\137\144\151\162\145\x63\x74"]) && isset($_POST["\x73\x65\x74\x5f\x61\x6c\154\157\x77\137\162\157\x6f\155"]) && isset($_POST["\x73\145\x74\x5f\141\154\x6c\157\x77\x5f\166\x72\x6f\x6f\155"]) && isset($_POST["\163\145\164\x5f\141\x6c\154\x6f\167\x5f\164\x68\145\155\145"]) && isset($_POST["\x73\145\x74\x5f\141\154\x6c\x6f\167\x5f\150\x69\x73\164\x6f\162\x79"]) && isset($_POST["\163\145\x74\137\x61\x6c\154\x6f\x77\x5f\x6a\x63\x61\x6c\x6c"]) && isset($_POST["\163\145\x74\x5f\x61\154\x6c\x6f\x77\137\x63\x6f\154\157\162\163"]) && isset($_POST["\x73\x65\x74\x5f\x61\x6c\x6c\157\167\x5f\x67\162\x61\144"]) && isset($_POST["\x73\x65\x74\137\x61\154\x6c\x6f\x77\x5f\156\x65\x6f\x6e"]) && isset($_POST["\163\x65\x74\137\x61\154\154\157\x77\137\146\x6f\156\164"]) && isset($_POST["\163\145\x74\x5f\141\x6c\154\157\167\x5f\x6e\141\155\145\x5f\x63\157\154\x6f\162"]) && isset($_POST["\x73\x65\164\137\141\154\154\157\x77\137\x6e\141\x6d\x65\x5f\147\162\x61\144"]) && isset($_POST["\x73\x65\x74\137\141\154\x6c\157\x77\137\156\x61\x6d\145\x5f\x6e\145\x6f\x6e"]) && isset($_POST["\x73\x65\x74\137\141\154\x6c\157\x77\x5f\x6e\x61\155\145\x5f\146\x6f\156\x74"]) && isset($_POST["\x73\145\x74\x5f\141\154\154\157\167\x5f\156\141\x6d\x65"]) && isset($_POST["\x73\145\164\137\141\x6c\x6c\157\x77\137\155\x6f\157\x64"]) && isset($_POST["\163\x65\x74\x5f\141\x6c\x6c\x6f\x77\137\x61\142\x6f\x75\x74"]) && isset($_POST["\163\x65\164\137\x61\154\x6c\157\x77\137\162\145\160\157\x72\x74"]) && isset($_POST["\x73\145\x74\137\x61\x6c\x6c\x6f\x77\137\x73\x63\x6f\156\x74\145\156\x74"]) && isset($_POST["\163\x65\164\137\141\154\154\x6f\167\x5f\x72\x6e\145\x77\163"]) && isset($_POST["\x73\x65\164\x5f\167\157\x72\144\x5f\160\162\x6f\157\x66"])) { $allow_avatar = $mysqli->real_escape_string($_POST["\163\x65\x74\137\x61\x6c\154\157\167\137\141\166\x61\x74\141\162"]); $allow_cover = $mysqli->real_escape_string($_POST["\163\145\164\x5f\x61\154\x6c\x6f\167\x5f\x63\157\166\145\x72"]); $allow_gcover = $mysqli->real_escape_string($_POST["\163\145\164\137\x61\154\x6c\x6f\167\137\147\143\157\166\145\162"]); $allow_cupload = $mysqli->real_escape_string($_POST["\163\x65\x74\137\x61\154\154\x6f\x77\x5f\x63\165\160\x6c\157\141\144"]); $allow_pupload = $mysqli->real_escape_string($_POST["\163\145\x74\137\141\154\154\x6f\x77\137\160\165\160\154\157\141\x64"]); $allow_wupload = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\141\154\x6c\x6f\167\137\167\x75\x70\x6c\x6f\x61\144"]); $allow_video = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\141\x6c\154\157\167\x5f\x76\x69\x64\145\157"]); $allow_audio = $mysqli->real_escape_string($_POST["\163\x65\x74\137\x61\154\154\157\167\137\x61\165\144\151\157"]); $allow_zip = $mysqli->real_escape_string($_POST["\163\x65\164\137\141\x6c\154\157\x77\x5f\172\151\160"]); $allow_main = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\x61\154\154\157\167\137\155\x61\x69\156"]); $allow_private = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\x61\154\154\x6f\167\x5f\x70\x72\x69\x76\x61\164\x65"]); $allow_quote = $mysqli->real_escape_string($_POST["\x73\145\164\137\141\154\154\157\x77\x5f\x71\x75\157\x74\x65"]); $allow_pquote = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\x61\154\x6c\157\167\137\x70\x71\x75\157\164\145"]); $emo_plus = $mysqli->real_escape_string($_POST["\163\145\x74\137\x65\x6d\x6f\x5f\x70\x6c\x75\x73"]); $allow_direct = $mysqli->real_escape_string($_POST["\x73\145\x74\137\x61\154\x6c\x6f\x77\137\x64\151\162\145\x63\164"]); $allow_room = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\141\x6c\x6c\x6f\x77\137\162\x6f\x6f\x6d"]); $allow_vroom = $mysqli->real_escape_string($_POST["\x73\x65\164\x5f\141\154\x6c\157\167\137\166\x72\x6f\x6f\155"]); $allow_theme = $mysqli->real_escape_string($_POST["\163\145\164\x5f\x61\x6c\x6c\x6f\x77\137\x74\x68\145\x6d\145"]); $allow_history = $mysqli->real_escape_string($_POST["\x73\x65\164\137\141\x6c\154\157\x77\x5f\x68\x69\x73\164\x6f\162\171"]); $allow_jcall = $mysqli->real_escape_string($_POST["\163\145\164\137\141\x6c\154\157\x77\x5f\152\143\141\154\x6c"]); $allow_colors = $mysqli->real_escape_string($_POST["\x73\145\164\137\141\x6c\154\157\167\x5f\143\x6f\154\157\x72\163"]); $allow_grad = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\x61\154\154\x6f\167\x5f\x67\162\141\x64"]); $allow_neon = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\x61\x6c\x6c\157\x77\137\x6e\x65\x6f\156"]); $allow_font = $mysqli->real_escape_string($_POST["\x73\x65\164\137\141\154\x6c\x6f\167\137\146\x6f\x6e\x74"]); $allow_name_color = $mysqli->real_escape_string($_POST["\x73\145\164\137\x61\154\154\157\167\x5f\x6e\x61\155\145\x5f\143\x6f\154\x6f\x72"]); $allow_name_grad = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\141\154\x6c\157\167\x5f\x6e\141\x6d\145\137\x67\x72\141\144"]); $allow_name_neon = $mysqli->real_escape_string($_POST["\163\x65\x74\x5f\x61\154\154\x6f\x77\137\156\x61\x6d\145\x5f\156\145\x6f\156"]); $allow_name_font = $mysqli->real_escape_string($_POST["\x73\145\x74\x5f\x61\x6c\x6c\x6f\167\137\156\x61\x6d\145\x5f\146\157\x6e\164"]); $allow_name = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\141\x6c\x6c\x6f\167\137\x6e\141\x6d\x65"]); $allow_mood = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\x61\154\154\157\x77\x5f\x6d\x6f\x6f\144"]); $allow_about = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\141\154\x6c\157\x77\137\141\142\x6f\165\164"]); $allow_report = $mysqli->real_escape_string($_POST["\163\x65\x74\137\141\154\x6c\x6f\x77\x5f\x72\145\160\157\x72\164"]); $allow_scontent = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\141\154\x6c\157\167\x5f\163\x63\157\156\164\145\x6e\164"]); $allow_rnews = $mysqli->real_escape_string($_POST["\x73\145\x74\137\x61\154\154\157\x77\137\x72\156\x65\x77\x73"]); $word_proof = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\167\x6f\x72\x64\x5f\x70\x72\157\x6f\x66"]); $query = "\125\x50\104\x41\x54\105\x20\142\x6f\x6f\155\x5f\x73\145\x74\164\x69\156\x67\x20\x53\105\x54\40\12\40\40\x20\x20\x20\40\40\40\141\x6c\x6c\x6f\x77\x5f\x61\x76\141\164\141\x72\x20\x3d\40\47{$allow_avatar}\x27\x2c\x20\xa\x20\x20\x20\40\x20\x20\40\40\x61\x6c\x6c\x6f\167\137\143\x6f\166\145\162\x20\75\40\47{$allow_cover}\x27\54\40\xa\x20\x20\x20\40\x20\40\40\x20\x61\x6c\x6c\x6f\167\137\147\x63\x6f\x76\x65\x72\40\75\x20\47{$allow_gcover}\47\54\x20\xa\x20\40\x20\40\x20\x20\40\40\141\x6c\x6c\x6f\x77\x5f\x63\165\160\x6c\157\141\x64\40\x3d\x20\x27{$allow_cupload}\x27\54\x20\xa\x20\40\x20\40\x20\x20\40\x20\x61\x6c\154\157\x77\x5f\160\x75\x70\154\157\141\144\x20\75\40\47{$allow_pupload}\x27\54\40\12\40\x20\40\40\x20\40\x20\x20\141\x6c\x6c\x6f\x77\x5f\167\x75\x70\154\x6f\x61\x64\x20\x3d\40\x27{$allow_wupload}\x27\54\x20\12\40\x20\x20\40\40\x20\x20\x20\141\x6c\154\157\x77\x5f\x76\151\144\145\x6f\40\75\40\47{$allow_video}\x27\x2c\x20\12\40\x20\x20\x20\40\x20\40\40\x61\154\x6c\x6f\x77\x5f\141\165\x64\x69\x6f\40\75\40\47{$allow_audio}\x27\54\40\xa\40\x20\40\40\x20\x20\40\x20\x61\x6c\154\157\167\x5f\x7a\151\x70\x20\75\x20\x27{$allow_zip}\x27\54\40\12\40\40\x20\x20\40\40\40\x20\x61\x6c\154\157\x77\137\155\141\x69\x6e\x20\x3d\x20\x27{$allow_main}\47\54\40\12\x20\x20\40\40\x20\40\40\40\141\154\x6c\157\x77\x5f\160\x72\151\x76\x61\x74\145\40\75\x20\x27{$allow_private}\47\54\x20\xa\x20\40\x20\40\40\40\40\40\x61\x6c\154\x6f\x77\x5f\161\165\x6f\164\x65\x20\75\x20\47{$allow_quote}\47\54\40\12\x20\40\40\x20\40\40\x20\40\141\154\154\x6f\x77\137\160\161\x75\157\164\x65\x20\75\40\x27{$allow_pquote}\47\54\x20\12\x20\40\x20\40\40\40\x20\40\x65\155\x6f\x5f\160\x6c\165\163\x20\75\40\x27{$emo_plus}\47\54\40\12\x20\40\x20\40\x20\40\40\40\x61\154\154\157\167\x5f\x64\151\x72\145\x63\164\40\x3d\x20\47{$allow_direct}\47\x2c\x20\xa\40\x20\40\x20\x20\40\x20\40\141\x6c\154\157\x77\137\x72\157\x6f\x6d\x20\x3d\x20\x27{$allow_room}\x27\54\40\12\x20\40\40\x20\40\40\40\x20\141\x6c\154\x6f\167\x5f\166\x72\157\157\x6d\40\75\x20\x27{$allow_vroom}\47\54\40\xa\x20\x20\x20\x20\40\40\40\x20\x61\154\x6c\157\167\137\164\150\x65\155\145\x20\75\40\x27{$allow_theme}\47\54\x20\xa\x20\x20\x20\40\x20\x20\x20\x20\141\154\154\x6f\167\137\x68\151\163\164\157\x72\x79\x20\x3d\x20\47{$allow_history}\47\54\40\xa\40\40\x20\x20\x20\x20\40\x20\146\143\141\x6c\x6c\x5f\x61\x63\x63\x65\163\163\40\75\40\x27{$allow_jcall}\x27\54\40\xa\x20\x20\40\40\40\40\x20\x20\x61\154\x6c\157\x77\137\x63\157\x6c\157\x72\x73\40\75\40\47{$allow_colors}\47\x2c\40\12\x20\40\40\x20\40\40\40\x20\141\154\154\157\x77\x5f\147\x72\x61\144\40\75\x20\47{$allow_grad}\x27\x2c\40\12\x20\x20\40\x20\x20\40\40\x20\x61\x6c\154\157\167\x5f\x6e\145\157\x6e\x20\75\x20\47{$allow_neon}\47\x2c\40\xa\x20\40\40\40\40\x20\40\40\x61\x6c\154\157\x77\137\x66\x6f\x6e\x74\x20\75\40\x27{$allow_font}\47\x2c\40\12\40\40\x20\x20\40\40\x20\40\141\x6c\x6c\157\x77\x5f\156\x61\155\x65\137\x63\x6f\x6c\157\x72\40\75\40\47{$allow_name_color}\x27\54\x20\12\x20\x20\x20\40\x20\x20\x20\40\x61\154\x6c\x6f\167\137\x6e\141\155\145\x5f\147\x72\141\x64\x20\75\x20\x27{$allow_name_grad}\47\54\40\12\40\40\x20\x20\x20\x20\x20\x20\141\154\x6c\157\167\137\x6e\x61\x6d\145\137\156\x65\x6f\156\x20\x3d\x20\47{$allow_name_neon}\47\54\x20\12\x20\40\40\40\x20\40\x20\40\141\154\154\x6f\167\x5f\x6e\141\x6d\x65\x5f\x66\x6f\x6e\x74\40\x3d\x20\x27{$allow_name_font}\47\x2c\40\xa\40\40\x20\x20\x20\40\40\x20\141\x6c\x6c\x6f\167\x5f\156\141\155\x65\40\x3d\x20\47{$allow_name}\47\x2c\40\xa\40\40\40\x20\40\40\40\40\141\154\154\x6f\167\137\155\x6f\157\x64\40\x3d\40\47{$allow_mood}\47\54\x20\xa\x20\40\40\x20\x20\40\x20\40\x61\x6c\154\157\x77\x5f\x61\142\x6f\165\164\x20\75\40\47{$allow_about}\x27\x2c\x20\xa\40\x20\40\40\x20\40\40\x20\141\x6c\154\157\167\x5f\162\x65\x70\x6f\162\x74\x20\x3d\x20\x27{$allow_report}\x27\54\40\xa\x20\x20\40\40\40\40\40\x20\x61\154\x6c\x6f\x77\x5f\x73\x63\157\x6e\x74\145\156\x74\40\x3d\40\47{$allow_scontent}\47\54\x20\xa\x20\40\40\40\40\x20\40\40\x61\154\154\x6f\167\137\162\156\145\x77\163\40\75\40\47{$allow_rnews}\x27\x2c\40\12\40\x20\x20\x20\40\x20\x20\40\167\x6f\x72\x64\x5f\x70\x72\x6f\x6f\x66\40\x3d\x20\47{$word_proof}\47\40\xa\40\40\x20\x20\x57\x48\105\122\x45\x20\x69\x64\40\75\40\47\x31\47"; if ($mysqli->query($query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["\163\141\x76\145\137\141\144\155\151\x6e\x5f\x73\x74\x61\146\146\137\x70\145\x72\x6d\x69\163\x73\x69\157\x6e"]) && isset($_POST["\163\145\x74\x5f\x63\141\156\137\x72\x61\143\164\x69\157\x6e"]) && isset($_POST["\x73\x65\x74\x5f\143\141\156\x5f\x6d\165\x74\145"]) && isset($_POST["\163\145\164\x5f\x63\141\156\137\167\x61\162\x6e"]) && isset($_POST["\163\145\x74\x5f\143\141\x6e\x5f\153\151\143\153"]) && isset($_POST["\x73\x65\164\x5f\x63\141\x6e\137\x67\150\157\163\x74"]) && isset($_POST["\163\x65\164\x5f\143\141\156\x5f\142\x61\156"]) && isset($_POST["\163\x65\x74\137\143\x61\156\137\x64\x65\x6c\x65\x74\x65"]) && isset($_POST["\163\x65\x74\137\143\x61\x6e\137\x6d\157\x64\141\x76\141\164"]) && isset($_POST["\163\145\164\137\x63\x61\x6e\137\155\x6f\144\x63\157\166\145\162"]) && isset($_POST["\163\x65\x74\137\x63\x61\x6e\137\x6d\157\144\155\x6f\157\144"]) && isset($_POST["\x73\x65\164\x5f\x63\x61\x6e\x5f\x6d\x6f\144\x61\142\x6f\165\164"]) && isset($_POST["\x73\145\x74\x5f\143\141\156\x5f\155\157\x64\x63\157\154\157\162"]) && isset($_POST["\163\145\x74\x5f\143\141\156\x5f\155\157\144\x6e\x61\x6d\145"]) && isset($_POST["\163\145\164\x5f\143\141\x6e\x5f\141\x75\164\150"]) && isset($_POST["\163\x65\x74\137\143\141\x6e\x5f\x6d\157\144\x65\155\x61\151\x6c"]) && isset($_POST["\x73\x65\164\x5f\x63\141\156\137\x6d\x6f\x64\x70\141\x73\163"]) && isset($_POST["\x73\x65\164\137\x63\x61\x6e\x5f\155\x6f\x64\142\x6c\157\143\x6b"]) && isset($_POST["\163\145\x74\137\143\x61\156\137\x6d\x6f\144\166\x70\x6e"]) && isset($_POST["\x73\x65\x74\137\143\141\x6e\137\x76\145\162\x69\146\x79"]) && isset($_POST["\163\x65\x74\137\143\141\x6e\x5f\156\x6f\x74\145"]) && isset($_POST["\x73\145\x74\137\143\x61\x6e\137\166\x69\160"]) && isset($_POST["\x73\x65\x74\137\143\x61\x6e\x5f\x76\x65\x6d\x61\x69\x6c"]) && isset($_POST["\x73\x65\x74\137\x63\x61\156\137\x76\x67\150\157\x73\164"]) && isset($_POST["\163\x65\x74\137\143\141\156\x5f\166\x6f\164\150\x65\x72"]) && isset($_POST["\x73\x65\164\137\x63\x61\x6e\137\166\156\x61\x6d\x65"]) && isset($_POST["\x73\145\x74\137\x63\x61\x6e\x5f\166\x68\151\163\164\x6f\x72\171"]) && isset($_POST["\x73\145\164\x5f\x63\x61\156\137\x76\x77\141\154\x6c\x65\164"]) && isset($_POST["\x73\x65\x74\x5f\143\x61\x6e\137\156\x65\x77\x73"]) && isset($_POST["\163\x65\164\137\143\141\x6e\x5f\162\x61\x6e\153"]) && isset($_POST["\163\x65\x74\x5f\143\141\156\137\x69\x6e\166"]) && isset($_POST["\x73\145\x74\x5f\x63\141\156\137\143\165\163\x65\x72"]) && isset($_POST["\x73\x65\x74\x5f\143\x61\156\x5f\x63\x6f\x6e\164\x65\x6e\164"]) && isset($_POST["\x73\x65\x74\137\x63\141\156\137\x63\x6c\x65\x61\162"]) && isset($_POST["\163\x65\164\x5f\143\x61\156\137\x72\160\141\x73\x73"]) && isset($_POST["\x73\x65\x74\x5f\x63\141\x6e\137\x62\x70\x72\151\x76"]) && isset($_POST["\x73\145\164\137\143\x61\156\x5f\164\157\x70\151\143"]) && isset($_POST["\x73\x65\x74\137\143\141\x6e\137\x6d\x61\144\144\x6f\156\x73"]) && isset($_POST["\163\145\x74\x5f\143\x61\156\137\x6d\162\x6f\157\155"]) && isset($_POST["\x73\145\x74\x5f\x63\141\156\137\155\146\151\x6c\164\145\x72"]) && isset($_POST["\x73\x65\164\x5f\x63\141\x6e\x5f\x64\152"]) && isset($_POST["\163\x65\164\137\143\x61\x6e\x5f\x6d\x69\x70"]) && isset($_POST["\x73\x65\x74\137\x63\x61\x6e\137\x6d\x6c\157\x67\163"]) && isset($_POST["\163\x65\164\137\x63\141\x6e\137\x6d\x70\154\141\x79"]) && isset($_POST["\163\145\x74\137\143\141\x6e\x5f\x6d\143\157\156\164\141\143\164"])) { $update_query = "\125\120\x44\101\x54\x45\x20\142\x6f\157\155\x5f\163\145\164\x74\x69\156\x67\40\x53\105\124\x20"; $fields = array("\x63\x61\156\x5f\x72\141\x63\x74\151\x6f\x6e", "\x63\141\x6e\137\155\x75\164\x65", "\x63\141\x6e\137\x77\x61\x72\156", "\143\141\x6e\x5f\153\x69\x63\153", "\x63\x61\x6e\x5f\x67\150\157\x73\164", "\x63\x61\156\x5f\x62\x61\156", "\143\x61\x6e\x5f\x64\145\x6c\x65\164\145", "\x63\x61\156\137\x6d\157\x64\141\x76\x61\164", "\x63\x61\x6e\x5f\155\x6f\144\143\157\166\x65\162", "\x63\x61\156\x5f\x6d\x6f\144\155\x6f\x6f\x64", "\143\x61\x6e\137\x6d\x6f\144\x61\x62\x6f\x75\164", "\143\141\156\x5f\155\x6f\x64\143\x6f\154\157\x72", "\x63\141\156\137\155\157\x64\x6e\141\155\x65", "\143\141\156\x5f\x61\x75\x74\150", "\x63\x61\156\137\x6d\x6f\x64\145\155\x61\151\x6c", "\143\141\156\137\x6d\x6f\144\x70\141\163\x73", "\143\x61\x6e\x5f\x6d\x6f\x64\142\x6c\x6f\143\x6b", "\143\141\156\x5f\x6d\157\x64\166\160\x6e", "\143\x61\156\137\166\145\x72\x69\x66\171", "\143\x61\156\137\156\157\x74\145", "\x63\x61\x6e\137\166\151\160", "\x63\x61\156\137\x76\x65\155\141\151\154", "\143\141\x6e\137\166\147\150\157\163\x74", "\x63\x61\156\x5f\166\x6f\x74\x68\145\x72", "\143\x61\156\x5f\x76\x6e\x61\x6d\x65", "\x63\141\x6e\x5f\166\x68\x69\x73\164\x6f\x72\x79", "\143\x61\156\x5f\166\x77\x61\154\x6c\x65\164", "\143\x61\x6e\x5f\x6e\145\167\163", "\143\141\156\137\162\141\156\x6b", "\143\x61\156\137\151\x6e\x76", "\143\141\156\x5f\x63\165\x73\145\x72", "\x63\141\x6e\x5f\143\157\x6e\x74\145\x6e\164", "\x63\141\156\x5f\x63\154\x65\x61\162", "\143\141\156\137\162\160\x61\163\163", "\143\x61\x6e\137\x62\160\x72\x69\166", "\143\141\x6e\137\x74\x6f\160\x69\143", "\143\x61\156\x5f\155\141\144\x64\157\156\x73", "\x63\x61\x6e\137\x6d\162\x6f\x6f\x6d", "\x63\141\156\x5f\x6d\x66\151\154\164\x65\x72", "\x63\141\156\137\x64\x6a", "\143\x61\x6e\137\155\x69\160", "\143\141\x6e\x5f\x6d\154\x6f\147\163", "\143\x61\x6e\x5f\155\160\154\141\x79", "\x63\141\x6e\x5f\x6d\x63\157\x6e\x74\x61\143\164"); $update_values = array(); foreach ($fields as $field) { $post_key = "\163\145\x74\137" . $field; if (isset($_POST[$post_key])) { $value = $mysqli->real_escape_string($_POST[$post_key]); $update_values[] = "{$field}\40\x3d\40\x27{$value}\47"; } } if (!empty($update_values)) { $update_query .= implode("\54\40", $update_values) . "\x20\x57\x48\x45\122\105\40\x69\x64\40\75\x20\x27\x31\x27"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } else { echo 2; } } elseif (isset($_POST["\163\141\166\x65\x5f\x61\x64\x6d\x69\156\137\x72\157\x6f\155\137\160\x65\162\x6d\x69\x73\163\151\x6f\x6e"]) && isset($_POST["\163\x65\164\137\143\141\156\x5f\x72\x6c\157\x67\x73"]) && isset($_POST["\x73\145\x74\x5f\x63\x61\x6e\x5f\x72\143\x6c\x65\x61\162"])) { $can_rlogs = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\143\141\156\x5f\162\154\157\x67\163"]); $can_rclear = $mysqli->real_escape_string($_POST["\163\x65\x74\x5f\x63\141\156\x5f\162\x63\154\145\x61\162"]); $update_query = "\x55\120\x44\101\124\x45\x20\x62\157\157\155\x5f\163\x65\164\164\x69\x6e\x67\40\x53\x45\x54\40\12\40\40\x20\x20\40\x20\40\x20\143\141\156\137\162\154\157\x67\x73\40\x3d\x20\x27{$can_rlogs}\47\54\xa\x20\x20\40\40\40\40\40\40\x63\x61\x6e\137\162\143\154\145\x61\x72\40\x3d\40\47{$can_rclear}\x27\xa\40\40\x20\x20\x20\x20\x20\40\x57\110\x45\x52\105\x20\151\x64\40\x3d\x20\47\x31\47"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["\163\x61\166\x65\x5f\x61\x64\155\151\156\137\144\145\x6c\141\171\163"]) && isset($_POST["\163\x65\x74\x5f\x61\x63\x74\137\144\145\154\141\171"]) && isset($_POST["\x73\145\x74\x5f\x63\150\x61\164\137\x64\x65\x6c\x65\x74\145"]) && isset($_POST["\x73\145\164\137\x70\x72\151\166\x61\x74\x65\137\x64\145\154\x65\164\x65"]) && isset($_POST["\163\x65\164\137\x77\x61\x6c\x6c\x5f\144\145\x6c\145\x74\145"]) && isset($_POST["\163\x65\164\x5f\x6d\x65\x6d\x62\145\x72\137\144\x65\x6c\x65\164\145"]) && isset($_POST["\x73\145\x74\137\162\x6f\x6f\x6d\x5f\144\145\x6c\x65\x74\145"]) && isset($_POST["\163\x65\x74\137\151\x67\156\157\162\x65\137\144\x65\x6c\145\164\145"])) { $act_delay = $mysqli->real_escape_string($_POST["\x73\145\x74\x5f\141\x63\x74\x5f\144\145\154\141\x79"]); $chat_delete = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\143\150\141\x74\137\x64\145\154\145\164\x65"]); $private_delete = $mysqli->real_escape_string($_POST["\163\145\164\x5f\x70\x72\151\x76\x61\164\145\137\144\145\x6c\145\x74\x65"]); $wall_delete = $mysqli->real_escape_string($_POST["\x73\x65\164\x5f\167\x61\x6c\154\x5f\144\x65\x6c\145\x74\145"]); $member_delete = $mysqli->real_escape_string($_POST["\x73\145\x74\137\155\x65\x6d\x62\x65\162\137\144\x65\x6c\x65\164\x65"]); $room_delete = $mysqli->real_escape_string($_POST["\x73\145\x74\x5f\x72\x6f\157\x6d\137\144\x65\x6c\x65\x74\145"]); $ignore_delete = $mysqli->real_escape_string($_POST["\x73\145\x74\137\151\x67\156\157\x72\x65\x5f\144\145\x6c\145\164\145"]); $update_query = "\125\120\x44\101\124\x45\x20\142\157\x6f\155\x5f\x73\145\164\164\x69\156\x67\x20\123\x45\124\40\xa\x20\x20\x20\x20\x20\40\40\x20\x61\143\164\x5f\144\145\x6c\141\x79\40\x3d\40\47{$act_delay}\47\x2c\xa\40\40\40\40\40\x20\x20\x20\x63\150\141\x74\137\144\145\x6c\x65\164\x65\x20\x3d\x20\47{$chat_delete}\47\54\xa\40\40\x20\40\40\40\x20\40\160\x72\151\166\x61\164\145\137\144\x65\154\145\164\145\x20\x3d\40\47{$private_delete}\x27\54\xa\x20\40\40\x20\40\40\x20\40\167\141\154\154\x5f\x64\x65\154\145\164\x65\40\75\x20\47{$wall_delete}\x27\x2c\12\40\40\x20\x20\x20\x20\x20\x20\155\x65\155\142\x65\162\137\144\x65\x6c\x65\x74\x65\40\x3d\40\47{$member_delete}\x27\x2c\xa\x20\40\x20\40\x20\40\40\x20\x72\x6f\157\x6d\137\144\x65\154\145\164\x65\x20\75\x20\47{$room_delete}\47\x2c\xa\40\40\40\40\40\40\40\40\151\147\x6e\x6f\162\145\x5f\144\x65\x6c\x65\x74\145\x20\x3d\40\47{$ignore_delete}\x27\12\x20\x20\x20\x20\x20\x20\40\40\x57\x48\x45\122\x45\x20\x69\144\x20\75\40\x27\x31\x27"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["\163\141\166\x65\x5f\x61\x64\155\151\156\x5f\x63\x61\x6c\x6c"]) && isset($_POST["\163\x65\164\x5f\x75\x73\145\137\143\141\x6c\x6c"]) && isset($_POST["\163\145\164\x5f\x63\141\156\x5f\166\x63\x61\154\154"]) && isset($_POST["\163\145\x74\137\143\x61\156\137\x61\143\x61\x6c\154"]) && isset($_POST["\163\145\164\137\x63\x61\154\x6c\x5f\x61\160\x70\151\x64"]) && isset($_POST["\163\145\164\x5f\143\x61\x6c\x6c\x5f\163\145\143\162\x65\164"]) && isset($_POST["\x73\145\x74\x5f\154\x69\166\x65\x5f\x75\162\154"]) && isset($_POST["\163\145\164\x5f\154\x69\x76\x65\x5f\x61\160\x70\151\x64"]) && isset($_POST["\x73\145\164\x5f\154\151\166\x65\x5f\x73\145\x63\x72\x65\164"]) && isset($_POST["\x73\145\164\x5f\143\x61\x6c\x6c\x5f\155\x61\x78"]) && isset($_POST["\163\145\x74\137\x63\141\x6c\x6c\x5f\155\145\x74\x68\x6f\x64"]) && isset($_POST["\x73\x65\164\x5f\143\141\154\x6c\137\x63\157\163\164"])) { $use_call = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\x75\163\145\137\x63\141\154\154"]); $can_vcall = $mysqli->real_escape_string($_POST["\163\145\164\137\x63\141\x6e\137\x76\143\141\154\x6c"]); $can_acall = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\x63\x61\x6e\x5f\x61\143\141\x6c\x6c"]); $call_appid = $mysqli->real_escape_string($_POST["\x73\145\164\137\143\x61\x6c\154\137\141\160\x70\x69\x64"]); $call_secret = $mysqli->real_escape_string($_POST["\x73\x65\164\x5f\143\141\x6c\154\137\x73\145\143\x72\145\x74"]); $live_url = $mysqli->real_escape_string($_POST["\163\145\164\x5f\x6c\x69\x76\145\137\165\x72\154"]); $live_appid = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\x6c\151\166\145\x5f\x61\x70\160\151\x64"]); $live_secret = $mysqli->real_escape_string($_POST["\163\x65\x74\137\154\x69\166\x65\137\163\145\x63\162\145\164"]); $call_max = $mysqli->real_escape_string($_POST["\163\145\164\137\143\141\154\154\137\155\141\170"]); $call_method = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\143\x61\154\x6c\137\155\145\x74\150\x6f\144"]); $call_cost = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\143\x61\x6c\154\x5f\x63\x6f\x73\x74"]); $update_query = "\x55\120\x44\101\x54\105\40\x62\157\157\155\x5f\163\145\164\164\x69\156\x67\40\x53\x45\x54\x20\12\x20\x20\x20\x20\40\x20\40\x20\165\x73\x65\x5f\143\141\154\154\40\x3d\40\47{$use_call}\x27\54\12\40\40\40\40\x20\x20\x20\40\143\141\x6e\137\166\x63\141\154\x6c\40\75\x20\47{$can_vcall}\47\x2c\12\x20\x20\40\x20\40\x20\40\40\x63\x61\156\x5f\x61\143\141\x6c\x6c\x20\75\x20\47{$can_acall}\47\54\xa\x20\40\x20\x20\x20\x20\40\x20\143\141\154\x6c\x5f\x61\160\160\x69\x64\x20\x3d\40\x27{$call_appid}\x27\x2c\xa\x20\40\x20\40\40\40\x20\x20\x63\x61\154\x6c\137\x73\x65\143\162\x65\164\40\x3d\x20\47{$call_secret}\47\x2c\xa\x20\x20\x20\40\40\40\x20\x20\154\151\x76\145\x5f\x75\x72\154\x20\x3d\40\47{$live_url}\x27\54\12\40\x20\x20\40\x20\x20\40\40\154\151\166\145\137\x61\160\160\x69\x64\40\75\40\47{$live_appid}\47\x2c\xa\40\40\x20\x20\x20\40\x20\40\154\x69\166\x65\x5f\x73\145\x63\162\x65\x74\40\x3d\40\47{$live_secret}\x27\54\12\x20\40\x20\40\40\40\40\x20\x63\141\154\154\x5f\155\x61\x78\40\75\40\x27{$call_max}\47\54\12\40\x20\x20\x20\x20\x20\40\40\x63\x61\x6c\x6c\137\x6d\145\164\x68\157\144\40\75\x20\x27{$call_method}\47\54\xa\x20\40\x20\x20\40\40\x20\x20\x63\x61\x6c\x6c\137\x63\157\x73\164\40\75\x20\47{$call_cost}\x27\12\x20\40\40\x20\40\x20\x20\x20\x57\110\x45\122\x45\40\x69\x64\x20\x3d\x20\47\61\47"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["\x73\x61\x76\x65\137\x61\x64\155\x69\x6e\137\155\x6f\144\165\154\x65\163"]) && isset($_POST["\163\145\164\x5f\x75\163\x65\x5f\x6c\151\153\x65"]) && isset($_POST["\163\145\164\137\x75\x73\x65\x5f\x77\141\x6c\x6c"]) && isset($_POST["\x73\x65\164\137\x75\163\145\x5f\154\x6f\x62\142\x79"]) && isset($_POST["\163\x65\x74\x5f\x63\x6f\157\153\x69\x65\x5f\x6c\x61\167"]) && isset($_POST["\x73\145\164\x5f\x75\x73\145\137\147\145\157"])) { $use_like = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\x75\163\x65\x5f\154\x69\x6b\x65"]); $use_wall = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\165\x73\145\137\167\x61\154\x6c"]); $use_lobby = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\165\x73\145\x5f\x6c\x6f\x62\142\x79"]); $cookie_law = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\143\157\157\x6b\151\x65\x5f\x6c\x61\167"]); $use_geo = $mysqli->real_escape_string($_POST["\163\x65\x74\x5f\x75\x73\145\137\147\145\x6f"]); $update_query = "\125\120\104\x41\124\105\40\142\157\157\x6d\137\x73\145\164\x74\x69\156\x67\40\x53\x45\x54\x20\xa\x20\x20\40\x20\x20\40\40\40\x75\x73\x65\x5f\x6c\151\153\145\x20\75\40\47{$use_like}\x27\54\12\x20\x20\40\40\x20\40\40\40\165\163\x65\x5f\x77\141\154\154\x20\x3d\40\47{$use_wall}\x27\x2c\12\40\x20\40\40\x20\40\40\40\x75\163\x65\x5f\154\x6f\142\142\171\40\x3d\x20\x27{$use_lobby}\x27\54\12\x20\x20\x20\40\40\40\40\40\143\157\157\x6b\151\145\x5f\154\141\x77\x20\75\40\x27{$cookie_law}\x27\x2c\12\x20\x20\40\x20\40\40\40\40\165\163\145\x5f\x67\145\157\x20\75\40\47{$use_geo}\47\xa\40\x20\x20\40\x20\x20\x20\40\x57\110\105\x52\105\40\151\144\40\x3d\x20\x27\x31\x27"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["\163\x61\x76\145\137\141\144\155\x69\156\137\143\150\x61\x74"]) && isset($_POST["\163\x65\x74\137\x6d\x61\170\x5f\155\x61\151\x6e"]) && isset($_POST["\x73\145\164\x5f\x6d\x61\170\137\x70\162\x69\x76\141\164\x65"]) && isset($_POST["\x73\145\164\137\x6d\141\x78\x5f\x6f\x66\146\143\157\165\156\x74"]) && isset($_POST["\163\x65\164\137\160\x72\151\x76\x6c\157\x61\x64"]) && isset($_POST["\x73\x65\x74\137\163\x70\x65\x65\x64"]) && isset($_POST["\x73\x65\x74\137\x6d\x61\170\137\x65\x6d\157"]) && isset($_POST["\x73\145\x74\137\x6d\141\x78\x5f\162\x6f\157\155"]) && isset($_POST["\163\x65\164\137\x6c\x6f\147\x5f\152\157\151\156"]) && isset($_POST["\163\x65\164\x5f\x6c\157\x67\137\156\141\x6d\145"]) && isset($_POST["\163\145\x74\x5f\x6c\x6f\x67\137\141\x63\164\151\x6f\x6e"])) { $max_main = $mysqli->real_escape_string($_POST["\163\145\164\137\x6d\x61\170\137\155\x61\x69\x6e"]); $max_private = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\x6d\x61\x78\137\160\162\x69\x76\141\164\145"]); $max_offcount = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\155\141\170\137\157\146\x66\x63\157\x75\x6e\164"]); $privload = $mysqli->real_escape_string($_POST["\163\x65\x74\x5f\160\x72\x69\x76\x6c\157\x61\144"]); $speed = $mysqli->real_escape_string($_POST["\163\x65\x74\x5f\163\160\145\145\144"]); $max_emo = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\155\x61\x78\x5f\145\155\x6f"]); $max_room = $mysqli->real_escape_string($_POST["\x73\x65\164\x5f\x6d\141\x78\137\162\157\x6f\155"]); $log_join = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\154\157\x67\137\x6a\x6f\151\156"]); $log_name = $mysqli->real_escape_string($_POST["\x73\145\x74\137\154\157\x67\x5f\156\x61\x6d\x65"]); $log_action = $mysqli->real_escape_string($_POST["\x73\145\164\137\x6c\157\147\x5f\x61\143\164\151\157\x6e"]); $use_logs = "\x30"; if ($log_join == "\x31") { $use_logs .= "\x31"; } if ($log_name == "\x31") { $use_logs .= "\x32"; } if ($log_action == "\61") { $use_logs .= "\63"; } $update_query = "\x55\120\x44\101\124\x45\40\x62\157\157\x6d\137\x73\x65\x74\x74\151\156\147\x20\123\x45\x54\x20\xa\40\x20\40\40\40\40\x20\x20\155\x61\x78\137\155\x61\x69\x6e\x20\x3d\x20\47{$max_main}\x27\x2c\12\40\x20\40\40\40\x20\40\x20\x6d\141\170\x5f\160\162\151\x76\x61\164\x65\40\75\40\x27{$max_private}\47\54\xa\x20\x20\x20\40\x20\x20\40\x20\x6d\141\x78\x5f\157\x66\x66\143\157\165\x6e\x74\40\75\x20\x27{$max_offcount}\47\x2c\xa\x20\x20\x20\x20\40\40\x20\40\x70\x72\x69\166\x6c\x6f\x61\144\x20\x3d\40\x27{$privload}\x27\54\xa\x20\40\40\x20\40\x20\x20\40\163\x70\145\145\x64\40\75\x20\47{$speed}\x27\x2c\12\x20\x20\40\40\40\40\40\x20\x6d\x61\x78\x5f\145\155\157\x20\x3d\40\x27{$max_emo}\47\x2c\12\40\40\x20\40\x20\40\x20\40\155\x61\170\137\162\x6f\157\155\x20\75\40\x27{$max_room}\x27\x2c\xa\40\40\40\40\40\40\40\40\165\x73\x65\x5f\154\157\147\x73\x20\75\40\x27{$use_logs}\x27\12\40\40\x20\40\40\40\x20\x20\127\110\x45\x52\105\40\x69\x64\40\75\40\47\x31\47"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["\x73\141\166\x65\137\141\x64\x6d\x69\156\137\163\145\x63\x75\x72\151\x74\x79"]) && $_POST["\163\141\x76\145\137\141\x64\x6d\151\156\137\x73\145\x63\x75\162\x69\164\x79"] === "\163\145\143\165\x72\x69\x74\x79\x5f\x72\x65\147\151\x73\164\x72\141\x74\151\x6f\156" && isset($_POST["\163\145\164\137\x75\x73\145\137\x72\x65\143\141\x70\x74"]) && isset($_POST["\x73\x65\164\137\x72\145\143\x61\x70\x74\x5f\153\145\x79"]) && isset($_POST["\163\x65\x74\137\162\x65\143\141\160\x74\x5f\163\x65\143\162\145\164"]) && isset($_POST["\x73\x65\x74\137\165\163\x65\137\166\x70\x6e"]) && isset($_POST["\163\145\164\137\166\160\x6e\137\153\x65\x79"]) && isset($_POST["\163\145\x74\x5f\x76\x70\x6e\x5f\x64\x65\154\x61\171"]) && isset($_POST["\x73\x65\164\137\x66\154\x6f\157\x64\137\141\143\164\x69\x6f\156"]) && isset($_POST["\163\x65\164\137\146\x6c\x6f\x6f\144\x5f\x64\x65\154\x61\x79"]) && isset($_POST["\163\x65\164\137\155\x61\x78\x5f\x66\154\157\x6f\144"]) && isset($_POST["\163\x65\164\x5f\165\x73\145\137\x72\141\164\145"]) && isset($_POST["\163\145\x74\137\162\141\164\x65\137\154\x69\155\x69\164"])) { $use_recapt = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\x75\x73\x65\137\162\x65\x63\x61\x70\x74"]); $recapt_key = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\x72\x65\x63\141\x70\164\x5f\x6b\145\x79"]); $recapt_secret = $mysqli->real_escape_string($_POST["\163\x65\x74\x5f\x72\145\143\141\160\x74\137\163\x65\x63\162\x65\x74"]); $use_vpn = $mysqli->real_escape_string($_POST["\x73\x65\x74\x5f\165\163\145\137\166\160\156"]); $vpn_key = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\x76\x70\156\137\153\x65\171"]); $vpn_delay = $mysqli->real_escape_string($_POST["\163\145\164\137\x76\x70\156\x5f\144\145\154\x61\x79"]); $flood_action = $mysqli->real_escape_string($_POST["\163\x65\x74\137\146\154\157\x6f\x64\137\x61\x63\x74\x69\157\156"]); $flood_delay = $mysqli->real_escape_string($_POST["\163\x65\164\x5f\x66\154\x6f\x6f\x64\x5f\144\x65\x6c\x61\171"]); $max_flood = $mysqli->real_escape_string($_POST["\x73\145\164\x5f\155\x61\170\137\146\x6c\x6f\157\144"]); $use_rate = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\x75\163\x65\x5f\162\x61\164\145"]); $rate_limit = $mysqli->real_escape_string($_POST["\x73\145\x74\x5f\162\141\x74\x65\x5f\154\151\x6d\x69\x74"]); $update_query = "\x55\120\x44\101\124\x45\x20\142\157\157\x6d\x5f\x73\145\x74\164\x69\x6e\x67\x20\x53\x45\124\40\12\40\40\40\40\40\x20\x20\x20\165\x73\145\137\162\x65\x63\141\160\x74\40\75\40\x27{$use_recapt}\x27\x2c\xa\40\40\x20\x20\40\40\x20\40\x72\145\143\141\x70\164\137\x6b\x65\x79\x20\x3d\x20\47{$recapt_key}\x27\x2c\12\40\40\40\x20\40\40\x20\40\162\145\x63\141\160\x74\137\x73\145\143\x72\x65\x74\x20\x3d\x20\x27{$recapt_secret}\47\x2c\xa\x20\40\x20\x20\40\x20\40\x20\165\163\x65\137\x76\x70\x6e\40\75\x20\x27{$use_vpn}\47\54\xa\40\40\40\40\x20\x20\40\x20\166\x70\x6e\137\153\x65\x79\x20\75\x20\47{$vpn_key}\x27\54\xa\x20\x20\x20\40\x20\x20\40\x20\166\160\x6e\137\144\x65\154\x61\171\x20\75\40\47{$vpn_delay}\x27\x2c\12\40\x20\x20\40\40\x20\x20\x20\x66\154\157\157\x64\x5f\141\143\x74\x69\x6f\156\40\75\40\47{$flood_action}\x27\54\xa\40\x20\40\x20\x20\40\40\40\146\154\x6f\x6f\144\137\144\145\154\141\x79\40\x3d\40\x27{$flood_delay}\47\54\12\40\x20\40\40\40\x20\x20\x20\155\x61\x78\137\146\154\157\x6f\144\40\x3d\x20\47{$max_flood}\47\x2c\xa\x20\x20\40\40\40\x20\40\x20\165\163\145\137\162\141\164\x65\40\75\x20\47{$use_rate}\47\x2c\xa\x20\40\x20\40\40\40\x20\x20\x72\141\x74\145\137\154\x69\155\x69\164\40\75\x20\x27{$rate_limit}\47\xa\x20\x20\x20\40\40\40\x20\40\x57\110\105\x52\105\x20\151\x64\x20\x3d\40\x27\x31\47"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["\163\141\166\x65\x5f\141\144\x6d\x69\156\137\141\151"]) && $_POST["\x73\141\166\x65\x5f\x61\x64\x6d\x69\156\x5f\141\151"] == 1 && isset($_POST["\x73\145\x74\137\x6f\x70\145\156\x61\151\x5f\x6b\145\x79"]) && isset($_POST["\163\x65\x74\x5f\151\x6d\x67\137\155\x6f\x64"])) { $openai_key = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\157\160\145\156\x61\151\137\x6b\x65\171"]); $img_mod = $mysqli->real_escape_string($_POST["\163\x65\164\137\x69\x6d\147\x5f\x6d\157\x64"]); $update_query = "\125\x50\x44\x41\x54\105\40\142\157\x6f\x6d\137\163\145\x74\x74\151\156\x67\x20\123\x45\124\40\12\x20\40\x20\40\x20\x20\40\40\157\160\x65\x6e\x61\151\x5f\x6b\145\x79\40\x3d\40\x27{$openai_key}\x27\x2c\12\x20\x20\40\x20\40\x20\40\x20\x69\155\x67\137\x6d\157\144\x20\x3d\40\x27{$img_mod}\47\xa\x20\x20\x20\40\40\x20\40\40\127\110\x45\122\x45\40\151\x64\x20\75\40\x27\x31\x27"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["\x74\x65\163\164\137\x6d\x61\x69\x6c"]) && $_POST["\164\145\x73\164\137\155\141\x69\x6c"] == 1 && isset($_POST["\x74\x65\x73\x74\137\145\x6d\x61\x69\x6c"])) { $test_email = $mysqli->real_escape_string($_POST["\164\x65\x73\164\137\145\x6d\x61\x69\x6c"]); $query = "\x53\105\114\105\x43\x54\40\x6d\141\151\154\137\164\171\160\x65\54\x20\163\x69\x74\x65\x5f\145\x6d\x61\151\x6c\x2c\40\x65\x6d\141\151\154\137\x66\162\157\155\54\x20\x73\x6d\164\x70\x5f\x68\x6f\163\x74\x2c\40\x73\x6d\164\160\x5f\x75\x73\x65\162\156\x61\155\x65\x2c\x20\163\x6d\x74\x70\137\x70\141\x73\x73\167\157\x72\x64\54\x20\163\x6d\164\160\137\x70\x6f\x72\x74\54\40\163\155\x74\x70\x5f\x74\171\x70\145\40\106\x52\117\x4d\x20\142\x6f\157\155\x5f\x73\145\x74\164\x69\x6e\x67\x20\127\110\x45\x52\105\x20\x69\x64\40\75\x20\47\61\x27"; $result = $mysqli->query($query); if ($result->num_rows > 0) { $settings = $result->fetch_assoc(); $mail_type = $settings["\155\x61\x69\x6c\x5f\x74\x79\160\145"]; $site_email = $settings["\x73\151\x74\x65\137\145\x6d\141\151\154"]; $email_from = $settings["\x65\155\x61\151\154\137\x66\x72\x6f\155"]; $smtp_host = $settings["\163\155\164\160\x5f\150\157\163\164"]; $smtp_username = $settings["\163\x6d\164\x70\137\165\163\x65\162\156\141\155\145"]; $smtp_password = $settings["\163\155\164\160\x5f\160\141\x73\x73\x77\x6f\162\x64"]; $smtp_port = $settings["\x73\x6d\164\160\137\x70\x6f\x72\x74"]; $smtp_type = strtolower($settings["\163\155\164\x70\x5f\164\171\x70\145"]); $subject = "\x54\x65\x73\164\x20\x4d\x61\151\154\40\146\162\157\155\40\110\165\x6e\x74\145\162\x20\124\145\x63\x68"; $message = "\124\x68\151\x73\x20\151\163\x20\x61\x20\164\145\x73\164\x20\x65\155\x61\x69\154\x20\146\x72\157\x6d\x20\x48\x75\156\164\x65\162\40\124\145\143\150\40\164\x6f\40\x76\145\x72\x69\x66\171\x20\171\x6f\165\x72\x20\145\x6d\x61\151\x6c\40\x73\x65\164\164\x69\156\x67\163\56"; if ($mail_type === "\163\x6d\x74\160") { require_once __DIR__ . "\x2f\56\56\x2f\x6d\x61\x69\x6c\x65\162\x2f\141\165\x74\x6f\154\157\141\x64\56\x70\150\x70"; $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = $smtp_host; $mail->SMTPAuth = true; $mail->Username = $smtp_username; $mail->Password = $smtp_password; $mail->Port = $smtp_port; $mail->SMTPDebug = 0; if ($smtp_type === "\163\163\154") { $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; } else { $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; } $mail->setFrom($site_email, "\x48\x75\156\x74\145\x72\40\x54\x65\143\x68"); $mail->addAddress($test_email); $mail->addReplyTo($site_email, "\x48\165\156\x74\x65\x72\40\124\145\143\x68\x20\123\x75\x70\x70\157\162\x74"); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = "\x3c\142\76{$message}\74\x2f\142\76"; $mail->AltBody = $message; if ($mail->send()) { echo 1; } else { echo 2; } } else { $headers = "\106\x72\x6f\x6d\x3a\x20{$site_email}\15\xa"; $headers .= "\122\145\160\x6c\x79\55\x54\x6f\x3a\x20{$site_email}\15\xa"; $headers .= "\x43\x6f\156\x74\145\x6e\164\x2d\124\x79\x70\x65\x3a\x20\x74\x65\170\164\x2f\x70\154\141\x69\x6e\x3b\x20\143\150\141\x72\163\145\164\x3d\125\124\106\55\x38\15\12"; if (mail($test_email, $subject, $message, $headers)) { echo 1; } else { echo 2; } } } else { echo 2; } } elseif (isset($_POST["\146\x6c\165\x73\150\137\x63\x61\143\150\x65"]) && $_POST["\x66\154\x75\x73\150\x5f\143\x61\143\150\x65"] == 1) { redisFlushAll(); boomCacheUpdate(); if (function_exists("\x6f\160\x63\x61\143\150\145\137\x72\145\163\x65\x74")) { opcache_reset(); } echo 1; } elseif (isset($_POST["\x73\x61\166\145\137\141\x64\x6d\151\x6e\137\x6d\157\x64\x63\141\164"]) && $_POST["\x73\x61\x76\145\137\x61\x64\155\x69\x6e\x5f\x6d\x6f\x64\143\141\164"] == 1) { $mod_cat = ''; if (isset($_POST["\x73\145\164\x5f\x6d\157\144\137\x73\x65\170\x75\141\154"]) && $_POST["\163\145\x74\137\x6d\x6f\144\x5f\x73\145\x78\165\141\154"] == 1) { $mod_cat .= "\61"; } if (isset($_POST["\x73\x65\164\x5f\x6d\157\144\137\x68\141\x74\x65"]) && $_POST["\x73\145\164\137\x6d\x6f\x64\137\x68\x61\164\145"] == 1) { $mod_cat .= "\x32"; } if (isset($_POST["\163\x65\164\137\155\157\x64\137\150\x61\162\141\x73\x73\155\145\156\x74"]) && $_POST["\x73\145\164\x5f\x6d\157\x64\x5f\x68\x61\x72\141\x73\163\x6d\x65\x6e\164"] == 1) { $mod_cat .= "\x33"; } if (isset($_POST["\x73\x65\x74\x5f\155\x6f\144\x5f\x69\x6c\154\151\143\151\x74"]) && $_POST["\163\x65\164\x5f\x6d\x6f\144\x5f\151\154\154\x69\143\x69\x74"] == 1) { $mod_cat .= "\64"; } if (isset($_POST["\163\x65\x74\137\155\157\144\137\166\x69\x6f\x6c\x65\156\143\145"]) && $_POST["\163\x65\x74\x5f\x6d\157\144\x5f\x76\x69\x6f\154\x65\156\x63\x65"] == 1) { $mod_cat .= "\x35"; } $update_query = "\x55\x50\104\x41\124\x45\x20\142\x6f\x6f\155\x5f\163\x65\x74\164\151\156\147\x20\x53\x45\124\x20\155\x6f\x64\x5f\143\x61\x74\40\x3d\40\x27{$mod_cat}\x27\40\127\x48\x45\x52\x45\40\x69\144\40\75\x20\x27\x31\47"; if ($mysqli->query($update_query)) { echo 1; } else { echo 2; } } elseif (isset($_POST["\x73\x61\x76\145\137\141\x64\x6d\x69\x6e\137\x72\x65\x67\151\x73\164\x72\141\x74\x69\x6f\x6e"]) && $_POST["\163\141\166\145\x5f\141\x64\155\x69\156\x5f\162\x65\147\x69\163\x74\x72\x61\164\x69\157\x6e"] == 1) { $registration = $mysqli->real_escape_string($_POST["\x73\145\x74\137\x72\x65\147\151\x73\164\x72\141\164\x69\x6f\x6e"]); $max_reg = $mysqli->real_escape_string($_POST["\163\145\x74\137\x6d\141\x78\137\162\145\x67"]); $activation = $mysqli->real_escape_string($_POST["\163\x65\x74\137\x61\x63\x74\x69\x76\x61\x74\151\x6f\156"]); $max_username = $mysqli->real_escape_string($_POST["\x73\145\x74\137\155\141\170\x5f\x75\x73\x65\x72\x6e\x61\155\145"]); $min_age = $mysqli->real_escape_string($_POST["\163\145\x74\x5f\155\x69\156\137\x61\147\x65"]); $coppa = $mysqli->real_escape_string($_POST["\163\145\164\x5f\x63\x6f\160\x70\x61"]); $update_query = "\x55\x50\x44\x41\124\105\x20\142\157\157\x6d\x5f\163\145\164\x74\151\x6e\x67\x20\123\x45\124\40\xa\40\x20\40\x20\x20\40\x20\40\162\x65\147\151\163\x74\162\141\x74\x69\x6f\156\x20\x3d\40\x27{$registration}\47\x2c\xa\x20\x20\x20\40\40\x20\40\40\155\x61\170\x5f\162\145\147\40\x3d\x20\47{$max_reg}\47\54\xa\x20\40\x20\x20\40\x20\40\40\x61\143\x74\x69\166\141\164\151\157\156\x20\x3d\40\x27{$activation}\x27\54\12\x20\x20\x20\40\x20\x20\40\x20\x6d\x61\x78\x5f\165\163\x65\162\156\141\x6d\145\40\x3d\x20\47{$max_username}\47\x2c\xa\40\40\40\40\x20\40\x20\x20\155\x69\x6e\137\141\x67\145\x20\75\x20\x27{$min_age}\47\x2c\12\x20\x20\40\x20\x20\x20\x20\40\x63\157\x70\x70\x61\40\x3d\40\47{$coppa}\x27\xa\40\x20\40\40\x20\40\40\40\127\x48\x45\122\x45\x20\x69\144\x20\75\x20\47\61\x27"; if ($mysqli->query($update_query)) { echo 1; } else { echo 2; } } elseif (isset($_POST["\163\x61\166\145\x5f\141\144\155\151\156\137\x72\x65\x67\151\x73\164\x72\141\x74\x69\x6f\x6e\137\141\143\164"]) && $_POST["\x73\141\166\x65\x5f\x61\144\x6d\x69\156\x5f\162\145\147\151\163\164\162\x61\164\151\x6f\x6e\137\x61\143\x74"] == 1) { $reg_act = $mysqli->real_escape_string($_POST["\x73\145\x74\137\162\x65\x67\x5f\x61\143\x74"]); $reg_delay = $mysqli->real_escape_string($_POST["\x73\x65\x74\137\x72\145\x67\x5f\x64\145\x6c\x61\x79"]); $update_query = "\x55\120\104\101\124\105\40\142\157\x6f\155\x5f\163\145\164\x74\151\x6e\x67\40\123\x45\x54\x20\xa\x20\x20\x20\x20\40\40\x20\x20\x72\x65\x67\x5f\141\143\164\x20\75\x20\47{$reg_act}\47\x2c\12\x20\40\40\40\x20\x20\x20\40\162\x65\147\137\144\145\x6c\141\171\x20\x3d\40\47{$reg_delay}\47\xa\40\x20\x20\x20\x20\x20\x20\40\127\110\105\x52\x45\40\151\144\40\x3d\x20\x27\61\x27"; if ($mysqli->query($update_query)) { echo 1; } else { echo 2; } } goto gO8L4; apHz1: if (isset($_POST["\x63\x6c\x65\141\162\137\x63\x61\x63\150\x65"])) { if (function_exists("\157\x70\x63\141\143\150\x65\x5f\162\145\163\x65\164")) { opcache_reset(); } if (function_exists("\x72\145\x64\151\x73\x46\154\x75\163\150\101\154\x6c")) { redisFlushAll(); } if (function_exists("\x62\x6f\157\x6d\x43\x61\x63\150\x65\x55\x70\x64\141\x74\145")) { boomCacheUpdate(); } echo json_encode(array("\x73\165\143\x63\145\x73\163" => true)); die; } goto niHWr; NIvfO:
require "../config.php"; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; goto zVZFn; BznMQ: require_once __DIR__ . "/../mailer/autoload.php"; goto Oma5e; gO8L4: if (isset($_POST["check_lic"])) { echo allowSave() ? "1" : "0"; die; } goto aSXAJ; aSXAJ: if (isset($_POST["firewall_enable"])) { $new = intval($_POST["firewall_enable"]) ? 1 : 0; $result = $mysqli->query("UPDATE boom_setting SET firewall_enable = {$new}"); boomSaveSettings(); reloadSettings(); echo json_encode(array("status" => $result ? 1 : 0)); die; } goto apHz1; Pf2kx: if (isset($_POST["free_call"])) { $free = escape($_POST["free_call"]); if (in_array($free, array(0, 1))) { $mysqli->query("UPDATE boom_setting SET free_call = '{$free}'"); echo json_encode(array("status" => 1)); boomSaveSettings(); reloadSettings(); } else { echo json_encode(array("status" => 0)); } die; } goto Cy2UZ; o51VU: if (isset($_POST["activate_addons"], $_POST["addons"]) && boomAllow($setting["can_maddons"])) { $nameaddon = escape($_POST["addons"]); if (strpos($nameaddon, "BLK_") !== false || strpos($nameaddon, "aps_") !== false) { echo "0"; die; } if ($mysqli->query("SELECT addons FROM boom_addons WHERE addons='{$nameaddon}'")->num_rows > 0) { echo "0"; die; } $install_file = BOOM_PATH . "/addons/{$nameaddon}/system/install.php"; if (!file_exists($install_file)) { echo "0"; die; } require $install_file; if (!isset($ad["name"])) { echo "0"; die; } $load = isset($ad["load"]) ? escape($ad["load"]) : 0; $custom1 = escape($ad["custom1"] ?? ''); $custom2 = escape($ad["custom2"] ?? ''); $custom3 = escape($ad["custom3"] ?? ''); $custom4 = escape($ad["custom4"] ?? ''); $custom5 = escape($ad["custom5"] ?? ''); $custom6 = escape($ad["custom6"] ?? ''); $custom7 = escape($ad["custom7"] ?? ''); $custom8 = escape($ad["custom8"] ?? ''); $custom9 = escape($ad["custom9"] ?? ''); $custom10 = escape($ad["custom10"] ?? ''); $res2 = $mysqli->query("SELECT MAX(addons_id) AS maxaid FROM boom_addons"); $row2 = $res2->fetch_assoc(); $next_addons = $row2["maxaid"] + 1; if (isset($ad["bot_name"], $ad["bot_type"])) { $bot_name = escape($ad["bot_name"]); $bot_type = (int) $ad["bot_type"]; $res = $mysqli->query("SELECT MAX(user_id) AS maxid FROM boom_users"); $row = $res->fetch_assoc(); $next_id = $row["maxid"] + 1; $pass = randomPass(); $time = time(); $mysqli->query("INSERT INTO boom_users(user_id,user_name,user_ip,user_join,user_password,user_rank,user_tumb,user_bot) VALUES({$next_id},'{$bot_name}','0.0.0.0','{$time}','{$pass}','69','default_system.png','{$bot_type}')"); $sql = "INSERT INTO boom_addons(addons_id,addons,addons_load,addons_key,addons_access,bot_name,bot_id,custom1,custom2,custom3,custom4,custom5,custom6,custom7,custom8,custom9,custom) VALUES({$next_addons},'{$nameaddon}','{$load}','',8','{$bot_name}','{$next_id}','{$custom1}','{$custom2}','{$custom3}','{$custom4}','{$custom5}','{$custom6}','{$custom7}','{$custom8}','{$custom9}','{$custom10}')"; } else { if (!isset($ad["access"])) { echo "0"; die; } $access = escape($ad["access"]); $sql = "INSERT INTO boom_addons(addons_id,addons,addons_load,addons_key,addons_access,custom1,custom2,custom3,custom4,custom5,custom6,custom7,custom8,custom9,custom10) VALUES({$next_addons},'{$nameaddon}','{$load}','','{$access}','{$custom1}','{$custom2}','{$custom3}','{$custom4}','{$custom5}','{$custom6}','{$custom7}','{$custom8}','{$custom9}','{$custom10}')"; } echo $mysqli->query($sql) ? "1" : "0"; die; } goto NIvfO; Cy2UZ: if (isset($_POST["cicon_location"], $_POST["call_server"])) { $loc = (int) $_POST["cicon_location"]; $server = $mysqli->real_escape_string(trim($_POST["call_server"])); if (in_array($loc, array(0, 1, 2, 3), true)) { $mysqli->query("\xa UPDATE `boom_setting`\xa SET `cicon_location` = {$loc},
`call_server` = '{$server}'\xa "); boomSaveSettings(); reloadSettings(); echo json_encode(array("status" => 1)); } else { echo json_encode(array("status" => 0)); } die; } goto jIArc; zVZFn: if (!allowSave()) { die; } goto BznMQ; jIArc: if (isset($_POST["save_page"], $_POST["page_target"], $_POST["page_content"])) { $page_target = trim($_POST["page_target"]); $page_content = trim($_POST["page_content"]); $update = $mysqli->query("UPDATE boom_page SET page_content = '{$page_content}' WHERE page_name = '{$page_target}'"); if ($update) { echo 1; } else { echo 0; } } goto o51VU; TWaXN: if (isset($_FILES["image"]) && isset($_POST["name"])) { $uploadDir = BOOM_PATH . "/default_images/"; $fileName = basename($_POST["name"]); $targetFile = $uploadDir . $fileName; $allowedTypes = array("image/jpeg", "image/png", "image/gif"); $fileType = $_FILES["image"]["type"]; if (!in_array($fileType, $allowedTypes)) { echo 0; die; } if (file_exists($targetFile)) { unlink($targetFile); } if (move_uploaded_file($_FILES["image"]["tmp_name"], $targetFile)) { boomCacheUpdate(); opcache_reset(); redisFlushAll(); echo 1; } else { echo 0; } } goto Pf2kx; niHWr: if (isset($_POST["speed_test"])) { $url = (isset($_SERVER["HTTPS"]) ? "https" : "http") . "://" . $_SERVER["HTTP_HOST"] . "/"; $ch = curl_init($url); curl_setopt_array($ch, array(CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_NOBODY => true, CURLOPT_TIMEOUT => 10, CURLOPT_HEADER => false)); curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); echo json_encode(array("speed" => round($info["total_time"] * 1000) . " ms")); die; } goto TWaXN; Oma5e: if (isset($_POST["save_admin_main"]) && isset($_POST["set_index_path"]) && isset($_POST["set_title"]) && isset($_POST["set_timezone"]) && isset($_POST["set_default_language"]) && isset($_POST["set_site_description"]) && isset($_POST["set_site_keyword"])) { $index = $mysqli->real_escape_string($_POST["set_index_path"]); $title = $mysqli->real_escape_string($_POST["set_title"]); $timezone = $mysqli->real_escape_string($_POST["set_timezone"]); $language = $mysqli->real_escape_string($_POST["set_default_language"]); $description = $mysqli->real_escape_string($_POST["set_site_description"]); $keyword = $mysqli->real_escape_string($_POST["set_site_keyword"]); $query = "UPDATE boom_setting \xa SET domain = ?,
title = ?,
site_description = ?,
site_keyword = ?,
timezone = ?, \xa language = ?
WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("ssssss", $index, $title, $description, $keyword, $timezone, $language); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } $stmt->close(); } else { echo 3; } } elseif (isset($_POST["save_admin_app"]) && isset($_POST["set_use_app"]) && isset($_POST["set_app_name"]) && isset($_POST["set_app_color"])) { $use_app = $mysqli->real_escape_string($_POST["set_use_app"]); $app_name = $mysqli->real_escape_string($_POST["set_app_name"]); $app_color = $mysqli->real_escape_string($_POST["set_app_color"]); $query = "UPDATE boom_setting \xa SET use_app = ?,
app_name = ?,
app_color = ? \xa WHERE id = 9'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("sss", $use_app, $app_name, $app_color); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } $stmt->close(); } else { echo 3; } } elseif (isset($_POST["save_admin_maintenance"]) && isset($_POST["set_maint_mode"])) { $maint_mode = $mysqli->real_escape_string($_POST["set_maint_mode"]); $query = "UPDATE boom_setting \xa SET maint_mode = ?
WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("s", $maint_mode); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } $stmt->close(); } else { echo 3; } } elseif (isset($_POST["save_admin_wallet"]) && isset($_POST["set_use_wallet"]) && isset($_POST["set_can_swallet"]) && isset($_POST["set_can_gold"]) && isset($_POST["set_gold_delay"]) && isset($_POST["set_gold_base"]) && isset($_POST["set_can_ruby"]) && isset($_POST["set_ruby_delay"]) && isset($_POST["set_ruby_base"])) { $use_wallet = $mysqli->real_escape_string($_POST["set_use_wallet"]); $can_swallet = $mysqli->real_escape_string($_POST["set_can_swallet"]); $can_gold = $mysqli->real_escape_string($_POST["set_can_gold"]); $gold_delay = $mysqli->real_escape_string($_POST["set_gold_delay"]); $gold_base = $mysqli->real_escape_string($_POST["set_gold_base"]); $can_ruby = $mysqli->real_escape_string($_POST["set_can_ruby"]); $ruby_delay = $mysqli->real_escape_string($_POST["set_ruby_delay"]); $ruby_base = $mysqli->real_escape_string($_POST["set_ruby_base"]); $query = "UPDATE boom_setting \xa SET use_wallet = ?,
can_swallet = ?,
can_gold = ?,
gold_delay = ?, \xa gold_base = ?,
can_ruby = ?, \xa ruby_delay = ?,
ruby_base = ? \xa WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("ssssssss", $use_wallet, $can_swallet, $can_gold, $gold_delay, $gold_base, $can_ruby, $ruby_delay, $ruby_base); if ($stmt->execute()) { if ($stmt->affected_rows > 0) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } else { echo 3; } $stmt->close(); } else { echo 4; } } elseif (isset($_POST["save_admin_gift"]) && isset($_POST["set_use_gift"])) { $use_gift = $mysqli->real_escape_string($_POST["set_use_gift"]); $query = "UPDATE boom_setting \xa SET use_gift = ? \xa WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("s", $use_gift); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_level"]) && isset($_POST["set_use_level"]) && isset($_POST["set_level_mode"]) && isset($_POST["set_exp_chat"]) && isset($_POST["set_exp_priv"]) && isset($_POST["set_exp_post"]) && isset($_POST["set_exp_gift"])) { $use_level = $mysqli->real_escape_string($_POST["set_use_level"]); $level_mode = $mysqli->real_escape_string($_POST["set_level_mode"]); $exp_chat = $mysqli->real_escape_string($_POST["set_exp_chat"]); $exp_priv = $mysqli->real_escape_string($_POST["set_exp_priv"]); $exp_post = $mysqli->real_escape_string($_POST["set_exp_post"]); $exp_gift = $mysqli->real_escape_string($_POST["set_exp_gift"]); $query = "UPDATE boom_setting \xa SET use_level = ?, \xa level_mode = ?,
exp_chat = ?, \xa exp_priv = ?,
exp_post = ?, \xa exp_gift = ? \xa WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("ssssss", $use_level, $level_mode, $exp_chat, $exp_priv, $exp_post, $exp_gift); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_badge"]) && isset($_POST["set_use_badge"]) && isset($_POST["set_bachat"]) && isset($_POST["set_bagift"]) && isset($_POST["set_balike"]) && isset($_POST["set_bafriend"]) && isset($_POST["set_baruby"]) && isset($_POST["set_bagold"]) && isset($_POST["set_babeat"])) { $use_badge = $mysqli->real_escape_string($_POST["set_use_badge"]); $bachat = $mysqli->real_escape_string($_POST["set_bachat"]); $bagift = $mysqli->real_escape_string($_POST["set_bagift"]); $balike = $mysqli->real_escape_string($_POST["set_balike"]); $bafriend = $mysqli->real_escape_string($_POST["set_bafriend"]); $baruby = $mysqli->real_escape_string($_POST["set_baruby"]); $bagold = $mysqli->real_escape_string($_POST["set_bagold"]); $babeat = $mysqli->real_escape_string($_POST["set_babeat"]); $query = "UPDATE boom_setting
SET use_badge = ?, \xa bachat = ?, \xa bagift = ?, \xa balike = ?, \xa bafriend = ?,
baruby = ?, \xa bagold = ?, \xa babeat = ?
WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("ssssssss", $use_badge, $bachat, $bagift, $balike, $bafriend, $baruby, $bagold, $babeat); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_data"]) && isset($_POST["set_max_avatar"]) && isset($_POST["set_max_cover"]) && isset($_POST["set_max_ricon"]) && isset($_POST["set_max_file"])) { $max_avatar = $mysqli->real_escape_string($_POST["set_max_avatar"]); $max_cover = $mysqli->real_escape_string($_POST["set_max_cover"]); $max_ricon = $mysqli->real_escape_string($_POST["set_max_ricon"]); $max_file = $mysqli->real_escape_string($_POST["set_max_file"]); $query = "UPDATE boom_setting \xa SET max_avatar = ?,
max_cover = ?, \xa max_ricon = ?,
file_weight = ? \xa WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("ssss", $max_avatar, $max_cover, $max_ricon, $max_file); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_player"]) && isset($_POST["set_default_player"])) { $default_player = $mysqli->real_escape_string($_POST["set_default_player"]); $query = "UPDATE boom_setting \xa SET player_id = ? \xa WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("s", $default_player); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_email"]) && isset($_POST["set_mail_type"]) && isset($_POST["set_site_email"]) && isset($_POST["set_email_from"]) && isset($_POST["set_smtp_host"]) && isset($_POST["set_smtp_username"]) && isset($_POST["set_smtp_password"]) && isset($_POST["set_smtp_port"]) && isset($_POST["set_smtp_type"])) { $mail_type = $mysqli->real_escape_string($_POST["set_mail_type"]); $site_email = $mysqli->real_escape_string($_POST["set_site_email"]); $email_from = $mysqli->real_escape_string($_POST["set_email_from"]); $smtp_host = $mysqli->real_escape_string($_POST["set_smtp_host"]); $smtp_username = $mysqli->real_escape_string($_POST["set_smtp_username"]); $smtp_password = $mysqli->real_escape_string($_POST["set_smtp_password"]); $smtp_port = $mysqli->real_escape_string($_POST["set_smtp_port"]); $smtp_type = $mysqli->real_escape_string($_POST["set_smtp_type"]); $query = "UPDATE boom_setting \xa SET mail_type = ?,
site_email = ?,
email_from = ?,
smtp_host = ?,
smtp_username = ?,
smtp_password = ?, \xa smtp_port = ?,
smtp_type = ?
WHERE id = 9'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("ssssssss", $mail_type, $site_email, $email_from, $smtp_host, $smtp_username, $smtp_password, $smtp_port, $smtp_type); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_cache"]) && isset($_POST["set_redis_status"])) { $redis_status = $mysqli->real_escape_string($_POST["set_redis_status"]); $query = "UPDATE boom_setting
SET redis_status = ?
WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("s", $redis_status); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_guest"]) && isset($_POST["set_allow_guest"]) && isset($_POST["set_max_greg"]) && isset($_POST["set_guest_form"])) { $allow_guest = $mysqli->real_escape_string($_POST["set_allow_guest"]); $max_greg = $mysqli->real_escape_string($_POST["set_max_greg"]); $guest_form = $mysqli->real_escape_string($_POST["set_guest_form"]); $query = "UPDATE boom_setting \xa SET allow_guest = ?, \xa max_greg = ?, \xa guest_form = ?
WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("sss", $allow_guest, $max_greg, $guest_form); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_display"]) && isset($_POST["set_main_theme"]) && isset($_POST["set_login_page"]) && isset($_POST["set_use_gender"]) && isset($_POST["set_use_flag"])) { $main_theme = $mysqli->real_escape_string($_POST["set_main_theme"]); $login_page = $mysqli->real_escape_string($_POST["set_login_page"]); $use_gender = $mysqli->real_escape_string($_POST["set_use_gender"]); $use_flag = $mysqli->real_escape_string($_POST["set_use_flag"]); $query = "UPDATE boom_setting
SET default_theme = ?,
login_page = ?,
use_gender = ?, \xa use_flag = ?
WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("ssss", $main_theme, $login_page, $use_gender, $use_flag); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 3; return; } } elseif (isset($_POST["save_admin_bridge"]) && isset($_POST["set_use_bridge"])) { $use_bridge = $mysqli->real_escape_string($_POST["set_use_bridge"]); $query = "UPDATE boom_setting
SET use_bridge = ?
WHERE id = '1'"; if ($stmt = $mysqli->prepare($query)) { $stmt->bind_param("s", $use_bridge); if ($stmt->execute()) { boomSaveSettings(); reloadSettings(); echo 1; return; } else { echo 2; return; } $stmt->close(); } else { echo 404; return; } } elseif (isset($_POST["save_admin_user_permission"]) && isset($_POST["set_allow_avatar"]) && isset($_POST["set_allow_cover"]) && isset($_POST["set_allow_gcover"]) && isset($_POST["set_allow_cupload"]) && isset($_POST["set_allow_pupload"]) && isset($_POST["set_allow_wupload"]) && isset($_POST["set_allow_video"]) && isset($_POST["set_allow_audio"]) && isset($_POST["set_allow_zip"]) && isset($_POST["set_allow_main"]) && isset($_POST["set_allow_private"]) && isset($_POST["set_allow_quote"]) && isset($_POST["set_allow_pquote"]) && isset($_POST["set_emo_plus"]) && isset($_POST["set_allow_direct"]) && isset($_POST["set_allow_room"]) && isset($_POST["set_allow_vroom"]) && isset($_POST["set_allow_theme"]) && isset($_POST["set_allow_history"]) && isset($_POST["set_allow_jcall"]) && isset($_POST["set_allow_colors"]) && isset($_POST["set_allow_grad"]) && isset($_POST["set_allow_neon"]) && isset($_POST["set_allow_font"]) && isset($_POST["set_allow_name_color"]) && isset($_POST["set_allow_name_grad"]) && isset($_POST["set_allow_name_neon"]) && isset($_POST["set_allow_name_font"]) && isset($_POST["set_allow_name"]) && isset($_POST["set_allow_mood"]) && isset($_POST["set_allow_about"]) && isset($_POST["set_allow_report"]) && isset($_POST["set_allow_scontent"]) && isset($_POST["set_allow_rnews"]) && isset($_POST["set_word_proof"])) { $allow_avatar = $mysqli->real_escape_string($_POST["set_allow_avatar"]); $allow_cover = $mysqli->real_escape_string($_POST["set_allow_cover"]); $allow_gcover = $mysqli->real_escape_string($_POST["set_allow_gcover"]); $allow_cupload = $mysqli->real_escape_string($_POST["set_allow_cupload"]); $allow_pupload = $mysqli->real_escape_string($_POST["set_allow_pupload"]); $allow_wupload = $mysqli->real_escape_string($_POST["set_allow_wupload"]); $allow_video = $mysqli->real_escape_string($_POST["set_allow_video"]); $allow_audio = $mysqli->real_escape_string($_POST["set_allow_audio"]); $allow_zip = $mysqli->real_escape_string($_POST["set_allow_zip"]); $allow_main = $mysqli->real_escape_string($_POST["set_allow_main"]); $allow_private = $mysqli->real_escape_string($_POST["set_allow_private"]); $allow_quote = $mysqli->real_escape_string($_POST["set_allow_quote"]); $allow_pquote = $mysqli->real_escape_string($_POST["set_allow_pquote"]); $emo_plus = $mysqli->real_escape_string($_POST["set_emo_plus"]); $allow_direct = $mysqli->real_escape_string($_POST["set_allow_direct"]); $allow_room = $mysqli->real_escape_string($_POST["set_allow_room"]); $allow_vroom = $mysqli->real_escape_string($_POST["set_allow_vroom"]); $allow_theme = $mysqli->real_escape_string($_POST["set_allow_theme"]); $allow_history = $mysqli->real_escape_string($_POST["set_allow_history"]); $allow_jcall = $mysqli->real_escape_string($_POST["set_allow_jcall"]); $allow_colors = $mysqli->real_escape_string($_POST["set_allow_colors"]); $allow_grad = $mysqli->real_escape_string($_POST["set_allow_grad"]); $allow_neon = $mysqli->real_escape_string($_POST["set_allow_neon"]); $allow_font = $mysqli->real_escape_string($_POST["set_allow_font"]); $allow_name_color = $mysqli->real_escape_string($_POST["set_allow_name_color"]); $allow_name_grad = $mysqli->real_escape_string($_POST["set_allow_name_grad"]); $allow_name_neon = $mysqli->real_escape_string($_POST["set_allow_name_neon"]); $allow_name_font = $mysqli->real_escape_string($_POST["set_allow_name_font"]); $allow_name = $mysqli->real_escape_string($_POST["set_allow_name"]); $allow_mood = $mysqli->real_escape_string($_POST["set_allow_mood"]); $allow_about = $mysqli->real_escape_string($_POST["set_allow_about"]); $allow_report = $mysqli->real_escape_string($_POST["set_allow_report"]); $allow_scontent = $mysqli->real_escape_string($_POST["set_allow_scontent"]); $allow_rnews = $mysqli->real_escape_string($_POST["set_allow_rnews"]); $word_proof = $mysqli->real_escape_string($_POST["set_word_proof"]); $query = "UPDATE boom_setting SET
allow_avatar = '{$allow_avatar}', \xa allow_cover = '{$allow_cover}', \xa allow_gcover = '{$allow_gcover}', \xa allow_cupload = '{$allow_cupload}', \xa allow_pupload = '{$allow_pupload}',
allow_wupload = '{$allow_wupload}',
allow_video = '{$allow_video}',
allow_audio = '{$allow_audio}', \xa allow_zip = '{$allow_zip}',
allow_main = '{$allow_main}',
allow_private = '{$allow_private}', \xa allow_quote = '{$allow_quote}',
allow_pquote = '{$allow_pquote}',
emo_plus = '{$emo_plus}',
allow_direct = '{$allow_direct}', \xa allow_room = '{$allow_room}',
allow_vroom = '{$allow_vroom}', \xa allow_theme = '{$allow_theme}', \xa allow_history = '{$allow_history}', \xa fcall_access = '{$allow_jcall}', \xa allow_colors = '{$allow_colors}',
allow_grad = '{$allow_grad}',
allow_neon = '{$allow_neon}', \xa allow_font = '{$allow_font}',
allow_name_color = '{$allow_name_color}',
allow_name_grad = '{$allow_name_grad}',
allow_name_neon = '{$allow_name_neon}',
allow_name_font = '{$allow_name_font}', \xa allow_name = '{$allow_name}', \xa allow_mood = '{$allow_mood}', \xa allow_about = '{$allow_about}', \xa allow_report = '{$allow_report}', \xa allow_scontent = '{$allow_scontent}', \xa allow_rnews = '{$allow_rnews}',
word_proof = '{$word_proof}' \xa WHERE id = 9'"; if ($mysqli->query($query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_staff_permission"]) && isset($_POST["set_can_raction"]) && isset($_POST["set_can_mute"]) && isset($_POST["set_can_warn"]) && isset($_POST["set_can_kick"]) && isset($_POST["set_can_ghost"]) && isset($_POST["set_can_ban"]) && isset($_POST["set_can_delete"]) && isset($_POST["set_can_modavat"]) && isset($_POST["set_can_modcover"]) && isset($_POST["set_can_modmood"]) && isset($_POST["set_can_modabout"]) && isset($_POST["set_can_modcolor"]) && isset($_POST["set_can_modname"]) && isset($_POST["set_can_auth"]) && isset($_POST["set_can_modemail"]) && isset($_POST["set_can_modpass"]) && isset($_POST["set_can_modblock"]) && isset($_POST["set_can_modvpn"]) && isset($_POST["set_can_verify"]) && isset($_POST["set_can_note"]) && isset($_POST["set_can_vip"]) && isset($_POST["set_can_vemail"]) && isset($_POST["set_can_vghost"]) && isset($_POST["set_can_vother"]) && isset($_POST["set_can_vname"]) && isset($_POST["set_can_vhistory"]) && isset($_POST["set_can_vwallet"]) && isset($_POST["set_can_news"]) && isset($_POST["set_can_rank"]) && isset($_POST["set_can_inv"]) && isset($_POST["set_can_cuser"]) && isset($_POST["set_can_content"]) && isset($_POST["set_can_clear"]) && isset($_POST["set_can_rpass"]) && isset($_POST["set_can_bpriv"]) && isset($_POST["set_can_topic"]) && isset($_POST["set_can_maddons"]) && isset($_POST["set_can_mroom"]) && isset($_POST["set_can_mfilter"]) && isset($_POST["set_can_dj"]) && isset($_POST["set_can_mip"]) && isset($_POST["set_can_mlogs"]) && isset($_POST["set_can_mplay"]) && isset($_POST["set_can_mcontact"])) { $update_query = "UPDATE boom_setting SET "; $fields = array("can_raction", "can_mute", "can_warn", "can_kick", "can_ghost", "can_ban", "can_delete", "can_modavat", "can_modcover", "can_modmood", "can_modabout", "can_modcolor", "can_modname", "can_auth", "can_modemail", "can_modpass", "can_modblock", "can_modvpn", "can_verify", "can_note", "can_vip", "can_vemail", "can_vghost", "can_vother", "can_vname", "can_vhistory", "can_vwallet", "can_news", "can_rank", "can_inv", "can_cuser", "can_content", "can_clear", "can_rpass", "can_bpriv", "can_topic", "can_maddons", "can_mroom", "can_mfilter", "can_dj", "can_mip", "can_mlogs", "can_mplay", "can_mcontact"); $update_values = array(); foreach ($fields as $field) { $post_key = "set_" . $field; if (isset($_POST[$post_key])) { $value = $mysqli->real_escape_string($_POST[$post_key]); $update_values[] = "{$field} = '{$value}'"; } } if (!empty($update_values)) { $update_query .= implode(", ", $update_values) . " WHERE id = '1'"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } else { echo 2; } } elseif (isset($_POST["save_admin_room_permission"]) && isset($_POST["set_can_rlogs"]) && isset($_POST["set_can_rclear"])) { $can_rlogs = $mysqli->real_escape_string($_POST["set_can_rlogs"]); $can_rclear = $mysqli->real_escape_string($_POST["set_can_rclear"]); $update_query = "UPDATE boom_setting SET
can_rlogs = '{$can_rlogs}',\xa can_rclear = '{$can_rclear}'\xa WHERE id = 9'"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_delays"]) && isset($_POST["set_act_delay"]) && isset($_POST["set_chat_delete"]) && isset($_POST["set_private_delete"]) && isset($_POST["set_wall_delete"]) && isset($_POST["set_member_delete"]) && isset($_POST["set_room_delete"]) && isset($_POST["set_ignore_delete"])) { $act_delay = $mysqli->real_escape_string($_POST["set_act_delay"]); $chat_delete = $mysqli->real_escape_string($_POST["set_chat_delete"]); $private_delete = $mysqli->real_escape_string($_POST["set_private_delete"]); $wall_delete = $mysqli->real_escape_string($_POST["set_wall_delete"]); $member_delete = $mysqli->real_escape_string($_POST["set_member_delete"]); $room_delete = $mysqli->real_escape_string($_POST["set_room_delete"]); $ignore_delete = $mysqli->real_escape_string($_POST["set_ignore_delete"]); $update_query = "UPDATE boom_setting SET \xa act_delay = '{$act_delay}',\xa chat_delete = '{$chat_delete}',\xa private_delete = '{$private_delete}',\xa wall_delete = '{$wall_delete}',
member_delete = '{$member_delete}',\xa room_delete = '{$room_delete}',\xa ignore_delete = '{$ignore_delete}'
WHERE id = '1'"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_call"]) && isset($_POST["set_use_call"]) && isset($_POST["set_can_vcall"]) && isset($_POST["set_can_acall"]) && isset($_POST["set_call_appid"]) && isset($_POST["set_call_secret"]) && isset($_POST["set_live_url"]) && isset($_POST["set_live_appid"]) && isset($_POST["set_live_secret"]) && isset($_POST["set_call_max"]) && isset($_POST["set_call_method"]) && isset($_POST["set_call_cost"])) { $use_call = $mysqli->real_escape_string($_POST["set_use_call"]); $can_vcall = $mysqli->real_escape_string($_POST["set_can_vcall"]); $can_acall = $mysqli->real_escape_string($_POST["set_can_acall"]); $call_appid = $mysqli->real_escape_string($_POST["set_call_appid"]); $call_secret = $mysqli->real_escape_string($_POST["set_call_secret"]); $live_url = $mysqli->real_escape_string($_POST["set_live_url"]); $live_appid = $mysqli->real_escape_string($_POST["set_live_appid"]); $live_secret = $mysqli->real_escape_string($_POST["set_live_secret"]); $call_max = $mysqli->real_escape_string($_POST["set_call_max"]); $call_method = $mysqli->real_escape_string($_POST["set_call_method"]); $call_cost = $mysqli->real_escape_string($_POST["set_call_cost"]); $update_query = "UPDATE boom_setting SET
use_call = '{$use_call}',
can_vcall = '{$can_vcall}',
can_acall = '{$can_acall}',\xa call_appid = '{$call_appid}',\xa call_secret = '{$call_secret}',\xa live_url = '{$live_url}',
live_appid = '{$live_appid}',\xa live_secret = '{$live_secret}',
call_max = '{$call_max}',
call_method = '{$call_method}',\xa call_cost = '{$call_cost}'
WHERE id = '1'"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_modules"]) && isset($_POST["set_use_like"]) && isset($_POST["set_use_wall"]) && isset($_POST["set_use_lobby"]) && isset($_POST["set_cookie_law"]) && isset($_POST["set_use_geo"])) { $use_like = $mysqli->real_escape_string($_POST["set_use_like"]); $use_wall = $mysqli->real_escape_string($_POST["set_use_wall"]); $use_lobby = $mysqli->real_escape_string($_POST["set_use_lobby"]); $cookie_law = $mysqli->real_escape_string($_POST["set_cookie_law"]); $use_geo = $mysqli->real_escape_string($_POST["set_use_geo"]); $update_query = "UPDATE boom_setting SET \xa use_like = '{$use_like}',
use_wall = '{$use_wall}',
use_lobby = '{$use_lobby}',
cookie_law = '{$cookie_law}',
use_geo = '{$use_geo}'\xa WHERE id = '1'"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_chat"]) && isset($_POST["set_max_main"]) && isset($_POST["set_max_private"]) && isset($_POST["set_max_offcount"]) && isset($_POST["set_privload"]) && isset($_POST["set_speed"]) && isset($_POST["set_max_emo"]) && isset($_POST["set_max_room"]) && isset($_POST["set_log_join"]) && isset($_POST["set_log_name"]) && isset($_POST["set_log_action"])) { $max_main = $mysqli->real_escape_string($_POST["set_max_main"]); $max_private = $mysqli->real_escape_string($_POST["set_max_private"]); $max_offcount = $mysqli->real_escape_string($_POST["set_max_offcount"]); $privload = $mysqli->real_escape_string($_POST["set_privload"]); $speed = $mysqli->real_escape_string($_POST["set_speed"]); $max_emo = $mysqli->real_escape_string($_POST["set_max_emo"]); $max_room = $mysqli->real_escape_string($_POST["set_max_room"]); $log_join = $mysqli->real_escape_string($_POST["set_log_join"]); $log_name = $mysqli->real_escape_string($_POST["set_log_name"]); $log_action = $mysqli->real_escape_string($_POST["set_log_action"]); $use_logs = "0"; if ($log_join == "1") { $use_logs .= "1"; } if ($log_name == "1") { $use_logs .= "2"; } if ($log_action == "1") { $use_logs .= "3"; } $update_query = "UPDATE boom_setting SET \xa max_main = '{$max_main}',
max_private = '{$max_private}',\xa max_offcount = '{$max_offcount}',\xa privload = '{$privload}',\xa speed = '{$speed}',
max_emo = '{$max_emo}',
max_room = '{$max_room}',\xa use_logs = '{$use_logs}'
WHERE id = 9'"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_security"]) && $_POST["save_admin_security"] === "security_registration" && isset($_POST["set_use_recapt"]) && isset($_POST["set_recapt_key"]) && isset($_POST["set_recapt_secret"]) && isset($_POST["set_use_vpn"]) && isset($_POST["set_vpn_key"]) && isset($_POST["set_vpn_delay"]) && isset($_POST["set_flood_action"]) && isset($_POST["set_flood_delay"]) && isset($_POST["set_max_flood"]) && isset($_POST["set_use_rate"]) && isset($_POST["set_rate_limit"])) { $use_recapt = $mysqli->real_escape_string($_POST["set_use_recapt"]); $recapt_key = $mysqli->real_escape_string($_POST["set_recapt_key"]); $recapt_secret = $mysqli->real_escape_string($_POST["set_recapt_secret"]); $use_vpn = $mysqli->real_escape_string($_POST["set_use_vpn"]); $vpn_key = $mysqli->real_escape_string($_POST["set_vpn_key"]); $vpn_delay = $mysqli->real_escape_string($_POST["set_vpn_delay"]); $flood_action = $mysqli->real_escape_string($_POST["set_flood_action"]); $flood_delay = $mysqli->real_escape_string($_POST["set_flood_delay"]); $max_flood = $mysqli->real_escape_string($_POST["set_max_flood"]); $use_rate = $mysqli->real_escape_string($_POST["set_use_rate"]); $rate_limit = $mysqli->real_escape_string($_POST["set_rate_limit"]); $update_query = "UPDATE boom_setting SET
use_recapt = '{$use_recapt}',\xa recapt_key = '{$recapt_key}',
recapt_secret = '{$recapt_secret}',\xa use_vpn = '{$use_vpn}',\xa vpn_key = '{$vpn_key}',\xa vpn_delay = '{$vpn_delay}',
flood_action = '{$flood_action}',\xa flood_delay = '{$flood_delay}',
max_flood = '{$max_flood}',\xa use_rate = '{$use_rate}',\xa rate_limit = '{$rate_limit}'\xa WHERE id = '1'"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_ai"]) && $_POST["save_admin_ai"] == 1 && isset($_POST["set_openai_key"]) && isset($_POST["set_img_mod"])) { $openai_key = $mysqli->real_escape_string($_POST["set_openai_key"]); $img_mod = $mysqli->real_escape_string($_POST["set_img_mod"]); $update_query = "UPDATE boom_setting SET
openai_key = '{$openai_key}',
img_mod = '{$img_mod}'\xa WHERE id = '1'"; if ($mysqli->query($update_query)) { boomSaveSettings(); reloadSettings(); echo 1; } else { echo 2; } } elseif (isset($_POST["test_mail"]) && $_POST["test_mail"] == 1 && isset($_POST["test_email"])) { $test_email = $mysqli->real_escape_string($_POST["test_email"]); $query = "SELECT mail_type, site_email, email_from, smtp_host, smtp_username, smtp_password, smtp_port, smtp_type FROM boom_setting WHERE id = '1'"; $result = $mysqli->query($query); if ($result->num_rows > 0) { $settings = $result->fetch_assoc(); $mail_type = $settings["mail_type"]; $site_email = $settings["site_email"]; $email_from = $settings["email_from"]; $smtp_host = $settings["smtp_host"]; $smtp_username = $settings["smtp_username"]; $smtp_password = $settings["smtp_password"]; $smtp_port = $settings["smtp_port"]; $smtp_type = strtolower($settings["smtp_type"]); $subject = "Test Mail from Hunter Tech"; $message = "This is a test email from Hunter Tech to verify your email settings."; if ($mail_type === "smtp") { require_once __DIR__ . "/../mailer/autoload.php"; $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = $smtp_host; $mail->SMTPAuth = true; $mail->Username = $smtp_username; $mail->Password = $smtp_password; $mail->Port = $smtp_port; $mail->SMTPDebug = 0; if ($smtp_type === "ssl") { $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; } else { $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; } $mail->setFrom($site_email, "Hunter Tech"); $mail->addAddress($test_email); $mail->addReplyTo($site_email, "Hunter Tech Support"); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = "<b>{$message}</b>"; $mail->AltBody = $message; if ($mail->send()) { echo 1; } else { echo 2; } } else { $headers = "From: {$site_email}
\xa"; $headers .= "Reply-To: {$site_email}
\xa"; $headers .= "Content-Type: text/plain; charset=UTF-8
"; if (mail($test_email, $subject, $message, $headers)) { echo 1; } else { echo 2; } } } else { echo 2; } } elseif (isset($_POST["flush_cache"]) && $_POST["flush_cache"] == 1) { redisFlushAll(); boomCacheUpdate(); if (function_exists("opcache_reset")) { opcache_reset(); } echo 1; } elseif (isset($_POST["save_admin_modcat"]) && $_POST["save_admin_modcat"] == 1) { $mod_cat = ''; if (isset($_POST["set_mod_sexual"]) && $_POST["set_mod_sexual"] == 1) { $mod_cat .= "1"; } if (isset($_POST["set_mod_hate"]) && $_POST["set_mod_hate"] == 1) { $mod_cat .= "2"; } if (isset($_POST["set_mod_harassment"]) && $_POST["set_mod_harassment"] == 1) { $mod_cat .= "3"; } if (isset($_POST["set_mod_illicit"]) && $_POST["set_mod_illicit"] == 1) { $mod_cat .= "4"; } if (isset($_POST["set_mod_violence"]) && $_POST["set_mod_violence"] == 1) { $mod_cat .= "5"; } $update_query = "UPDATE boom_setting SET mod_cat = '{$mod_cat}' WHERE id = '1'"; if ($mysqli->query($update_query)) { echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_registration"]) && $_POST["save_admin_registration"] == 1) { $registration = $mysqli->real_escape_string($_POST["set_registration"]); $max_reg = $mysqli->real_escape_string($_POST["set_max_reg"]); $activation = $mysqli->real_escape_string($_POST["set_activation"]); $max_username = $mysqli->real_escape_string($_POST["set_max_username"]); $min_age = $mysqli->real_escape_string($_POST["set_min_age"]); $coppa = $mysqli->real_escape_string($_POST["set_coppa"]); $update_query = "UPDATE boom_setting SET \xa registration = '{$registration}',\xa max_reg = '{$max_reg}',\xa activation = '{$activation}',
max_username = '{$max_username}',\xa min_age = '{$min_age}',
coppa = '{$coppa}'\xa WHERE id = '1'"; if ($mysqli->query($update_query)) { echo 1; } else { echo 2; } } elseif (isset($_POST["save_admin_registration_act"]) && $_POST["save_admin_registration_act"] == 1) { $reg_act = $mysqli->real_escape_string($_POST["set_reg_act"]); $reg_delay = $mysqli->real_escape_string($_POST["set_reg_delay"]); $update_query = "UPDATE boom_setting SET \xa reg_act = '{$reg_act}',
reg_delay = '{$reg_delay}'\xa WHERE id = '1'"; if ($mysqli->query($update_query)) { echo 1; } else { echo 2; } } goto gO8L4; apHz1: if (isset($_POST["clear_cache"])) { if (function_exists("opcache_reset")) { opcache_reset(); } if (function_exists("redisFlushAll")) { redisFlushAll(); } if (function_exists("boomCacheUpdate")) { boomCacheUpdate(); } echo json_encode(array("success" => true)); die; } goto niHWr; NIvfO:
© 2023 Quttera Ltd. All rights reserved.