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

466 lines
23KB

  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>DedeCMSV6系统概况</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8. <base target="_self">
  9. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  10. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  11. <link rel="stylesheet" type="text/css" href="css/base.css" />
  12. <link rel="stylesheet" type="text/css" href="css/indexbody.css" />
  13. <link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" />
  14. <script language="javascript" src="../static/js/jquery.js"></script>
  15. <script src="../static/js/bootstrap.bundle.js"></script>
  16. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  17. <script language="javascript" src="js/indexbody.js"></script>
  18. <script language="javascript" src="js/main.js"></script>
  19. <script type="text/javascript">
  20. function showMore() {
  21. $("#allInfo").toggle();
  22. $("#allInfoTD").toggle();
  23. }
  24. $(function () {
  25. $.get("index_testenv.php", function (data) {
  26. if (data !== '') {
  27. $("#__testEvn").html(data);
  28. }
  29. });
  30. $.get("index_body.php?dopost=get_seo", function (data) {
  31. if (data !== '') {
  32. $("#SEOInfo").html(data);
  33. }
  34. });
  35. });
  36. </script>
  37. <style>
  38. .row {
  39. display: flex;
  40. flex-wrap: wrap;
  41. }
  42. .row>[class*='col-'] {
  43. display: flex;
  44. flex-direction: column;
  45. }
  46. .footer {
  47. padding: 10px;
  48. }
  49. </style>
  50. </head>
  51. <body>
  52. <div class="container-fluid">
  53. <div class="mt-3 mb-3">
  54. 欢迎使用国内流行的内容管理系统(CMS)多端全媒体解决方案 -- <?php echo $cfg_softname; ?>
  55. </div>
  56. <div class="row">
  57. <div id="__testEvn" class="col-md-12"></div>
  58. <!--/#__testEvn-->
  59. <div class="col-md-6 mt-3 updatenews">
  60. <div class="card">
  61. <div class="card-header">
  62. <?php echo $cfg_soft_enname; ?> 更新消息
  63. </div>
  64. <!--/.card-header-->
  65. <div class="card-body">
  66. <div id="updateinfos">
  67. <?php
  68. echo "<div class='updatedvt py-3'>";
  69. echo "安全操作:<a href='sys_data.php' class='btn btn-secondary btn-sm'>数据库备份/还原</a> <a href='sys_safetest.php' class='btn btn-secondary btn-sm'>病毒扫描</a> <a href='sys_repair.php' class='btn btn-secondary btn-sm'>系统错误修复</a></div>\r\n";
  70. echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='98%' height='100'></iframe>";
  71. ?>
  72. </div>
  73. </div>
  74. <!--/.card-body-->
  75. </div>
  76. <!--/.card-->
  77. </div>
  78. <div class="col-md-6 mt-3">
  79. <div class="card">
  80. <div class="card-header">
  81. Dede商业服务授权
  82. </div>
  83. <!--/.card-header-->
  84. <div class="card-body" id="_systeminfo">
  85. 正在载入中...
  86. </div>
  87. <!--/.card-body-->
  88. </div>
  89. <!--/.card-->
  90. </div>
  91. <div class="col-md-6 mt-3">
  92. <div class="card">
  93. <div class="card-header">
  94. 快捷操作
  95. <a href='javascript:AddNew()'><b>【新增】</b></a>
  96. <a href='javascript:ListAll()'><b>【管理】</b></a>
  97. </div>
  98. <!--/.card-header-->
  99. <div class="card-body">
  100. <ul class="nav">
  101. <?php
  102. $dtp = new DedeTagparse();
  103. $dtp->SetNameSpace('menu','<','>');
  104. $dtp->LoadTemplet($myIcoFile);
  105. if(is_array($dtp->CTags)){
  106. foreach($dtp->CTags as $ctag){
  107. $title = $ctag->GetAtt('title');
  108. $ico = $ctag->GetAtt('ico');
  109. $link = $ctag->GetAtt('link');
  110. echo "<li class='nav-item'><a class='nav-link' href='{$link}'><img src='{$ico}'> {$title}</a></li>\r\n";
  111. }
  112. }
  113. ?>
  114. </ul>
  115. </div>
  116. <!--/.card-body-->
  117. </div>
  118. <!--/.card-->
  119. </div>
  120. <div class="col-md-6 mt-3">
  121. <div class="card">
  122. <div class="card-header">
  123. 系统基本信息
  124. </div>
  125. <!--/.card-header-->
  126. <div class="card-body">
  127. <table width="98%" class="table table-borderless">
  128. <tr>
  129. <td width="25%" class='nline' style="text-align:right">您的级别:</td>
  130. <td class='nline'>
  131. <?php
  132. if($cuserLogin->getUserType()==10) {
  133. echo "总管理员";
  134. } else if($cuserLogin->getUserType()==5) {
  135. echo "频道总编";
  136. } else {
  137. echo "信息采集员或其它管理员";
  138. }
  139. ?>
  140. <a href="javascript:showMore()" class="btn btn-secondary btn-sm">查看更多</a></td>
  141. </tr>
  142. <tr>
  143. <td colspan="2" class='nline' id="allInfoTD" style="display:none">
  144. <table width="100%" border="0" cellspacing="0" cellpadding="0" id="allInfo"
  145. style="display:none">
  146. <tr>
  147. <td rowspan="5" class='nline' style="text-align:right">PHP环境摘要:</td>
  148. <td class='nline' style="text-align:left">
  149. PHP版本:<?php echo @phpversion(); ?>&nbsp;GD版本:<?php echo @gdversion(); ?>
  150. </td>
  151. </tr>
  152. <tr>
  153. <td class='nline' style="text-align:left">是否安全模式:<font color='red'>
  154. <?php echo ($isSafeMode ? 'On' : 'Off')?></font>
  155. <?php
  156. if($isSafeMode) {
  157. echo "<br>  <font color='blue'>由于您的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请更改“<a href='sys_info.php'><u>更改系统参数</u></a>”里的FTP选项,并选择用FTP形式创建目录</font>";
  158. }
  159. ?>
  160. </td>
  161. </tr>
  162. <tr>
  163. <td class='nline' style="text-align:left">
  164. Register_Globals:<font color='red'>
  165. <?php echo ini_get("register_globals") ? 'On' : 'Off'?></font>
  166. &nbsp;
  167. Magic_Quotes_Gpc:<font color='red'>
  168. <?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?></font>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td class='nline' style="text-align:left">
  173. 支持上传的最大文件:<?php echo ini_get("post_max_size")?></td>
  174. </tr>
  175. <tr>
  176. <td class='nline' style="text-align:left">
  177. 是否允许打开远程连接:<?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'; ?></td>
  178. </tr>
  179. <tr>
  180. <td class='nline' style="text-align:right"> 其它必须函数检测:</td>
  181. <td class='nline' style="text-align:left">
  182. <?php
  183. $needfunc = array('dir','phpinfo');
  184. $n = 0;
  185. foreach($needfunc as $k) {
  186. if(!function_exists($k)) {
  187. echo "<font color='red'>[{$k}×]</font> ";
  188. $n++;
  189. }
  190. }
  191. if($n==0) {
  192. echo "符合要求";
  193. } else {
  194. echo "被禁用的函数可能导致部份功能无法使用!";
  195. }
  196. ?>
  197. </td>
  198. </tr>
  199. <tr>
  200. <td class='nline' style="text-align:right"> 软件版本信息: </td>
  201. <td class='nline' style="text-align:left">
  202. 版本名称:<?php echo $cfg_soft_enname; ?>&nbsp;版本号:<?php echo $cfg_version; ?>
  203. </td>
  204. </tr>
  205. </table>
  206. </td>
  207. </tr>
  208. </table>
  209. </div>
  210. <!--/.card-body-->
  211. </div>
  212. <!--/.card-->
  213. </div>
  214. <div class="col-md-6 mt-3">
  215. <div class="card">
  216. <div class="card-header">
  217. 信息统计
  218. </div>
  219. <!--/.card-header-->
  220. <div class="card-body">
  221. <dd id='listCount'>
  222. 正在载入中...
  223. </dd>
  224. </div>
  225. <!--/.card-body-->
  226. </div>
  227. <!--/.card-->
  228. </div>
  229. <div class="col-md-6 mt-3">
  230. <div class="card">
  231. <div class="card-header">
  232. 最新文档
  233. </div>
  234. <!--/.card-header-->
  235. <div class="card-body">
  236. <?php
  237. $query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon FROM `#@__archives` arc
  238. LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel
  239. WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0, 6 ";
  240. $arcArr = array();
  241. $dsql->Execute('m', $query);
  242. while($row = $dsql->GetArray('m'))
  243. {
  244. $arcArr[] = $row;
  245. }
  246. ?>
  247. <table width="100%" class="table table-borderless">
  248. <?php
  249. if(count($arcArr) > 1)
  250. {
  251. foreach($arcArr as $row)
  252. {
  253. if(trim($row['editcon'])=='') {
  254. $row['editcon'] = 'archives_edit.php';
  255. }
  256. $linkstr = "·<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>";
  257. if($row['arcrank']==-1) $linkstr .= "<font color='red'>(未审核)</font>";
  258. ?>
  259. <tr>
  260. <td class='nline' style="text-align:left">
  261. <?php echo $linkstr; ?>
  262. </td>
  263. </tr>
  264. <?php
  265. }
  266. } else {
  267. ?>
  268. <tr>
  269. <td class='nline' style="text-align:left">
  270. 暂无新增内容
  271. </td>
  272. </tr>
  273. <?php
  274. }
  275. ?>
  276. </table>
  277. </div>
  278. <!--/.card-body-->
  279. </div>
  280. <!--/.card-->
  281. </div>
  282. </div>
  283. </div>
  284. <div class="footer">
  285. <!-- //底部 -->
  286. <div align="center" class="footer">
  287. Copyright &copy; 2020 <a href='https://www.dedebiz.com' target='_blank'><u>DedeCMSV6</u></a>. 版权所有 <a
  288. href="https://www.dedebiz.com" target="_blank" title="DedeBiz商业技术支持,提供更专业强大的站点应用开发技术">DedeBIZ技术支持</a>
  289. </div>
  290. <!-- 下面是隐藏的项目 -->
  291. <div id='loaddiv' style='display:none'>
  292. <p align='center' style='padding-top:200px'><img src='images/loadinglit.gif' /> 请稍后,正在下载更新文件列表...</p>
  293. </div>
  294. <div id="editTab">
  295. <span id='editTabBody'>请稍候,正在载入...</span>
  296. </div>
  297. <div id="addTab">
  298. <form name='addform' action='index_body.php'>
  299. <input type='hidden' name='dopost' value='addnew' />
  300. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  301. <tr>
  302. <td height='28' colspan='3' background="images/tbg.gif">
  303. <div style='float:left'><b>增加快捷操作项</b></div>
  304. <div style='float:right;padding:3px 10px 0 0;'>
  305. <a href="javascript:CloseTab('addTab')"><img src="images/close.gif" width="12"
  306. height="12" border="0" /></a>
  307. </div>
  308. </td>
  309. </tr>
  310. <tr>
  311. <td style="height:6px;font-size:1px;border-top:1px solid #8DA659" colspan="2">&nbsp;</td>
  312. </tr>
  313. <tr>
  314. <td width="20%" height="28" align="right">链接标题:</td>
  315. <td width="70%">
  316. <input name="title" type="text" id="title" class='pubinputs' style="width:255px;" />
  317. </td>
  318. </tr>
  319. <tr>
  320. <td height="28" width="20%" align="right">ICO图片:</td>
  321. <td width="70%">
  322. <input name="ico" type="text" id="ico" class='pubinputs' style="width:255px;" />
  323. </td>
  324. </tr>
  325. <tr>
  326. <td height="28" width="20%" align="right">链接网址:</td>
  327. <td width="70%">
  328. <input name="link" type="text" id="link" class='pubinputs' style="width:255px;" />
  329. </td>
  330. </tr>
  331. <tr>
  332. <td height="45">&nbsp;</td>
  333. <td>
  334. <input type="submit" name="Submit" value="保存项目" class="np coolbg"
  335. style="width:80px;cursor:pointer" />
  336. </td>
  337. </tr>
  338. </table>
  339. </form>
  340. </div>
  341. </div>
  342. <script>
  343. var dedebizInfo;
  344. function ViewDedeBIZ() {
  345. console.log(dedebizInfo);
  346. ShowMsg(`
  347. <table width="100%" class="table table-borderless"><tbody>
  348. <tr>
  349. <td class="nline" style="text-align:left"> 版本号: </td>
  350. <td class="nline" style="text-align:left"> v${dedebizInfo.result.server_version} </td>
  351. </tr>
  352. <tr>
  353. <td class="nline" style="text-align:left"> 运行时间: </td>
  354. <td class="nline" style="text-align:left"> ${dedebizInfo.result.server_run_time} </td>
  355. </tr>
  356. <tr>
  357. <td class="nline" style="text-align:left"> 服务器系统: </td>
  358. <td class="nline" style="text-align:left"> ${dedebizInfo.result.server_goos}(${dedebizInfo.result.server_goarch}) </td>
  359. </tr>
  360. <tr>
  361. <td class="nline" style="text-align:left"> 内存占用: </td>
  362. <td class="nline" style="text-align:left"> ${dedebizInfo.result.server_memory_usage}% </td>
  363. </tr>
  364. </tbody></table>
  365. `);
  366. }
  367. // 加载服务信息
  368. function LoadServer() {
  369. $.get("index_body.php?dopost=system_info", function (data) {
  370. let rsp = JSON.parse(data);
  371. if (rsp.code === 200) {
  372. let infoStr = `<table width="100%" class="table table-borderless"><tbody>`;
  373. if (typeof rsp.result.domain !== "undefined") {
  374. infoStr += `
  375. <tr>
  376. <td class="nline" style="text-align:left"> 授权域名: </td>
  377. <td class="nline" style="text-align:left"> ${rsp.result.domain} <a href="<?php echo $cfg_biz_dedebizUrl;?>/auth/?domain=${rsp.result.domain}"><b>【查看】</b></a> </td>
  378. </tr>
  379. `;
  380. }
  381. if (typeof rsp.result.title !== "undefined") {
  382. infoStr += `
  383. <tr>
  384. <td class="nline" style="text-align:left"> 站点名称: </td>
  385. <td class="nline" style="text-align:left"> ${rsp.result.title} </td>
  386. </tr>
  387. `;
  388. }
  389. if (typeof rsp.result.stype !== "undefined") {
  390. infoStr += `
  391. <tr>
  392. <td class="nline" style="text-align:left"> 站点类型: </td>
  393. <td class="nline" style="text-align:left"> ${rsp.result.stype} </td>
  394. </tr>
  395. `;
  396. }
  397. if (typeof rsp.result.auth_version !== "undefined" && typeof rsp.result.auth_at !== "undefined") {
  398. infoStr += `
  399. <tr>
  400. <td class="nline" style="text-align:left"> 授权版本: </td>
  401. <td class="nline" style="text-align:left"> v${rsp.result.auth_version}.x.x(时间:${rsp.result.auth_at})</td>
  402. </tr>
  403. `;
  404. }
  405. if (rsp.result.core === null || rsp.result.core.code != 200) {
  406. // 下面是DedeBIZ Core组件信息
  407. infoStr += `
  408. <tr>
  409. <td class="nline" style="text-align:left"> Dede商业组件: </td>
  410. <td class="nline" style="text-align:left"> <a class="btn btn-danger btn-sm" target="_blank" href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=-1008">如何启动组件</a> </td>
  411. </tr>
  412. `;
  413. } else {
  414. dedebizInfo = JSON.parse(rsp.result.core.data);
  415. infoStr += `
  416. <tr>
  417. <td class="nline" style="text-align:left"> Dede商业组件: </td>
  418. <td class="nline" style="text-align:left"> <a class="btn btn-success btn-sm" href="javascript:ViewDedeBIZ()">查看组件信息</a> </td>
  419. </tr>
  420. `;
  421. }
  422. infoStr += "</tbody></table>";
  423. $("#_systeminfo").html(infoStr);
  424. } else {
  425. $("#_systeminfo").html(`
  426. <div class="py-1">尚未启动Dede商业站点服务,原因:<b>${rsp.msg}</b></div>
  427. <div class="py-1">Dede商业服务可以提升性能、增强安全、支持开源。</div>
  428. <div class="py-1"><a class="btn btn-danger" target="_blank" href="<?php echo $cfg_biz_dedebizUrl;?>/start?code=${rsp.code}">开启商业服务</a></div>
  429. `);
  430. }
  431. });
  432. }
  433. $(document).ready(function () {
  434. LoadServer();
  435. setInterval(function () {
  436. LoadServer();
  437. }, 5000)
  438. });
  439. </script>
  440. </body>
  441. </html>