diff options
author | Alib <aliboba@free.fr> | 2010-03-17 18:37:21 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-17 18:37:21 +0100 |
commit | c178fdfb5bd45e45e40af3aa969932af92e3287b (patch) | |
tree | 0e82ede835b18bc57d7d76828f7285ecc67a8908 /bin/backend.php | |
parent | d425e7f9f8c7ffe40f133e99e1d6ca6c6fee9d80 (diff) | |
parent | 5a82ce8d05eb30148d8079aed01c503c73dd58d6 (diff) | |
download | istreamdev-c178fdfb5bd45e45e40af3aa969932af92e3287b.tar.gz istreamdev-c178fdfb5bd45e45e40af3aa969932af92e3287b.tar.bz2 |
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
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 a3104dd..96f6abf 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"); |