From 7d8bc8ba0454d704bb7be03909a31d0c01a4be1a Mon Sep 17 00:00:00 2001 From: TheTroll Date: Tue, 23 Mar 2010 19:36:11 +0100 Subject: renamed features enables --- bin/jsonapi.php | 15 +++++++-------- config_default.php | 9 ++++++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/bin/jsonapi.php b/bin/jsonapi.php index e825fec..a567808 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -2,24 +2,23 @@ function getGlobals() { - global $vdrstreamdev, $vdrrecpath, $mediasource, $videosource, $audiosource, $vdrenabled, $mediaenabled; + global $vdrstreamdev, $vdrrecpath, $mediasource, $videosource, $audiosource; + global $enablevdr, $enablemediavideo, $enablemediaaudio; $ret = array(); - if ($vdrenabled) + if ($enablevdr) $ret['streamdev_server'] = $vdrstreamdev; else $ret['streamdev_server'] = ""; $ret['rec_path'] = $vdrrecpath; - if ($mediaenabled) - { + if ($enablemediavideo) $ret['video_path'] = $videosource; - $ret['audio_path'] = $audiosource; - } else - { $ret['video_path'] = ""; + if ($enablemediaaudio) + $ret['audio_path'] = $audiosource; + else $ret['audio_path'] = ""; - } return json_encode($ret); } diff --git a/config_default.php b/config_default.php index b421482..11aa4a1 100755 --- a/config_default.php +++ b/config_default.php @@ -1,11 +1,15 @@