$sql->result = $sql->execute_query($query, 'index.php'); if ($_COOKIE['IP_Blacklist'] && !$sql->count_rows()) { do_blacklist(4); } else { $ip_state = $iplist[memory_value2]; if ($_COOKIE[IP_Blacklist] && $_COOKIE[IP_Blacklist] == $iplist[memory_value3] && $ip_state != "block") { do_blacklist(2, $iplist[memory_value3]); } else { if ($check_iplist && empty($_COOKIE[IP_Blacklist])) { switch ($ip_state) { case block: do_blacklist(1, $iplist[memory_value3]); break; } } else { do_blacklist(3); } } } } $sql->check_database($CONFIG_sql_dbname); if ($GET_init_load) { if ($CONFIG_save_type != '1') { session_start(); } switch ($GET_init_load) { case "cpupdate": if (isset($_SESSION[CP_UPDATE])) { header("location:{$CP['cp_update_link']}"); session_unregister(CP_UPDATE); }
$code = escape($_GET['alias']); } } if (isset($_GET['q'])) { if (!empty($_GET['q'])) { $query = escape($_GET['q']); } } if (isset($_GET['j'])) { if (!empty($_GET['j'])) { $output = escape($_GET['j']); } } if (preg_match("/^[a-zA-Z0-9]+\$/", $code) && code_exists($code)) { if ($query == 'redirect' || empty($query)) { $noredirect = 0; } if ($query == 'status') { do_status($code, $output); } if ($query == 'blacklist') { do_blacklist($code); } } else { $noredirect = 1; } out: do_redirect($code, $noredirect); if ($noredirect < 2) { header('Location: ' . SITE_URL); }