summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 18:23:56 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 18:23:56 +0100
commit5a82ce8d05eb30148d8079aed01c503c73dd58d6 (patch)
treee410b38831fe03b68a84b136cf09505ba1d55add /bin/backend.php
parent9f94e565988c2cd5bf765b4d21584b1ac2fcb64f (diff)
downloadistreamdev-5a82ce8d05eb30148d8079aed01c503c73dd58d6.tar.gz
istreamdev-5a82ce8d05eb30148d8079aed01c503c73dd58d6.tar.bz2
File browsing
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 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");