diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-12-28 19:31:02 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-12-28 19:31:02 +0000 |
| commit | fa8b1d75c70c483ec640af01eeb6809f1f1e8881 (patch) | |
| tree | b61cffd6a1ad0f301ab46b03c43b00d9036c3ef7 /frontends/php/include/config.inc.php | |
| parent | 0d5e9e29b5c5289eb6cc3e7d18eabc38deebb05a (diff) | |
- refresh rate is doubled for user 'guest' (Alexei)
- misc changes (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@616 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
| -rw-r--r-- | frontends/php/include/config.inc.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index 6a714446..bfc74005 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -743,6 +743,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; function show_special_header($title,$refresh,$nomenu,$noauth) { global $page; + global $USER_DETAILS; if($noauth!=1) { @@ -757,6 +758,10 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; <meta name="Author" content="Alexei Vladishev"> <link rel="stylesheet" href="css.css"> <?php + if($USER_DETAILS['alias']=='guest') + { + $refresh=2*$refresh; + } if($refresh!=0) { echo "<meta http-equiv=\"refresh\" content=\"$refresh\">"; @@ -1159,7 +1164,9 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; function show_plaintext($itemid, $from, $till) { - $result=DBselect("select clock,value from history where itemid=$itemid and clock>$from and clock<$till order by clock"); + $sql="select clock,value from history where itemid=$itemid and clock>$from and clock<$till order by clock"; + $result=DBselect($sql); + echo $sql; echo "<PRE>"; for($i=0;$i<DBnum_rows($result);$i++) @@ -2803,7 +2810,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; // echo "<IMG SRC=\"chart.php?itemid=$itemid&period=$period&from=$from\">"; echo "<script language=\"JavaScript\">"; // echo "document.write(\"<IMG SRC='chart.php?itemid=$itemid&period=$period&from=$from&width=\"+(document.width-108)+\"'>\")"; - echo "document.write(\"<IMG SRC='chart.php?itemid=$itemid&period=$period&from=$from&width=\"+(document.width-108)+\"'>\")"; + echo "document.write(\"<IMG SRC='chart.php?itemid=$itemid&period=$period&from=$from&width='+(document.width-108)+'>'\")"; echo "</script>"; } else @@ -2831,7 +2838,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; echo "Choose period"; show_table2_v_delimiter(); - echo "<form method=\"post\" action=\"history.php\">"; + echo "<form method=\"get\" action=\"history.php\">"; echo "<input name=\"itemid\" type=\"hidden\" value=$itemid size=8>"; echo "Period in seconds"; show_table2_h_delimiter(); |
