summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-16 16:16:09 +0100
committerAlib <aliboba@free.fr>2010-03-16 16:16:09 +0100
commitddb4b1dd2d3e5f1ac7de440de34be33e91e5f205 (patch)
tree0a5f91f6de8b138f1e3f6854fbdeb42c50dd3820 /bin/backend.php
parent596c7b5f68f51489aac115cb7a6d5a622195bd45 (diff)
parentc6042ad02ec8738bc3bc05fafd65896c54cc3f18 (diff)
downloadistreamdev-ddb4b1dd2d3e5f1ac7de440de34be33e91e5f205.tar.gz
istreamdev-ddb4b1dd2d3e5f1ac7de440de34be33e91e5f205.tar.bz2
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
Diffstat (limited to 'bin/backend.php')
-rw-r--r--bin/backend.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/bin/backend.php b/bin/backend.php
index b2c41b3..631330d 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -1,25 +1,34 @@
<?php
+
header('Content-type: text/html');
+
+if (file_exists('../config.php'))
+ include ('../config.php');
+else
+ include ('../config_default.php');
+include ('./utils.php');
+include ('./vdr.php');
+
$action=$_REQUEST['action'];
switch ($action)
{
case ("getGlobals"):
- $tree = file_get_contents("textfiles/getGlobals.txt");
+ $tree = getGlobals();
print $tree;
break;
case ("getTvCat"):
- $tree = file_get_contents("textfiles/getTvCat.txt");
+ $tree = getTvCat();
print $tree;
break;
case ("getFullChanList"):
- $tree = file_get_contents("textfiles/getFullChanList.txt");
+ $tree = getFullChanList();
print $tree;
break;
case ("getTvChan"):
- $tree = file_get_contents("textfiles/getTvChan.txt");
+ $tree = GetTvChan($_REQUEST['cat']);
print $tree;
break;