step2.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!doctype html>
  2. <meta name="renderer" content="webkit">
  3. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >
  4. <html>
  5. <head>
  6. <meta charset="UTF-8" />
  7. <meta http-equiv="Content-Language" content="zh-cn"/>
  8. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  9. <title><?php echo $Title; ?> - <?php echo $Powered; ?></title>
  10. <link rel="stylesheet" href="./css/install.css?v=v1.3.1" />
  11. <script src="./js/jquery.js?v=v1.3.1"></script>
  12. <script src="./../public/plugins/layer-v3.1.0/layer.js?v=v1.3.1"></script>
  13. <style type="text/css">
  14. .btn_a{ width: 58px; }
  15. #table td{ text-align: center; }
  16. #table td.first{ text-align: left; }
  17. </style>
  18. </head>
  19. <body>
  20. <div class="wrap">
  21. <?php require './templates/header.php';?>
  22. <section class="section">
  23. <div class="blank30"></div>
  24. <div class="go go2"></div>
  25. <div class="blank30"></div>
  26. <div class="server">
  27. <table width="100%" id="table" cellspacing="1">
  28. <tr>
  29. <td class="td1">环境检测</td>
  30. <td class="td1" width="23%">推荐配置</td>
  31. <td class="td1" width="46%">当前状态</td>
  32. </tr>
  33. <tr>
  34. <td class="first">服务器环境</td>
  35. <td>IIS/apache2.0以上/nginx1.6以上</td>
  36. <td><?php echo $_SERVER['SERVER_SOFTWARE']; ?></td>
  37. </tr>
  38. <tr>
  39. <td class="first">PHP版本</td>
  40. <td>5.4及5.4以上<br/>(支持php7)</td>
  41. <td><?php echo $phpvStr; ?></td>
  42. </tr>
  43. <tr>
  44. <td class="first">safe_mode</td>
  45. <td><font title="影响缓存清除、系统升级、模板管理等功能">基础配置</font></td>
  46. <td><?php echo $safe_mode; ?></td>
  47. </tr>
  48. <tr>
  49. <td class="first">GD库</td>
  50. <td><font title="影响验证码是否显示、图片水印、以及图像处理等问题">必须开启</font></td>
  51. <td><?php echo $gd; ?></td>
  52. </tr>
  53. <!-- <tr>
  54. <td class="first">session</td>
  55. <td><font title="影响系统安装、后台登录等功能">必须开启</font></td>
  56. <td><?php echo $session; ?></td>
  57. </tr> -->
  58. <tr>
  59. <td class="first">mysqli</td>
  60. <td><font title="影响数据库的连接和一系列读、写、删、改操作">必须开启</font></td>
  61. <td><?php echo $mysql; ?></td>
  62. </tr>
  63. <tr>
  64. <td class="first">pdo</td>
  65. <td><font title="影响数据库的连接和一系列读、写、删、改操作">必须开启</font></td>
  66. <td><?php echo $pdo; ?></td>
  67. </tr>
  68. <tr>
  69. <td class="first">pdo_mysql</td>
  70. <td><font title="影响数据库的连接和一系列读、写、删、改操作">必须开启</font></td>
  71. <td><?php echo $pdo_mysql; ?></td>
  72. </tr>
  73. </table>
  74. <table width="100%" id="table" cellspacing="1">
  75. <tr>
  76. <td class="td1">函数检测</td>
  77. <td class="td1" width="23%">推荐配置</td>
  78. <td class="td1" width="46%">是否通过</td>
  79. </tr>
  80. <tr>
  81. <td class="first">curl_init</td>
  82. <td><font title="影响插件功能、伪静态、系统升级、采集文章等功能">必须扩展</font></td>
  83. <td><?php echo $curl; ?></td>
  84. </tr>
  85. <tr>
  86. <td class="first">file_put_contents</td>
  87. <td><font title="影响系统安装、文件上传、数据库备份、百度地图xml等功能">必须扩展</font></td>
  88. <td><?php echo $file_put_contents; ?></td>
  89. </tr>
  90. <!-- <tr>
  91. <td class="first">scandir</td>
  92. <td><a href="http://www.eyoucms.com/bbs/823.html" target="_blank">必须支持</a></td>
  93. <td><?php echo $scandir; ?></td>
  94. </tr> -->
  95. </table>
  96. <table width="100%" id="table" cellspacing="1">
  97. <tr>
  98. <td class="td1">目录、文件权限检查</td>
  99. <td class="td1" width="23%">推荐配置</td>
  100. <td class="td1" width="46%">是否通过</td>
  101. </tr>
  102. <?php
  103. foreach($folder as $dir){
  104. $is_write = false;
  105. $Testdir = SITEDIR.$dir;
  106. if (file_exists($Testdir) && is_file($Testdir)) {
  107. $is_write = is_writable($Testdir);
  108. !empty($is_write) && $is_write = is_readable($Testdir);
  109. } else {
  110. dir_create($Testdir);
  111. $is_write = testwrite($Testdir);
  112. !empty($is_write) && $is_write = is_readable($Testdir);
  113. }
  114. if($is_write){
  115. $w = '<img src="images/ok.png">';
  116. }else{
  117. $w = '<img src="images/del.png">';
  118. $err++;
  119. }
  120. ?>
  121. <tr>
  122. <td class="first"><?php echo $dir; ?></td>
  123. <td>读写</td>
  124. <td><?php echo $w; ?></td>
  125. </tr>
  126. <?php
  127. }
  128. ?>
  129. </table>
  130. </div>
  131. <div class="bottom tac">
  132. <div class="blank20"></div>
  133. <center>
  134. <a href="<?php echo $_SERVER['PHP_SELF']; ?>?step=2" class="btn_b">重新检测</a>
  135. <?php if($err>0){?>
  136. <a id="next_submit" href="javascript:void(0)" onClick="javascript:layer.alert('安装环境检测未通过,请检查', {icon: 5, title: false})" class="btn_a" style="background: gray;">下一步</a>
  137. <?php }else{?>
  138. <a id="next_submit" href="<?php echo $_SERVER['PHP_SELF']; ?>?step=3" class="btn_a">下一步</a>
  139. <?php }?>
  140. </center>
  141. </div>
  142. </section>
  143. </div>
  144. <div class="blank20"></div>
  145. <?php require './templates/footer.php';?>
  146. <script type="text/javascript">
  147. $(function(){
  148. $('#next_submit').focus();
  149. });
  150. </script>
  151. </body>
  152. </html>