summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart2.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-08-02 12:51:31 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-08-02 12:51:31 +0000
commit14299f10d33a8675777664944a385f993ca24b64 (patch)
tree659482724c5fa62f7fce1176af3b0ac53707362c /frontends/php/chart2.php
parent6d65c1403d0ee5c56ae5f1a2c58a2c0defa4c665 (diff)
downloadzabbix-14299f10d33a8675777664944a385f993ca24b64.tar.gz
zabbix-14299f10d33a8675777664944a385f993ca24b64.tar.xz
zabbix-14299f10d33a8675777664944a385f993ca24b64.zip
- improved sound notification of trigger status changing (Eugene)
- developed aggrigated graphs (Eugene) - fixed graphs drawing (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3092 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart2.php')
-rw-r--r--frontends/php/chart2.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index a39a21f6..b3875b51 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -22,7 +22,10 @@
include "include/config.inc.php";
include "include/classes/graph.inc.php";
- $graph=new Graph();
+ $result=DBselect("select * from graphs where graphid=".$_REQUEST["graphid"]);
+ $row=DBfetch($result);
+
+ $graph=new Graph($row["graphtype"]);
if(isset($_REQUEST["period"]))
{
$graph->setPeriod($_REQUEST["period"]);
@@ -40,8 +43,6 @@
$graph->setBorder(0);
}
- $result=DBselect("select * from graphs where graphid=".$_REQUEST["graphid"]);
- $row=DBfetch($result);
$db_hosts = get_hosts_by_graphid($_REQUEST["graphid"]);
$name=$row["name"];