home.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. {include file='common/head.html'}
  2. <div class="layui-body">
  3. {if(![$dbsecurity]||![$session.pwsecurity])}
  4. <blockquote class="layui-elem-quote layui-text-red" id="note">
  5. {if(![$dbsecurity])}
  6. <p>
  7. <i class="fa fa-info-circle" aria-hidden="true"></i>
  8. 您的数据库文件存在安全隐患,可能被下载,请尽快修改数据库路径!<a class="layui-btn layui-btn-sm"
  9. href="{url./admin/Index/home}&action=moddb">自动修改</a>
  10. </p>
  11. {/if}
  12. {if(![$session.pwsecurity])}
  13. <p>
  14. <i class="fa fa-info-circle" aria-hidden="true"></i>
  15. 您的账号密码为初始密码,存在安全隐患,请尽快修改密码!<a class="layui-btn layui-btn-sm" href="{url./admin/Index/ucenter}">立即修改</a>
  16. </p>
  17. {/if}
  18. </blockquote>
  19. {/if}
  20. <blockquote class="layui-elem-quote">
  21. 当前登录用户:{$user_info->username}
  22. {$user_info->realname},登录时间:{$user_info->update_time},登录IP:{fun=long2ip([$user_info->last_login_ip])},累计登录次数:{$user_info->login_count}
  23. </blockquote>
  24. <fieldset class="layui-elem-field">
  25. <legend>快捷操作</legend>
  26. <div class="layui-field-box">
  27. <div class="layui-row">
  28. {foreach $model_msg(key,value)}
  29. <div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
  30. {if($value->type==1)}
  31. <a href="{url./admin/Single/index/mcode/'.$value->mcode.'}">
  32. {else}
  33. <a href="{url./admin/Content/index/mcode/'.$value->mcode.'}">
  34. {/if}
  35. <dl class="deskbox center-block">
  36. <dt>[value->name]</dt>
  37. <dd>[value->count]</dd>
  38. </dl>
  39. </a>
  40. </div>
  41. {/foreach}
  42. <div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
  43. <a href="{url./admin/Message/index}">
  44. <dl class="deskbox center-block">
  45. <dt>留言</dt>
  46. <dd>{$sum_msg}</dd>
  47. </dl>
  48. </a>
  49. </div>
  50. </div>
  51. </div>
  52. </fieldset>
  53. {if(CMSNAME=='PbootCMS')}
  54. <h2>欢迎登录贵州风云气象技术有限公司官网管理后台!</h2>
  55. <!-- <div class="layui-row layui-col-space10">
  56. <div class="layui-col-xs12 layui-col-md6">
  57. <table class="layui-table table-two">
  58. <thead>
  59. <tr>
  60. <th colspan="2">系统信息</th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. <tr>
  65. <th width="100">应用版本</th>
  66. <td>PbootCMS V{APP_VERSION}-{RELEASE_TIME}
  67. {if(session('ucode')==10001)}
  68. <a href="javascript:void(0)" onclick="Notice()" class="layui-btn layui-btn-xs" id="check">在线更新</a>
  69. {/if}
  70. </td>
  71. </tr>
  72. <tr>
  73. <th>主机系统</th>
  74. <td>{$server->php_os}</td>
  75. </tr>
  76. <tr>
  77. <th>主机地址</th>
  78. <td>{$server->server_name}({$server->server_addr}:{$server->server_port})</td>
  79. </tr>
  80. <tr>
  81. <th>WEB软件</th>
  82. <td>{$server->server_software}</td>
  83. </tr>
  84. <tr>
  85. <th>PHP版</th>
  86. <td>{$server->php_version}</td>
  87. </tr>
  88. <tr>
  89. <th>数据库驱动</th>
  90. <td>{$server->db_driver}</td>
  91. </tr>
  92. <tr>
  93. <th>文件上传限制</th>
  94. <td>{$server->upload_max_filesize}</td>
  95. </tr>
  96. <tr>
  97. <th>表单提交限制</th>
  98. <td>{$server->post_max_size}</td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </div>
  103. <div class="layui-col-xs12 layui-col-md6">
  104. <table class="layui-table table-two">
  105. <thead>
  106. <tr>
  107. <th colspan="2">开发信息</th>
  108. </tr>
  109. </thead>
  110. <tbody>
  111. <tr>
  112. <th>系统名称</th>
  113. <td>{CMSNAME}企业网站开发建设管理系统</td>
  114. </tr>
  115. <tr>
  116. <th>官方网站</th>
  117. <td><a href="http://www.pbootcms.com" target="_blank" style="color:#666">www.pbootcms.com</a></td>
  118. </tr>
  119. <tr>
  120. <th>源码下载</th>
  121. <td>
  122. <a href="https://gitee.com/hnaoyun/PbootCMS/" style="color:#666" target="_blank">Gitee</a>
  123. </td>
  124. </tr>
  125. <tr>
  126. <th>系统开发</th>
  127. <td>星梦</td>
  128. </tr>
  129. <tr>
  130. <th>版权协议</th>
  131. <td><a href="http://www.pbootcms.com/system-usage/277.html" style="color:#666" target="_blank">点击查看</a></td>
  132. </tr>
  133. <tr>
  134. <th>技术交流群</th>
  135. <td>822430453、794519782</td>
  136. </tr>
  137. <tr>
  138. <th>友情贡献者</th>
  139. <td>
  140. 感谢交流群各网友对PbootCMS发展的大力支持;
  141. 感谢LayUI提供的前端框架;
  142. 感谢百度提供的富文本编辑器;
  143. 感谢星梦开发团队的日夜奋斗。
  144. </td>
  145. </tr>
  146. </tbody>
  147. </table>
  148. </div>
  149. </div> -->
  150. {/if}
  151. </div>
  152. <script>
  153. $.ajax({
  154. type: 'GET',
  155. url: 'https://www.pbootcms.com/index.php?p=/upgrade/check&version={APP_VERSION}.{RELEASE_TIME}.{$revise}&branch={$branch}&snuser={$snuser}&site={$site}',
  156. dataType: 'json',
  157. success: function (response, status) {
  158. if (response.code == 1) {
  159. $("#check").html($("#check").html() + '<span class="layui-badge-dot"></span>');
  160. $("#check").attr('onclick', "Notice('update')");
  161. }
  162. }
  163. });
  164. function Notice(param) {
  165. if (param === 'update') {
  166. layer.alert('已检测到新版本发布,详情请查看<a href="https://www.pbootcms.com/dev-log/" style="color: blue" target="_blank">开发日志</a>', { title: '更新须知' }, function (index) {
  167. layer.close(index);
  168. location.href = "{url./admin/Upgrade/index}";
  169. });
  170. } else {
  171. location.href = "{url./admin/Upgrade/index}";
  172. }
  173. }
  174. </script>
  175. {include file='common/foot.html'}