# Maybe you might have problems
# with other scripts that needs
# register_globals ON
-php_flag magic_quotes_gpc Off
-php_flag register_globals Off
+<IfModule mod_php4.c>
+ php_flag magic_quotes_gpc Off
+ php_flag register_globals Off
+</IfModule>
+<IfModule mod_php5.c>
+ php_flag magic_quotes_gpc Off
+ php_flag register_globals Off
+</IfModule>
#Sometimes neccessary to add those
#
! Release 2.1
$ config.php
+18-Mar-2009 Janusz Dobrowolski
+# Additional php.ini checks and fixes for php in CGI mode
+$ /.htaccess
+ /install.html
+ /install/index.php
+
16-Mar-2009 Janusz Dobrowolski
# Fixed redirection after order cancelation.
$ /sales/sales_order_entry.php
?>
</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>