<?php
require("../class/connect.php");
include("../class/db_sql.php");
include("../class/config.php");
include("../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
is_login($logininid,$loginin,$loginrnd);
//我的状态
$gr=$empire->fetch1("select groupname from {$dbtbpre}enewsgroup where groupid='$loginlevel'");
//管理员统计
$adminnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsuser");
$date=date("Y-m-d");
$noplnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewspl where checked=1");
//系统信息
if (function_exists('ini_get')){
        $onoff = ini_get('register_globals');
    } else {
        $onoff = get_cfg_var('register_globals');
    }
    if ($onoff){
        $onoff="打开";
    }else{
        $onoff="关闭";
    }
    if (function_exists('ini_get')){
        $upload = ini_get('file_uploads');
    } else {
        $upload = get_cfg_var('file_uploads');
    }
    if ($upload){
        $upload="可以";
    }else{
        $upload="不可以";
    }
//开启
$register_ok="开启";
if($public_r[register_ok])
{$register_ok="关闭";}
$addnews_ok="开启";
if($public_r[addnews_ok])
{$addnews_ok="关闭";}
db_close();
$empire=null;
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>帝国网站管理系统</title>
<link href="adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr> 
    <td><div align="center"><strong> 
        <h3>欢迎使用帝国网站管理系统(Empire CMS)</h3>
        </strong></div></td>
  </tr>
  <tr> 
    <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25">我的状态</td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
              <tr bgcolor="#FFFFFF"> 
                <td width="50%" height="25"><div align="left">登陆者:&nbsp;<b>
                    <?=$loginin?>
                    </b></div></td>
                <td height="25">所属用户组:&nbsp;<b>
                  <?=$gr[groupname]?>
                  </b></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25">快捷菜单</td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="1" cellpadding="3">
              <tr> 
                <td height="25"><div align="center"><a href="SetEnews.php">参数设置</a></div></td>
                <td height="25" bgcolor="#DBEAF5"> <div align="center"><a href="file/ListFile.php?type=9">附件管理</a></div></td>
                <td height="25"><div align="center"><a href="../../" target="_blank">预览首页</a></div></td>
              </tr>
              <tr> 
                <td height="25" bgcolor="#DBEAF5"> <div align="center"><a href="ListClass.php">管理栏目</a></div></td>
                <td height="25" bgcolor="#DBEAF5"> <div align="center"><a href="ListZt.php">管理专题</a></div></td>
                <td height="25" bgcolor="#DBEAF5"> <div align="center"><a href="left.php?enews=other" target="left">审核信息</a></div></td>
              </tr>
              <tr> 
                <td height="25"><div align="center"><a href="member/ListMember.php">管理会员</a></div></td>
                <td height="25" bgcolor="#DBEAF5"> <div align="center"><a href="user/ListLog.php">管理日志</a></div></td>
                <td height="25"><div align="center"><a href="PathLevel.php">目录权限状态</a></div></td>
              </tr>
              <tr> 
                <td height="25" bgcolor="#DBEAF5"> <div align="center"><a href="ListInfoClass.php">采集节点</a></div></td>
                <td height="25"> <div align="center"><a href="user/ListGroup.php">用户组管理</a></div></td>
                <td height="25" bgcolor="#DBEAF5"> <div align="center"><a href="member/ListMemberGroup.php">会员组管理</a></div></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25"><a href="phpinfo.php" target="_blank">系统信息</a></td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
              <tr bgcolor="#FFFFFF"> 
                <td width="50%" height="25">服务器软件: 
                  <?=$_SERVER['SERVER_SOFTWARE']?>
                </td>
                <td height="25">操作系统: <? echo defined('PHP_OS')?PHP_OS:'未知';?></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td height="25">PHP版本:<? echo @phpversion();?></td>
                <td height="25">MYSQL版本:<? echo @mysql_get_server_info();?></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td height="25">全局变量: 
                  <?=$onoff?>
                </td>
                <td height="25">上传文件: 
                  <?=$upload?>
                </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td height="25">登陆者IP:<? echo egetip();?></td>
                <td height="25">当前时间:<? echo date("Y-m-d H:i:s");?></td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td height="25">程序版本:<a href="http://www.phome.net" target="_blank"><strong>EmpireCMS</strong></a> 
                  V4.6</td>
                <td height="25">使用域名: 
                  <?=$_SERVER['HTTP_HOST']?>
                </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td width="50%" height="25">会员注册: 
                  <?=$register_ok?>
                </td>
                <td height="25">会员投稿: 
                  <?=$addnews_ok?>
                </td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td height="25">未审核评论：<a href="ListAllPl.php"><?=$noplnum?></a>条</td>
                <td height="25">管理员个数：<a href="user/ListUser.php"><?=$adminnum?></a>人</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
        <tr class="header"> 
          <td height="25">程序其它相关信息</td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
              <tr bgcolor="#FFFFFF"> 
                <td width="50%" height="25">官方主页:<a href="http://www.phome.net" target="_blank">http://www.phome.net</a></td>
                <td height="25">官方论坛:<a href="http://bbs.phome.net" target="_blank">http://bbs.phome.net</a></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
