|
@@ -35,7 +35,11 @@ if(isset($_GET["bkend"])){
|
|
|
$dirs = array_merge($IntDirWInfo,$ExtDirWInfo);
|
|
|
echo json_encode($dirs);
|
|
|
}else if($_GET["query"] == "storage"){
|
|
|
- $extdirs = array_filter(glob("/media/*"), 'is_dir');
|
|
|
+ if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
|
|
+ $extdirs = [];
|
|
|
+ }else{
|
|
|
+ $extdirs = array_filter(glob("/media/*"), 'is_dir');
|
|
|
+ }
|
|
|
$dirs = array_merge($extdirs,["internal"]);
|
|
|
echo json_encode($dirs);
|
|
|
}else if($_GET["query"] == "unsort"){
|