aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2016-12-17 14:11:47 +0100
committerMaZderMind2016-12-17 14:12:29 +0100
commit3384e963da66e9089b71c546750c8981be8c6ed8 (patch)
tree83a452dbcb3aa1716c6a0dd90f99c07f145f4829 /index.php
parent9c7bccc3f2cc226cd5043752403e4c5d39c8b5b5 (diff)
change storage paths according to issue description
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');