<?php
/**
	/////////////////////////////////////////////////////////////////////////////////////////
	//濡傛灉镇ㄧ湅瑙佽繖鍙ヨ瘽锛岃鏄庢偍鐜板湪浣跨敤镄勬湇锷″櫒涓嶆敮鎸丳HP
	/////////////////////////////////////////////////////////////////////////////////////////

	//************ ************   鐗?鏉?澹?鏄? ************* *********** ************ ************ 
	||
	|| UenuCom鎺㈤拡 瀹屽叏閲囩敤Div+Css 鍓岖璁捐鏋舵瀯缂栧啓镄勬柊鍨婸HP鎺㈤拡 Ver 2.08.12 Build 081201 缂栫爜涓?UTF-8
	||
	|| 浣? 钥咃细鐢版収姘? 鐢甸偖锛歵ianhuimin@tongji.edu.cn
	||
	|| 缁? 鎶わ细shvip	 涓婚〉锛歨ttp://tool.uenu.com   
	||
	|| QQ:191633089   
	||
	|| 濡傛灉浣犻渶瑕佷慨鏀规湰绋嫔纺璇蜂缭鐣椤师浣滆€呯殑鐗堟潈,璋㈣阿銆?
    //************ ************ ************ ************ ************ ************ ************ 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		This PHP probe programe is designed based on the new structure Div + Css , the free open source software, powerful, clear structure and easy to use. 
		1. To support Windows, linux, Unix, FreeBSD, Sun Solar System.
		2. Support for IE6, IE7, Firefox, Google chrome, and other browsers. 
		
		The main use and application of the object: 
		1. Be familiar with the PHP programming of amateur and professional developers. 
		2. The managers to configure Linux (Windows) + PHP + mySQL + Zend system environment, be sure of the successful detection system configuration. 
		3. For the company's customers to buy Virtual host using testing server performance.
		
		涓€銆佹湰绋嫔簭鍩轰簬Div+Css 鏂板瀷鏋舵瀯PHP鎺㈤拡锛屽厤璐瑰紑婧愮殑镊敱杞欢锛屽姛鑳藉己澶э紝缁撴瀯娓呮榈锛屼娇鐢ㄦ柟渚裤€?
		1.鏀寔Windows锛宭inux,Unix,FreeBSD,Sun Solar绯荤粺
		2.鏀寔IE6锛孖E7锛孎irefox,Google chrome绛夋祻瑙埚櫒銆?
		
		浜屻€佷富瑕佺敤阃斿强阃傜敤瀵硅薄锛?
		1.镡熸倝PHP缂栫▼镄勪笟浣欑埍濂借€呭强涓扑笟寮€鍙戜汉锻朴€?
		2.链烘埧绠＄悊浜哄憳閰岖疆Linux锛圵indows锛?PHP+mySQL+Zend绯荤粺鐜锛屾娴嬬郴缁熸槸鍚﹂厤缃垚锷熴€?
		3.瀵逛簬璐拱铏氭嫙涓绘満镄勭敤鎴凤紝鐢ㄤ簬娴嬭瘯链嶅姟鍣ㄦ€ц兘銆?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*/
	//////////////////浠ヤ笅涓ゅ彉閲忓彲浠ヤ慨鏀归厤鍒?
	//濡傛灉杩欎釜鎺㈤拡浣犳槸鐢ㄦ潵楠岀ず镄勶紝浣犲彲浠ュ湪涓嬮溃鍙橀噺涓緭鍏ョ浉鍏充俊鎭?浼氭樉绀哄湪椤甸溃搴曢儴
    header("content-Type: text/html; charset=utf-8");
    error_reporting(E_ERROR | E_WARNING | E_PARSE);
	ob_start();
     
    $valInt = (false == empty($_POST['pInt']))?$_POST['pInt']:"链祴璇?;
    $valFloat = (false == empty($_POST['pFloat']))?$_POST['pFloat']:"链祴璇?;
    $valIo = (false == empty($_POST['pIo']))?$_POST['pIo']:"链祴璇?;
    $mysqlReShow = "none";
    $mailReShow = "none";
    $funReShow = "none";
    $opReShow = "none";
    $sysReShow = "none";
//============   瀹氢箟甯搁噺 鐢ㄤ簬镟挎崲妯℃澘杈揿嚭鍙橀噺  =======================
  //define("YES", "<span class='resYes'>YES</span>");
  //define("NO", "<span class='resNo'>NO</span>");
   // define("YES", "<span class='resYes'>鈭?/span>");
  //define("NO", "<span class='resNo'>脳</span>");
  $icon = $_GET['icon'];
  switch($icon)
  {
  case "image":
  define("YES", "<span class='resYes'>鈭?/span>");
  define("NO", "<span class='resNo'>脳</span>");
  break;
  case "English":
  define("YES", "<span class='EnglishYes'>Yes</span>");
  define("NO", "<span class='EnglishNo'>No</span>");
  break;
  case "CN":
  define("YES", "<span class='CNYes'>鏀寔</span>");
  define("NO", "<span class='CNNo'>涓嶆敮鎸?/span>");
  break;
  default: 
  $icon = "image";
  define("YES", "<span class='resYes'>鈭?/span>");
  define("NO", "<span class='resNo'>脳</span>");
  break;
  }

//=================================================================
    define("ICON", "<span class='icon'>2</span>&nbsp;");
    $phpSelf = $_SERVER[PHP_SELF] ? $_SERVER[PHP_SELF] : $_SERVER[SCRIPT_NAME];
    define("PHPSELF", preg_replace("/(.{0,}?\/+)/", "", $phpSelf));
     
    if ($_GET['act'] == "phpinfo")
    {
        phpinfo();
        exit();
    }
    elseif($_POST['act'] == "TEST_1")
    {
        $valInt = test_int();
    }
    elseif($_POST['act'] == "TEST_2")
    {
        $valFloat = test_float();
    }
    elseif($_POST['act'] == "TEST_3")
    {
        $valIo = test_io();
    }
    elseif($_POST['act'] == "CONNECT")
    {
        $mysqlReShow = "show";
        $mysqlRe = "MYSQL杩炴帴娴嬭瘯缁撴灉锛?;
        $mysqlRe .= (false !== @mysql_connect($_POST['mysqlHost'], $_POST['mysqlUser'], $_POST['mysqlPassword']))?"MYSQL链嶅姟鍣ㄨ繛鎺ユ甯? ":"MYSQL链嶅姟鍣ㄨ繛鎺ュけ璐? ";
        $mysqlRe .= "鏁版嵁搴?<b>".$_POST['mysqlDb']."</b> ";
        $mysqlRe .= (false != @mysql_select_db($_POST['mysqlDb']))?"杩炴帴姝ｅ父":"杩炴帴澶辫触";
    }
    elseif($_POST['act'] == "SENDMAIL")
    {
        $mailReShow = "show";
        $mailRe = "MAIL闾欢鍙戦€佹祴璇旷粨鏋滐细鍙戦€?;
        $mailRe .= (false !== @mail($_POST["mailReceiver"], "UenuProbe Mail Server Test.", "This email is sent by UenuProbe.\r\n\r\n\r\n\r\n\r\nCopyRight UenuCom\r\nhttp://www.uenu.com"))?"瀹屾垚":"澶辫触";
    }
    elseif($_POST['act'] == "FUNCTION_CHECK")
    {
        $funReShow = "show";
        $funRe = "鍑芥暟 <b>".$_POST['funName']."</b> 鏀寔钟跺喌妫€娴嬬粨鏋滐细".isfun($_POST['funName']);
    }
    elseif($_POST['act'] == "CONFIGURATION_CHECK")
    {
        $opReShow = "show";
        $opRe = "閰岖疆鍙傛暟 <b>".$_POST['opName']."</b> 妫€娴嬬粨鏋滐细".getcon($_POST['opName']);
    }
	
//========================================================================

//=============    椋庢牸璁剧疆  ==============================================
//


$style=$_GET['style'];
if(empty($style)) 
{$style="sum";} 

if($style=="yel"){
///////////绮夎壊鎯呬汉椋庢牸/////////
$skin[background]="#FFFFCC"; //椤甸溃鑳屾櫙棰滆壊
$skin[title]="#FF9D6F"; //澶ф爣棰橀噷镄勮儗鏅鑹?
$skin[border]="#FB5200"; //镓€链夌殑杈规棰滆壊

//鎸夐挳 杈揿叆妗嗛鑹?
$skin[button]="#F7F7F7"; //镓€链夌殑鎸夐挳棰滆壊
$skin[inputborder] = "#FF9D6F"; //杈揿叆妗嗛鑹?
$skin[inputbackground] = "#FFFFDD"; //杈揿叆妗呜儗鏅鑹?

///menu
$skin[menubgcolor]="#999999";  //凿滃崟bgcolor]棰滆壊
$skin[menulink]="#FFFFFF";  //凿滃崟link棰滆壊 
$skin[menuvisited]="#FFFFFF"; //凿滃崟visited棰滆壊 
$skin[menuhover]="#FFFFFF"; //凿滃崟hover棰滆壊
$skin[menuactive]="#FFFFFF";  //凿滃崟active棰滆壊 

//妯℃澘杈揿嚭锛埚瓧浣?绗﹀佛锛?
$skin[resYes]="#339900";  //resYes 棰滆壊
$skin[resNo]="red";   //resNo 棰滆壊
$skin[font]="#333333"; //镓€链夌殑瀛椾綋棰滆壊
$skin[titlefont]="#FF0000"; //澶ф爣棰橀噷镄勫瓧浣挞鑹?

//阈炬帴棰滆壊
$skin[Alink] = "green";  //link 棰滆壊
$skin[Ahover] = "red"; //hover 棰滆壊
$skin[Aactive] = "#007700"; //active 棰滆壊
$skin[Avisited] = "#007700"; //visited 棰滆壊
}


elseif($style=="sky"){
///////////钃濊壊澶╃┖椋庢牸//////////
$skin[background]="#F8FCFE"; //椤甸溃鑳屾櫙棰滆壊
$skin[title]="#0CCCC0"; //澶ф爣棰橀噷镄勮儗鏅鑹?6CC66
$skin[border]="#0CCCC0"; //镓€链夌殑杈规棰滆壊

//鎸夐挳 杈揿叆妗嗛鑹?
$skin[button]="#F7F7F7"; //镓€链夌殑鎸夐挳棰滆壊
$skin[inputborder] = "#0CCCC0"; //杈揿叆妗嗛鑹?
$skin[inputbackground] = "#F8FCFE"; //杈揿叆妗呜儗鏅鑹?

///menu
$skin[menubgcolor]="#999999";  //凿滃崟bgcolor]棰滆壊
$skin[menulink]="#FFFFFF";  //凿滃崟link棰滆壊 
$skin[menuvisited]="#FFFFFF"; //凿滃崟visited棰滆壊 
$skin[menuhover]="#FFFFFF"; //凿滃崟hover棰滆壊
$skin[menuactive]="#FFFFFF";  //凿滃崟active棰滆壊 

//妯℃澘杈揿嚭锛埚瓧浣?绗﹀佛锛?
$skin[resYes]="#339900";  //resYes 棰滆壊
$skin[resNo]="red";   //resNo 棰滆壊
$skin[font]="#333333"; //镓€链夌殑瀛椾綋棰滆壊
$skin[titlefont]="#FF0000"; //澶ф爣棰橀噷镄勫瓧浣挞鑹?

//阈炬帴棰滆壊
$skin[Alink] = "green";  //link 棰滆壊
$skin[Ahover] = "red"; //hover 棰滆壊
$skin[Aactive] = "#007700"; //active 棰滆壊
$skin[Avisited] = "#007700"; //visited 棰滆壊
}

elseif($style=="sum"){
///////////娓呯埥澶忔棩椋庢牸//////////
$skin[background]="#EEFEE0"; //椤甸溃鑳屾櫙棰滆壊
$skin[title]="#72CF72"; //澶ф爣棰橀噷镄勮儗鏅鑹?
$skin[border]="#007700"; //镓€链夌殑杈规棰滆壊

//鎸夐挳 杈揿叆妗嗛鑹?
$skin[button]="#F7F7F7"; //镓€链夌殑鎸夐挳棰滆壊
$skin[inputborder] = "#007700"; //杈揿叆妗嗛鑹?
$skin[inputbackground] = "#EEFEE0"; //杈揿叆妗呜儗鏅鑹?

///menu
$skin[menubgcolor]="#999999";  //凿滃崟bgcolor]棰滆壊
$skin[menulink]="#FFFFFF";  //凿滃崟link棰滆壊 
$skin[menuvisited]="#FFFFFF"; //凿滃崟visited棰滆壊 
$skin[menuhover]="#FFFFFF"; //凿滃崟hover棰滆壊
$skin[menuactive]="#FFFFFF";  //凿滃崟active棰滆壊 

//妯℃澘杈揿嚭锛埚瓧浣?绗﹀佛锛?
$skin[resYes]="#339900";  //resYes 棰滆壊
$skin[resNo]="red";   //resNo 棰滆壊
$skin[font]="#333333"; //镓€链夌殑瀛椾綋棰滆壊
$skin[titlefont]="#FF0000"; //澶ф爣棰橀噷镄勫瓧浣挞鑹?

//阈炬帴棰滆壊
$skin[Alink] = "green";  //link 棰滆壊
$skin[Ahover] = "red"; //hover 棰滆壊
$skin[Aactive] = "#007700"; //active 棰滆壊
$skin[Avisited] = "#007700"; //visited 棰滆壊
}

//=============    缁撴潫椋庢牸  ==============================================
//========================================================================
   switch (PHP_OS)
    {
        case "Linux":
        $sysReShow = (false != ($sysInfo = sys_linux()))?"show":"none";
        break;
        case "FreeBSD":
        $sysReShow = (false != ($sysInfo = sys_freebsd()))?"show":"none";
        break;
		case "Windows":
        //$sysReShow = (false != ($sysInfo = sys_windows()))?"show":"none";
		$sysInfo['uptime'] ="瀵逛笉璧稺indows绯荤粺涓嶆敮鎸?;
        break;
        default:
        break;
    }
     
//========================================================================
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>浼樿压锲介台庐 PHP鎺㈤拡 Ver 2.08.12 Copyright Uenu.Com</title>
<meta name="keywords" content="PHP,鎺㈤拡,缂栫▼,UenuProbe,Probe"/>
<meta name="description" content="PHP鎺㈤拡,PHP缂栫▼,浼樿压锲介台"/>
<meta name="generator" content="UenuProbe Ver 2.08.12" />
<meta name="author" content="UenuProbe! Copyright Uenu.com" />
<meta name="copyright" content="2001-2009 Uenu Corp." />
<style type="text/css">
<!--
body {
	text-align: center;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	font-size: 12px;
	color: <?=$skin[font]?>;
}
#header {
	font-style: normal;	width: 96%;
	height: 40px;
	margin-right: auto;
	margin-left: auto;
	margin-top: 10px;
}
#header #left {
	float: left;
	height: 28px;
	width: 28%;
	text-align: center;
}
#header #left  #a{
	height: 12px;
	width: auto;
	text-align: left;
	padding-left: 20px;
	font-size: 14px;
	font-weight: bold;
	color: #FF0000;

}
#header #left #b{
	height: 28px;
	width: auto;
	text-align: left;
	padding-left: 20px;
	font-size: 24px;
	font-weight: bold;
	color: <?=$skin[border]?>;
}
#header #right {
	height: 28px;
	width: 72%;
	float: left;
	background-color: #CCCCCC;
	padding-top: 13px;
	text-align: left;
}
#header #right #blank {
	height: 2px;
	width: 20px;
	float: left;
}
#header #menu {
	text-align: left;
	height: 25px;	width: 96%;
	padding-top: 10px;
	background-color: <?=$skin[menubgcolor]?>;
}
A.menu:link {
	PADDING-RIGHT: 2px;
	PADDING-LEFT: 2px;
	FONT-SIZE: 13px;
	COLOR: <?=$skin[menulink]?>;
	TEXT-DECORATION: none
}
A.menu:visited {
	PADDING-RIGHT: 2px;
	PADDING-LEFT: 2px;
	FONT-SIZE: 13px;
	COLOR: <?=$skin[menuvisited]?>;
	TEXT-DECORATION: none
}
A.menu:hover {
	PADDING-RIGHT: 2px;
	PADDING-LEFT: 2px;
	FONT-SIZE: 13px;
	PADDING-BOTTOM: 10px;
	COLOR: <?=$skin[menuhover]?>;
	PADDING-TOP: 10px;
	BACKGROUND-COLOR: <?=$skin[border]?>;
	TEXT-ALIGN: center;
	TEXT-DECORATION: none
}
A.menu:active {
	PADDING-RIGHT: 2px;
	PADDING-LEFT: 2px;
	FONT-SIZE: 13px;
	COLOR: <?=$skin[menuactive]?>;
	TEXT-ALIGN: center;
	TEXT-DECORATION: none
}
A.sky:link {
	color: #0CCCC0;
}
A.sky:visited {
	color: #0CCCC0;
}
A.yel:link {
	color: #FF9D6F;
}
A.yel:visited {
	color: #FB5200;
}
A.sum:link {
	color: #72CF72;
}
A.sum:visited {
	color:#007700;
}
A.download:link {
	color: #000;
	text-decoration: none;
}
A.download:hover {
	color: #FF6600;
    text-decoration: underline;
}
A.download:active {
	color: #000;
    text-decoration: underline;
}
A.download:visited {
	color:#000;
	text-decoration: none;
}
A:link {
	color: <?=$skin[Alink]?>;
}
A:hover {
	color: <?=$skin[Ahover]?>;
}
A:active {
	color: <?=$skin[Aactive]?>;
}
A:visited {
	color: <?=$skin[Avisited]?>;
}
.resYes {
	font-size: 14px;
	color: <?=$skin[resYes]?>;
	font-weight: bold;
	font-family: Verdana;
} 
.resNo {
	font-size: 14px;
	color: <?=$skin[resNo]?>;
	font-weight: bold;
	font-family: Verdana;
}
.EnglishYes {
	font-size: 12px;
	color: <?=$skin[resYes]?>;
	font-family: Verdana;
} 
.EnglishNo {
	font-size: 12px;
	color: <?=$skin[resNo]?>;
	font-family: Verdana;
}
.CNYes {
	font-size: 12px;
	color: <?=$skin[resYes]?>;
	font-family: Verdana;
} 
.CNNo {
	font-size: 12px;
	color: <?=$skin[resNo]?>;
	font-family: Verdana;
}
.myButton {
	font-size:10px;
	font-weight:normal;
	background-color: <?=$skin[button]?>;
}
input {
	border: 1px solid <?=$skin[inputborder]?>;
	background:<?=$skin[inputbackground]?>;
	height: 20px;
	width: 120px;
	margin-left: 5px;
}
#total {
	height: auto;
	width: 96%;
	margin-right: auto;
	margin-left: auto;
	margin-top: 2px;
	border: 1px solid <?=$skin[border]?>;
	text-align: center;
	background-color: <?=$skin[background]?>;
}
#total #style  {
	height: 30px;
	width: auto;
	text-align: left;
}
#total #style #left {
	height: 20px;
	width: 40%;
	padding-top: 10px;
	float: left;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
}
#total #style #right {
	text-align: center;
	float: left;
	height: 20px;
	width: auto;
	padding-top: 10px;
}
#total .title {
	text-align: center;
	height: 25px;	width: auto;
	margin-right: auto;
	margin-left: auto;
	background-color: <?=$skin[title]?>;
	padding-top: 5px;
	margin-top: 5px;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: bold;
}
#total #serverinfo {
<?php
$os = explode(" ", php_uname()); if ($os[0] =="Windows") {echo "height:292px";} else {echo "height:356px";}
//	height:266px;
?>;
	width: 720px;
	margin-right: auto;
	margin-left: auto;
}
#total #serverinfo .info1 {
	width: 195px;
	height: 18px;
	border: 1px solid <?=$skin[border]?>;
	float: left;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #serverinfo .info2 {
	width: 509px;
	height: 18px;
	float: left;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #serverinfo .info3 {
	width: 195px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #serverinfo .info4 {
	width: 509px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
	overflow: hidden;
}
#total #phpinfo {
	height:270px;
	width: 720px;
	margin-right: auto;
	margin-left: auto;
}
#total  #phpinfo  #left {
	width: 359px;
	height: 270px;
	float: left;
	text-align: left;
	margin-right: 1px;
}
#total #phpinfo #left .info01 {
	width: 250px;
	height: 18px;
	border: 1px solid <?=$skin[border]?>;
	float: left;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #phpinfo #left .info02 {
	width: 95px;
	height: 18px;
	float: left;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #phpinfo #left .info03 {
	width: 250px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #phpinfo #left .info04 {
	width: 95px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #phpinfo #right {
	width: 359px;
	height: 270px;
	float: left;
	text-align: left;
	margin-left: 1px;
}
#total #phpinfo #right .info01 {
	width: 250px;
	height: 18px;
	border: 1px solid <?=$skin[border]?>;
	float: left;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #phpinfo #right .info02 {
	width: 95px;
	height: 18px;
	float: left;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #phpinfo #right .info03 {
	width: 250px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #phpinfo #right .info04 {
	width: 95px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #otherinfo {
	height:620px;
	width: 720px;
	margin-right: auto;
	margin-left: auto;
}
#total #otherinfo  #left {
	width: 359px;
	height: 500px;
	float: left;
	text-align: left;
	margin-right: 1px;
}
#total #otherinfo #left .infoe01 {
	width: 250px;
	height: 18px;
	border: 1px solid <?=$skin[border]?>;
	float: left;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #otherinfo #left .infoe02 {
	width: 95px;
	height: 18px;
	float: left;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #otherinfo #left .infoe03 {
	width: 250px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #otherinfo #left .infoe04 {
	width: 95px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #otherinfo #right {
	width: 359px;
	height: 500px;
	float: left;
	text-align: left;
	margin-left: 1px;
}
#total #otherinfo #right .infoe01 {
	width: 250px;
	height: 18px;
	border: 1px solid <?=$skin[border]?>;
	float: left;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #otherinfo #right .infoe02 {
	width: 95px;
	height: 18px;
	float: left;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #otherinfo #right .infoe03 {
	width: 250px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #otherinfo #right .infoe04 {
	width: 95px;
	height: 18px;
	float: left;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	padding-top: 3px;
	text-align: left;
	padding-left: 5px;
}
#total #testinfo {
	height:190px;
	width: 720px;
	margin-right: auto;
	margin-left: auto;
}
#total #testinfo .test01 {
	float: left;
	height: 27px;
	width: 295px;
	padding-top: 10px;
	border: 1px solid <?=$skin[border]?>;
	text-align: center;
}
#total #testinfo .test02 {
	float: left;
	height: 32px;
	width: 140px;
	padding-top: 5px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: center;
}
#total #testinfo .test03 {
	float: left;
	height: 32px;
	width: 140px;
	padding-top: 5px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: center;
}
#total #testinfo .test04 {
	float: left;
	height: 33px;
	width: 140px;
	padding-top: 4px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: center;
}
#total #testinfo .test05 {
	float: left;
	height: 25px;
	width: 285px;
	padding-top: 5px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	text-align: left;
	padding-left: 10px;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
}
#total #testinfo .test06 {
	float: left;
	height: 25px;
	width: 140px;
	padding-top: 5px;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: center;
}
#total #testinfo .test07 {
	float: left;
	height: 25px;
	width: 140px;
	padding-top: 5px;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: center;
}
#total #testinfo .test08 {
	float: left;
	height: 25px;
	width: 140px;
	padding-top: 5px;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: center;
}
#total #checkinfo {
	height:480px;
	width: 720px;
	border: 1px solid <?=$skin[border]?>;
	margin-right: auto;
	margin-left: auto;
}
#total #checkinfo .check00 {
	float: left;
	height: 25px;
	width: 700px;
	padding-top: 10px;
	text-align: left;
	padding-left: 20px;
}
#total #checkinfo #check01 {
	float: left;
	height: 25px;
	width: 120px;
	padding-top: 10px;
	text-align: left;
	padding-left: 20px;
	margin-left: 5px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-left-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
}
#total #checkinfo #check02 {
	float: left;
	height: 30px;
	width: 140px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	text-align: left;
	padding-top: 5px;
}
#total  #checkinfo  #check03 {
	float: left;
	height: 25px;
	width: 120px;
	padding-top: 10px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	text-align: left;
	padding-left: 20px;
}
#total #checkinfo #check04 {
	float: left;
	height: 30px;
	width: 140px;
	padding-top: 5px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	text-align: left;
}
#total #checkinfo #check05 {
	float: left;
	height: 30px;
	width: 140px;
	padding-top: 5px;
	text-align: center;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
}
#total #checkinfo #check06 {
	float: left;
	height: 25px;
	width: 120px;
	padding-top: 10px;
	text-align: left;
	border: 1px solid <?=$skin[border]?>;
	padding-left: 20px;
	margin-left: 5px;
}
#total #checkinfo #check07 {
	float: left;
	height: 30px;
	width: 140px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: left;
	padding-top: 5px;
}
#total  #checkinfo #check08 {
	float: left;
	height: 25px;
	width: 120px;
	padding-top: 10px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: left;
	padding-left: 20px;
}
#total #checkinfo #check09 {
	float: left;
	height: 30px;
	width: 140px;
	padding-top: 5px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: <?=$skin[border]?>;
	text-align: left;
}
#total #checkinfo #check10 {
	float: left;
	height: 30px;
	width: 140px;
	padding-top: 5px;
	text-align: center;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
	border-left-color: <?=$skin[border]?>;
}
#total #checkinfo #check11 {
	float: left;
	height: 25px;
	width: 120px;
	padding-top: 10px;
	text-align: left;
	border: 1px solid <?=$skin[border]?>;
	padding-left: 20px;
	margin-left: 5px;
}
#total #checkinfo #check12 {
	float: left;
	height: 30px;
	width: 140px;
	padding-top: 5px;
	text-align: left;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
}
#total #checkinfo #check13 {
	float: left;
	height: 30px;
	width: 250px;
	padding-top: 5px;
	text-align: center;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-top-color: <?=$skin[border]?>;
	border-right-color: <?=$skin[border]?>;
	border-bottom-color: <?=$skin[border]?>;
}
#total #aboutinfo {
	height:auto;
	width: 96%;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}
#total  #aboutinfo  #declare {
	font-size: 14px;
	height: 25px;	width: 96%;
	margin-right: auto;
	margin-left: auto;
	padding-top: 5px;
	text-align: left;
	padding-left: 50px;
	font-weight: bold;
}
#total #aboutinfo #top {
	height: 12px;
	width: 98%;
	padding-top: 5px;
	text-align: right;
}
#total #aboutinfo #gnu {
	height:auto;
	width: 60%;
	text-align: left;
	padding-top: 5px;
	padding-left: 160px;
}
#total #aboutinfo #hr {
	height:5px;
	width: 98%;
	text-align: center;
}
#total #aboutinfo #about {
	text-align: right;
	height: 160px;
	width: 98%;
}
#total #aboutinfo #about #us {
	float: right;
	height: 60px;
	width: 260px;
	text-align: left;
	border: 1px solid #999999;
	font-size: 12px;
	padding-left: 6px;
	padding-top: 6px;
	line-height: 150%;
	margin-top: 20px;
}

-->
</style>
</head>

<body>

<!--header 寮€濮?->
<div id="header">
<a name="top"></a>
<div id="left"  style="CURSOR: hand;" onClick="window.open('http://www.uenu.com/UenuProbe/')">
<div id="a">www.UENU.com &reg;</div>
<div id="b">PHP 鎺㈤拡<span style="font-size:12px">Ver 2.08.12</span></div>
</div>
<div id="right">
<div id="blank"></div>
<A href="<?=PHPSELF."?style=$style&icon=$icon&#serverinfo"?>" class="menu" >链嶅姟鍣ㄧ壒寰?/A>
<A href="<?=PHPSELF."?style=$style&icon=$icon&#phpinfo"?>" class="menu" >PHP鍩烘湰鐗瑰緛</A>
<A href="<?=PHPSELF."?style=$style&icon=$icon&#otherinfo"?>" class="menu" >PHP缁勪欢鏀寔钟跺喌</A>
<A href="<?=PHPSELF."?style=$style&icon=$icon&#testinfo"?>" class="menu" >链嶅姟鍣ㄦ€ц兘妫€娴?/A>
<A href="<?=PHPSELF."?style=$style&icon=$icon&#checkinfo"?>" class="menu" >镊畾涔夋娴?/A>
<A href="<?=PHPSELF."?style=$style&icon=$icon&#aboutus"?>" class="menu" >鍏充簬鎴戜滑</A>
<A href="<?=PHPSELF."?style=$style&icon=$icon&#style"?>" class="menu" >椋庢牸阃夋嫨</A>
<A href="<?=PHPSELF."?style=$style&icon=$icon"?>" class="menu" >鍒锋柊</A></div>
</div>
<!--header 缁撴潫-->
<!--total 寮€濮?->
<a name="serverinfo"></a>
<div id="total">
<div id="style">
<div id="left"><a href="http://www.uenu.com/download/UenuProbe.rar" class="download" title="
  铍忊挛铍佲挛铍佲挛铍佲挛铍佲挛铍佲挛铍佲挛铍佲挛铍佲敁  
  铍?                               铍? 
  铍?          杞欢涓嬭浇             铍? 
  铍? 杞欢鍚岖О锛叹enuProbe PHP鎺㈤拡   铍? 
  铍? 链€鏂扮増链细Ver 2.08.12         铍? 
  铍? 鍙戝竷镞ユ湡锛?008骞?2链?1镞?     铍? 
  铍? 鎶€链敮鎸侊细www.uenu.com        铍? 
  铍?                               铍? 
  铍椻挛铍佲挛铍佲挛铍佲挛铍佲挛铍佲挛铍佲挛铍佲挛铍佲敍  
" >UenuProbe -- 钬诲熀浜嶥iv+Css 鏋舵瀯PHP鎺㈤拡</a></div>
<div id="right">椤甸溃椋庢牸锛?a href="<?=$PHP_SELF?>?style=sky" class="sky">[钃濊壊澶╃┖]</a>&nbsp;&nbsp;<a href="<?=$PHP_SELF?>?style=yel" class="yel">[绮夎壊鎯呬汉]</a>&nbsp;&nbsp;<a href="<?=$PHP_SELF?>?style=sum" class="sum">[娓呯埥澶忔棩]</a>&nbsp;&nbsp;&nbsp;&nbsp;杈揿嚭镙煎纺锛?a href="<?=$PHP_SELF."?style=$style"?>&icon=English" >English</a> 锛?a href="<?=$PHP_SELF."?style=$style"?>&icon=CN">涓枃</a>锛?a href="<?=$PHP_SELF."?style=$style"?>&icon=image">锲惧瀷</a> </div>
</div>
<!--PHP鍩烘湰鐗规€?寮€濮?->
<div class="title">...:::链嶅姟鍣ㄧ壒镐?::...</div>
<!--PHP鍩烘湰鐗规€?缁撴潫-->
<div id="serverinfo"><div class="info1">链嶅姟鍣ㄦ椂闂?/div><div class="info2"><?php echo gmdate("Y骞磎链坉镞?h:i:s",time());?>&nbsp;(镙兼滠濞佹不镙囧嗳镞堕棿)&nbsp;&nbsp;<?=gmdate("Y骞磏链坖镞?H:i:s",time()+8*3600)?>&nbsp;(鍖椾含镞堕棿)</div>
<div class="info3">链嶅姟鍣ㄥ烟鍚?/div><div class="info4"><?php echo("<a href=\"http://$_SERVER[SERVER_NAME]\"  title=璁块棶姝ゅ烟鍚?target=_blank>$_SERVER[SERVER_NAME]</a>"); ?></div>
<div class="info3">链嶅姟鍣↖P鍦板潃</div><div class="info4"><?php $host_ip=gethostbyname($_SERVER["SERVER_NAME"]); echo($host_ip);?></div>
<div class="info3">链嶅姟鍣ㄦ搷浣灭郴缁?/div><div class="info4"><?php $os = explode(" ", php_uname()); echo $os[0]; echo "&nbsp;&nbsp;";
 if ($os[0] =="Windows") {echo "涓绘満鍚岖О锛?.$os[2];} else {echo "鍐呮牳鐗堟湰锛?.$os[2];}?></div>
<!-- 浠呭湪windows 鐜涓緭鍑?->
<?php if(("show" !==$sysReShow) & ("0"!= $_ENV["NUMBER_OF_PROCESSORS"])& (""!= $_ENV["NUMBER_OF_PROCESSORS"])){?>
<div class="info3">链嶅姟鍣ㄥ鐞嗗櫒</div><div class="info4">CPU涓暟锛??=$_ENV["NUMBER_OF_PROCESSORS"]?> <?php echo "&nbsp;&nbsp;".$_ENV["PROCESSOR_IDENTIFIER"]; echo "&nbsp;&nbsp;杩愯绾у埆:".$_ENV["PROCESSOR_LEVEL"]; echo "&nbsp;&nbsp;鐗堟湰:".$_ENV["PROCESSOR_REVISION"];?></div>
<?}?>
<!-- 浠呭湪windows 鐜涓緭鍑虹粨鏉?->
<!-- linux or unix 鍙傛暟杈揿嚭-->
<?if(("show"==$sysReShow)&("0" != $sysInfo['cpu']['num'])&("" != $sysInfo['cpu']['num'])){?>
<div class="info3">链嶅姟鍣ㄥ鐞嗗櫒</div><div class="info4">CPU涓暟锛??=$sysInfo['cpu']['num']?> &nbsp;&nbsp;<?=$sysInfo['cpu']['detail']?></div>
<?}?>
<?if("show"==$sysReShow){?>
<div class="info3">鍐呭瓨浣跨敤钟跺喌</div><div class="info4">
<?=$sysInfo['memTotal']?>M, 宸蹭娇鐢?
<?=$sysInfo['memUsed']?>M, 绌洪棽
<?=$sysInfo['memFree']?>M, 浣跨敤鐜?
<?=$sysInfo['memPercent']?>%</div>
<div class="info3">SWAP鍖?/div><div class="info4">
鍏??=$sysInfo['swapTotal']?>M, 宸蹭娇鐢?
<?=$sysInfo['swapUsed']?>M, 绌洪棽
<?=$sysInfo['swapFree']?>M, 浣跨敤鐜?
<?=$sysInfo['swapPercent']?>%</div>
<div class="info3">绯荤粺骞冲潎璐熻浇</div><div class="info4"><?=$sysInfo['loadAvg']?></div>
<?}?>
<!-- linux or unix 鍙傛暟杈揿嚭缁撴潫-->
<div class="info3">链嶅姟鍣ㄨ繍琛屾椂闂?/div><div class="info4"><?php if ($sysInfo['uptime']!=""){ echo $sysInfo['uptime'];} else  echo "瀵逛笉璧稺indows绯荤粺涓嶆敮鎸?; ?> </div>
<div class="info3">链嶅姟鍣ㄦ搷浣灭郴缁熸枃瀛楃紪镰?/div><div class="info4"><?php echo($_SERVER["HTTP_ACCEPT_LANGUAGE"]); ?></div>
<div class="info3">链嶅姟鍣ㄨВ璇戝紩鎿?/div><div class="info4"><?php echo($_SERVER["SERVER_SOFTWARE"]); ?></div>
<div class="info3">Web链嶅姟绔彛</div><div class="info4"><?php echo($_SERVER["SERVER_PORT"]); ?></div>
<div class="info3">链嶅姟鍣ㄧ鐞嗗憳</div><div class="info4"><?php 
if (isset($_SERVER["SERVER_ADMIN"]))
{echo("<a href=\"mailto:$_SERVER[SERVER_ADMIN]\" title=鍙戦€侀偖浠?$_SERVER[SERVER_ADMIN]</a>");	}
else echo("<a href=\"mailto:get_cfg_var(sendmail_from)\" title=鍙戦€侀偖浠?get_cfg_var(sendmail_from)</a>");?></div>
<div class="info3">链枃浠惰矾寰?/div><div class="info4"><?php echo($_SERVER["SCRIPT_FILENAME"]);?></div>
<div class="info3">链嶅姟绔墿浣欑┖闂?/div><div class="info4"><?php echo intval(diskfreespace(".") / (1024 * 1024)).'Mb';?></div>
<div class="info3">绯荤粺褰揿墠鐢ㄦ埛鍚?/div><div class="info4"><?php echo @get_current_user();?></div>
</div>
<!--tag1 -->
<a name="phpinfo"></a>
<!--PHP鍩烘湰鐗规€?寮€濮?->
<div class="title">...:::PHP鍩烘湰鐗规€?::...</div>
<div id="phpinfo">
<div id="left">
<div class="info01">PHP鐗堟湰</div><div class="info02"><?php echo PHP_VERSION;?></div>
<div class="info03">PHP杩愯鏂瑰纺</div><div class="info04"><?php /**strtoupper(php_sapi_name());**/ echo ucwords(php_sapi_name());?></div>
<div class="info03">鏀寔ZEND缂栬疟杩愯&nbsp;&nbsp;(<?php if($zend="YES") {echo "鐗堟湰:";echo zend_version();}?>)</div><div class="info04"><?php echo $zend=(get_cfg_var("zend_optimizer.optimization_level")||get_cfg_var("zend_extension_manager.optimizer_ts")||get_cfg_var("zend_extension_ts")) ?YES:NO?></div>
<div class="info03">杩愯浜庡畨鍏ㄦā寮?/div><div class="info04"><?php if(get_cfg_var("safemode")){echo("鏄?);}else echo("鍚?); ?></div>
<div class="info03">镊姩瀹氢箟鍏ㄥ眬鍙橀噺&nbsp;register_globals</div><div class="info04"><?php echo @get_cfg_var("register_globals")?'ON' : 'OFF';?></div>
<div class="info03">鍏佽浣跨敤URL镓揿紑鏂囦欢allow_url_fopen</div><div class="info04"><?=get_cfg_var("allow_url_fopen")=="1"?YES:NO?></div>
<div class="info03">鍏佽锷ㄦ€佸姞杞介摼鎺ュ簱enable_dl</div><div class="info04"><?=get_cfg_var("enable_dl")=="1"?YES:NO?></div>
<div class="info03">鏄剧ず阌栾淇℃伅&nbsp;display_errors</div><div class="info04"><?=get_cfg_var("display_errors")=="1"?YES:NO?></div>
<div class="info03">鐭爣璁?lt;? ?&gt;鏀寔</div><div class="info04"><?php echo @get_cfg_var("short_open_tag")?YES:NO;?></div>
<div class="info03">镙囱&lt;% %&gt;鏀寔</div><div class="info04"><?php echo @get_cfg_var("asp_tags")?YES:NO;?></div>
<div class="info03">COOKIE鏀寔</div><div class="info04"><?php echo isset($HTTP_COOKIE_VARS)?YES:NO;?></div>
<div class="info03">Session鏀寔</div><div class="info04"><?php echo function_exists(session_start)?YES:NO;?></div>
</div>
<div id="right">
<div class="info01">娴偣杩愮畻链夋晥鏁板瓧鏄剧ず浣嶆暟</div><div class="info02"><?php echo @get_cfg_var("precision");?></div>
<div class="info03">寮哄埗y2k鍏煎</div><div class="info04"><?php echo @get_cfg_var("y2k_compliance")?YES:NO;?></div>
<div class="info03">琚鐢ㄧ殑鍑芥暟disable_functions</div><div class="info04">
<?php $disused = @get_cfg_var("disable_functions")?"1":"0"; 
if($disused =="1")
{echo '<a href="#" title="
'.@get_cfg_var("disable_functions").'
">'."More".'</a>';} 
else {echo "None";}?></div>
<div class="info03">绋嫔簭链€闀胯繍琛屾椂闂磎ax_execution_time</div><div class="info04"><?php echo(get_cfg_var("max_execution_time")."绉?);?></div>
<div class="info03">绋嫔簭链€澶氩厑璁镐娇鐢ㄥ唴瀛橀噺 memory_limit</div><div class="info04"><?php echo @get_cfg_var("memory_limit");?></div>
<div class="info03">POST链€澶у瓧鑺傛暟&nbsp;post_max_size</div><div class="info04"><?php echo @get_cfg_var("post_max_size");?></div>
<div class="info03">鍏佽链€澶т笂浼犳枃浠?nbsp;upload_max_filesize</div><div class="info04"><?php echo @get_cfg_var("file_uploads")?@get_cfg_var("upload_max_filesize") : $error;?></div>
<div class="info03">PHP淇℃伅 PHPINFO</div><div class="info04"><?=(false!==eregi("phpinfo",$disFuns))?NO:"<a href='$phpSelf?act=phpinfo' target='_blank' class='static'>PHPINFO</a>"?></div>
<div class="info03">Html阌栾鏄剧ず</div><div class="info04"><?php echo @get_cfg_var("html_errors")?YES:NO;?></div>
<div class="info03">璋冭瘯鍣ㄥ湴鍧€/绔彛</div><div class="info04"><?php echo $debugerhost=@get_cfg_var("debugger.host")?YES:NO;if ($debugerhost =="YES") {echo @get_cfg_var("debugger.port")?YES:NO;}?></div>
<div class="info03">SMTP鏀寔</div><div class="info04"><?php echo @get_cfg_var("SMTP")?YES:NO;?></div>
<div class="info03">SMTP鍦板潃</div><div class="info04"><?php echo @get_cfg_var("SMTP");?></div>
</div>
</div>
<a name="otherinfo"></a>
<!--PHP鍩烘湰鐗规€?缁撴潫-->
<div class="title">...:::缁勪欢鏀寔钟跺喌:::...</div>
<div id="otherinfo">
<div id="left">
<div class="infoe01">缁勪欢鍚岖О</div><div class="infoe02">鏀寔鎯呭喌</div>
<div class="infoe03">鎷煎啓妫€镆?ASpell Library</div><div class="infoe04"><?php echo function_exists(aspell_new)?YES:NO;?></div>
<div class="infoe03">楂樼簿搴︽暟瀛﹁繍绠?BCMath</div><div class="infoe04"><?php echo function_exists(bcadd)?YES:NO;?></div>
<div class="infoe03">铡嗘硶杩愮畻 Calendar</div><div class="infoe04"><?php echo function_exists(JDToFrench)?YES:NO;?></div>
<div class="infoe03">锲惧舰澶勭悊 GD Library</div><div class="infoe04"><?php echo function_exists(imageline)?YES:NO;?></div>
<div class="infoe03">绫?瀵硅薄鏀寔</div><div class="infoe04"><?php echo function_exists(class_exists)?YES:NO;?></div>
<div class="infoe03">瀛椾覆绫诲瀷妫€娴嬫敮鎸?/div><div class="infoe04"><?php echo function_exists(ctype_upper)?YES:NO;?></div>
<div class="infoe03">iconv缂栫爜鏀寔</div><div class="infoe04"><?php echo function_exists(iconv)?YES:NO;?></div>
<div class="infoe03">MCrypt锷犲瘑澶勭悊鏀寔</div><div class="infoe04"><?php echo function_exists(mcrypt_cbc)?YES:NO;?></div>
<div class="infoe03">鍝堢█璁＄畻 MHash</div><div class="infoe04"><?php echo function_exists(mhash)?YES:NO;?></div>
<div class="infoe03">OpenSSL鏀寔</div><div class="infoe04"><?php echo function_exists(openssl_open)?YES:NO;?></div>
<div class="infoe03">PREL鐩稿璇硶 PCRE</div><div class="infoe04"><?php echo function_exists(preg_match)?YES:NO;?></div>
<div class="infoe03">姝ｅ垯镓╁睍(鍏煎perl)鏀寔</div><div class="infoe04"><?php echo function_exists(preg_match)?YES:NO;?></div>
<div class="infoe03">Socket鏀寔</div><div class="infoe04"><?php echo function_exists(fsockopen)?YES:NO;?></div>
<div class="infoe03">娴佸獟浣撴敮鎸?/div><div class="infoe04"><?php echo function_exists(stream_context_create)?YES:NO;?></div>
<div class="infoe03">Tokenizer鏀寔</div><div class="infoe04"><?php echo function_exists(token_name)?YES:NO;?></div>
<div class="infoe03">URL鏀寔</div><div class="infoe04"><?php echo function_exists(parse_url)?YES:NO;?></div>
<div class="infoe03">WDDX鏀寔(Web Distributed Data Exchange)</div><div class="infoe04"><?php echo function_exists(wddx_add_vars)?YES:NO;?></div>
<div class="infoe03">铡嬬缉鏂囦欢鏀寔(Zlib)</div><div class="infoe04"><?php echo function_exists(gzclose)?YES:NO;?></div>
<div class="infoe03">XML瑙ｆ瀽</div><div class="infoe04"><?php echo function_exists(xml_set_object)?YES:NO;?></div>
<div class="infoe03">FTP</div><div class="infoe04"><?php echo function_exists(ftp_login)?YES:NO;?></div>
<div class="infoe03">MySQL鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(mysql_close)?YES:NO;?></div>
<div class="infoe03">MySQL鏁版嵁搴撴寔缁繛鎺?/div><div class="infoe04"><?php echo @get_cfg_var("mysql.allow_persistent")?YES:NO;?></div>
<div class="infoe03">MySQL链€澶ц繛鎺ユ暟</div><div class="infoe04"><?php echo @get_cfg_var("mysql.max_links")==-1 ? "涓嶉檺" : @get_cfg_var("mysql.max_links");?></div>
<div class="infoe03">ODBC鏁版嵁搴撹繛鎺?/div><div class="infoe04"><?php echo function_exists(odbc_close)?YES:NO;?></div>
<div class="infoe03">SQL Server鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(mssql_close)?YES:NO;?></div>
<div class="infoe03">mSQL鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(msql_close)?YES:NO;?></div>
<div class="infoe03">Postgre SQL鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(pg_close)?YES:NO;?></div>
</div>

<div id="right">
<div class="infoe01">缁勪欢鍚岖О</div><div class="infoe02">鏀寔鎯呭喌</div>
<div class="infoe03">Oracle鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(ora_close)?YES:NO;?></div>
<div class="infoe03">Oracle 8 鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(OCILogOff)?YES:NO;?></div>
<div class="infoe03">dBase鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(dbase_close)?YES:NO;?></div>
<div class="infoe03">SyBase鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(sybase_close)?YES:NO;?></div>
<div class="infoe03">DBA鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(dba_close)?YES:NO;?></div>
<div class="infoe03">DBM鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(dbmclose)?YES:NO;?></div>
<div class="infoe03">DBX鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(dbx_close)?YES:NO;?></div>
<div class="infoe03">DB++鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(dbplus_close)?YES:NO;?></div>
<div class="infoe03">FrontBase鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(fbsql_close)?YES:NO;?></div>
<div class="infoe03">FilePro鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(filepro)?YES:NO;?></div>
<div class="infoe03">Informix鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(ifx_close)?YES:NO;?></div>
<div class="infoe03">Lotus Notes鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(notes_version)?YES:NO;?></div>
<div class="infoe03">InterBase鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(ibase_close)?YES:NO;?></div>
<div class="infoe03">ingres鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(ingres_close)?YES:NO;?></div>
<div class="infoe03">Hyperwave鏁版嵁搴撴敮鎸?/div><div class="infoe04"><?php echo function_exists(hw_close)?YES:NO;?></div>
<div class="infoe03">Ovrimos SQL鏁版嵁搴撹繛鎺ユ敮鎸?/div><div class="infoe04"><?php echo function_exists(ovrimos_close)?YES:NO;?></div>
<div class="infoe03">SESAM鏁版嵁搴撹繛鎺ユ敮鎸?/div><div class="infoe04"><?php echo function_exists(sesam_disconnect)?YES:NO;?></div>
<div class="infoe03">SQLite鏁版嵁搴撹繛鎺ユ敮鎸?/div><div class="infoe04"><?php echo function_exists(sqlite_close)?YES:NO;?></div>
<div class="infoe03">Adabas D鏁版嵁搴撹繛鎺ユ敮鎸?/div><div class="infoe04"><?php echo function_exists(ada_close)?YES:NO;?></div>
<div class="infoe03">鐩綍瀛桦彇鍗忚(LDAP)鏀寔</div><div class="infoe04"><?php echo function_exists(ldap_close)?YES:NO;?></div>
<div class="infoe03">Yellow Page绯荤粺鏀寔</div><div class="infoe04"><?php echo function_exists(yp_match)?YES:NO;?></div>
<div class="infoe03">PHP鍜孞AVA缁煎悎鏀寔</div><div class="infoe04"><?php echo function_exists(java_last_exception_get)?YES:NO;?></div>
<div class="infoe03">IMAP鐢靛瓙闾欢绯荤粺鏀寔</div><div class="infoe04"><?php echo function_exists(imap_close)?YES:NO;?></div>
<div class="infoe03">SNMP缃戠粶绠＄悊鍗忚鏀寔</div><div class="infoe04"><?php echo function_exists(snmpget)?YES:NO;?></div>
<div class="infoe03">VMailMgr闾欢澶勭悊鏀寔</div><div class="infoe04"><?php echo function_exists(vm_adduser)?YES:NO;?></div>
<div class="infoe03">PDF鏂囨。鏀寔</div><div class="infoe04"><?php echo function_exists(pdf_close)?YES:NO;?></div>
<div class="infoe03">FDF琛ㄥ崟璧勬枡镙煎纺鏀寔</div><div class="infoe04"><?php echo function_exists(FDF_close)?YES:NO;?></div>
</div>
</div>
<a name="testinfo"></a>
<form method="post" action="<?=PHPSELF."?style=$style&icon=$icon&#testinfo"?>"  id="main_form">
<div class="title">...:::链嶅姟鍣ㄦ€ц兘妫€娴?::...</div>
<div id="testinfo">
<div class="test01">妫€娴嫔璞?/div>
<div class="test02">鏁存暟杩愮畻鑳藉姏娴嬭瘯<br />
(1+1杩愮畻300涓囨)</div>
<div class="test03">娴偣杩愮畻鑳藉姏娴嬭瘯<br />
(寮€骞虫柟300涓囨)</div>
<div class="test04">鏁版嵁I/O鑳藉姏娴嬭瘯<br />
(璇诲彇10K鏂囦欢10000娆?</div>
<div class="test05">Uenu.com  (Xeon(TM) 2.80*2+4G+CentOS 5.2)</div>
<div class="test06">0.068绉?/div>
<div class="test07">0.086绉?/div>
<div class="test08">灏忎簬0.100绉?/div>
<div class="test05">sakura.ad.jp (Xeon(TM) 2.80GHz+2G+FreeBSD 4.0)</div>
<div class="test06">0.501绉?/div>
<div class="test07">0.694绉?/div>
<div class="test08">灏忎簬0.100绉?/div>
<div class="test05">Shvip镄勫姙鍏数鑴?(PD 2.8*2 +2G+FreeBSD 7.0)</div>
<div class="test06">0.425绉?/div>
<div class="test07">0.417 绉?/div>
<div class="test08">灏忎簬0.100绉?/div>
<div class="test05">娴嬭瘯褰揿墠链嶅姟鍣ㄧ殑镐ц兘</div>
<div class="test06"><?=$valInt?></div><div class="test07"><?=$valFloat?></div><div class="test08"><?=$valIo?></div>
<div class="test05"></div>
<div class="test06"><input type="submit" value="TEST_1" class="myButton"  name="act" /></div><div class="test07">
<input type="submit" value="TEST_2" class="myButton"  name="act" /></div><div class="test08"><input type="submit" value="TEST_3" class="myButton"  name="act" /></div>
</div>
<input type="hidden" name="pInt" value="<?=$valInt?>" />
<input type="hidden" name="pFloat" value="<?=$valFloat?>" />
<input type="hidden" name="pIo" value="<?=$valIo?>" />
<?php
$isMysql = (false !== function_exists("mysql_query"))?"":" disabled";
 $isMail = (false !== function_exists("mail"))?"":" disabled";
?>

<div class="title">...:::链嶅姟鍣ㄨ嚜瀹氢箟妫€娴?::...</div>
<div id="checkinfo">
<div class="check00">MYSQL杩炴帴娴嬭瘯</div>
<div id="check01">MYSQL链嶅姟鍣?/div><div id="check02"> <input name="mysqlHost" type="text" id="mysqlHost" value="localhost" /></div><div id="check03">MYSQL鐢ㄦ埛鍚?</div><div id="check04"><input name="mysqlUser" type="text" id="mysqlUser" value="" /></div><div id="check05"></div>
<div id="check06">MYSQL鐢ㄦ埛瀵嗙爜 </div><div id="check07"><input type="text" name="mysqlPassword" <?=$isMysql?> /></div><div id="check08">MYSQL鏁版嵁搴揿悕绉?</div><div id="check09"><input type="text" name="mysqlDb" /></div><div id="check10"><input type="submit" class="myButton" value="CONNECT" <?=$isMysql?>  name="act" /></div>
<div class="check00"><?php if("show"==$mysqlReShow){echo $mysqlRe;}?> </div>
<div class="check00">MAIL闾欢鍙戦€佹祴璇?/div>
<div id="check11">鏀朵俊鍦板潃</div>
<div id="check12"><input type="text" name="mailReceiver" size="50" <?=$isMail?> /></div><div id="check13"><input type="submit" class="myButton" value="SENDMAIL" <?=$isMail?>  name="act" /></div>
<div class="check00"><?php if("show"==$mailReShow){echo $mailRe;}?> </div>
<div class="check00">鍑芥暟鏀寔钟跺喌</div>
<div id="check11">鍑芥暟鍚岖О</div>
<div id="check12"><input type="text" name="funName" size="50" /></div><div id="check13"><input type="submit" class="myButton" value="FUNCTION_CHECK" name="act" /></div>
<div class="check00"><?php if("show"==$funReShow){echo $funRe;}?> </div>
<div class="check00">PHP閰岖疆鍙傛暟钟跺喌</div>
<div id="check11">鍙傛暟鍚岖О</div>
<div id="check12"><input type="text" name="opName" size="40" /></div><div id="check13"><input type="submit" class="myButton" value="CONFIGURATION_CHECK" name="act" /></div>
<div class="check00"><?php if("show"==$opReShow){echo $opRe;}?> </div>
</div>
</form>
<a name="bottom"></a>
<a name="aboutus"></a>
<div id="aboutinfo">
<div id="declare">浠ヤ笅涓篜HP鎺㈤拡绋嫔簭澹版槑鍙婂叕锻婏细</div>
<div id="gnu"><b>This PHP probe programe is designed based on the new structure Div + Css , the free open source software, powerful, clear structure and easy to use. </b><br />
1. To support Windows, linux, Unix, FreeBSD, Sun Solar System.<br />
2. Support for IE6, IE7, Firefox, Google chrome, and other browsers. <br /><br />

<b>The main use and application of the object: </b><br />
1. Be familiar with the PHP programming of amateur and professional developers. <br />
2. The managers to configure Linux (Windows) + PHP + mySQL + Zend system environment, be sure of the successful detection system configuration. <br />
3. For the company's customers to buy Virtual host using testing server performance.<br /><br /><b>链▼搴忓熀浜嶥iv+Css 鏂板瀷鏋舵瀯PHP鎺㈤拡锛屽厤璐瑰紑婧愮殑镊敱杞欢锛屽姛鑳藉己澶э紝缁撴瀯娓呮榈锛屼娇鐢ㄦ柟渚裤€?/b><br />
1.鏀寔Windows锛宭inux,Unix,FreeBSD,Sun Solar绯荤粺<br />
2.鏀寔IE6锛孖E7锛孎irefox,Google chrome绛夋祻瑙埚櫒銆?br />

  <br />

<b>涓昏鐢ㄩ€斿强阃傜敤瀵硅薄锛?/b><br />
1.镡熸倝PHP缂栫▼镄勪笟浣欑埍濂借€呭强涓扑笟寮€鍙戜汉锻朴€?br />
2.链烘埧绠＄悊浜哄憳閰岖疆Linux锛圵indows锛?PHP+mySQL+Zend绯荤粺鐜锛屾娴嬬郴缁熸槸鍚﹂厤缃垚锷熴€?br />
3.瀵逛簬璐拱铏氭嫙涓绘満镄勭敤鎴凤紝鐢ㄤ簬娴嬭瘯链嶅姟鍣ㄦ€ц兘銆?br /></div>
<div id="top"><a href="<?=PHPSELF."?style=$style&icon=$icon&#top"?>" title="杩斿洖椤堕儴">椤堕儴鈫?/a></div>
<div id="hr"> <hr color="#999999" size="1" /></div>
<div id="about">
  <div id="us">绋嫔簭璁捐锛?<a href="mailto:tianhuimin@tongji.edu.cn" title=鍙戦€侀偖浠?鐢版収姘?/a>&nbsp;&nbsp;<a href="http://www.uenu.com" title=璁块棶链珯 target=_blank>Shvip</a> <br> 
鎶€链敮鎸侊细 <a href="http://tool.uenu.com" title=璁块棶链珯 target=_blank>tool.uenu.com</a><br> 
钬诲熀浜嶥iv+Css 鏋舵瀯PHP鎺㈤拡 Ver 2.08.12
</div>
</div>
</div>
<!--total 缁撴潫-->
</div>
</body>
</html>
<?php

/*=============================================================
    鍑芥暟搴?
=============================================================*/
/*-------------------------------------------------------------------------------------------------------------
    妫€娴嫔嚱鏁版敮鎸?
--------------------------------------------------------------------------------------------------------------*/
    function isfun($funName)
    {
        return (false !== function_exists($funName))?YES:NO;
    }
/*-------------------------------------------------------------------------------------------------------------
    妫€娴婸HP璁剧疆鍙傛暟
--------------------------------------------------------------------------------------------------------------*/
    function getcon($varName)
    {
        switch($res = get_cfg_var($varName))
        {
            case 0:
            return NO;
            break;
            case 1:
            return YES;
            break;
            default:
            return $res;
            break;
        }
         
    }
/*-------------------------------------------------------------------------------------------------------------
    鏁存暟杩愮畻鑳藉姏娴嬭瘯
--------------------------------------------------------------------------------------------------------------*/
    function test_int()
    {
        $timeStart = gettimeofday();
        for($i = 0; $i <= 3000000; $i++);
        {
            $t = 1+1;
        }
        $timeEnd = gettimeofday();
        $time = ($timeEnd["usec"]-$timeStart["usec"])/1000000+$timeEnd["sec"]-$timeStart["sec"];
        $time = round($time, 6)."绉?;
        return $time;
    }
/*-------------------------------------------------------------------------------------------------------------
    娴偣杩愮畻鑳藉姏娴嬭瘯
--------------------------------------------------------------------------------------------------------------*/
    function test_float()
    {
        $t = pi();
        $timeStart = gettimeofday();
        for($i = 0; $i < 3000000; $i++);
        {
            sqrt($t);
        }
        $timeEnd = gettimeofday();
        $time = ($timeEnd["usec"]-$timeStart["usec"])/1000000+$timeEnd["sec"]-$timeStart["sec"];
        $time = round($time, 6)."绉?;
        return $time;
    }
/*-------------------------------------------------------------------------------------------------------------
    鏁版嵁IO鑳藉姏娴嬭瘯
--------------------------------------------------------------------------------------------------------------*/
    function test_io()
    {
        $fp = fopen(PHPSELF, "r");
        $timeStart = gettimeofday();
        for($i = 0; $i < 10000; $i++)
        {
            fread($fp, 10240);
            rewind($fp);
        }
        $timeEnd = gettimeofday();
        fclose($fp);
        $time = ($timeEnd["usec"]-$timeStart["usec"])/1000000+$timeEnd["sec"]-$timeStart["sec"];
        $time = round($time, 6)."绉?;
        return($time);
    }
/*-------------------------------------------------------------------------------------------------------------
    姣斾緥鏉?
--------------------------------------------------------------------------------------------------------------*/
    function bar($percent)
    {
    echo '<br/><ul class="bar">
	<li style="width:';
	echo $percent."%\">";
    echo '&nbsp;</li>
    </ul>';
}
/*-------------------------------------------------------------------------------------------------------------
    绯荤粺鍙傛暟鎺㈡祴 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]+/", $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);
        if (false !== is_array($model[1]))
            {
            $res['cpu']['num'] = sizeof($model[1]);
            for($i = 0; $i < $res['cpu']['num']; $i++)
            {
                $res['cpu']['detail'][] = "绫诲瀷锛?.$model[1][$i]." 缂揿瓨锛?.$cache[1][$i];
            }
            if (false !== is_array($res['cpu']['detail'])) $res['cpu']['detail'] = implode("<br />", $res['cpu']['detail']);
            }
         
        // 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\.]+).+?SwapTotal\s{0,}\:+\s{0,}([\d\.]+).+?SwapFree\s{0,}\:+\s{0,}([\d\.]+)/s", $str, $buf);
         
        $res['memTotal'] = round($buf[1][0]/1024, 2);
        $res['memFree'] = round($buf[2][0]/1024, 2);
        $res['memUsed'] = ($res['memTotal']-$res['memFree']);
        $res['memPercent'] = (floatval($res['memTotal'])!=0)?round($res['memUsed']/$res['memTotal']*100,2):0;
         
        $res['swapTotal'] = round($buf[3][0]/1024, 2);
        $res['swapFree'] = round($buf[4][0]/1024, 2);
        $res['swapUsed'] = ($res['swapTotal']-$res['swapFree']);
        $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, 3);
        $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']['detail'] = get_key("hw.model");
         
        //LOAD AVG
        if (false === ($res['loadAvg'] = get_key("vm.loadavg"))) return false;
        $res['loadAvg'] = str_replace("{", "", $res['loadAvg']);
        $res['loadAvg'] = str_replace("}", "", $res['loadAvg']);
         
        //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);
        $buf = explode("\n", do_command("vmstat", ""));
        $buf = explode(" ", trim($buf[2]));
         
        $res['memFree'] = round($buf[5]/1024, 2);
        $res['memUsed'] = ($res['memTotal']-$res['memFree']);
        $res['memPercent'] = (floatval($res['memTotal'])!=0)?round($res['memUsed']/$res['memTotal']*100,2):0;
		         
        $buf = explode("\n", do_command("swapinfo", "-k"));
        $buf = $buf[1];
        preg_match_all("/([0-9]+)\s+([0-9]+)\s+([0-9]+)/", $buf, $bufArr);
        $res['swapTotal'] = round($bufArr[1][0]/1024, 2);
        $res['swapUsed'] = round($bufArr[2][0]/1024, 2);
        $res['swapFree'] = round($bufArr[3][0]/1024, 2);
        $res['swapPercent'] = (floatval($res['swapTotal'])!=0)?round($res['swapUsed']/$res['swapTotal']*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()
	{
	//$phpos=PHP_OS;
	$sysInfo['uptime'] ="瀵逛笉璧稺indows绯荤粺涓嶆敮鎸?;
	
	}
	
?>
