step2.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>勾股CMS安装</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <link rel="stylesheet" href="{__GOUGU__}/layui/css/layui.css" media="all">
  10. <style>
  11. body {
  12. width: 100%;
  13. height: 100%;
  14. background-size: cover;
  15. background: url("{__ADMIN__}/images/bg_pattern.png"), #7b4397;
  16. background: url("{__ADMIN__}/images/bg_pattern.png"), -webkit-linear-gradient(to left, #34a853, #4285f4);
  17. background: url("{__ADMIN__}/images/bg_pattern.png"), linear-gradient(to left, #34a853, #4285f4);
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div style="width:200px;margin: 20px auto;"><img src="{__ADMIN__}/images/login_logo.png" alt="勾股CMS安装"
  23. width="200"></div>
  24. <div style="width:888px;margin:0 auto 30px;">
  25. <div class="layui-layout layui-layout-admin">
  26. <div class="layui-header layui-bg-red" style="border-radius:6px 6px 0 0;position:relative;">
  27. <div class="layui-logo" style="color: #fff; width:100px;">安装引导</div>
  28. <ul class="layui-nav layui-layout-right">
  29. <li class="layui-nav-item">v{:CMS_VERSION}</li>
  30. </ul>
  31. </div>
  32. <div style="padding:20px; background-color:#fff;line-height: 27px; border-radius:0 0 6px 6px">
  33. <h3>安装环境检测</h3>
  34. <table class="layui-table" lay-skin="nob" lay-size="sm">
  35. <colgroup>
  36. <col width="150">
  37. <col width="200">
  38. <col width="200">
  39. <col width="100">
  40. <col>
  41. </colgroup>
  42. <thead>
  43. <tr>
  44. <th>环境</th>
  45. <th>最低配置</th>
  46. <th>当前配置</th>
  47. <th>是否符合</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <tr>
  52. <td>操作系统</td>
  53. <td>不限</td>
  54. <td>
  55. <?php echo php_uname('s'); ?>
  56. </td>
  57. <td class="yes"><i class="layui-icon layui-icon-ok"></i></td>
  58. </tr>
  59. <tr>
  60. <td>php版本</td>
  61. <td>≥ 7.0</td>
  62. <td>
  63. <?php echo PHP_VERSION ?>
  64. </td>
  65. <?php $php_version=explode('.', PHP_VERSION); ?>
  66. <td class="<?php if(($php_version['0']>=7))echo 'yes'; ?>">
  67. <?php if (($php_version['0']>=7)): ?>
  68. <i class="layui-icon layui-icon-ok"></i>
  69. <?php else: ?>
  70. <i class="layui-icon layui-icon-close"></i>
  71. <?php endif ?>
  72. </td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. <h3>模块检测</h3>
  77. <table class="layui-table" lay-skin="nob" lay-size="sm">
  78. <colgroup>
  79. <col width="150">
  80. <col width="200">
  81. <col width="200">
  82. <col width="100">
  83. <col>
  84. </colgroup>
  85. <thead>
  86. <tr>
  87. <th>环境</th>
  88. <th>最低配置</th>
  89. <th>当前配置</th>
  90. <th>是否符合</th>
  91. </tr>
  92. </thead>
  93. <tbody>
  94. <tr>
  95. <td>session</td>
  96. <td>支持</td>
  97. <td>{eq name="$data.session" value="1"}支持{else /}不支持{/eq}</td>
  98. <td><i class="layui-icon {eq name=" $data.session" value="1" }layui-icon-ok yes{else
  99. /}layui-icon-close{/eq}">
  100. </i> </td>
  101. </tr>
  102. <tr>
  103. <td>PDO</td>
  104. <td>开启</td>
  105. <td>{eq name="$data.pdo" value="1"}已开启{else /}未开启{/eq}</td>
  106. <td><i class="layui-icon {eq name=" $data.pdo" value="1" }layui-icon-ok yes{else
  107. /}layui-icon-close{/eq}"> </i>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>PDO_Mysql</td>
  112. <td>开启</td>
  113. <td>{eq name="$data.pdo_mysql" value="1"}已开启{else /}未开启{/eq}</td>
  114. <td><i class="layui-icon {eq name=" $data.pdo_mysql" value="1" }layui-icon-ok yes{else
  115. /}layui-icon-close{/eq}"> </i> </td>
  116. </tr>
  117. <tr>
  118. <td>上传限制</td>
  119. <td>≥ 2M</td>
  120. <td>{eq name="$data.upload_size" value="0"}不支持{else /}{$data.upload_size}{/eq}</td>
  121. <td><i class="layui-icon {eq name=" $data.upload_size" value="0" }layui-icon-close{else
  122. /}layui-icon-ok yes{/eq}">
  123. </i> </td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. <h3>目录权限</h3>
  128. <table class="layui-table" lay-skin="nob" lay-size="sm">
  129. <colgroup>
  130. <col width="150">
  131. <col width="200">
  132. <col width="200">
  133. <col width="100">
  134. <col>
  135. </colgroup>
  136. <thead>
  137. <tr>
  138. <th>环境</th>
  139. <th>最低配置</th>
  140. <th>当前配置</th>
  141. <th>是否符合</th>
  142. </tr>
  143. </thead>
  144. <tbody>
  145. <tr>
  146. <td>config</td>
  147. <td>可写</td>
  148. <td>
  149. <?php if (is_writable(CMS_ROOT . 'config')): ?>
  150. 可写
  151. <?php else: ?>
  152. 不可写
  153. <?php endif ?>
  154. </td>
  155. <td class="<?php if(is_writable(CMS_ROOT . 'config'))echo 'yes'; ?>">
  156. <?php if (is_writable(CMS_ROOT . 'config')): ?>
  157. <i class="layui-icon layui-icon-ok"></i>
  158. <?php else: ?>
  159. <i class="layui-icon layui-icon-close"></i>
  160. <?php endif ?>
  161. </td>
  162. </tr>
  163. <tr>
  164. <td>/storage</td>
  165. <td>可写</td>
  166. <td>
  167. <?php if (is_writable('./storage')): ?>
  168. 可写
  169. <?php else: ?>
  170. 不可写
  171. <?php endif ?>
  172. </td>
  173. <td class="<?php if(is_writable('./storage'))echo 'yes'; ?>">
  174. <?php if (is_writable('./storage')): ?>
  175. <i class="layui-icon layui-icon-ok"></i>
  176. <?php else: ?>
  177. <i class="layui-icon layui-icon-close"></i>
  178. <?php endif ?>
  179. </td>
  180. </tr>
  181. </tbody>
  182. </table>
  183. <div style="margin:10px auto;width: 190px;">
  184. <a href="/index.php?s=install/index/index" class="layui-btn layui-bg-cyan">上一步</a>
  185. <a href="javascript:;" class="layui-btn layui-bg-blue" id="step2">下一步</a>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <script src="{__GOUGU__}/layui/layui.js" charset="utf-8"></script>
  191. <script>
  192. layui.use(['jquery', 'layer'], function () {
  193. var $ = layui.jquery,
  194. layer = layui.layer;
  195. $('#step2').click(function () {
  196. if ($('.yes').length != 8) {
  197. layer.tips('您的配置或权限不符合要求', this);
  198. } else {
  199. location.href = "/index.php?s=install/index/step3";
  200. }
  201. })
  202. });
  203. </script>
  204. </body>
  205. </html>