diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 22:42:06 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 22:42:06 +0100 |
commit | d0640763e648d441510afeb5939106eb8d48731c (patch) | |
tree | f8542d1329646a3968ee8e6cf4640af103ee8aa6 /bin/backend.php | |
parent | 56cb9c5e115fcf9f6e732d2b2cc95afff66c90ac (diff) | |
download | istreamdev-d0640763e648d441510afeb5939106eb8d48731c.tar.gz istreamdev-d0640763e648d441510afeb5939106eb8d48731c.tar.bz2 |
Timers WIP
Added getID3
Diffstat (limited to 'bin/backend.php')
-rwxr-xr-x | bin/backend.php | 30 |
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']; |