summaryrefslogtreecommitdiff
path: root/includes/inc_vdr.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-23 14:23:54 +0100
committerTheTroll <trolldev@gmail.com>2010-02-23 14:23:54 +0100
commitf53d604d4c363ff1336f9ff2faccefced45b2108 (patch)
tree07e0f1ea9abc1c3d7557545452831317d1c25fa5 /includes/inc_vdr.php
parent75b7738afd351d33097805c94942b12e80eabcb0 (diff)
downloadistreamdev-f53d604d4c363ff1336f9ff2faccefced45b2108.tar.gz
istreamdev-f53d604d4c363ff1336f9ff2faccefced45b2108.tar.bz2
Implemented timer activation function
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();