From f53d604d4c363ff1336f9ff2faccefced45b2108 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Tue, 23 Feb 2010 14:23:54 +0100 Subject: Implemented timer activation function --- includes/inc_vdr.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'includes/inc_vdr.php') diff --git a/includes/inc_vdr.php b/includes/inc_vdr.php index ca89b87..7f1f408 100755 --- a/includes/inc_vdr.php +++ b/includes/inc_vdr.php @@ -351,16 +351,20 @@ function vdrdeltimer($timer=0) return $ret; } -function vdrsettimer($prevtimer, $channame, $date, $stime, $etime, $desc) +function vdrsettimer($prevtimer, $channame, $date, $stime, $etime, $desc, $active) { global $svdrpip, $svdrpport; $channum = vdrgetchannum($channame); + if ($active) + $type = "1"; + else + $type = "0"; if ($prevtimer == -1) - $command = "NEWT 1:" .$channum .":" .$date .":" .$stime .":" .$etime .":99:99:" .$desc; + $command = "NEWT " .$type .":" .$channum .":" .$date .":" .$stime .":" .$etime .":99:99:" .$desc; else - $command = "MODT " .$prevtimer ." 1:" .$channum .":" .$date .":" .$stime .":" .$etime .":99:99:" .$desc; + $command = "MODT " .$prevtimer ." " .$type .":" .$channum .":" .$date .":" .$stime .":" .$etime .":99:99:" .$desc; $svdrp = new SVDRP($svdrpip, $svdrpport); $svdrp->Connect(); -- cgit v1.2.3