diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 13:20:30 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 13:20:30 +0100 |
commit | d890fd4beb74429626b3d49b008b645889f8bbe0 (patch) | |
tree | eddc7877f449636d923f1ffdecaf460dc5d75017 /bin/backend.php | |
parent | 2699eecff7856183c6f0ef45a5e1eab2cf92d6e0 (diff) | |
download | istreamdev-d890fd4beb74429626b3d49b008b645889f8bbe0.tar.gz istreamdev-d890fd4beb74429626b3d49b008b645889f8bbe0.tar.bz2 |
Implemented startBroacast
PHP files cleanup
Diffstat (limited to 'bin/backend.php')
-rwxr-xr-x[-rw-r--r--] | bin/backend.php | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/bin/backend.php b/bin/backend.php index c7ff4db..eed0cfd 100644..100755 --- a/bin/backend.php +++ b/bin/backend.php @@ -7,39 +7,43 @@ if (file_exists('../config.php')) else include ('../config_default.php'); include ('./utils.php'); +include ('./files.php'); +include ('./streaminfo.php'); include ('./vdr.php'); +include ('./session.php'); +include ('./jsonapi.php'); $action=$_REQUEST['action']; switch ($action) { case ("getGlobals"): - $tree = getGlobals(); - print $tree; - break; + $tree = getGlobals(); + print $tree; + break; case ("getTvCat"): - $tree = getTvCat(); - print $tree; - break; + $tree = getTvCat(); + print $tree; + break; case ("getFullChanList"): - $tree = getFullChanList(); - print $tree; - break; + $tree = getFullChanList(); + print $tree; + break; case ("getTvChan"): - $tree = GetTvChan($_REQUEST['cat']); - print $tree; - break; + $tree = GetTvChan($_REQUEST['cat']); + print $tree; + break; case ("getChanInfo"): - $tree = getChanInfo($_REQUEST['chan']); - print $tree; - break; + $tree = getChanInfo($_REQUEST['chan']); + print $tree; + break; case ("getRecInfo"): $tree = file_get_contents("textfiles/getRecInfo.txt"); - print $tree; + print $tree; break; case ("getVidInfo"): @@ -54,11 +58,9 @@ switch ($action) break; case ("startBroadcast"): - $type = $_REQUEST['type']; - $url = $_REQUEST['url']; - $tree = file_get_contents("textfiles/startBroadcast-" . $type . ".txt"); - print $tree; - break; + $tree = startBroadcast($_REQUEST['type'], $_REQUEST['url'], $_REQUEST['mode']); + print $tree; + break; case ("stopBroadcast"): $tree = file_get_contents("textfiles/stopBroadcast.txt"); |