aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.php b/index.php
index 9b4689c..ca0a6d4 100644
--- a/index.php
+++ b/index.php
@@ -3,6 +3,9 @@
if(!ini_get('short_open_tag'))
die("`short_open_tag = On` is required\n");
+$GLOBALS['BASEDIR'] = dirname(__FILE__);
+chdir($GLOBALS['BASEDIR']);
+
require_once('config.php');
require_once('lib/helper.php');