summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 22:42:06 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 22:42:06 +0100
commitd0640763e648d441510afeb5939106eb8d48731c (patch)
treef8542d1329646a3968ee8e6cf4640af103ee8aa6 /bin/backend.php
parent56cb9c5e115fcf9f6e732d2b2cc95afff66c90ac (diff)
downloadistreamdev-d0640763e648d441510afeb5939106eb8d48731c.tar.gz
istreamdev-d0640763e648d441510afeb5939106eb8d48731c.tar.bz2
Timers WIP
Added getID3
Diffstat (limited to 'bin/backend.php')
-rwxr-xr-xbin/backend.php30
1 files changed, 14 insertions, 16 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 87a5f7b..8619c89 100755
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -91,25 +91,23 @@ switch ($action)
break;
case ("getTimers"):
- $tree = file_get_contents("textfiles/getTimers.txt");
- print $tree;
- break;
+ $tree = getTimers();
+ print $tree;
+ break;
case ("editTimer"):
- $id = $_REQUEST['id'];
- if (id) {
- $tree = file_get_contents("textfiles/editTimer.txt");
- }
- else {
- $tree = file_get_contents("textfiles/addTimer.txt");
- }
- print $tree;
- break;
+ $id = $_REQUEST['id'];
+ if (id)
+ $tree = file_get_contents("textfiles/editTimer.txt");
+ else
+ $tree = file_get_contents("textfiles/addTimer.txt");
+ print $tree;
+ break;
- case ("deltimer"):
- $tree = file_get_contents("textfiles/delTimer.txt");
- print $tree;
- break;
+ case ("delTimer"):
+ $tree = delTimer($_REQUEST['id']);
+ print $tree;
+ break;
case ("browseFolder"):
$path = $_REQUEST['path'];