diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-22 23:22:26 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-22 23:22:26 +0100 |
commit | 22136c401ac7f240f60d0d9ce71c7274429b38e0 (patch) | |
tree | 2c6de263f5527de9c4031dc2e1fcbc121e99858f /includes/inc_vdr.php | |
parent | e897147a3acb1ca4baacf0f5fec976a0ea8c90ee (diff) | |
download | istreamdev-22136c401ac7f240f60d0d9ce71c7274429b38e0.tar.gz istreamdev-22136c401ac7f240f60d0d9ce71c7274429b38e0.tar.bz2 |
Timers implemntation WIP
Diffstat (limited to 'includes/inc_vdr.php')
-rwxr-xr-x | includes/inc_vdr.php | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/includes/inc_vdr.php b/includes/inc_vdr.php index 79eb22e..857cb8d 100755 --- a/includes/inc_vdr.php +++ b/includes/inc_vdr.php @@ -317,13 +317,36 @@ function vdrlisttimers() print "</li>"; print "<form name=\"timer {$timernum}\" id=\"timer {$timernum}\" method=\"post\" action=\"index.php\">"; - print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"edit_timer\"/>"; + print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"edittimer\"/>"; print " <input name=\"timer\" type=\"hidden\" id=\"timer\" value=\"{$timernum}\" />"; print "</form>"; } } +function vdrdeltimer($timer=0) +{ + global $svdrpip, $svdrpport; + + $svdrp = new SVDRP($svdrpip, $svdrpport); + $svdrp->Connect(); + $svdrp->Command("DELT " .$timer); + $svdrp->Disconnect(); +} + +function vdrsettimer($channame, $date, $stime, $etime, $desc) +{ + global $svdrpip, $svdrpport; + + $channum = vdrgetchannum($channame); + + $timer = "1:" .$channum .":" .$date .":" .$stime .":" .$etime .":99:99:" .$desc; + print $timer; + $svdrp = new SVDRP($svdrpip, $svdrpport); + $svdrp->Connect(); + $svdrp->Command("ADDT " .$timer); + $svdrp->Disconnect(); +} ?> |