summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-17 15:42:45 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-17 15:42:45 +0000
commit6885276128c05dca78171bccc9e11e0701a56c28 (patch)
tree9f697fbd6e233a2bdc404f2000f4b497bfb62e35 /frontends/php
parent9857f955becd302f894c7742c7b6e22f6280e0b5 (diff)
downloadzabbix-6885276128c05dca78171bccc9e11e0701a56c28.tar.gz
zabbix-6885276128c05dca78171bccc9e11e0701a56c28.tar.xz
zabbix-6885276128c05dca78171bccc9e11e0701a56c28.zip
- fixed audio in Status of Triggers (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1187 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/tr_status.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php
index 23e09b0e..275f4653 100644
--- a/frontends/php/tr_status.php
+++ b/frontends/php/tr_status.php
@@ -28,19 +28,27 @@
$tr_hash=calc_trigger_hash();
setcookie("triggers_hash",$tr_hash,time()+1800);
- if(!isset($triggers_hash))
+ if(!isset($HTTP_COOKIE_VARS["triggers_hash"]))
{
$triggers_hash="0,0";
}
+ else
+ {
+ $triggers_hash=$HTTP_COOKIE_VARS["triggers_hash"];
+ }
$new=explode(",",$tr_hash);
$old=explode(",",$triggers_hash);
setcookie("triggers_hash",$tr_hash,time()+1800);
- if(!isset($triggers_hash))
+ if(!isset($HTTP_COOKIE_VARS["triggers_hash"]))
{
$triggers_hash="0,0";
}
+ else
+ {
+ $triggers_hash=$HTTP_COOKIE_VARS["triggers_hash"];
+ }
$new=explode(",",$tr_hash);
$old=explode(",",$triggers_hash);
@@ -99,6 +107,7 @@
<?php
if(isset($audio))
{
+// echo "AUDIO [$audio] [".$old[1].":".$new[1]."] [$triggers_hash] [$tr_hash]";
echo "<BGSOUND src=\"audio/$audio\" loop=0>";
}
?>