Add 'flash' location to browse function

This commit is contained in:
bergware
2017-08-27 08:08:14 +02:00
parent 36851c2c2a
commit 5fcbd18b83
+1 -1
View File
@@ -29,7 +29,7 @@ $path = $_GET['path'];
$user = $_GET['user'];
$list = [];
$all = $docroot.preg_replace('/([\'" &()[\]\\\\])/','\\\\$1',$dir).'/*';
$fix = explode('/',trim_slash($dir))[2];
$fix = substr($dir,0,4)=='/mnt' ? explode('/',trim_slash($dir))[2] : 'flash';
exec("shopt -s dotglob; stat -L -c'%F|%n|%s|%Y' $all 2>/dev/null",$file);
if ($user) {