summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-17 18:37:21 +0100
committerAlib <aliboba@free.fr>2010-03-17 18:37:21 +0100
commitc178fdfb5bd45e45e40af3aa969932af92e3287b (patch)
tree0e82ede835b18bc57d7d76828f7285ecc67a8908 /bin/backend.php
parentd425e7f9f8c7ffe40f133e99e1d6ca6c6fee9d80 (diff)
parent5a82ce8d05eb30148d8079aed01c503c73dd58d6 (diff)
downloadistreamdev-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-xbin/backend.php20
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");