#
# .htaccess
# by pts@fazekas.hu at Sat Nov 25 05:55:20 CET 2000
#
# To install this file for Apache <-> PHP setup, do the following:
#
# -1. Rename this file to .htaccess, and copy it to the directory (inside
# your homepage) where the PHP (.php) files are.
#
# 0. Make sure you have Apache >=1.3.12
#
# 1. Put the following lines into Apache's httpd.conf (with $(DIR) substituted
# to the directory this file is in):
#
#	<Directory "$(DIR)">
#	  # <Location> does not work with AllowOverride!!
#	  Options None
#	  AllowOverride All
#	  AccessFileName .htaccess
#	</Directory>
#
# Without `AllowOverride All' or `AllowOverride Options' Apache completely
# ignores this .htaccess file. (It even does not scan for syntax errors.)
#
# 2. Restart Apache with one of the following commands:
#
#	apachectl restart
#	/usr/apache/bin/apachectl restart
#	/usr/local/apache/bin/apachectl restart
#	/etc/init.d/apache restart
#	/etc/init.d/httpd restart
#	/etc/init.d/httpsd restart
#

# vvv Default policy: don't serve files...
Order deny,allow
Deny from all

Options -Indexes -FollowSymlinks
# ^^^ -Indexes nem befolysolja a `DirectoryIndex'-et

DirectoryIndex index.php
# ^^^ not allowed here :-(

<Files "*.php">
  # vvv ...but serve .php files
  Order allow,deny
  Allow from all
</Files>

<Files ~ "^lakas$">
  # ^^^ current directory name for `DirectoryIndex' -- SUXX
  # [ -~]{5}
  Order allow,deny
  Allow from all
</Files>

<IfModule mod_php4.c>
  AddType application/x-httpd-php .php3
  AddType application/x-httpd-php .php
  # AddType application/x-httpd-php-source .phps

  # php_flag allow_call_time_pass_reference On

  # php_admin_flag engine On
  # ^^^ not allowed in .htaccess

  # Don't expect that the options below will be returned by the
  # PHP function get_cfg_var()!! -- pts
  #
  #	string get_cfg_var (string varname)
  #
  #	Returns the current value of the PHP configuration variable specified
  #	by varname, or false if an error occurs.
  #	It will not return configuration information set when the PHP was
  #	compiled, or read from an Apache configuration file (using the
  #	php3_configuration_option directives).

  # php_flag safe_mode On
  # ^^^ no-effect 

  # php_flag safe_mode Off
  # ^^^ no-effect 

  # php_value extension mysql.so
  # ^^^ no-effect

  # php_value extension zlib.so
  # ^^^ no-effect

#  php_flag magic_quotes_gpc Off
  # ^^^ On-Off works!

#  php_flag magic_quotes_runtime Off
  # ^^^ On-Off works!

#  php_flag expose_php Off
  # ^^^ no-effect-phpinfo

#  php_value highlight.bg black
  # ^^^ works-phpinfo

  php_flag engine On
  # php_flag engine Off
  # ^^^ On-Off works!

#  php_flag register_globals Off
  # ^^^ On-Off works!

#  php_flag display_errors On
  # ^^^ On-Off works!

#  php_flag track_vars On
  # ^^^ no-effect since PHP 4.0.3. Quoting from the PHP docs:
  #     `Note - track_vars is ALWAYS enabled as of PHP 4.0.3'

#  php_flag warn_plus_overloading On
  # ^^^ no-effect

#  php_flag enable_dl Off
  # ^^^ no-effect, no-effect-phpinfo

#  php_value non-existant-k any-value
  # ^^^ no-effect
</IfModule>
