国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

324 lines
15KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>DedeCMS Home</title>
  6. <base target="_self">
  7. <link rel="stylesheet" type="text/css" href="css/base.css" />
  8. <link rel="stylesheet" type="text/css" href="css/indexbody.css" />
  9. <link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" />
  10. <script language="javascript" src="../include/js/dedeajax2.js"></script>
  11. <script type="text/javascript" src="../include/js/jquery/jquery.js" ></script>
  12. <script language="javascript" src="../include/js/jquery/ui.core.js"></script>
  13. <script language="javascript" src="../include/js/jquery/ui.draggable.js"></script>
  14. <script language="javascript" src="../include/js/jquery/ui.sortable.js"></script>
  15. <script language="javascript" src="js/jquery.json-2.2.min.js"></script>
  16. <script language="javascript" src="js/indexbody.js"></script>
  17. <script language="javascript" src="js/drag.js"></script>
  18. <script type="text/javascript">
  19. function showMore()
  20. {
  21. $("#allInfo").toggle();
  22. $("#allInfoTD").toggle();
  23. }
  24. $(function()
  25. {
  26. $.get("index_testenv.php",function(data)
  27. {
  28. if(data !== '')
  29. {
  30. $("#__testEvn").html(data);
  31. }
  32. });
  33. $.get("index_body.php?dopost=get_seo",function(data)
  34. {
  35. if(data !== '')
  36. {
  37. $("#SEOInfo").html(data);
  38. }
  39. });
  40. });
  41. </script>
  42. </head>
  43. <body leftmargin="8" topmargin='8' bgcolor="#FFFFFF">
  44. <div style="min-width:780px">
  45. <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  46. <tr>
  47. <td>
  48. <div style='float:left'>
  49. 欢迎使用专业的PHP网站管理系统,轻松建站的首选利器 -- <?php echo $cfg_softname; ?>
  50. </div>
  51. <div id='' style='float:right;padding-right:8px;'>
  52. <!-- //保留位置(顶右) -->
  53. </div>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td height="1" background="images/sp_bg.gif" style='padding:0px'></td>
  58. </tr>
  59. </table>
  60. <div id="__testEvn"></div>
  61. <div id='mainmsg'>
  62. <div class="column" id="column1"><!--左侧开始-->
  63. <dl class="dbox" id="item1">
  64. <dt class='lside'><span class='l'><?php echo $cfg_soft_enname; ?> 更新消息</span></dt>
  65. <dd>
  66. <div id='updatetest'>
  67. <div id='updateinfos'>
  68. <?php
  69. echo "<div class='updatedvt'><b>您系统版本最后更新时间为:{$oktime} </b><br/>";
  70. echo " <a href='javascript:LoadUpdateInfos();' class='np coolbg'>进行在线更新</a> &nbsp; \r\n";
  71. echo " <a href='sys_repair.php' class='np coolbg'>系统错误修复</a></div>\r\n";
  72. echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='98%' height='50'></iframe>";
  73. ?>
  74. </div>
  75. </div>
  76. </dd>
  77. </dl><!--更新消息结束-->
  78. <dl class='dbox' id="item2">
  79. <dt class='lside'><span class='l'>商业授权查询</span></dt>
  80. <dd>
  81. <iframe name="showauth" src="index_body.php?dopost=showauth" width="100%" frameborder="0" scrolling="no" marginwidth="10" marginheight="10" id="showauth"></iframe>
  82. </dd>
  83. </dl><!--更新消息结束-->
  84. <dl class='dbox' id="item3">
  85. <dt class='lside'>
  86. <div class='l'>快捷操作</div>
  87. <div class='r'><a href='#' onClick="AddNew()"><b>【新增】</b></a><a href='#' onClick="ListAll()"><b>【管理】</b></a></div>
  88. </dt>
  89. <dd>
  90. <div id='quickmenu'>
  91. <?php
  92. $dtp = new DedeTagparse();
  93. $dtp->SetNameSpace('menu','<','>');
  94. $dtp->LoadTemplet($myIcoFile);
  95. if(is_array($dtp->CTags)){
  96. foreach($dtp->CTags as $ctag){
  97. $title = $ctag->GetAtt('title');
  98. $ico = $ctag->GetAtt('ico');
  99. $link = $ctag->GetAtt('link');
  100. echo "<div class='icoitem' style='background:url($ico) 10px 3px no-repeat;'><a href='{$link}'>{$title}</a></div>\r\n";
  101. }
  102. }
  103. ?>
  104. </div>
  105. </dd>
  106. </dl><!--快捷操作结束-->
  107. <dl class="dbox" id="item4">
  108. <dt class='lside'><div class='l'>系统基本信息</div></dt>
  109. <dd class='intable'>
  110. <table width="98%" class="dboxtable">
  111. <tr>
  112. <td width="25%" class='nline' style="text-align:right">您的级别:</td>
  113. <td class='nline'>
  114. <?php
  115. if($cuserLogin->getUserType()==10) {
  116. echo "总管理员";
  117. } else if($cuserLogin->getUserType()==5) {
  118. echo "频道总编";
  119. } else {
  120. echo "信息采集员或其它管理员";
  121. }
  122. ?>
  123. [<a href="javascript:showMore()">查看更多</a>]</td>
  124. </tr>
  125. <tr>
  126. <td colspan="2" class='nline' id="allInfoTD" style="display:none"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="allInfo" style="display:none">
  127. <tr>
  128. <td rowspan="5" class='nline' style="text-align:right">PHP环境摘要:</td>
  129. <td class='nline' style="text-align:left"> PHP版本:<?php echo @phpversion(); ?>&nbsp;GD版本:<?php echo @gdversion(); ?></td>
  130. </tr>
  131. <tr>
  132. <td class='nline' style="text-align:left">是否安全模式:<font color='red'><?php echo ($isSafeMode ? 'On' : 'Off')?></font>
  133. <?php
  134. if($isSafeMode) {
  135. echo "<br>  <font color='blue'>由于您的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请更改“<a href='sys_info.php'><u>更改系统参数</u></a>”里的FTP选项,并选择用FTP形式创建目录,完成后:<a href='testenv.php' style='color:red'><u>点击此进行一次DedeCMS目录权限检测&gt;&gt;</u></a></font>";
  136. } else {
  137. echo " <a href='testenv.php' style='color:blue'><u>DedeCMS目录权限检测&gt;&gt;</u></a></font>";
  138. }
  139. ?>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td class='nline' style="text-align:left">
  144. Register_Globals:<font color='red'><?php echo ini_get("register_globals") ? 'On' : 'Off'?></font> &nbsp;
  145. Magic_Quotes_Gpc:<font color='red'><?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?></font>
  146. </td>
  147. </tr>
  148. <tr>
  149. <td class='nline' style="text-align:left">支持上传的最大文件:<?php echo ini_get("post_max_size")?></td>
  150. </tr>
  151. <tr>
  152. <td class='nline' style="text-align:left">是否允许打开远程连接:<?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'; ?></td>
  153. </tr>
  154. <tr>
  155. <td class='nline' style="text-align:right"> 其它必须函数检测:</td>
  156. <td class='nline' style="text-align:left">
  157. <?php
  158. $needfunc = array('dir','phpinfo');
  159. $n = 0;
  160. foreach($needfunc as $k) {
  161. if(!function_exists($k)) {
  162. echo "<font color='red'>[{$k}×]</font> ";
  163. $n++;
  164. }
  165. }
  166. if($n==0) {
  167. echo "符合要求";
  168. } else {
  169. echo "被禁用的函数可能导致部份功能无法使用!";
  170. }
  171. ?>
  172. </td>
  173. </tr>
  174. <tr>
  175. <td class='nline' style="text-align:right"> 软件版本信息: </td>
  176. <td class='nline' style="text-align:left"> 版本名称:<?php echo $cfg_soft_enname; ?>&nbsp;版本号:<?php echo $cfg_version; ?></td>
  177. </tr>
  178. </table></td>
  179. </tr>
  180. </table>
  181. </dd>
  182. </dl><!--系统基本信息结束-->
  183. <dl class='dbox' id="item5">
  184. <dt class='lside'><div class='l'>程序团队</div></dt>
  185. <dd class='intable'>
  186. <table width="98%" class="dboxtable">
  187. <tr>
  188. <td width='25%' height='36' class='nline' style="text-align:right"> 主程序研发: </td>
  189. <td class='nline' style="text-align:left"><a href="http://www.desdev.cn/team.php" target="_blank" style="color:blue">织梦团队</a></td>
  190. </tr>
  191. <tr>
  192. <td height='36' class='nline' style="text-align:right">鸣谢:</td>
  193. <td class='nline' style="text-align:left"><a href="http://www.desdev.cn/dedecms-thanks.html" target="_blank" style="color:blue">热心用户</a>、<a href="http://www.dedecms.com/thanks.html" target="_blank" style="color:blue">赞助商</a></td>
  194. </tr>
  195. </table>
  196. </dd>
  197. </dl><!--开发团队结束-->
  198. </div><!--左侧结束-->
  199. <div class="column" id="column2" ><!-- //右边的快捷消息开始 -->
  200. <dl class='dbox' id="item8">
  201. <dt class='lside'><div class='l'>赞助商链接(<a href="http://ad.dedecms.com/ad/" target="_blank">说明</a>)</div></dt>
  202. <dd>
  203. <iframe name="showad" src="index_body.php?dopost=showad" frameborder="0" width="100%" id="showad" frameborder="0" scrolling="no" marginheight="5"></iframe>
  204. </dd>
  205. </dl><!--赞助商链接结束-->
  206. <dl class='dbox' id="item6">
  207. <dt class='lside'><div class='l'>信息统计</div></dt>
  208. <dd id='listCount'>
  209. 正在载入中...
  210. </dd>
  211. </dl><!--信息统计结束-->
  212. <dl class='dbox' id="item7">
  213. <dt class='lside'><div class='l'>SEO信息</div></dt>
  214. <dd id='SEOInfo'>
  215. 正在载入中……
  216. </dd>
  217. </dl>
  218. <dl class='dbox' id="item7">
  219. <dt class='lside'><div class='l'>最新文档</div></dt>
  220. <dd id='listNews'>
  221. <?php
  222. $query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc
  223. LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel
  224. WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0, 6 ";
  225. $arcArr = array();
  226. $dsql->Execute('m', $query);
  227. while($row = $dsql->GetArray('m'))
  228. {
  229. $arcArr[] = $row;
  230. }
  231. ?>
  232. <table width="100%" class="dboxtable">
  233. <?php
  234. if(count($arcArr) > 1)
  235. {
  236. foreach($arcArr as $row)
  237. {
  238. if(trim($row['editcon'])=='') {
  239. $row['editcon'] = 'archives_edit.php';
  240. }
  241. $linkstr = "·<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>";
  242. if($row['arcrank']==-1) $linkstr .= "<font color='red'>(未审核)</font>";
  243. ?>
  244. <tr>
  245. <td class='nline' style="text-align:left">
  246. <?php echo $linkstr; ?>
  247. </td>
  248. </tr>
  249. <?php
  250. }
  251. } else {
  252. ?>
  253. <tr>
  254. <td class='nline' style="text-align:left">
  255. 暂无新增内容
  256. </td>
  257. </tr>
  258. <?php
  259. }
  260. ?>
  261. </table>
  262. </dd>
  263. </dl><!--最新文档结束-->
  264. </div>
  265. </div>
  266. <br style='clear:both'/>
  267. <!-- //底部 -->
  268. <div align="center" class="footer">
  269. Copyright &copy; 2004-2019 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>. 织梦科技 版权所有
  270. </div>
  271. <!-- 下面是隐藏的项目 -->
  272. <div id='loaddiv' style='display:none'>
  273. <p align='center' style='padding-top:200px'><img src='images/loadinglit.gif' /> 请稍后,正在下载更新文件列表...</p>
  274. </div>
  275. <div id="editTab">
  276. <span id='editTabBody'>请稍候,正在载入...</span>
  277. </div>
  278. <div id="addTab">
  279. <form name='addform' action='index_body.php'>
  280. <input type='hidden' name='dopost' value='addnew' />
  281. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  282. <tr>
  283. <td height='28' colspan='3' background="images/tbg.gif">
  284. <div style='float:left'><b>增加快捷操作项</b></div>
  285. <div style='float:right;padding:3px 10px 0 0;'>
  286. <a href="javascript:CloseTab('addTab')"><img src="images/close.gif" width="12" height="12" border="0" /></a>
  287. </div>
  288. </td>
  289. </tr>
  290. <tr><td style="height:6px;font-size:1px;border-top:1px solid #8DA659" colspan="2">&nbsp;</td></tr>
  291. <tr>
  292. <td width="20%" height="28" align="right">链接标题:</td>
  293. <td width="70%">
  294. <input name="title" type="text" id="title" class='pubinputs' style="width:255px;"/>
  295. </td>
  296. </tr>
  297. <tr>
  298. <td height="28" width="20%" align="right">ICO图片:</td>
  299. <td width="70%">
  300. <input name="ico" type="text" id="ico" class='pubinputs' style="width:255px;"/>
  301. </td>
  302. </tr>
  303. <tr>
  304. <td height="28" width="20%" align="right">链接网址:</td>
  305. <td width="70%">
  306. <input name="link" type="text" id="link" class='pubinputs' style="width:255px;"/>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td height="45">&nbsp;</td>
  311. <td>
  312. <input type="submit" name="Submit" value="保存项目" class="np coolbg" style="width:80px;cursor:pointer" />
  313. </td>
  314. </tr>
  315. </table>
  316. </form>
  317. </div>
  318. </div>
  319. </body>
  320. </html>