parent
070fe02448
commit
4c234bd666
|
@ -25,16 +25,16 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
|
||||||
if (isset($_GET['dir'])) {
|
if (isset($_GET['dir'])) {
|
||||||
$type = 'folder';
|
$type = 'folder';
|
||||||
$path = $_GET['dir'];
|
$path = $_GET['dir'];
|
||||||
if(strlen($path)>1 and substr($path,-1,1)==='/') {
|
if(strlen($path)>1 and substr($path, -1, 1)==='/') {
|
||||||
$path=substr($path,0,-1);
|
$path=substr($path, 0, -1);
|
||||||
}
|
}
|
||||||
$baseDir = $path;
|
$baseDir = $path;
|
||||||
$dir = $baseDir;
|
$dir = $baseDir;
|
||||||
} else {
|
} else {
|
||||||
$type = 'file';
|
$type = 'file';
|
||||||
$path = $_GET['dir'];
|
$path = $_GET['dir'];
|
||||||
if(strlen($path)>1 and substr($path,-1,1)==='/') {
|
if(strlen($path)>1 and substr($path, -1, 1)==='/') {
|
||||||
$path=substr($path,0,-1);
|
$path=substr($path, 0, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$uidOwner = substr($path, 1, strpos($path, '/', 1) - 1);
|
$uidOwner = substr($path, 1, strpos($path, '/', 1) - 1);
|
||||||
|
|
Loading…
Reference in New Issue