New report, Supplier Details Report, and fix of a bug in Customer Details Report.
[fa-stable.git] / .htaccess
index b923b02e3372d8c329c9ae9e204b063d653cc1de..12c3504fdb561901b83492e1760ae68a8f39b5d2 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,9 +1,28 @@
+# Protect sensitive files.
+<FilesMatch "\.(inc|po|sh|.*sql|log)$">
+       Order allow,deny
+</FilesMatch>
+
+# Disable directory listings.
+Options -Indexes
+
+# Set the default index.
+DirectoryIndex index.php
+
 # These settings are recommended
 # 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
+       php_flag session.use_trans_sid Off
+</IfModule>
+<IfModule mod_php5.c>
+       php_flag magic_quotes_gpc Off
+       php_flag register_globals Off
+       php_flag session.use_trans_sid Off
+</IfModule>
 
 #Sometimes neccessary to add those
 #