<!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>
<title>管理首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
<script language="javascript" src="admin/template/js/css.js"></script>
</head>
<body oncontextmenu="return false" ondragstart="return false" onSelectStart="return false">
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="javascript:void(0);" class="on" onclick="$('#main-lang-1').toggle();"><?php echo $lang['MAIN-LANG-1'];?></a></li>			
		</ul>
	</div>
	<div class="main" id="main-lang-1">
	<table width="100%" border="0" cellspacing="1" cellpadding="0" class="mainlist">
		<tr>
			<td width="47%">管理员登录用户名：
			<?php 
				if($_userid==ADMIN_FOUNDERS)
				{
					echo $_username.'['.$lang['ADMIN_FOUNDERS'].']';
				}
				else
				{
					echo $_username.'['.$admin->get_rolename($_roleid).']';
				}
			?> </td>
			<td width="53%">文件上传最大限制： <?php echo min(round(UPLOAD_SIZE/1024),substr(ini_get('post_max_size'),0,-1)*1024);?> KB</td>
		</tr>
		<tr>
			<td>服务器主机( IP )： <?php echo strtolower(substr(PHP_OS,0,3))=='win'?'Windows主机':'*unix主机';?>(<?php echo get_hostip();?>)</td>
			<td>当前站点物理路径： <?php echo str_replace('\\','/',$_SERVER['DOCUMENT_ROOT'].DIRCMS_PATH);?></td>
		</tr>
		<tr>
			<td>是否支持图形处理： <?php echo extension_loaded('gd')&&function_exists('imagecreate')?'支持GD图形处理库':'不支持GD图形处理库';?></td>
			<td>浏览器类型及版本： <?php echo explorer_version();?>  
</td>
		</tr>
		<tr>
			<td>是否支持压缩传输： <?php echo extension_loaded('zlib') && function_exists('ob_gzhandler')?'支持Gzip压缩传输':'不支持Gzip压缩传输';?></td>
			<td>PHP 和 MySQL版本： <?php echo 'PHP：'.PHP_VERSION.' &nbsp;/&nbsp;'.$db->version();?></td>
		</tr>
    </table>
	</div>
	<?php if(file_exists(DIRCMS_ROOT.'install') || DEBUG || ADMIN_FILE=='admin.php'){?>
	<div class="tab">
		<ul>
			<li><a href="javascript:void(0);" class="on" onclick="$('#main-lang-2').toggle();"><?php echo $lang['MAIN-LANG-2'];?></a></li>			
		</ul>
	</div>
	<div class="main" id="main-lang-2">
	<table width="100%" border="0" cellspacing="1" cellpadding="0" class="mainlist">
		  <?php if(file_exists(DIRCMS_ROOT.'install')){?>
          <tr>
            <td colspan="2"><img src="images/error.gif" /> 网站上线后，强烈建议从空间删除安装文件目录 ./install/;</td>
          </tr>
		  <?php }?>
		  <?php if(ADMIN_FILE=='admin.php'){?>
          <tr>
            <td colspan="2"><img src="images/error.gif" /> 强烈建议修改后台默认文件名 admin.php <a href="?file=config&action=config&tab=7"><u>点此修改</u></a>;</td>
          </tr>
		  <?php }?>
		  <?php if(DEBUG){?>
          <tr>
            <td colspan="2"><img src="images/error.gif" /> 网站上线后，强烈建议关闭 DEBUG （打开data/目录下的config.inc.php,修改 define('DEBUG',1); //调试配置 为 define('DEBUG',0); //调试配置 , 保存即可）;</td>
          </tr>
		  <?php }?>
    </table>
	</div>
	<?php }?>
	<div class="tab">
		<ul>
			<li><a href="javascript:void(0);" class="on" onclick="$('#main-lang-3').toggle();"><?php echo $lang['MAIN-LANG-3'];?></a></li>			
		</ul>
	</div>
	<div class="main" id="main-lang-3">
	<table width="100%" border="0" cellspacing="1" cellpadding="0" class="mainlist">
		<tr>
			<td width="14%">版本信息： </td>
			<td width="86%"><span id="copyright" style="color:#FF0000"></span> <?php echo str_replace('-P2-','地方门户系统',DIRCMS_VERSION),' Build ',DIRCMS_RELEASE;?>
			<?php if(!$module->module_disabled('upgrade')){?>
			<script language="javascript">
				eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('l 0(){a($(\'#3\').4()==9||$(\'#3\').4()==\'b...\'){d(\'c，6!\');5 7};8.h(\'k\').2="2";m.o.n=\'?j=0&f=0&e=g&i=1\'}',25,25,'upgrade||disabled|upgrade_notice|html|return|无法完成升级操作|false|document|null|if|loading|您删除了升级验证代码|alert|action|file|setting|getElementById|do_submit|mod|upgradebt|function|window|href|location'.split('|'),0,{}))
			</script>
			&nbsp;<input type="button" onclick="upgrade()" class="upgradebt" id="upgradebt" value="检查更新" />
			<?php }?>
		  </td>
		</tr>
		<tr>
			<td>软件著作登记号：</td>
			<td>2012SR035298</td>
		</tr>
		<tr>
			<td>总 策 划：</td>
			<td>穆红伟</td>
		</tr>
		<tr>
			<td>开发与支持团队：</td>
			<td>吴晓丹 闫朋磊 陈国军 穆红伟 任雅莉 <u>感谢</u>: cnfuxin </td>
		</tr>
		<tr>
			<td>官方网站： </td>
			<td><a href="http://www.dircms.cn/" target="_blank">http://www.dircms.cn/</a> <a href="http://blog.dircms.cn/" target="_blank">黑板报</a> </td>
		</tr>
	</table>
	</div>
</div>
<span id="upgrade_notice" style="display:none">loading...</span>
<!-- 升级验证程序，勿删，否则无法正确升级! -->
<script language="jscript" charset="utf-8" src="http://www.dircms.cn/upgrade/upgrade.php?serial=<?php echo SERIAL_NUMBER;?>&hosturl=<?php echo urlencode($DIRCMS['site_url']);?>&version=<?php echo DIRCMS_VERSION;?>&release=<?php echo DIRCMS_RELEASE;?>"></script>
<!-- 升级验证程序，勿删! -->
</body>
</html>