f69b0a9b8eacec06cb005d93c06d7810.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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" href="<?php echo \core\basic\Url::get('/admin/Index/home');?>&action=moddb">自动修改</a>
  129. </p>
  130. <?php } ?>
  131. <?php if (!session('pwsecurity')) {?>
  132. <p>
  133. <i class="fa fa-info-circle" aria-hidden="true"></i>
  134. 您的账号密码为初始密码,存在安全隐患,请尽快修改密码!<a class="layui-btn layui-btn-sm" href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>">立即修改</a>
  135. </p>
  136. <?php } ?>
  137. </blockquote>
  138. <?php } ?>
  139. <blockquote class="layui-elem-quote">
  140. 当前登录用户:<?php echo @$this->getVar('user_info')->username;?> <?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;?>
  141. </blockquote>
  142. <fieldset class="layui-elem-field">
  143. <legend>快捷操作</legend>
  144. <div class="layui-field-box">
  145. <div class="layui-row">
  146. <?php $num = 0;foreach ($this->getVar('model_msg') as $key => $value) { $num++;?>
  147. <div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
  148. <?php if ($value->type==1) {?>
  149. <a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value->mcode.'');?>">
  150. <?php } else { ?>
  151. <a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value->mcode.'');?>">
  152. <?php } ?>
  153. <dl class="deskbox center-block">
  154. <dt><?php echo $value->name; ?></dt>
  155. <dd><?php echo $value->count; ?></dd>
  156. </dl>
  157. </a>
  158. </div>
  159. <?php } ?>
  160. <div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
  161. <a href="<?php echo \core\basic\Url::get('/admin/Message/index');?>">
  162. <dl class="deskbox center-block">
  163. <dt>留言</dt>
  164. <dd><?php echo $this->getVar('sum_msg');?></dd>
  165. </dl>
  166. </a>
  167. </div>
  168. </div>
  169. </div>
  170. </fieldset>
  171. <?php if (CMSNAME=='PbootCMS') {?>
  172. <div class="layui-row layui-col-space10">
  173. <div class="layui-col-xs12 layui-col-md6">
  174. <table class="layui-table table-two">
  175. <thead>
  176. <tr>
  177. <th colspan="2">系统信息</th>
  178. </tr>
  179. </thead>
  180. <tbody>
  181. <tr>
  182. <th width="100">应用版本</th>
  183. <td>PbootCMS V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?>
  184. <?php if (session('ucode')==10001) {?>
  185. <a href="javascript:void(0)" onclick="Notice()" class="layui-btn layui-btn-xs" id="check">在线更新</a>
  186. <?php } ?>
  187. </td>
  188. </tr>
  189. <tr>
  190. <th>主机系统</th>
  191. <td><?php echo @$this->getVar('server')->php_os;?></td>
  192. </tr>
  193. <tr>
  194. <th>主机地址</th>
  195. <td><?php echo @$this->getVar('server')->server_name;?>(<?php echo @$this->getVar('server')->server_addr;?>:<?php echo @$this->getVar('server')->server_port;?>)</td>
  196. </tr>
  197. <tr>
  198. <th>WEB软件</th>
  199. <td><?php echo @$this->getVar('server')->server_software;?></td>
  200. </tr>
  201. <tr>
  202. <th>PHP版</th>
  203. <td><?php echo @$this->getVar('server')->php_version;?></td>
  204. </tr>
  205. <tr>
  206. <th>数据库驱动</th>
  207. <td><?php echo @$this->getVar('server')->db_driver;?></td>
  208. </tr>
  209. <tr>
  210. <th>文件上传限制</th>
  211. <td><?php echo @$this->getVar('server')->upload_max_filesize;?></td>
  212. </tr>
  213. <tr>
  214. <th>表单提交限制</th>
  215. <td><?php echo @$this->getVar('server')->post_max_size;?></td>
  216. </tr>
  217. </tbody>
  218. </table>
  219. </div>
  220. <div class="layui-col-xs12 layui-col-md6">
  221. <table class="layui-table table-two">
  222. <thead>
  223. <tr>
  224. <th colspan="2">开发信息</th>
  225. </tr>
  226. </thead>
  227. <tbody>
  228. <tr>
  229. <th>系统名称</th>
  230. <td><?php echo CMSNAME;?>企业网站开发建设管理系统</td>
  231. </tr>
  232. <tr>
  233. <th>官方网站</th>
  234. <td><a href="http://www.pbootcms.com" target="_blank" style="color:#666">www.pbootcms.com</a></td>
  235. </tr>
  236. <tr>
  237. <th>源码下载</th>
  238. <td>
  239. <a href="https://gitee.com/hnaoyun/PbootCMS/" style="color:#666" target="_blank">Gitee</a>
  240. </td>
  241. </tr>
  242. <tr>
  243. <th>系统开发</th>
  244. <td>星梦</td>
  245. </tr>
  246. <tr>
  247. <th>版权协议</th>
  248. <td><a href="http://www.pbootcms.com/system-usage/277.html" style="color:#666" target="_blank">点击查看</a></td>
  249. </tr>
  250. <tr>
  251. <th>技术交流群</th>
  252. <td>822430453、794519782</td>
  253. </tr>
  254. <tr>
  255. <th>友情贡献者</th>
  256. <td>
  257. 感谢交流群各网友对PbootCMS发展的大力支持;
  258. 感谢LayUI提供的前端框架;
  259. 感谢百度提供的富文本编辑器;
  260. 感谢星梦开发团队的日夜奋斗。
  261. </td>
  262. </tr>
  263. </tbody>
  264. </table>
  265. </div>
  266. </div>
  267. <?php } ?>
  268. </div>
  269. <script>
  270. $.ajax({
  271. type: 'GET',
  272. 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');?>',
  273. dataType: 'json',
  274. success: function (response, status) {
  275. if(response.code==1){
  276. $("#check").html($("#check").html()+'<span class="layui-badge-dot"></span>');
  277. $("#check").attr('onclick',"Notice('update')");
  278. }
  279. }
  280. });
  281. function Notice(param){
  282. if(param === 'update'){
  283. layer.alert('已检测到新版本发布,详情请查看<a href="https://www.pbootcms.com/dev-log/" style="color: blue" target="_blank">开发日志</a>',{title:'更新须知'}, function(index){
  284. layer.close(index);
  285. location.href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>";
  286. });
  287. }else{
  288. location.href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>";
  289. }
  290. }
  291. </script>
  292. <input type="hidden" id="do_check" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/check');?>">
  293. <input type="hidden" id="do_down" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/down');?>">
  294. <input type="hidden" id="do_update" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/update');?>">
  295. <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');?>">
  296. <input type="hidden" id="check_cache" data-url="<?php echo \core\basic\Url::get('/admin/Upgrade/checkCache');?>">
  297. </div>
  298. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
  299. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
  300. <script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
  301. <script type="text/javascript" src="https://www.pbootcms.com/res/v1/js/update.js?v=v3.1.3" ></script>
  302. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  303. <!--[if lt IE 9]>
  304. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  305. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  306. <![endif]-->
  307. </body>
  308. </html>
  309. <?php return array (
  310. 0 => 'D:/wwwroot/cbkpcccvec/wwwroot/fengyunweb/web/apps/admin/view/default/common/head.html',
  311. 1 => 'D:/wwwroot/cbkpcccvec/wwwroot/fengyunweb/web/apps/admin/view/default/common/foot.html',
  312. ); ?>