index.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <meta http-equiv="content-language" content="en"/>
  6. <link rel="stylesheet" type="text/css" href="css/main.css" />
  7. <title>Yii配置需求检查</title>
  8. </head>
  9. <body>
  10. <div id="page">
  11. <div id="header">
  12. <h1>Yii配置需求检查</h1>
  13. </div><!-- header-->
  14. <div id="content">
  15. <h2>检查内容</h2>
  16. <p>
  17. 本网页用于确认您的服务器配置是否能满足运行<a href="http://www.yiiframework.com/">Yii</a> Web应用的要求。它将检查服务器所运行的PHP版本,查看是否安装了合适的PHP扩展模块,以及确认php.ini文件是否正确设置。
  18. </p>
  19. <h2>检查结果</h2>
  20. <p>
  21. <?php if($result>0): ?>
  22. 恭喜!您的服务器配置完全符合Yii的要求。
  23. <?php elseif($result<0): ?>
  24. 您的服务器配置符合Yii的最低要求。如果您需要使用特定的功能,请关注如下警告。
  25. <?php else: ?>
  26. 您的服务器配置未能满足Yii的要求。
  27. <?php endif; ?>
  28. </p>
  29. <h2>具体结果</h2>
  30. <table class="result">
  31. <tr><th>项目名称</th><th>结果</th><th>使用者</th><th>备注</th></tr>
  32. <?php foreach($requirements as $requirement): ?>
  33. <tr>
  34. <td>
  35. <?php echo $requirement[0]; ?>
  36. </td>
  37. <td class="<?php echo $requirement[2] ? 'passed' : ($requirement[1] ? 'failed' : 'warning'); ?>">
  38. <?php echo $requirement[2] ? '通过' : ($requirement[1] ? '未通过' : 'Warning'); ?>
  39. </td>
  40. <td>
  41. <?php echo $requirement[3]; ?>
  42. </td>
  43. <td>
  44. <?php echo $requirement[4]; ?>
  45. </td>
  46. </tr>
  47. <?php endforeach; ?>
  48. </table>
  49. <table>
  50. <tr>
  51. <td class="passed">&nbsp;</td><td>通过</td>
  52. <td class="failed">&nbsp;</td><td>未通过</td>
  53. <td class="warning">&nbsp;</td><td>警告</td>
  54. </tr>
  55. </table>
  56. </div><!-- content -->
  57. <div id="footer">
  58. <?php echo $serverInfo; ?>
  59. </div><!-- footer -->
  60. </div><!-- page -->
  61. </body>
  62. </html>