summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php
index 9314008e1..334d77b00 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -49,7 +49,13 @@
$conf['mediaweb'] = getBaseURL().$conf['mediaweb'];
}
-
+ // make real paths and check them
+ $conf['datadir'] = realpath($conf['datadir']);
+ if(!$conf['datadir']) msg('Wrong datadir!',-1);
+ $conf['olddir'] = realpath($conf['olddir']);
+ if(!$conf['olddir']) msg('Wrong olddir!',-1);
+ $conf['mediadir'] = realpath($conf['mediadir']);
+ if(!$conf['mediadir']) msg('Wrong mediadir!',-1);
/**
* remove magic quotes recursivly