Fixed display bug in view/print/void transaction, and problem with uploading sql...
[fa-stable.git] / .htaccess
index 03410fbc3a34c234d1e457f64a2668d91d5bec1f..ffcd03e635c5769da99c54e894d4dc230c78ac49 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,11 +1,28 @@
+# Protect sensitive files.
+<FilesMatch "\.(inc|po|sh|.*sql)$">
+       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
-# do not use SID in url
-php_flag session.use_trans_sid 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
 #