From 5a82ce8d05eb30148d8079aed01c503c73dd58d6 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 17 Mar 2010 18:23:56 +0100 Subject: File browsing --- bin/jsonapi.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'bin/jsonapi.php') diff --git a/bin/jsonapi.php b/bin/jsonapi.php index dcc3dd4..eba9725 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -7,8 +7,8 @@ function getGlobals() $ret = array(); $ret['streamdev_server'] = $vdrstreamdev; $ret['rec_path'] = $vdrrecpath; - $ret['video_path'] = "/mnt/media/Video/"; - $ret['audio_path'] = "/mnt/media/Music/"; + $ret['video_path'] = "/home/storage/Foot/"; + $ret['audio_path'] = "/home/www/mp3/"; return json_encode($ret); } @@ -113,5 +113,12 @@ function getRunningSessions() } +function browseFolder($path) +{ + $ret = array(); + $ret['list'] = filesgetlisting($path); + + return json_encode($ret); +} ?> -- cgit v1.2.3