root folder

This commit is contained in:
Marc Wäckerlin committed 2017-03-01 19:37:31 +00:00
1 parent 3b8fba5d45
commit 004037dc53
3 files changed
+1 -93

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ function tarHeader($Name, $Size, $information=NULL) {
}
function checkPath($pathToCheck) {
global $imagepath, $subpath;
$fullpath = $imagepath.'/'.$pathToCheck;
$fullpath = preg_replace('/\/$/', '', $imagepath.'/'.$pathToCheck);
if ($fullpath==realpath($fullpath) && is_dir($fullpath)) {
$subpath=$pathToCheck;
$imagepath = $fullpath;