aboutsummaryrefslogtreecommitdiff
path: root/www/inc/config.inc.php
diff options
context:
space:
mode:
authorjimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003>2007-05-14 10:31:23 +0000
committerjimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003>2007-05-14 10:31:23 +0000
commit583c6d09ee220693b42eed4db53088137cf8c085 (patch)
tree7a9efa8622949edd6549c2697724f75d8ca8b793 /www/inc/config.inc.php
parent4a0a16f5036c9b490883c2313598548e3b840ba2 (diff)
downloadoriginal-583c6d09ee220693b42eed4db53088137cf8c085.tar.gz
original-583c6d09ee220693b42eed4db53088137cf8c085.tar.bz2
fix possible exploit
git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@18 4fa712ea-3c06-0410-9261-c11b4c06c003
Diffstat (limited to 'www/inc/config.inc.php')
-rw-r--r--www/inc/config.inc.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/www/inc/config.inc.php b/www/inc/config.inc.php
index 9bb611f..8ea3211 100644
--- a/www/inc/config.inc.php
+++ b/www/inc/config.inc.php
@@ -1,12 +1,6 @@
<?php
#base dirname
- //dirname("__FILE__/..")
- $ThisScript=preg_replace('/\?.*$/', '', $_SERVER['REQUEST_URI']);
- $ScriptFileName=$_SERVER['SCRIPT_FILENAME'];
- $HostName=$_SERVER['SERVER_NAME'];
- $ThisUrl = $_SERVER['REQUEST_URI'];
- eregi("^(.*)/[^/]*$", $ScriptFileName, $x);
- $root = $x[1];
+ $root = dirname(__FILE__);
# ===========================================================================
# dir index
$sortinmonth = 0;// 1 - alphabetically
@@ -96,7 +90,7 @@ $scnamegallery = "Photo Gallery Index";
## Gallery Directory
# This is a path relative to the directory where original is installed
# eg. it can be "../galleries" to use a galleries dir above the original dir.
- $gallery_dir="../galleries";
+ $gallery_dir="galleries";
#Enable this to access extended tracking functionality
#depends on sqlite