From d890fd4beb74429626b3d49b008b645889f8bbe0 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 17 Mar 2010 13:20:30 +0100 Subject: Implemented startBroacast PHP files cleanup --- bin/backend.php | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) mode change 100644 => 100755 bin/backend.php (limited to 'bin/backend.php') diff --git a/bin/backend.php b/bin/backend.php old mode 100644 new mode 100755 index c7ff4db..eed0cfd --- 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"); -- cgit v1.2.3