Additional checks and fixes of php settings in GI mode.
[fa-stable.git] / install / index.php
index 1c78b5328cbf31ca490d5100396fd5ab74e177b3..99d810a1ce96e30f5b418d5fe742076075b3f68b 100644 (file)
@@ -131,6 +131,30 @@ function change_os(type) {
                                ?>
                        </td>
                </tr>
+               <?php if (substr(php_sapi_name(), 0, 3) == 'cgi') {     ?>
+               <tr>
+                       <td width="140" style="color: #666666;">Magic Quotes GPC</td>
+                       <td width="35">
+                               <?php
+                               if(ini_get('magic_quotes_gpc')) {
+                                       echo '<font class="bad">Enabled</font>';
+                               } else {
+                                       echo '<font class="good">Disabled</font>';
+                               }
+                               ?>
+                       </td>
+                       <td width="140" style="color: #666666;">Register Globals</td>
+                       <td width="35">
+                               <?php
+                               if (ini_get('register_globals')) {
+                                       echo '<font class="bad">Enabled</font>';
+                               } else {
+                                       echo '<font class="good">Disabled</font>';
+                               }
+                               ?>
+                       </td>
+               </tr>
+               <?php } ?>
                </table>
                <table cellpadding="3" cellspacing="0" width="100%" align="center">
                <tr>