index.php 2.2 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>Verifica soddisfazione requisiti di Yii</title>
  8. </head>
  9. <body>
  10. <div id="page">
  11. <div id="header">
  12. <h1>Verifica soddisfazione requisiti di Yii</h1>
  13. </div><!-- header-->
  14. <div id="content">
  15. <h2>Descrizione</h2>
  16. <p>
  17. Questo script verifica se la configurazione del tuo server soddisfa i requisiti
  18. di esecuzione delle web application sviluppate con <a href="http://www.yiiframework.com/">Yii</a>.
  19. Verifica se nel server è in esecuzione la corretta versione di PHP, se le
  20. estensioni PHP necessarie sono state caricate e se le impostazioni di php.ini sono corrette.
  21. </p>
  22. <h2>Conclusioni</h2>
  23. <p>
  24. <?php if($result>0): ?>
  25. Congratulazioni! La configurazione del tuo server soddisfa tutti i requisiti di Yii.
  26. <?php elseif($result<0): ?>
  27. La configurazione del tuo server soddisfa i requisiti minimi di Yii. Si prega di prestare attenzione agli avvisi qui sotto qualora l'applicazione utilizzi le corrispondenti funzionalità.
  28. <?php else: ?>
  29. Sfortunatamente La configurazione del tuo server non soddisfa i requisiti di Yii.
  30. <?php endif; ?>
  31. </p>
  32. <h2>Dettagli</h2>
  33. <table class="result">
  34. <tr><th>Nome</th><th>Resultato</th><th>Richiesto da</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] ? 'Superato' : 'Fallito'; ?>
  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>superato</td>
  55. <td class="failed">&nbsp;</td><td>fallito</td>
  56. <td class="warning">&nbsp;</td><td>avviso</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>