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 extension, 以及確認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] ? '通過' : '未通過'; ?>
  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>