summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2005-10-14 07:54:29 +0000
committersvncommit <devs@roundcube.net>2005-10-14 07:54:29 +0000
commit5abfcc7244b06350b7985d470da1175667087e66 (patch)
treee260e6644174a0ed1c0e763f97e05351a021e78c
parent00fd332aa5a59076901be763f17c6c8ded620101 (diff)
better setting for include_path
-rw-r--r--index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.php b/index.php
index 0c6a00f8c..f59820f25 100644
--- a/index.php
+++ b/index.php
@@ -45,10 +45,13 @@
$INSTALL_PATH = './';
$OUTPUT_TYPE = 'html';
$JS_OBJECT_NAME = 'rcmail';
+$CURRENT_PATH=dirname($_SERVER['SCRIPT_FILENAME']);
-
+if ($CURRENT_PATH!='')
+ $CURRENT_PATH.='/';
+
// set environment first
-ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.$INSTALL_PATH.PATH_SEPARATOR.'program'.PATH_SEPARATOR.'program/lib');
+ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.$INSTALL_PATH.PATH_SEPARATOR.$CURRENT_PATH.'program'.PATH_SEPARATOR.$CURRENT_PATH.'program/lib');
ini_set('session.name', 'sessid');
ini_set('session.use_cookies', 1);
ini_set('error_reporting', E_ALL&~E_NOTICE);