diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-23 14:23:54 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-23 14:23:54 +0100 |
commit | f53d604d4c363ff1336f9ff2faccefced45b2108 (patch) | |
tree | 07e0f1ea9abc1c3d7557545452831317d1c25fa5 /includes/include.php | |
parent | 75b7738afd351d33097805c94942b12e80eabcb0 (diff) | |
download | istreamdev-f53d604d4c363ff1336f9ff2faccefced45b2108.tar.gz istreamdev-f53d604d4c363ff1336f9ff2faccefced45b2108.tar.bz2 |
Implemented timer activation function
Diffstat (limited to 'includes/include.php')
-rwxr-xr-x | includes/include.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/include.php b/includes/include.php index 6fe31ad..d244ba5 100755 --- a/includes/include.php +++ b/includes/include.php @@ -56,13 +56,14 @@ function selectpage() delete_timer($timer); break; case ("addtimer"): + $active = $_REQUEST['timer_active']; $channame = $_REQUEST['timer_chan']; $date = $_REQUEST['timer_date']; $stime = $_REQUEST['timer_starttime']; $etime = $_REQUEST['timer_endtime']; $desc = $_REQUEST['timer_name']; $prevtimer = $_REQUEST['prevtimer']; - set_timer($channame, $date, $stime, $etime, $desc, $prevtimer); + set_timer($active, $channame, $date, $stime, $etime, $desc, $prevtimer); break; case ("startstream"): $type = $_REQUEST['type']; @@ -163,9 +164,9 @@ function delete_timer($timer) include('includes/inc_timers.php'); } -function set_timer($channame, $date, $stime, $etime, $desc, $prevtimer) +function set_timer($active, $channame, $date, $stime, $etime, $desc, $prevtimer) { - $ret = vdrsettimer($prevtimer, $channame, $date, $stime, $etime, $desc); + $ret = vdrsettimer($prevtimer, $channame, $date, $stime, $etime, $desc, $active); if ($prevtimer == -1) $settype = "creat"; |