diff options
Diffstat (limited to 'bin/backend.php')
-rwxr-xr-x | bin/backend.php | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/bin/backend.php b/bin/backend.php index 3eaa127..cf37e2e 100755 --- a/bin/backend.php +++ b/bin/backend.php @@ -111,22 +111,10 @@ switch ($action) break; case ("browseFolder"): - $path = $_REQUEST['path']; - if ( $path == "/video/" ) { - $tree = file_get_contents("textfiles/browseFolder-rec.txt"); - } - else if ( $path == "/mnt/media/Videos/" ) { - $tree = file_get_contents("textfiles/browseFolder-vid.txt"); - } - else if ( $path == "/mnt/media/Music/" ) { - $tree = file_get_contents("textfiles/browseFolder-aud.txt"); - } - else - { - $tree = file_get_contents("textfiles/browseFolder-rec.txt"); - } - print $tree; - break; + $path = $_REQUEST['path']; + $tree = browseFolder($_REQUEST['path']); + print $tree; + break; case ("browseRec"): $tree = file_get_contents("textfiles/browseRec.txt"); |