index.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 Requirement Checker</title>
  8. </head>
  9. <body>
  10. <div id="page">
  11. <div id="header">
  12. <h1>Yii Requirement Checker</h1>
  13. </div><!-- header-->
  14. <div id="content">
  15. <h2>Description</h2>
  16. <p>
  17. This script checks if your server configuration meets the requirements
  18. for running <a href="http://www.yiiframework.com/">Yii</a> Web applications.
  19. It checks if the server is running the right version of PHP,
  20. if appropriate PHP extensions have been loaded, and if php.ini file settings are correct.
  21. </p>
  22. <h2>Conclusion</h2>
  23. <p>
  24. <?php if($result>0): ?>
  25. Congratulations! Your server configuration satisfies all requirements by Yii.
  26. <?php elseif($result<0): ?>
  27. Your server configuration satisfies the minimum requirements by Yii. Please pay attention to the warnings listed below if your application will use the corresponding features.
  28. <?php else: ?>
  29. Unfortunately your server configuration does not satisfy the requirements by Yii.
  30. <?php endif; ?>
  31. </p>
  32. <h2>Details</h2>
  33. <table class="result">
  34. <tr><th>Name</th><th>Result</th><th>Required By</th><th>Memo</th></tr>
  35. <?php foreach($requirements as $requirement): ?>
  36. <tr>
  37. <td>
  38. <?php echo $requirement[0]; ?>
  39. </td>
  40. <td class="<?php echo $requirement[2] ? 'passed' : ($requirement[1] ? 'failed' : 'warning'); ?>">
  41. <?php echo $requirement[2] ? 'Passed' : ($requirement[1] ? 'Failed' : 'Warning'); ?>
  42. </td>
  43. <td>
  44. <?php echo $requirement[3]; ?>
  45. </td>
  46. <td>
  47. <?php echo $requirement[4]; ?>
  48. </td>
  49. </tr>
  50. <?php endforeach; ?>
  51. </table>
  52. <table>
  53. <tr>
  54. <td class="passed">&nbsp;</td><td>passed</td>
  55. <td class="failed">&nbsp;</td><td>failed</td>
  56. <td class="warning">&nbsp;</td><td>warning</td>
  57. </tr>
  58. </table>
  59. </div><!-- content -->
  60. <div id="footer">
  61. <?php echo $serverInfo; ?>
  62. </div><!-- footer -->
  63. </div><!-- page -->
  64. </body>
  65. </html>