diff options
author | jimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003> | 2006-02-14 20:52:54 +0000 |
---|---|---|
committer | jimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003> | 2006-02-14 20:52:54 +0000 |
commit | b50897cb0fdf0d42d306b20b8e38f19f8e2832e3 (patch) | |
tree | 101066455a67bc4c1be5244f6fbdf608df5f021e /www/inc/config.inc.php | |
parent | 20407702b92cb93970eaa4a71e659f383d2f92a5 (diff) | |
download | original-b50897cb0fdf0d42d306b20b8e38f19f8e2832e3.tar.gz original-b50897cb0fdf0d42d306b20b8e38f19f8e2832e3.tar.bz2 |
add sqlite hooks
git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@9 4fa712ea-3c06-0410-9261-c11b4c06c003
Diffstat (limited to 'www/inc/config.inc.php')
-rw-r--r-- | www/inc/config.inc.php | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/www/inc/config.inc.php b/www/inc/config.inc.php index 1f0bbd3..c800fac 100644 --- a/www/inc/config.inc.php +++ b/www/inc/config.inc.php @@ -1,8 +1,12 @@ <?php #base dirname //dirname("__FILE__/..") - eregi("^(.*)/[^/]*$", $ScriptFileName, $x); - $root = $x[1]; + $ThisScript=preg_replace('/\?.*$/', '', $_SERVER['REQUEST_URI']); + $ScriptFileName=$_SERVER['SCRIPT_FILENAME']; + $HostName=$_SERVER['SERVER_NAME']; + $ThisUrl = $_SERVER['REQUEST_URI']; + eregi("^(.*)/[^/]*$", $ScriptFileName, $x); + $root = $x[1]; # =========================================================================== # dir index $sortinmonth = 0;// 1 - alphabetically @@ -46,7 +50,7 @@ $scnamegallery = "Photo Gallery Index"; $app["name"] = "Original"; // opensource remote image gallery, // initialy not as lovely $app["url"] = "http://jimmac.musichall.cz/original.php3"; - $app["version"] = "0.11"; + $app["version"] = "0.12pre"; # =========================================================================== # EXIF metadata app path (helper app for php3 and older php4) # uncomment the method you want to use if you want EXIF data reported @@ -95,15 +99,16 @@ $scnamegallery = "Photo Gallery Index"; # eg. it can be "../galleries" to use a galleries dir above the original dir. $gallery_dir="../galleries"; +#Enable this to access extended tracking functionality +#depends on sqlite +$have_sqlite = 1; + # This controls wheather web visitors will be able to post # comments to images $comments = 1; # Access Log/Counter # $log_access = 0; // no access logging -# $log_access = 1; // simple counter -# $log_access = 2; // detailed log FIXME: TODO (not sure about doing this, as - // it duplicates server's access log and tends to grow large $log_access = 1; #css styles |