<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?>
<br>
<table width="95%" border="0" cellspacing="1" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td height="23" align="left" colspan="6" class="tit1"><?=$lang['sys.info131'].$lang['sys.info133']?></td>
</tr>
<tr align="left">
<td height="23" class="forumrow" style="text-align:center;width:15%">
<input type="submit" name="Submit" value="<? echo $lang['sys.info132']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
</td>
<td height="23" class="forumrow" style="LINE-HEIGHT: 140%">
<?=$lang['sys.info134']?>
</td>
</tr>
</table>
<!--µ¼؛½-->
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr align="center">
<td height="25" align="center" <?if($reaction=='server' or $reaction==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>  width="10%"><a href="?reaction=server"><font color="<?if($reaction=='server' or $reaction==''){echo 'red';}else{echo '#000000';}?>"><?=$lang['sys.info23']?></font></a></td>
<td height="25" align="center" <?if($reaction=='phpbasic'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> width="10%"><a href="?reaction=phpbasic"><font color="<?if($reaction=='phpbasic'){echo 'red';}else{echo '#000000';}?>"><?=$lang['sys.info51']?></font></a></td>
<td width="10%" align="center" <?if($reaction=='phpmodule'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>></font><a href="?reaction=phpmodule"><font color="<?if($reaction=='phpmodule'){echo 'red';}else{echo '#000000';}?>"><?=$lang['sys.info69']?></font></a></td>
<td width="10%" align="center" <?if($reaction=='servercap'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>></font><a href="?reaction=servercap"><font color="<?if($reaction=='servercap'){echo 'red';}else{echo '#000000';}?>"><?=$lang['sys.info108']?></font></a></td>
<td width="10%" align="center" <?if($reaction=='custom'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>></font><a href="?reaction=custom"><font color="<?if($reaction=='custom'){echo 'red';}else{echo '#000000';}?>"><?=$lang['sys.info116']?></font></a></td>
</tr>
</table>
<!--µ¼؛½½لتّ-->
<?if($reaction=='server' or $reaction==''){?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
  <tr>
    <td colspan="2" class="tdtit"><?=$lang['sys.info131']?> <?=$lang['sys.info23']?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info24']?></td>
    <td width="70%" height="25"><?echo gmdate("Y{$lang['sys.info105']}m{$lang['sys.info106']}d{$lang['sys.info107']} h:s",time()+getUserTimeZoneOffset()); ?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info25']?></td>
    <td width="70%" height="25"><?echo("<a href=\"http://$_SERVER[SERVER_NAME]\"  title={$lang['sys.info26']} target=_blank>$_SERVER[SERVER_NAME]</a>"); ?>/<? echo getenv(SERVER_ADDR);?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info27']?></td>
    <td width="70%" height="25"><?=$os[0];?>&nbsp;<?=$lang['sys.info28']?><?=$os[2]?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info29']?></td>
    <td width="70%" height="25"><?=$os[1];?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info30']?></td>
    <td width="70%" height="25"><?echo($_SERVER["SERVER_SOFTWARE"]); ?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info31']?></td>
    <td width="70%" height="25"><?echo($_SERVER["SERVER_PORT"]); ?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info32']?></td>
    <td width="70%" height="25"><?echo getenv(HTTP_ACCEPT_LANGUAGE)?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info33']?></td>
    <td width="70%" height="25"><a href="mailto:<?=$_SERVER['SERVER_ADMIN']?>">
					<?=$_SERVER['SERVER_ADMIN']?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info34']?></td>
    <td width="70%" height="25"><?=round((@disk_free_space(".")/(1024*1024)),2)?>M</td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info35']?></td>
    <td width="70%" height="25"><?echo get_cfg_var("max_execution_time")?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info36']?></td>
    <td width="70%" height="25">
	<? 
	if(get_cfg_var(file_uploads)) 
	{
	   $max_size = get_cfg_var(upload_max_filesize);
	   $server_upload_status = "{$lang['sys.info37']} $max_size";
			
	} 
	else {
	   $server_upload_status = "{$lang['sys.info38']}";
	}
	echo $server_upload_status;
	?>
</td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info39']?></td>
    <td width="70%" height="25">
	<?
	if(isset($HTTP_COOKIE_VARS) || isset($_COOKIE)){
		$testcookie="{$lang['sys.info40']}";
	}
	else {
		$testcookie="{$lang['sys.info41']}";
	}
	echo $testcookie;
	?>
</td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info42']?></td>
    <td width="70%" height="25"><?echo getenv("SERVER_PROTOCOL")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info43']?></td>
    <td width="70%" height="25">
<?
	$phpos=PHP_OS;
	if($phpos=="BSD" || $phpos=="FreeBSD" || $phpos=="Linux" ||$phpos=="NetBSD" || $phpos=="OpenBSD" || $phpos=="Darwin"){
		uptime();
	}
	else{
		echo $lang['sys.info129'].$phpos.$lang['sys.info130'];
	}
?>
</td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info44']?></td>
    <td width="70%" height="25"> <?=$lang['sys.info45']?>
					<?=$sysInfo['memTotal']?>
					M, <?=$lang['sys.info46']?>
					<?=$sysInfo['memUsed']?>
					M, <?=$lang['sys.info47']?>
					<?=$sysInfo['memFree']?>
					M, <?=$lang['sys.info48']?>
					<?=$sysInfo['memPercent']?>%
					<br>
					<?=bar($sysInfo['memPercent'])?>
					<?=$lang['sys.info49']?>
					<?=$sysInfo['swapTotal']?>
					M, <?=$lang['sys.info46']?>
					<?=$sysInfo['swapUsed']?>
					M, <?=$lang['sys.info47']?>
					<?=$sysInfo['swapFree']?>
					M, <?=$lang['sys.info48']?>
					<?=$sysInfo['swapPercent']?>%
					<?=bar($sysInfo['swapPercent'])?>
					<br>
					<?=$lang['sys.info104']?>
					</td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info50']?></td>
    <td width="70%" height="25"><?=$_SERVER['PATH_TRANSLATED']?></td>
  </tr>
</table>
<?}elseif($reaction=='phpbasic'){?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
  <tr>
    <td colspan="2" class="tdtit"><?=$lang['sys.info131']?> <?=$lang['sys.info51']?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info52']?></td>
    <td width="70%" height="25"><?=strtoupper(php_sapi_name())?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info53']?></td>
    <td width="70%" height="25"><?=PHP_VERSION?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info54']?></td>
    <td width="70%" height="25"><?=getcon("safe_mode")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info55']?></td>
    <td width="70%" height="25"><?=(get_cfg_var("zend_optimizer.optimization_level")||get_cfg_var("zend_extension_manager.optimizer_ts")||get_cfg_var("zend_extension_ts")) ?YES:NO?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info56']?> allow_url_fopen</td>
    <td width="70%" height="25"><?=getcon("allow_url_fopen")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info57']?> enable_dl</td>
    <td width="70%" height="25"><?=getcon("enable_dl")?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info58']?> display_errors</td>
    <td width="70%" height="25"><?=getcon("display_errors")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info59']?> register_globals</td>
    <td width="70%" height="25"><?=getcon("register_globals")?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info60']?> memory_limit</td>
    <td width="70%" height="25"><?=getcon("memory_limit")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info61']?> post_max_size</td>
    <td width="70%" height="25"><?=getcon("post_max_size")?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info62']?> upload_max_filesize</td>
    <td width="70%" height="25"><?=getcon("upload_max_filesize")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info63']?> max_execution_time</td>
    <td width="70%" height="25"><?=getcon("max_execution_time")?><?=$lang['sys.info64']?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info65']?> magic_quotes_gpc</td>
    <td width="70%" height="25"><?=(1===get_magic_quotes_gpc())?YES:NO?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25"><?=$lang['sys.info66']?> magic_quotes_runtime</td>
    <td width="70%" height="25"><?=(1===get_magic_quotes_runtime())?YES:NO?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info67']?> disable_functions</td>
    <td width="70%" height="25"><?=(""==($disFuns=get_cfg_var("disable_functions")))?"{$lang['sys.info103']}":str_replace(",","<br>",$disFuns)?></td>
  </tr>
  <tr class="forumrow1">
    <td width="30%" height="25">XML Support</td>
    <td width="70%" height="25"> <?xml_support(get_magic_quotes_gpc("XML Support"));?></td>
  </tr>
  <tr class="forumrow">
    <td width="30%" height="25"><?=$lang['sys.info68']?> PHPINFO</td>
    <td width="70%" height="25"><?=(false!==eregi("phpinfo",$disFuns))?NO:"<a href='$phpSelf?act=phpinfo' target='_blank' class='static'>PHPINFO</a>"?></td>
  </tr>
</table>
<?}elseif($reaction=='phpmodule'){?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
  <tr>
    <td colspan="4" class="tdtit"><?=$lang['sys.info131']?> <?=$lang['sys.info69']?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info70']?> ASpell Library</td>
    <td width="30%" height="25"><?=isfun("aspell_check_raw")?></td>
    <td width="20%"><?=$lang['sys.info71']?> BCMath</td>
    <td width="30%"><?=isfun("bcadd")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="20%" height="25"><?=$lang['sys.info72']?> Calendar</td>
    <td width="30%" height="25"><?=isfun("cal_days_in_month")?></td>
    <td width="20%"><?=$lang['sys.info73']?></td>
    <td width="30%"><?=isfun("dba_close")?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info74']?></td>
    <td width="30%" height="25"><?=isfun("dbase_close")?></td>
    <td width="20%"><?=$lang['sys.info75']?></td>
    <td width="30%"><?=isfun("dbmclose")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="20%" height="25"><?=$lang['sys.info76']?></td>
    <td width="30%" height="25"><?=isfun("fdf_get_ap")?></td>
    <td width="20%"><?=$lang['sys.info77']?></td>
    <td width="30%"><?=isfun("filepro_fieldcount")?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info78']?></td>
    <td width="30%" height="25"><?=isfun("hw_close")?></td>
    <td width="20%"><?=$lang['sys.info79']?> GD Library</td>
    <td width="30%"><?=isfun("gd_info")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="20%" height="25"><?=$lang['sys.info80']?></td>
    <td width="30%" height="25"><?=isfun("imap_close")?></td>
    <td width="20%"><?=$lang['sys.info81']?></td>
    <td width="30%"><?=isfun("ifx_close")?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info82']?></td>
    <td width="30%" height="25"><?=isfun("ldap_close")?></td>
    <td width="20%"><?=$lang['sys.info83']?></td>
    <td width="30%"><?=isfun("mcrypt_cbc")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="20%" height="25"><?=$lang['sys.info84']?> MHash</td>
    <td width="30%" height="25"><?=isfun("mhash_count")?></td>
    <td width="20%"><?=$lang['sys.info85']?></td>
    <td width="30%"><?=isfun("msql_close")?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info86']?></td>
    <td width="30%" height="25"><?=isfun("mssql_close")?></td>
    <td width="20%"><?=$lang['sys.info87']?></td>
    <td width="30%"><?=isfun("mysql_close")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="20%" height="25"><?=$lang['sys.info88']?></td>
    <td width="30%" height="25"><?=isfun("sybase_close")?></td>
    <td width="20%"><?=$lang['sys.info89']?></td>
    <td width="30%"><?=isfun("yp_match")?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info90']?></td>
    <td width="30%" height="25"><?=isfun("ora_close")?></td>
    <td width="20%"><?=$lang['sys.info91']?></td>
    <td width="30%"><?=isfun("OCILogOff")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="20%" height="25"><?=$lang['sys.info92']?> PCRE</td>
    <td width="30%" height="25"><?=isfun("preg_match")?></td>
    <td width="20%"><?=$lang['sys.info93']?></td>
    <td width="30%"><?=isfun("pdf_close")?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info94']?></td>
    <td width="30%" height="25"><?=isfun("pg_close")?></td>
    <td width="20%"><?=$lang['sys.info95']?></td>
    <td width="30%"><?=isfun("snmpget")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="20%" height="25"><?=$lang['sys.info96']?></td>
    <td width="30%" height="25"><?=isfun("vm_adduser")?></td>
    <td width="20%"><?=$lang['sys.info97']?></td>
    <td width="30%"><?=isfun("wddx_add_vars")?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info98']?></td>
    <td width="30%" height="25"><?=isfun("gzclose")?></td>
    <td width="20%"><?=$lang['sys.info99']?></td>
    <td width="30%"><?=isfun("xml_set_object")?></td>
  </tr>
  <tr class="forumrow1">
    <td width="20%" height="25">FTP</td>
    <td width="30%" height="25"><?=isfun("ftp_login")?></td>
    <td width="20%"><?=$lang['sys.info100']?></td>
    <td width="30%"><?=isfun("odbc_close")?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info101']?></td>
    <td width="30%" height="25"><?=isfun("session_start")?></td>
    <td width="20%"><?=$lang['sys.info102']?></td>
    <td width="30%"><?=isfun("socket_accept")?></td>
  </tr>
</table>
<?}elseif($reaction=='servercap'){?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
  <form name="form1" method="post" action="">
  <INPUT TYPE="hidden" name="doaction" value="">
  <tr>
    <td colspan="4" class="tdtit"><?=$lang['sys.info131']?> <?=$lang['sys.info108']?></td>
  </tr>
  <tr class="forumrow">
    <td width="20%" height="25"><?=$lang['sys.info109']?></td>
    <td width="26%"><?=$lang['sys.info110']?></td>
    <td width="26%"><?=$lang['sys.info111']?></td>
    <td width="27%"><?=$lang['sys.info112']?></td>
  </tr>
  <tr class="forumrow1">
    <td height="25"><a href="http://www.aspsky.cn" target="_blank"><?=$lang['sys.info113']?></a></td>
    <td>1421 ms</td>
    <td>1358 ms</td>
    <td>177 ms</td>
  </tr>
  <tr class="forumrow">
    <td height="25"><?=$lang['sys.info114']?></td>
    <td height="40"><font color="#ff0000"><?echo $valInt;?></font><br>
	<input type="submit" name="Submit" class="button" onclick="this.form.doaction.value='int'" value="<?=$lang['sys.info115']?>"></td>
    <td height="40"><font color="#ff0000"><?echo $valFloat;?></font><br>
	<input type="submit" class="button" name="Submit" onclick="this.form.doaction.value='flo'"  value="<?=$lang['sys.info115']?>"></td>
    <td height="40"><font color="#ff0000"><?echo $valIo;?></font><br>
	<input type="submit" name="Submit" class="button" value="<?=$lang['sys.info115']?>" onclick="this.form.doaction.value='io'"></td>
  </tr>
  </form>
</table>
<?}elseif($reaction=='custom'){?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableborder">
  <form name="form2" method="post" action="">
  <INPUT TYPE="hidden" name="deaction" value="">
	<tr>
		<td colspan="4" class="tdtit"><?=$lang['sys.info131']?> <?=$lang['sys.info116']?></td>
	</tr>
	<tr class="forumrow">
		<td colspan="4"><b><?=$lang['sys.info117']?></b></td>
	</tr>
	<tr class="forumrow1">
		<td><?=$lang['sys.info118']?></td>
		<td><input type="text" name="mysqlHost" value="localhost" <?=$isMysql?>></td>
		<td> <?=$lang['sys.info119']?> </td>
		<td><input type="text" name="mysqlUser" <?=$isMysql?>></td>
	</tr>
	<tr class="forumrow">
		<td> <?=$lang['sys.info120']?> </td>
		<td><input type="text" name="mysqlPassword" <?=$isMysql?>></td>
		<td> <?=$lang['sys.info121']?> </td>
		<td><input type="text" name="mysqlDb">
			&nbsp;<input type="submit" class="button" class="myButton" value="<?=$lang['sys.info122']?>" <?=$isMysql?> onclick="this.form.deaction.value='demysql'" name="submit"></td>
	</tr>
	<?php if("show"==$mysqlReShow){?>
	<tr class="forumrow1">
		<td colspan="4"><?=$mysqlRe?></td>
	</tr>
	<?}?>
	<tr class="forumrow1">
		<td colspan="4"><b><?=$lang['sys.info123']?></b></td>
	</tr>
	<tr class="forumrow">
		<td><?=$lang['sys.info124']?></td>
		<td colspan="3"><input type="text" name="mailReceiver" size="50" <?=$isMail?>>
			&nbsp;<input type="submit" class="button" class="myButton" value="<?=$lang['sys.info122']?>" <?=$isMail?> onclick="this.form.deaction.value='deemail'" name="submit"></td>
	</tr>
	<?php if("show"==$mailReShow){?>
	<tr class="forumrow1">
		<td colspan="4"><?=$mailRe?></td>
	</tr>
	<?}?>
	<tr class="forumrow1">
		<td colspan="4"><b><?=$lang['sys.info125']?></b></td>
	</tr>
	<tr class="forumrow">
		<td><?=$lang['sys.info126']?></td>
		<td colspan="3"><input type="text" name="funName" size="50">
			&nbsp;<input type="submit" class="button" class="myButton" value="<?=$lang['sys.info122']?>" onclick="this.form.deaction.value='defunc'" name="submit"></td>
		<?php if("show"==$funReShow){?>
	<tr class="forumrow1">
		<td colspan="4"><?=$funRe?></td>
	</tr>
	<?}?>
	</tr>
	<tr class="forumrow1">
		<td colspan="4"><b><?=$lang['sys.info127']?></b></td>
	</tr>
	<tr class="forumrow">
		<td><?=$lang['sys.info128']?></td>
		<td colspan="3"><input type="text" name="opName" size="40">
		&nbsp;<input type="submit" class="button" class="myButton" value="<?=$lang['sys.info122']?>" onclick="this.form.deaction.value='depar'" name="submit"></td>
	</tr>
	<?php if("show"==$opReShow){?>
	<tr class="forumrow">
		<td colspan="4"><?=$opRe?></td>
	</tr>
	<?}?>
</table>
<?}?>