From 659c8cc6b0ebaf9486201569c8a900f449e66b65 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Tue, 11 Oct 2005 15:14:49 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@2171 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/actions.inc.php | 14 +++++++------- frontends/php/include/db.inc.php | 2 +- frontends/php/include/locales/en_gb.inc.php | 1 + 3 files changed, 9 insertions(+), 8 deletions(-) (limited to 'frontends/php/include') diff --git a/frontends/php/include/actions.inc.php b/frontends/php/include/actions.inc.php index 10a732c2..fafe4ab5 100644 --- a/frontends/php/include/actions.inc.php +++ b/frontends/php/include/actions.inc.php @@ -21,15 +21,15 @@ "; DBexecute($sql); } @@ -67,7 +67,7 @@ } else { - $sql="insert into actions (triggerid,userid,good,delay,nextcheck,subject,message,scope,severity,recipient) values ($triggerid,$id,$good,$delay,0,'$subject','$message',$scope,$severity,$recipient)"; + $sql="insert into actions (triggerid,userid,good,delay,nextcheck,subject,message,scope,severity,recipient,maxrepeats,repeatdelay) values ($triggerid,$id,$good,$delay,0,'$subject','$message',$scope,$severity,$recipient,$maxrepeats,$repeatdelay)"; $result=DBexecute($sql); return DBinsert_id($result,"actions","actionid"); } @@ -140,7 +140,7 @@ { $host=get_host_by_hostid($row["hostid"]); $message=str_replace("{".$host_template["host"].":", "{".$host["host"].":", $action["message"]); - add_action($row2["triggerid"], $action["userid"], $action["good"], $action["delay"], $action["subject"], $message, $action["scope"], $action["severity"], $action["recipient"], $action["userid"]); + add_action($row2["triggerid"], $action["userid"], $action["good"], $action["delay"], $action["subject"], $message, $action["scope"], $action["severity"], $action["recipient"], $action["userid"], $action["maxrepeats"],$action["repeatdelay"]); } } } diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php index d73cf800..888f1b87 100644 --- a/frontends/php/include/db.inc.php +++ b/frontends/php/include/db.inc.php @@ -78,7 +78,7 @@ { global $DB,$DB_TYPE; -# echo $query."
"; +// echo $query."
"; if($DB_TYPE == "MYSQL") { diff --git a/frontends/php/include/locales/en_gb.inc.php b/frontends/php/include/locales/en_gb.inc.php index a74c3158..991d4dc3 100644 --- a/frontends/php/include/locales/en_gb.inc.php +++ b/frontends/php/include/locales/en_gb.inc.php @@ -84,6 +84,7 @@ "S_REPEATS"=> "Repeats", "S_NO_REPEATS"=> "No repeats", "S_NUMBER_OF_REPEATS"=> "Number of repeats", + "S_DELAY_BETWEEN_REPEATS"=> "Delay between repeats", // alarms.php "S_ALARMS"=> "Alarms", -- cgit