f3ad1cecfa105b6fa0cc031f77efac6b.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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. <h2>欢迎登录贵州风云气象技术有限公司官网管理后台!</h2>
  175. <!-- <div class="layui-row layui-col-space10">
  176. <div class="layui-col-xs12 layui-col-md6">
  177. <table class="layui-table table-two">
  178. <thead>
  179. <tr>
  180. <th colspan="2">系统信息</th>
  181. </tr>
  182. </thead>
  183. <tbody>
  184. <tr>
  185. <th width="100">应用版本</th>
  186. <td>PbootCMS V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?>
  187. <?php if (session('ucode')==10001) {?>
  188. <a href="javascript:void(0)" onclick="Notice()" class="layui-btn layui-btn-xs" id="check">在线更新</a>
  189. <?php } ?>
  190. </td>
  191. </tr>
  192. <tr>
  193. <th>主机系统</th>
  194. <td><?php echo @$this->getVar('server')->php_os;?></td>
  195. </tr>
  196. <tr>
  197. <th>主机地址</th>
  198. <td><?php echo @$this->getVar('server')->server_name;?>(<?php echo @$this->getVar('server')->server_addr;?>:<?php echo @$this->getVar('server')->server_port;?>)</td>
  199. </tr>
  200. <tr>
  201. <th>WEB软件</th>
  202. <td><?php echo @$this->getVar('server')->server_software;?></td>
  203. </tr>
  204. <tr>
  205. <th>PHP版</th>
  206. <td><?php echo @$this->getVar('server')->php_version;?></td>
  207. </tr>
  208. <tr>
  209. <th>数据库驱动</th>
  210. <td><?php echo @$this->getVar('server')->db_driver;?></td>
  211. </tr>
  212. <tr>
  213. <th>文件上传限制</th>
  214. <td><?php echo @$this->getVar('server')->upload_max_filesize;?></td>
  215. </tr>
  216. <tr>
  217. <th>表单提交限制</th>
  218. <td><?php echo @$this->getVar('server')->post_max_size;?></td>
  219. </tr>
  220. </tbody>
  221. </table>
  222. </div>
  223. <div class="layui-col-xs12 layui-col-md6">
  224. <table class="layui-table table-two">
  225. <thead>
  226. <tr>
  227. <th colspan="2">开发信息</th>
  228. </tr>
  229. </thead>
  230. <tbody>
  231. <tr>
  232. <th>系统名称</th>
  233. <td><?php echo CMSNAME;?>企业网站开发建设管理系统</td>
  234. </tr>
  235. <tr>
  236. <th>官方网站</th>
  237. <td><a href="http://www.pbootcms.com" target="_blank" style="color:#666">www.pbootcms.com</a></td>
  238. </tr>
  239. <tr>
  240. <th>源码下载</th>
  241. <td>
  242. <a href="https://gitee.com/hnaoyun/PbootCMS/" style="color:#666" target="_blank">Gitee</a>
  243. </td>
  244. </tr>
  245. <tr>
  246. <th>系统开发</th>
  247. <td>星梦</td>
  248. </tr>
  249. <tr>
  250. <th>版权协议</th>
  251. <td><a href="http://www.pbootcms.com/system-usage/277.html" style="color:#666" target="_blank">点击查看</a></td>
  252. </tr>
  253. <tr>
  254. <th>技术交流群</th>
  255. <td>822430453、794519782</td>
  256. </tr>
  257. <tr>
  258. <th>友情贡献者</th>
  259. <td>
  260. 感谢交流群各网友对PbootCMS发展的大力支持;
  261. 感谢LayUI提供的前端框架;
  262. 感谢百度提供的富文本编辑器;
  263. 感谢星梦开发团队的日夜奋斗。
  264. </td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. </div>
  269. </div> -->
  270. <?php } ?>
  271. </div>
  272. <script>
  273. $.ajax({
  274. type: 'GET',
  275. 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');?>',
  276. dataType: 'json',
  277. success: function (response, status) {
  278. if (response.code == 1) {
  279. $("#check").html($("#check").html() + '<span class="layui-badge-dot"></span>');
  280. $("#check").attr('onclick', "Notice('update')");
  281. }
  282. }
  283. });
  284. function Notice(param) {
  285. if (param === 'update') {
  286. layer.alert('已检测到新版本发布,详情请查看<a href="https://www.pbootcms.com/dev-log/" style="color: blue" target="_blank">开发日志</a>', { title: '更新须知' }, function (index) {
  287. layer.close(index);
  288. location.href = "<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>";
  289. });
  290. } else {
  291. location.href = "<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>";
  292. }
  293. }
  294. </script>
  295. <input type="hidden" id="do_check" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/check');?>">
  296. <input type="hidden" id="do_down" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/down');?>">
  297. <input type="hidden" id="do_update" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/update');?>">
  298. <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');?>">
  299. <input type="hidden" id="check_cache" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/checkCache');?>">
  300. </div>
  301. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
  302. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
  303. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
  304. <script type="text/javascript" src="https://www.pbootcms.com/res/v1/js/update.js?v=v3.1.3" ></script>
  305. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  306. <!--[if lt IE 9]>
  307. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  308. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  309. <![endif]-->
  310. </body>
  311. </html>
  312. <?php return array (
  313. 0 => 'D:/wwwroot/cbkpcccvec/wwwroot/apps/admin/view/default/common/head.html',
  314. 1 => 'D:/wwwroot/cbkpcccvec/wwwroot/apps/admin/view/default/common/foot.html',
  315. ); ?>