From 22136c401ac7f240f60d0d9ce71c7274429b38e0 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Mon, 22 Feb 2010 23:22:26 +0100 Subject: Timers implemntation WIP --- includes/inc_vdr.php | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'includes/inc_vdr.php') 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 ""; print "
"; - print " "; + print " "; print " "; print "
"; } } +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(); +} ?> -- cgit v1.2.3