summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-16 13:30:04 +0100
committerTheTroll <trolldev@gmail.com>2010-03-16 13:30:04 +0100
commit5400c2d66985a85591b2b78085615cd2826911a4 (patch)
tree6ccceffa7c3932b3eb6559b11abe1720b7d82d03 /bin/backend.php
parentd1f8c381b7aabba27d261274548fa5b51e3dcc94 (diff)
downloadistreamdev-5400c2d66985a85591b2b78085615cd2826911a4.tar.gz
istreamdev-5400c2d66985a85591b2b78085615cd2826911a4.tar.bz2
PHP part WIP
Diffstat (limited to 'bin/backend.php')
-rw-r--r--bin/backend.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/backend.php b/bin/backend.php
index b2c41b3..4fd9ba2 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -1,15 +1,23 @@
<?php
+
header('Content-type: text/html');
+
+if (file_exists('../config.php'))
+ include ('../config.php');
+else
+ include ('../config_default.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;