国内流行的内容管理系统(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.

365 lines
19KB

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