6aed4d2b52ba617b042b243dffa4c0fa.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  6. <meta name="renderer" content="webkit">
  7. <title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
  8. <link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
  9. <link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
  10. <link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
  11. <link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
  12. <link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
  14. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
  15. </head>
  16. <body class="layui-layout-body">
  17. <!--定义部分地址方便JS调用-->
  18. <div style="display: none">
  19. <span id="controller" data-controller="<?php echo C;?>"></span>
  20. <span id="url" data-url="<?php echo URL;?>"></span>
  21. <span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
  22. <span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
  23. <span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
  24. </div>
  25. <div class="layui-layout layui-layout-admin">
  26. <div class="layui-header">
  27. <div class="layui-logo">
  28. <a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
  29. <img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
  30. <?php echo CMSNAME;?>
  31. <?php if (LICENSE==3) {?>
  32. <span class="layui-badge">SVIP</span>
  33. <?php } else { ?>
  34. <span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
  35. <?php } ?>
  36. </a>
  37. </div>
  38. <ul class="menu">
  39. <li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
  40. </ul>
  41. <?php if (!$this->getVar('one_area')) {?>
  42. <form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
  43. <input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
  44. <div class="layui-col-xs8">
  45. <select name="acode">
  46. <?php echo $this->getVar('area_html');?>
  47. </select>
  48. </div>
  49. <div class="layui-col-xs4">
  50. <button type="submit" class="layui-btn layui-btn-sm">切换</button>
  51. </div>
  52. </form>
  53. <?php } ?>
  54. <ul class="layui-nav layui-layout-right">
  55. <li class="layui-nav-item layui-hide-xs">
  56. <a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
  57. </li>
  58. <li class="layui-nav-item layui-hide-xs">
  59. <a href="<?php echo \core\basic\Url::get('/admin/DeleCache/index');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
  60. </li>
  61. <li class="layui-nav-item layui-hide-xs">
  62. <a href="javascript:;">
  63. <i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
  64. </a>
  65. <dl class="layui-nav-child">
  66. <dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
  67. <dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
  68. <?php if (session('ucode')==10001) {?>
  69. <dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
  70. <dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
  71. <?php } ?>
  72. </dl>
  73. </li>
  74. </ul>
  75. </div>
  76. <div class="layui-side layui-bg-black">
  77. <div class="layui-side-scroll">
  78. <!-- 左侧导航区域(可配合layui已有的垂直导航) -->
  79. <ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
  80. <?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
  81. <li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
  82. <a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
  83. <dl class="layui-nav-child">
  84. <?php if ($value->mcode=='M130') {?>
  85. <?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
  86. <?php if ($value3->type==1) {?>
  87. <dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
  88. <?php } ?>
  89. <?php if ($value3->type==2) {?>
  90. <dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
  91. <?php } ?>
  92. <?php } ?>
  93. <?php } else { ?>
  94. <?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
  95. <?php if (!isset($value2->status)|| $value2->status==1) {?>
  96. <dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
  97. <?php } ?>
  98. <?php } ?>
  99. <?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
  100. <dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
  101. <?php } ?>
  102. <?php } ?>
  103. </dl>
  104. </li>
  105. <?php } ?>
  106. <li style="height:1px;background:#666" class="layui-hide-sm"></li>
  107. <li class="layui-nav-item layui-hide-sm">
  108. <a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
  109. </li>
  110. <li class="layui-nav-item layui-hide-sm">
  111. <a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
  112. </li>
  113. <li class="layui-nav-item layui-hide-sm">
  114. <a href="<?php echo \core\basic\Url::get('/admin/DeleCache/index');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
  115. </li>
  116. <li class="layui-nav-item layui-hide-sm">
  117. <a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
  118. </li>
  119. </ul>
  120. </div>
  121. </div>
  122. <div class="layui-body">
  123. <?php if (!$this->getVar('dbsecurity')||!session('pwsecurity')) {?>
  124. <blockquote class="layui-elem-quote layui-text-red" id="note">
  125. <?php if (!$this->getVar('dbsecurity')) {?>
  126. <p>
  127. <i class="fa fa-info-circle" aria-hidden="true"></i>
  128. 您的数据库文件存在安全隐患,可能被下载,请尽快修改数据库路径!<a class="layui-btn layui-btn-sm"
  129. href="<?php echo \core\basic\Url::get('/admin/Index/home');?>&action=moddb">自动修改</a>
  130. </p>
  131. <?php } ?>
  132. <?php if (!session('pwsecurity')) {?>
  133. <p>
  134. <i class="fa fa-info-circle" aria-hidden="true"></i>
  135. 您的账号密码为初始密码,存在安全隐患,请尽快修改密码!<a class="layui-btn layui-btn-sm" href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>">立即修改</a>
  136. </p>
  137. <?php } ?>
  138. </blockquote>
  139. <?php } ?>
  140. <blockquote class="layui-elem-quote">
  141. 当前登录用户:<?php echo @$this->getVar('user_info')->username;?>
  142. <?php echo @$this->getVar('user_info')->realname;?>,登录时间:<?php echo @$this->getVar('user_info')->update_time;?>,登录IP:<?php echo long2ip($this->getVar('user_info')->last_login_ip);?>,累计登录次数:<?php echo @$this->getVar('user_info')->login_count;?>
  143. </blockquote>
  144. <fieldset class="layui-elem-field">
  145. <legend>快捷操作</legend>
  146. <div class="layui-field-box">
  147. <div class="layui-row">
  148. <?php $num = 0;foreach ($this->getVar('model_msg') as $key => $value) { $num++;?>
  149. <div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
  150. <?php if ($value->type==1) {?>
  151. <a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value->mcode.'');?>">
  152. <?php } else { ?>
  153. <a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value->mcode.'');?>">
  154. <?php } ?>
  155. <dl class="deskbox center-block">
  156. <dt><?php echo $value->name; ?></dt>
  157. <dd><?php echo $value->count; ?></dd>
  158. </dl>
  159. </a>
  160. </div>
  161. <?php } ?>
  162. <div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
  163. <a href="<?php echo \core\basic\Url::get('/admin/Message/index');?>">
  164. <dl class="deskbox center-block">
  165. <dt>留言</dt>
  166. <dd><?php echo $this->getVar('sum_msg');?></dd>
  167. </dl>
  168. </a>
  169. </div>
  170. </div>
  171. </div>
  172. </fieldset>
  173. <?php if (CMSNAME=='PbootCMS') {?>
  174. <div class="layui-row layui-col-space10">
  175. <div class="layui-col-xs12 layui-col-md6">
  176. <table class="layui-table table-two">
  177. <thead>
  178. <tr>
  179. <th colspan="2">系统信息</th>
  180. </tr>
  181. </thead>
  182. <tbody>
  183. <tr>
  184. <th width="100">应用版本</th>
  185. <td>PbootCMS V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?>
  186. <?php if (session('ucode')==10001) {?>
  187. <a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>" class="layui-btn layui-btn-xs" id="check">在线更新</a>
  188. <?php } ?>
  189. </td>
  190. </tr>
  191. <tr>
  192. <th>主机系统</th>
  193. <td><?php echo @$this->getVar('server')->php_os;?></td>
  194. </tr>
  195. <tr>
  196. <th>主机地址</th>
  197. <td><?php echo @$this->getVar('server')->server_name;?>(<?php echo @$this->getVar('server')->server_addr;?>:<?php echo @$this->getVar('server')->server_port;?>)</td>
  198. </tr>
  199. <tr>
  200. <th>WEB软件</th>
  201. <td><?php echo @$this->getVar('server')->server_software;?></td>
  202. </tr>
  203. <tr>
  204. <th>PHP版</th>
  205. <td><?php echo @$this->getVar('server')->php_version;?></td>
  206. </tr>
  207. <tr>
  208. <th>数据库驱动</th>
  209. <td><?php echo @$this->getVar('server')->db_driver;?></td>
  210. </tr>
  211. <tr>
  212. <th>文件上传限制</th>
  213. <td><?php echo @$this->getVar('server')->upload_max_filesize;?></td>
  214. </tr>
  215. <tr>
  216. <th>表单提交限制</th>
  217. <td><?php echo @$this->getVar('server')->post_max_size;?></td>
  218. </tr>
  219. </tbody>
  220. </table>
  221. </div>
  222. <!-- <div class="layui-col-xs12 layui-col-md6">
  223. <table class="layui-table table-two">
  224. <thead>
  225. <tr>
  226. <th colspan="2">开发信息</th>
  227. </tr>
  228. </thead>
  229. <tbody>
  230. <tr>
  231. <th>系统名称</th>
  232. <td><?php echo CMSNAME;?>企业网站开发建设管理系统</td>
  233. </tr>
  234. <tr>
  235. <th>模板下载</th>
  236. <td>
  237. <a href="http://www.adminbuy.cn/" style="color:#666" target="_blank">www.adminbuy.cn</a>
  238. </td>
  239. </tr>
  240. <tr>
  241. <th>图标下载</th>
  242. <td><a href="https://sc.adminbuy.cn" style="color:#666" target="_blank">sc.adminbuy.cn</a></td>
  243. </tr>
  244. <tr>
  245. <th>js特效</th>
  246. <td><a href="https://js.adminbuy.cn" style="color:#666" target="_blank">js.adminbuy.cn</a></td>
  247. </tr>
  248. <tr>
  249. <th>在线工具</th>
  250. <td><a href="https://tool.adminbuy.cn" target="_blank" style="color:#666">tool.pbootcms.com</a></td>
  251. </tr>
  252. <tr>
  253. <th>仿站制作</th>
  254. <td><a href="http://fang.adminbuy.cn" target="_blank" style="color:#666">fang.pbootcms.com</a></td>
  255. </tr>
  256. <tr>
  257. <th>友情贡献者</th>
  258. <td>
  259. 感谢交流群各网友对PbootCMS发展的大力支持;
  260. 感谢LayUI提供的前端框架;
  261. 感谢百度提供的富文本编辑器;
  262. 感谢星梦开发团队的日夜奋斗。
  263. </td>
  264. </tr>
  265. </tbody>
  266. </table>
  267. </div> -->
  268. </div>
  269. <?php } ?>
  270. </div>
  271. <script>
  272. $.ajax({
  273. type: 'GET',
  274. url: 'https://www.pbootcms.com/index.php?p=/upgrade/check&version=<?php echo APP_VERSION;?>.<?php echo RELEASE_TIME;?>.<?php echo $this->getVar('revise');?>&branch=<?php echo $this->getVar('branch');?>&snuser=<?php echo $this->getVar('snuser');?>&site=<?php echo $this->getVar('site');?>',
  275. dataType: 'json',
  276. success: function (response, status) {
  277. if (response.code == 1) {
  278. $("#check").html($("#check").html() + '<span class="layui-badge-dot"></span>');
  279. }
  280. }
  281. });
  282. </script>
  283. <input type="hidden" id="do_check" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/check');?>">
  284. <input type="hidden" id="do_down" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/down');?>">
  285. <input type="hidden" id="do_update" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/update');?>">
  286. <input type="hidden" id="check_version" data-url="/index.php?p=upgrade/check&version=<?php echo APP_VERSION;?>.<?php echo RELEASE_TIME;?>.<?php echo $this->getVar('revise');?>&branch=<?php echo $this->getVar('branch');?>&snuser=<?php echo $this->getVar('snuser');?>&site=<?php echo $this->getVar('site');?>">
  287. <input type="hidden" id="check_cache" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/checkCache');?>">
  288. </div>
  289. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
  290. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
  291. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
  292. <script type="text/javascript" src="https://www.pbootcms.com/res/v1/js/update.js?v=v3.1.3" ></script>
  293. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  294. <!--[if lt IE 9]>
  295. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  296. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  297. <![endif]-->
  298. </body>
  299. </html>
  300. <?php return array (
  301. 0 => 'D:/companynet/apps/admin/view/default/common/head.html',
  302. 1 => 'D:/companynet/apps/admin/view/default/common/foot.html',
  303. ); ?>