<?php
//检测PHP设置参数

function show($varName)
{

	switch($result = get_cfg_var($varName))
	{

		case 0:

			return '<font color="red">×</font>';

		break;
		

		case 1:

			return '<font color=#0076AE>√</font>';

		break;
		

		default:

			return $result;

		break;

	}

}
//检测Mysql
function MyDB(){

    $getmysqlver=@mysql_get_server_info();
     if(empty($getmysqlver))
     {
      $getmysqlver='检测失败!';
     }
     $MysqlALL=explode(".",$getmysqlver);
     if($MysqlALL[0] < 5){
	return '<font color="red">×</font>';
     }else{
	return '<font color=#0076AE>√</font>';
     }

}
function isfun($funName = '')
{

    if (!$funName || trim($funName) == '' || preg_match('~[^a-z0-9\_]+~i', $funName, $tmp)) return '错误';

	return (false !== function_exists($funName)) ? '<font color=#0076AE>√</font>' : '<font color="red">×</font>';
}

?>
<!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=gb2312" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>首页</title>
<link href="/static/admincp/images/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">function $(obj) {return document.getElementById(obj);}</script>
</head>
<body>
<div class="container"><script type="text/javascript">parent.document.title = '爱青檬CMS V4.0 管理中心 - 首页';if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='首页';</script><div class="itemtitle"><h3>爱青檬CMS V4.0 管理中心</h3></div>



<table class="tb tb2 fixpadding">
<tr><th colspan="15" class="partition">系统信息</th></tr>
<tr><td class="vtop td24 lineheight">程序版本</td><td class="lineheight smallfont">爱青檬CMS V4.0  简体中文 GBK 版本</td></tr>
<tr><td class="vtop td24 lineheight">服务器IP地址</td><td class="lineheight smallfont">IP地址：<?php echo $_SERVER['SERVER_NAME'];?>(<?php if('/'==DIRECTORY_SEPARATOR){echo $_SERVER['SERVER_ADDR'];}else{echo @gethostbyname($_SERVER['SERVER_NAME']);} ?>)</td></tr>
<tr><td class="vtop td24 lineheight">服务器/PHP(=>5.0)</td><td class="lineheight smallfont"><?php $os = explode(" ", php_uname()); echo $os[0];?> / <?php $PHPALL=explode(".",PHP_VERSION); if($PHPALL[1] < 1 && $PHPALL[1] < 2){ echo '<font color=red>×</font>';}else{ echo '<font color=#0076AE>√</font>';}?>&nbsp;&nbsp;(<?php echo PHP_VERSION;?>)</td></tr>
<tr><td class="vtop td24 lineheight">服务器解译引擎</td><td class="lineheight smallfont"><?php echo $_SERVER['SERVER_SOFTWARE'];?></td></tr>
<tr><td class="vtop td24 lineheight">MySQL(=>5.0)</td><td class="lineheight smallfont"><?php echo MyDB(); ?>&nbsp;&nbsp;(<?php echo mysql_get_server_info(); ?>)</td></tr>
<tr><td class="vtop td24 lineheight">绝对路径</td><td class="lineheight smallfont"><?php echo $_SERVER['DOCUMENT_ROOT']?str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']):str_replace('\\','/',dirname(__FILE__));?></td></tr>
<tr><td class="vtop td24 lineheight">附件上传</td><td class="lineheight smallfont"><?php echo show("upload_max_filesize");?></td></tr>
<tr><td class="vtop td24 lineheight">补丁升级提示</td><td class="lineheight smallfont"><script src=http://www.27meng.com/attachment/js/2015072015072062377.js></script></td></tr>
<tr><td class="vtop td24 lineheight">SMTP支持</td><td class="lineheight smallfont"><?php echo get_cfg_var("SMTP")?'<font color=#0076AE>√</font>&nbsp;&nbsp;('.get_cfg_var("SMTP").')' : '<font color="red">×</font>';?></td></tr>
<tr><td class="vtop td24 lineheight">POST提交最大限制</td><td class="lineheight smallfont"><?php echo show("post_max_size");?></td></tr>
</table>
<table class="tb tb2 fixpadding">
<tr><th colspan="15" class="partition">开发团队</th></tr>
<tr><td class="vtop td24 lineheight">版权所有</td><td><span class="bold"><a href="http://www.iqmeng.tk" class="lightlink2" target="_blank">爱青檬工作室 | 程式舞曲系统</a></span></td></tr>
<tr><td class="vtop td24 lineheight">团队成员</td><td class="lineheight smallfont team"><a href="http://wpa.qq.com/msgrd?v=3&uin=756590577&site=爱青檬管理员&menu=yes" target="_blank" class="lightlink2 smallfont">小白、程氏</a></td></tr>
<tr><td class="vtop td24 lineheight">授权版本</td><td class="lineheight"><a href="###"class="lightlink2 smallfont"><script src=http://www.27meng.com/attachment/js/2015120217320842190.js></script></a></td></tr>
<tr><td class="vtop td24 lineheight">运营邮箱</td><td class="lineheight"><a href="http://www.27meng@foxmail.com" class="lightlink2 smallfont">www.27meng@foxmail.com</a></td></tr>
<tr><td class="vtop td24 lineheight">旗下域名</td><td class="lineheight"><a href="http://www.27meng.com" class="lightlink2" target="_blank">www.27meng.com</a>, <a href="http://www.iqmeng.tk" class="lightlink2" target="_blank">www.iqmeng.tk</a>, <a href="http://www.27-m.com" class="lightlink2" target="_blank">www.27-m.com</a></td></tr>
</table>
</div>
</body>
</html>