diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 18:23:56 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 18:23:56 +0100 |
commit | 5a82ce8d05eb30148d8079aed01c503c73dd58d6 (patch) | |
tree | e410b38831fe03b68a84b136cf09505ba1d55add /bin/backend.php | |
parent | 9f94e565988c2cd5bf765b4d21584b1ac2fcb64f (diff) | |
download | istreamdev-5a82ce8d05eb30148d8079aed01c503c73dd58d6.tar.gz istreamdev-5a82ce8d05eb30148d8079aed01c503c73dd58d6.tar.bz2 |
File browsing
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"); |