summaryrefslogtreecommitdiff
path: root/includes/inc_vdr.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/inc_vdr.php')
-rwxr-xr-xincludes/inc_vdr.php10
1 files changed, 7 insertions, 3 deletions
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();