main.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../class/connect.php");
  4. require("../class/db_sql.php");
  5. require("../class/functions.php");
  6. require("../member/class/user.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=(int)$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=(int)$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. //我的状态
  19. $user_r=$empire->fetch1("select pretime,preip,loginnum,preipport from {$dbtbpre}enewsuser where userid='$logininid'");
  20. $gr=$empire->fetch1("select groupname from {$dbtbpre}enewsgroup where groupid='$loginlevel'");
  21. //管理员统计
  22. $adminnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsuser");
  23. $date=date("Y-m-d");
  24. $noplnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewspl_".$public_r['pldeftb']." where checked=1");
  25. //未审核会员
  26. $nomembernum=$empire->gettotal("select count(*) as total from ".eReturnMemberTable()." where ".egetmf('checked')."=0");
  27. //过期广告
  28. $outtimeadnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsad where endtime<'$date' and endtime<>'0000-00-00'");
  29. //签发信息
  30. $qfinfonum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewswfinfo where checktno=0 and (groupid like '%,".$lur['groupid'].",%' or userclass like '%,".$lur['classid'].",%' or username like '%,".$lur['username'].",%')");
  31. //系统信息
  32. if(function_exists('ini_get')){
  33. $onoff = ini_get('register_globals');
  34. } else {
  35. $onoff = get_cfg_var('register_globals');
  36. }
  37. if($onoff){
  38. $onoff="打开";
  39. }else{
  40. $onoff="关闭";
  41. }
  42. if(function_exists('ini_get')){
  43. $upload = ini_get('file_uploads');
  44. } else {
  45. $upload = get_cfg_var('file_uploads');
  46. }
  47. if ($upload){
  48. $upload="可以";
  49. }else{
  50. $upload="不可以";
  51. }
  52. if(function_exists('ini_get')){
  53. $uploadsize = ini_get('upload_max_filesize');
  54. } else {
  55. $uploadsize = get_cfg_var('upload_max_filesize');
  56. }
  57. if(function_exists('ini_get')){
  58. $uploadpostsize = ini_get('post_max_size');
  59. } else {
  60. $uploadpostsize = get_cfg_var('post_max_size');
  61. }
  62. //开启
  63. $register_ok="开启";
  64. if($public_r[register_ok])
  65. {$register_ok="关闭";}
  66. $addnews_ok="开启";
  67. if($public_r[addnews_ok])
  68. {$addnews_ok="关闭";}
  69. //版本
  70. @include("../class/EmpireCMS_version.php");
  71. ?>
  72. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  73. <html>
  74. <head>
  75. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  76. <title>帝国网站管理系统</title>
  77. <link href="adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  78. </head>
  79. <body>
  80. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  81. <?php
  82. $filename = '../../e/install/';
  83. if (file_exists($filename)) {
  84. echo "<h3><div align='center'><font color='#FF0000'>存在安全风险!请将 $filename 文件夹删除或改名!</font></div></h3>";
  85. } else {
  86. echo "<h3><div align='center'><font color='#FF0000'> (☆_☆)文件夹 $filename 以删除或改名 (☆_☆)</font></div></h3>";
  87. }
  88. ?>
  89. <h3><div align='center'><font color='#FF0000'>安装完后及时修改后台默认登录目录及初始密码</font></div></h3>
  90. <tr>
  91. <td><div align="center"><strong>
  92. <h3>欢迎使用帝国网站管理系统 (EmpireCMS)</h3>
  93. </strong></div></td>
  94. </tr>
  95. <tr>
  96. <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  97. <tr class="header">
  98. <td height="25">我的状态</td>
  99. </tr>
  100. <tr>
  101. <td height="25" bgcolor="#FFFFFF"> <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
  102. <tr>
  103. <td height="22">登录者:&nbsp;<b>
  104. <?=$loginin?>
  105. </b>&nbsp;&nbsp;,所属用户组:&nbsp;<b>
  106. <?=$gr[groupname]?>
  107. </b></td>
  108. </tr>
  109. <tr>
  110. <td height="22">这是您第 <b>
  111. <?=$user_r[loginnum]?>
  112. </b> 次登录,上次登录时间:
  113. <?=$user_r[pretime]?date('Y-m-d H:i:s',$user_r[pretime]):'---'?>
  114. ,登录IP:
  115. <?=$user_r[preip]?$user_r[preip].':'.$user_r[preipport]:'---'?> </td>
  116. </tr>
  117. </table> </td>
  118. </tr>
  119. </table></td>
  120. </tr>
  121. <tr>
  122. <td>&nbsp;</td>
  123. </tr>
  124. <tr>
  125. <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  126. <tr class="header">
  127. <td width="100%" height="25">
  128. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  129. <tr>
  130. <td width="50%"><strong><a href="#ecms">快捷菜单</a></strong></td>
  131. <td><div align="right"><a href="http://www.phome.net/edown25/" target="_blank"><strong>帝国下载系统</strong></a></div></td>
  132. </tr>
  133. </table></td>
  134. </tr>
  135. <tr>
  136. <td height="25" bgcolor="#FFFFFF"><strong>信息操作</strong>:&nbsp;&nbsp;<a href="AddInfoChClass.php<?=$ecms_hashur['whehref']?>">增加信息</a>&nbsp;&nbsp;
  137. <a href="ListAllInfo.php<?=$ecms_hashur['whehref']?>">管理信息</a>&nbsp;&nbsp; <a href="ListAllInfo.php?ecmscheck=1<?=$ecms_hashur['ehref']?>">审核信息</a>
  138. &nbsp;&nbsp; <a href="workflow/ListWfInfo.php<?=$ecms_hashur['whehref']?>">签发信息</a>(<strong><font color="#FF0000"><?=$qfinfonum?></font></strong>)&nbsp;&nbsp; <a href="openpage/AdminPage.php?leftfile=<?=urlencode('../pl/PlNav.php'.$ecms_hashur['whehref'])?>&mainfile=<?=urlencode('../pl/PlMain.php'.$ecms_hashur['whehref'])?>&title=<?=urlencode('管理评论')?><?=$ecms_hashur['ehref']?>">管理评论</a>&nbsp;&nbsp; <a href="sp/UpdateSp.php<?=$ecms_hashur['whehref']?>">更新碎片</a>&nbsp;&nbsp; <a href="special/UpdateZt.php<?=$ecms_hashur['whehref']?>">更新专题</a>&nbsp;&nbsp; <a href="info/InfoMain.php<?=$ecms_hashur['whehref']?>">数据统计</a></td>
  139. </tr>
  140. <tr>
  141. <td height="25" bgcolor="#FFFFFF"><strong>栏目操作</strong>:&nbsp;&nbsp;<a href="ListClass.php<?=$ecms_hashur['whehref']?>">管理栏目</a>&nbsp;&nbsp;
  142. <a href="special/ListZt.php<?=$ecms_hashur['whehref']?>">管理专题</a>&nbsp;&nbsp; <a href="ListInfoClass.php<?=$ecms_hashur['whehref']?>">管理采集</a>
  143. &nbsp;&nbsp; <a href="openpage/AdminPage.php?leftfile=<?=urlencode('../file/FileNav.php'.$ecms_hashur['whehref'])?>&title=<?=urlencode('管理附件')?><?=$ecms_hashur['ehref']?>">附件管理</a>&nbsp;&nbsp;
  144. <a href="SetEnews.php<?=$ecms_hashur['whehref']?>">系统参数设置</a>&nbsp;&nbsp; <a href="ReHtml/ChangeData.php<?=$ecms_hashur['whehref']?>">数据更新中心</a></td>
  145. </tr>
  146. <tr>
  147. <td height="25" bgcolor="#FFFFFF"><strong>用户操作</strong>:&nbsp;&nbsp;<a href="member/ListMember.php?sear=1&schecked=1<?=$ecms_hashur['ehref']?>">审核会员</a>&nbsp;&nbsp;
  148. <a href="member/ListMember.php<?=$ecms_hashur['whehref']?>">管理会员</a> &nbsp; <a href="user/ListLog.php<?=$ecms_hashur['whehref']?>">管理登陆日志</a>
  149. &nbsp;&nbsp; <a href="user/ListDolog.php<?=$ecms_hashur['whehref']?>">管理操作日志</a>&nbsp;&nbsp; <a href="user/EditPassword.php<?=$ecms_hashur['whehref']?>">修改个人资料</a>&nbsp;&nbsp;
  150. <a href="user/UserTotal.php<?=$ecms_hashur['whehref']?>">用户发布统计</a></td>
  151. </tr>
  152. <tr>
  153. <td height="25" bgcolor="#FFFFFF"><strong>反馈管理</strong>:&nbsp;&nbsp;<a href="tool/gbook.php<?=$ecms_hashur['whehref']?>">管理留言</a>&nbsp;&nbsp;
  154. <a href="tool/feedback.php<?=$ecms_hashur['whehref']?>">管理反馈信息</a>&nbsp;&nbsp;<a href="DownSys/ListError.php<?=$ecms_hashur['whehref']?>">管理错误报告</a>&nbsp;&nbsp;
  155. <a href="#empirecms" onClick="window.open('openpage/AdminPage.php?leftfile=<?=urlencode('../ShopSys/pageleft.php'.$ecms_hashur['whehref'])?>&mainfile=<?=urlencode('../ShopSys/ListDd.php'.$ecms_hashur['whehref'])?>&title=<?=urlencode('商城系统管理')?><?=$ecms_hashur['ehref']?>','AdminShopSys','');">管理订单</a>&nbsp;&nbsp;<a href="pay/ListPayRecord.php<?=$ecms_hashur['whehref']?>">管理支付记录</a>&nbsp;&nbsp;
  156. <a href="PathLevel.php<?=$ecms_hashur['whehref']?>">查看目录权限状态</a></td>
  157. </tr>
  158. </table></td>
  159. </tr>
  160. <tr>
  161. <td height="102">
  162. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  163. <tr>
  164. <td bgcolor="#FFFFFF"><div align="center"><img src="loginimg/ecmsbanner.gif" border="0"></div></td>
  165. </tr>
  166. </table> </td>
  167. </tr>
  168. <tr>
  169. <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  170. <tr class="header">
  171. <td height="25" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  172. <tr>
  173. <td width="50%"><a href="#"><strong>系统信息</strong></a></td>
  174. <td><div align="right"><a href="http://ebak.phome.net" target="_blank"><strong>帝国MYSQL备份王下载</strong></a></div></td>
  175. </tr>
  176. </table></td>
  177. </tr>
  178. <tr>
  179. <td width="43%"><strong>网站信息</strong></td>
  180. <td width="57%"><strong>服务器信息</strong></td>
  181. </tr>
  182. <tr>
  183. <td valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="3">
  184. <tr>
  185. <td width="28%" height="23">会员注册:</td>
  186. <td width="72%">
  187. <?=$register_ok?> </td>
  188. </tr>
  189. <tr>
  190. <td height="23">会员投稿:</td>
  191. <td>
  192. <?=$addnews_ok?> </td>
  193. </tr>
  194. <tr>
  195. <td height="23">管理员个数:</td>
  196. <td><a href="user/ListUser.php<?=$ecms_hashur['whehref']?>"><?=$adminnum?></a> 人</td>
  197. </tr>
  198. <tr>
  199. <td height="23">未审核评论:</td>
  200. <td><a href="openpage/AdminPage.php?leftfile=<?=urlencode('../pl/PlNav.php'.$ecms_hashur['whehref'])?>&mainfile=<?=urlencode('../pl/ListAllPl.php?checked=2'.$ecms_hashur['ehref'])?>&title=<?=urlencode('管理评论')?><?=$ecms_hashur['ehref']?>"><?=$noplnum?></a> 条</td>
  201. </tr>
  202. <tr>
  203. <td height="23">未审核会员:</td>
  204. <td><a href="member/ListMember.php?sear=1&schecked=1<?=$ecms_hashur['ehref']?>"><?=$nomembernum?></a> 人</td>
  205. </tr>
  206. <tr>
  207. <td height="23">过期广告:</td>
  208. <td><a href="tool/ListAd.php?time=1<?=$ecms_hashur['ehref']?>"><?=$outtimeadnum?></a> 个</td>
  209. </tr>
  210. <tr>
  211. <td height="23">登陆者IP:</td>
  212. <td><? echo egetip();?></td>
  213. </tr>
  214. <tr>
  215. <td height="23">程序版本:</td>
  216. <td> <a href="http://www.phome.net" target="_blank"><strong>EmpireCMS
  217. v<?=EmpireCMS_VERSION?> Free</strong></a> <font color="#666666">(<?=EmpireCMS_LASTTIME?>)</font></td>
  218. </tr>
  219. <tr>
  220. <td height="23">程序编码:</td>
  221. <td><?=EmpireCMS_CHARVER?></td>
  222. </tr>
  223. </table></td>
  224. <td valign="top" bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="1" cellpadding="3">
  225. <tr>
  226. <td width="25%" height="23">服务器软件:</td>
  227. <td width="75%">
  228. <?=$_SERVER['SERVER_SOFTWARE']?> </td>
  229. </tr>
  230. <tr>
  231. <td height="23">操作系统:</td>
  232. <td><? echo defined('PHP_OS')?PHP_OS:'未知';?></td>
  233. </tr>
  234. <tr>
  235. <td height="23">PHP版本:</td>
  236. <td><? echo @phpversion();?></td>
  237. </tr>
  238. <tr>
  239. <td height="23">MYSQL版本:</td>
  240. <td><? echo do_eGetDBVer(0);?></td>
  241. </tr>
  242. <tr>
  243. <td height="23">全局变量:</td>
  244. <td>
  245. <?=$onoff?>
  246. <font color="#666666">(建议关闭)</font></td>
  247. </tr>
  248. <tr>
  249. <td height="23">魔术引用:</td>
  250. <td>
  251. <?=MAGIC_QUOTES_GPC?'开启':'关闭'?>
  252. <font color="#666666">(建议开启)</font></td>
  253. </tr>
  254. <tr>
  255. <td height="23">上传文件:</td>
  256. <td>
  257. <?=$upload?>
  258. <font color="#666666">(最大文件:<?=$uploadsize?>,表单:<?=$uploadpostsize?>)</font> </td>
  259. </tr>
  260. <tr>
  261. <td height="23">当前时间:</td>
  262. <td><? echo date("Y-m-d H:i:s");?></td>
  263. </tr>
  264. <tr>
  265. <td height="23">使用域名:</td>
  266. <td>
  267. <?=$_SERVER['HTTP_HOST']?> </td>
  268. </tr>
  269. </table></td>
  270. </tr>
  271. </table></td>
  272. </tr>
  273. <tr>
  274. <td>&nbsp;</td>
  275. </tr>
  276. <tr>
  277. <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  278. <tr class="header">
  279. <td height="25" colspan="2">官方信息</td>
  280. </tr>
  281. <tr>
  282. <td width="43%" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1">
  283. <tr bgcolor="#FFFFFF">
  284. <td width="28%" height="25">帝国官方主页</td>
  285. <td width="72%" height="25"><a href="http://www.phome.net" target="_blank">http://www.phome.net</a></td>
  286. </tr>
  287. <tr bgcolor="#FFFFFF">
  288. <td height="25">帝国官方论坛</td>
  289. <td height="25"><a href="http://bbs.phome.net" target="_blank">http://bbs.phome.net</a></td>
  290. </tr>
  291. <tr bgcolor="#FFFFFF">
  292. <td height="25">帝国产品中心</td>
  293. <td height="25"><a href="http://www.phome.net/product/" target="_blank">http://www.phome.net/product/</a></td>
  294. </tr>
  295. <tr bgcolor="#FFFFFF">
  296. <td height="25">公司网站</td>
  297. <td height="25"><a href="http://www.digod.com" target="_blank">http://www.digod.com</a></td>
  298. </tr>
  299. </table></td>
  300. <td width="57%" height="125" valign="top" bgcolor="#FFFFFF"><IFRAME frameBorder="0" name="getinfo" scrolling="no" src="ginfo.php<?=$ecms_hashur['whehref']?>" style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:100%;Z-INDEX:2"></IFRAME></td>
  301. </tr>
  302. </table></td>
  303. </tr>
  304. <tr>
  305. <td>&nbsp;</td>
  306. </tr>
  307. <tr>
  308. <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  309. <tr class="header">
  310. <td height="25">EmpireCMS 开发团队</td>
  311. </tr>
  312. <tr>
  313. <td bgcolor="#FFFFFF"><table width="80%" border="0" cellpadding="3" cellspacing="1">
  314. <tr bgcolor="#FFFFFF">
  315. <td width="15%" height="25">版权所有</td>
  316. <td width="85%"><a href="http://www.digod.com" target="_blank">漳州市芗城帝兴软件开发有限公司</a></td>
  317. </tr>
  318. <tr bgcolor="#FFFFFF">
  319. <td height="25">开发与支持团队</td>
  320. <td>wm_chief、amt、帝兴、小游、zeedy</td>
  321. </tr>
  322. <tr bgcolor="#FFFFFF">
  323. <td height="25">特别感谢</td>
  324. <td>禾火木风、yingnt、hicode、sooden、老鬼、小林、天浪歌、TryLife、5starsgeneral</td>
  325. </tr>
  326. </table></td>
  327. </tr>
  328. </table></td>
  329. </tr>
  330. <tr>
  331. <td>&nbsp;</td>
  332. </tr>
  333. </table>
  334. </body>
  335. </html>
  336. <?php
  337. db_close();
  338. $empire=null;
  339. ?>