summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-01-14 20:29:48 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-01-14 20:29:48 +0000
commit31c91c6ccde9328448d4e67db22f0a9200e4b03d (patch)
tree6d005b042620261c4de6babe5de624fb0af88578 /frontends/php
parent390b7cc14e082dc2c96c4f40691b50f68bbd9bbf (diff)
downloadzabbix-31c91c6ccde9328448d4e67db22f0a9200e4b03d.tar.gz
zabbix-31c91c6ccde9328448d4e67db22f0a9200e4b03d.tar.xz
zabbix-31c91c6ccde9328448d4e67db22f0a9200e4b03d.zip
- fixed Plain Text values (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@645 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/history.php4
-rw-r--r--frontends/php/include/config.inc.php3
2 files changed, 5 insertions, 2 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php
index 3b54c9c6..ffa6cbe1 100644
--- a/frontends/php/history.php
+++ b/frontends/php/history.php
@@ -43,6 +43,10 @@
{
show_header("$host:$description",0,0);
}
+ if($HTTP_GET_VARS["action"]=="plaintext")
+ {
+ show_header("$host:$description",0,1);
+ }
if(!check_right("Item","R",$HTTP_GET_VARS["itemid"]))
{
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index bc8786bb..17d18d11 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -1166,9 +1166,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
{
$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>";
+ echo "<PRE>\n";
for($i=0;$i<DBnum_rows($result);$i++)
{
$clock=DBget_field($result,$i,0);