=0; $l--) { $allsize1[$l]=floor($size/pow(1024,$l)); $allsize[$l]=$allsize1[$l]-$allsize1[$l+1]*1024; } $len=count($allsize); for($j = $len-1; $j >=0; $j--) { $strlen = 4-strlen($allsize[$j]); if($strlen==1) $allsize[$j] = "0".$allsize[$j]; elseif($strlen==2) $allsize[$j] = "00".$allsize[$j]; elseif($strlen==3) $allsize[$j] = "000".$allsize[$j]; $fsize=$fsize.$allsize[$j].$danwei[$j]; } return $fsize; } function valid_email($str) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE; } //检测PHP设置参数 function show($varName) { switch($result = get_cfg_var($varName)) { case 0: return '×'; break; case 1: return ''; break; default: return $result; break; } } if ($_GET['act'] == "phpinfo") { phpinfo(); exit(); } elseif($_GET['act'] == "Function") { $arr = get_defined_functions(); Function php() { } echo "
";
	Echo "这里显示系统所支持的所有函数,和自定义函数\n";
	print_r($arr);
	echo "
"; exit(); }elseif($_GET['act'] == "disable_functions") { $disFuns=get_cfg_var("disable_functions"); if(empty($disFuns)) { $arr = '×'; } else { $arr = $disFuns; } Function php() { } echo "
";
	Echo "这里显示系统被禁用的函数\n";
	print_r($arr);
	echo "
"; exit(); } //MySQL检测 if ($_POST['act'] == 'MySQL检测') { $host = isset($_POST['host']) ? trim($_POST['host']) : ''; $port = isset($_POST['port']) ? (int) $_POST['port'] : ''; $login = isset($_POST['login']) ? trim($_POST['login']) : ''; $password = isset($_POST['password']) ? trim($_POST['password']) : ''; $host = preg_match('~[^a-z0-9\-\.]+~i', $host) ? '' : $host; $port = intval($port) ? intval($port) : ''; $login = preg_match('~[^a-z0-9\_\-]+~i', $login) ? '' : htmlspecialchars($login); $password = is_string($password) ? htmlspecialchars($password) : ''; } elseif ($_POST['act'] == '函数检测') { $funRe = "函数".$_POST['funName']."支持状况检测结果:".isfun1($_POST['funName']); } elseif ($_POST['act'] == '邮件检测') { $mailRe = "邮件发送检测结果:发送"; if($_SERVER['SERVER_PORT']==80){$mailContent = "http://".$_SERVER['SERVER_NAME'].($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);} else{$mailContent = "http://".$_SERVER['SERVER_NAME'].":".$_SERVER['SERVER_PORT'].($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);} $mailRe .= (false !== @mail($_POST["mailAdd"], $mailContent, "This is a test mail!\n\nhttps://lnmp.org")) ? "完成":"失败"; } // 检测函数支持 function isfun($funName = '') { if (!$funName || trim($funName) == '' || preg_match('~[^a-z0-9\_]+~i', $funName, $tmp)) return '错误'; return (false !== function_exists($funName)) ? '' : '×'; } function isfun1($funName = '') { if (!$funName || trim($funName) == '' || preg_match('~[^a-z0-9\_]+~i', $funName, $tmp)) return '错误'; return (false !== function_exists($funName)) ? '√' : '×'; } // 根据不同系统取得CPU相关信息 switch(PHP_OS) { case "Linux": $sysReShow = (false !== ($sysInfo = sys_linux()))?"show":"none"; break; case "FreeBSD": $sysReShow = (false !== ($sysInfo = sys_freebsd()))?"show":"none"; break; /* case "WINNT": $sysReShow = (false !== ($sysInfo = sys_windows()))?"show":"none"; break; */ default: break; } //linux系统探测 function sys_linux() { // CPU if (false === ($str = @file("/proc/cpuinfo"))) return false; $str = implode("", $str); @preg_match_all("/model\s+name\s{0,}\:+\s{0,}([\w\s\)\(\@.-]+)([\r\n]+)/s", $str, $model); @preg_match_all("/cpu\s+MHz\s{0,}\:+\s{0,}([\d\.]+)[\r\n]+/", $str, $mhz); @preg_match_all("/cache\s+size\s{0,}\:+\s{0,}([\d\.]+\s{0,}[A-Z]+[\r\n]+)/", $str, $cache); @preg_match_all("/bogomips\s{0,}\:+\s{0,}([\d\.]+)[\r\n]+/", $str, $bogomips); if (false !== is_array($model[1])) { $res['cpu']['num'] = sizeof($model[1]); /* for($i = 0; $i < $res['cpu']['num']; $i++) { $res['cpu']['model'][] = $model[1][$i].' ('.$mhz[1][$i].')'; $res['cpu']['mhz'][] = $mhz[1][$i]; $res['cpu']['cache'][] = $cache[1][$i]; $res['cpu']['bogomips'][] = $bogomips[1][$i]; }*/ if($res['cpu']['num']==1) $x1 = ''; else $x1 = ' ×'.$res['cpu']['num']; $mhz[1][0] = ' | 频率:'.$mhz[1][0]; $cache[1][0] = ' | 二级缓存:'.$cache[1][0]; $bogomips[1][0] = ' | Bogomips:'.$bogomips[1][0]; $res['cpu']['model'][] = $model[1][0].$mhz[1][0].$cache[1][0].$bogomips[1][0].$x1; if (false !== is_array($res['cpu']['model'])) $res['cpu']['model'] = implode("
", $res['cpu']['model']); if (false !== is_array($res['cpu']['mhz'])) $res['cpu']['mhz'] = implode("
", $res['cpu']['mhz']); if (false !== is_array($res['cpu']['cache'])) $res['cpu']['cache'] = implode("
", $res['cpu']['cache']); if (false !== is_array($res['cpu']['bogomips'])) $res['cpu']['bogomips'] = implode("
", $res['cpu']['bogomips']); } // NETWORK // UPTIME if (false === ($str = @file("/proc/uptime"))) return false; $str = explode(" ", implode("", $str)); $str = trim($str[0]); $min = $str / 60; $hours = $min / 60; $days = floor($hours / 24); $hours = floor($hours - ($days * 24)); $min = floor($min - ($days * 60 * 24) - ($hours * 60)); if ($days !== 0) $res['uptime'] = $days."天"; if ($hours !== 0) $res['uptime'] .= $hours."小时"; $res['uptime'] .= $min."分钟"; // MEMORY if (false === ($str = @file("/proc/meminfo"))) return false; $str = implode("", $str); preg_match_all("/MemTotal\s{0,}\:+\s{0,}([\d\.]+).+?MemFree\s{0,}\:+\s{0,}([\d\.]+).+?Cached\s{0,}\:+\s{0,}([\d\.]+).+?SwapTotal\s{0,}\:+\s{0,}([\d\.]+).+?SwapFree\s{0,}\:+\s{0,}([\d\.]+)/s", $str, $buf); preg_match_all("/Buffers\s{0,}\:+\s{0,}([\d\.]+)/s", $str, $buffers); $res['memTotal'] = round($buf[1][0]/1024, 2); $res['memFree'] = round($buf[2][0]/1024, 2); $res['memBuffers'] = round($buffers[1][0]/1024, 2); $res['memCached'] = round($buf[3][0]/1024, 2); $res['memUsed'] = $res['memTotal']-$res['memFree']; $res['memPercent'] = (floatval($res['memTotal'])!=0)?round($res['memUsed']/$res['memTotal']*100,2):0; $res['memRealUsed'] = $res['memTotal'] - $res['memFree'] - $res['memCached'] - $res['memBuffers']; //真实内存使用 $res['memRealFree'] = $res['memTotal'] - $res['memRealUsed']; //真实空闲 $res['memRealPercent'] = (floatval($res['memTotal'])!=0)?round($res['memRealUsed']/$res['memTotal']*100,2):0; //真实内存使用率 $res['memCachedPercent'] = (floatval($res['memCached'])!=0)?round($res['memCached']/$res['memTotal']*100,2):0; //Cached内存使用率 $res['swapTotal'] = round($buf[4][0]/1024, 2); $res['swapFree'] = round($buf[5][0]/1024, 2); $res['swapUsed'] = round($res['swapTotal']-$res['swapFree'], 2); $res['swapPercent'] = (floatval($res['swapTotal'])!=0)?round($res['swapUsed']/$res['swapTotal']*100,2):0; // LOAD AVG if (false === ($str = @file("/proc/loadavg"))) return false; $str = explode(" ", implode("", $str)); $str = array_chunk($str, 4); $res['loadAvg'] = implode(" ", $str[0]); return $res; } //FreeBSD系统探测 function sys_freebsd() { //CPU if (false === ($res['cpu']['num'] = get_key("hw.ncpu"))) return false; $res['cpu']['model'] = get_key("hw.model"); //LOAD AVG if (false === ($res['loadAvg'] = get_key("vm.loadavg"))) return false; //UPTIME if (false === ($buf = get_key("kern.boottime"))) return false; $buf = explode(' ', $buf); $sys_ticks = time() - intval($buf[3]); $min = $sys_ticks / 60; $hours = $min / 60; $days = floor($hours / 24); $hours = floor($hours - ($days * 24)); $min = floor($min - ($days * 60 * 24) - ($hours * 60)); if ($days !== 0) $res['uptime'] = $days."天"; if ($hours !== 0) $res['uptime'] .= $hours."小时"; $res['uptime'] .= $min."分钟"; //MEMORY if (false === ($buf = get_key("hw.physmem"))) return false; $res['memTotal'] = round($buf/1024/1024, 2); $str = get_key("vm.vmtotal"); preg_match_all("/\nVirtual Memory[\:\s]*\(Total[\:\s]*([\d]+)K[\,\s]*Active[\:\s]*([\d]+)K\)\n/i", $str, $buff, PREG_SET_ORDER); preg_match_all("/\nReal Memory[\:\s]*\(Total[\:\s]*([\d]+)K[\,\s]*Active[\:\s]*([\d]+)K\)\n/i", $str, $buf, PREG_SET_ORDER); $res['memRealUsed'] = round($buf[0][2]/1024, 2); $res['memCached'] = round($buff[0][2]/1024, 2); $res['memUsed'] = round($buf[0][1]/1024, 2) + $res['memCached']; $res['memFree'] = $res['memTotal'] - $res['memUsed']; $res['memPercent'] = (floatval($res['memTotal'])!=0)?round($res['memUsed']/$res['memTotal']*100,2):0; $res['memRealPercent'] = (floatval($res['memTotal'])!=0)?round($res['memRealUsed']/$res['memTotal']*100,2):0; return $res; } //取得参数值 FreeBSD function get_key($keyName) { return do_command('sysctl', "-n $keyName"); } //确定执行文件位置 FreeBSD function find_command($commandName) { $path = array('/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin'); foreach($path as $p) { if (@is_executable("$p/$commandName")) return "$p/$commandName"; } return false; } //执行系统命令 FreeBSD function do_command($commandName, $args) { $buffer = ""; if (false === ($command = find_command($commandName))) return false; if ($fp = @popen("$command $args", 'r')) { while (!@feof($fp)) { $buffer .= @fgets($fp, 4096); } return trim($buffer); } return false; } //windows系统探测 function sys_windows() { if (PHP_VERSION >= 5) { $objLocator = new COM("WbemScripting.SWbemLocator"); $wmi = $objLocator->ConnectServer(); $prop = $wmi->get("Win32_PnPEntity"); } else { return false; } //CPU $cpuinfo = GetWMI($wmi,"Win32_Processor", array("Name","L2CacheSize","NumberOfCores")); $res['cpu']['num'] = $cpuinfo[0]['NumberOfCores']; if (null == $res['cpu']['num']) { $res['cpu']['num'] = 1; }/* for ($i=0;$i<$res['cpu']['num'];$i++) { $res['cpu']['model'] .= $cpuinfo[0]['Name']."
"; $res['cpu']['cache'] .= $cpuinfo[0]['L2CacheSize']."
"; }*/ $cpuinfo[0]['L2CacheSize'] = ' ('.$cpuinfo[0]['L2CacheSize'].')'; if($res['cpu']['num']==1) $x1 = ''; else $x1 = ' ×'.$res['cpu']['num']; $res['cpu']['model'] = $cpuinfo[0]['Name'].$cpuinfo[0]['L2CacheSize'].$x1; // SYSINFO $sysinfo = GetWMI($wmi,"Win32_OperatingSystem", array('LastBootUpTime','TotalVisibleMemorySize','FreePhysicalMemory','Caption','CSDVersion','SerialNumber','InstallDate')); $sysinfo[0]['Caption']=iconv('GBK', 'UTF-8',$sysinfo[0]['Caption']); $sysinfo[0]['CSDVersion']=iconv('GBK', 'UTF-8',$sysinfo[0]['CSDVersion']); $res['win_n'] = $sysinfo[0]['Caption']." ".$sysinfo[0]['CSDVersion']." 序列号:{$sysinfo[0]['SerialNumber']} 于".date('Y年m月d日H:i:s',strtotime(substr($sysinfo[0]['InstallDate'],0,14)))."安装"; //UPTIME $res['uptime'] = $sysinfo[0]['LastBootUpTime']; $sys_ticks = 3600*8 + time() - strtotime(substr($res['uptime'],0,14)); $min = $sys_ticks / 60; $hours = $min / 60; $days = floor($hours / 24); $hours = floor($hours - ($days * 24)); $min = floor($min - ($days * 60 * 24) - ($hours * 60)); if ($days !== 0) $res['uptime'] = $days."天"; if ($hours !== 0) $res['uptime'] .= $hours."小时"; $res['uptime'] .= $min."分钟"; //MEMORY $res['memTotal'] = round($sysinfo[0]['TotalVisibleMemorySize']/1024,2); $res['memFree'] = round($sysinfo[0]['FreePhysicalMemory']/1024,2); $res['memUsed'] = $res['memTotal']-$res['memFree']; //上面两行已经除以1024,这行不用再除了 $res['memPercent'] = round($res['memUsed'] / $res['memTotal']*100,2); $swapinfo = GetWMI($wmi,"Win32_PageFileUsage", array('AllocatedBaseSize','CurrentUsage')); // LoadPercentage $loadinfo = GetWMI($wmi,"Win32_Processor", array("LoadPercentage")); $res['loadAvg'] = $loadinfo[0]['LoadPercentage']; return $res; } function GetWMI($wmi,$strClass, $strValue = array()) { $arrData = array(); $objWEBM = $wmi->Get($strClass); $arrProp = $objWEBM->Properties_; $arrWEBMCol = $objWEBM->Instances_(); foreach($arrWEBMCol as $objItem) { @reset($arrProp); $arrInstance = array(); foreach($arrProp as $propItem) { eval("\$value = \$objItem->" . $propItem->Name . ";"); if (empty($strValue)) { $arrInstance[$propItem->Name] = trim($value); } else { if (in_array($propItem->Name, $strValue)) { $arrInstance[$propItem->Name] = trim($value); } } } $arrData[] = $arrInstance; } return $arrData; } //比例条 function bar($percent) { ?>
 
"$df",'TotalMemory'=>"$mt",'UsedMemory'=>"$mu",'FreeMemory'=>"$mf",'CachedMemory'=>"$mc",'Buffers'=>"$mb",'TotalSwap'=>"$st",'swapUsed'=>"$su",'swapFree'=>"$sf",'loadAvg'=>"$load",'uptime'=>"$uptime",'freetime'=>"$freetime",'bjtime'=>"$bjtime",'stime'=>"$stime",'memRealPercent'=>"$memRealPercent",'memRealUsed'=>"$memRealUsed",'memRealFree'=>"$memRealFree",'memPercent'=>"$memPercent%",'memCachedPercent'=>"$memCachedPercent",'barmemCachedPercent'=>"$memCachedPercent%",'swapPercent'=>"$swapPercent",'barmemRealPercent'=>"$memRealPercent%",'barswapPercent'=>"$swapPercent%",'NetOut2'=>"$NetOut[2]",'NetOut3'=>"$NetOut[3]",'NetOut4'=>"$NetOut[4]",'NetOut5'=>"$NetOut[5]",'NetOut6'=>"$NetOut[6]",'NetOut7'=>"$NetOut[7]",'NetOut8'=>"$NetOut[8]",'NetOut9'=>"$NetOut[9]",'NetOut10'=>"$NetOut[10]",'NetInput2'=>"$NetInput[2]",'NetInput3'=>"$NetInput[3]",'NetInput4'=>"$NetInput[4]",'NetInput5'=>"$NetInput[5]",'NetInput6'=>"$NetInput[6]",'NetInput7'=>"$NetInput[7]",'NetInput8'=>"$NetInput[8]",'NetInput9'=>"$NetInput[9]",'NetInput10'=>"$NetInput[10]"); $jarr=json_encode($arr); echo $_GET['callback'],'(',$jarr,')'; exit; } ?> 198彩11选5,牛彩娱乐主管83330登入,赌博网址盘口
服务器参数
服务器域名/IP地址 ()
服务器标识
服务器操作系统  内核版本: 服务器解译引擎
服务器语言 服务器端口
服务器主机名 绝对路径
管理员邮箱 探针路径
服务器实时数据
服务器当前时间 服务器已运行时间
总空间  GB 可用空间  GB
CPU型号 [核]
内存使用状况

内存参数解读
物理内存:共 , 已用 , 空闲 , 使用率
 
0) { ?> Cache化内存为 , 使用率 % | Buffers缓冲为
 
真实内存使用 , 真实内存空闲 , 使用率 %
 
0) { ?> SWAP区:共 , 已使用 , 空闲 , 使用率 %
 
系统平均负载
网络使用状况
: 已接收 : GB 已发送 : GB
PHP已编译模块检测
$value) { if ($key!=0 && $key%13==0) { echo '
'; } echo "$value  "; } ?>
PHP相关参数
PHP信息(phpinfo): ×' :"PHPINFO";?> PHP版本(php_version):
PHP运行方式: 脚本占用最大内存(memory_limit):
PHP安全模式(safe_mode): POST方法提交最大限制(post_max_size):
上传文件最大限制(upload_max_filesize): 浮点型数据显示的有效位数(precision):
脚本超时时间(max_execution_time): socket超时时间(default_socket_timeout):
PHP页面根目录(doc_root): 用户根目录(user_dir):
dl()函数(enable_dl): 指定包含文件目录(include_path):
显示错误信息(display_errors): 自定义全局变量(register_globals):
数据反斜杠转义(magic_quotes_gpc): "<?...?>"短标签(short_open_tag):
"<% %>"ASP风格标记(asp_tags): 忽略重复错误信息(ignore_repeated_errors):
忽略重复的错误源(ignore_repeated_source): 报告内存泄漏(report_memleaks):
自动字符串转义(magic_quotes_gpc): 外部字符串自动转义(magic_quotes_runtime):
打开远程文件(allow_url_fopen): 声明argv和argc变量(register_argc_argv):
Cookie 支持: √' : '×';?> 拼写检查(ASpell Library):
高精度数学运算(BCMath): PREL相容语法(PCRE):
PDF文档支持: SNMP网络管理协议:
VMailMgr邮件处理: Curl支持:
SMTP支持: √' : '×';?> SMTP地址: ×';?>
默认支持函数(enable_functions): 网上真钱扎金花
被禁用的函数(disable_functions): ×'; } else { //echo $disFuns; $disFuns_array = explode(',',$disFuns); foreach ($disFuns_array as $key=>$value) { if ($key!=0 && $key%5==0) { echo '
'; } echo "$value  "; } } ?>
组件支持
FTP支持: XML解析支持:
Session支持: Socket支持:
Calendar支持 允许URL打开文件:
GD库支持: ×';} ?> 压缩文件支持(Zlib):
IMAP电子邮件系统函数库: 历法运算函数库:
正则表达式函数库: WDDX支持:
Iconv编码转换: mbstring:
高精度数学运算: LDAP目录协议:
MCrypt加密处理: 哈稀计算:
第三方组件
Zend版本 ×';}else{echo $zend_version;}?> 2) { echo "ZendGuardLoader[启用]"; } else { echo "Zend Optimizer"; } ?> 2){echo (get_cfg_var("zend_loader.enable"))?'':'×';} else{if(function_exists('zend_optimizer_version')){ echo zend_optimizer_version();}else{ echo (get_cfg_var("zend_optimizer.optimization_level")||get_cfg_var("zend_extension_manager.optimizer_ts")||get_cfg_var("zend.ze1_compatibility_mode")||get_cfg_var("zend_extension_ts"))?'':'×';}}?>
eAccelerator ×";} ?> ioncube ×";}?>
XCache ×";} ?> APC ×";} ?>
数据库支持
MySQL 数据库: ODBC 数据库:
Oracle 数据库: SQL Server 数据库:
dBASE 数据库: mSQL 数据库:
SQLite 数据库: √ ';echo "SQLite3 Ver ";echo $sqliteVer[versionString];}else {echo isfun("sqlite_close");if(isfun("sqlite_close") == '') {echo "  版本: ".@sqlite_libversion();}}?> Hyperwave 数据库:
Postgre SQL 数据库: Informix 数据库:
DBA 数据库: DBM 数据库:
FilePro 数据库: SyBase 数据库:
" method="post">
MySQL数据库连接检测
地址: 端口: 用户名: 密码:
函数检测
请输入您要检测的函数:
邮件发送检测
请输入您要检测的邮件地址:
网站地图 凤凰学习网 皇冠代理网 e世博官方
申博手机登入网址 疯狂老虎机登入 威尼斯人赌场登入 太阳城导航
pk10网上投注 bbin视讯真人娱乐登入 皇冠主页 乐盈彩票网址
葡京影视 马经 真钱诈金花 世界杯投注
马经 本港台节目 申博娱乐下载 葡京影视
99sbsun.com S6182.COM 899BBIN.COM 118jbs.com 517XTD.COM
888sbib.com 658DC.COM 758XTD.COM 6666ib.com 8LHS.COM
165sun.com S618T.COM 173XTD.COM XSB538.COM 318XTD.COM
986sj.com 5555XSB.COM 333xsb.com 195PT.COM 675SUN.COM