summaryrefslogtreecommitdiffstats
path: root/frontends/php/history.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-09-01 12:20:42 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-09-01 12:20:42 +0000
commit625662bcb0d08e9228eeeae987dec996eead4efa (patch)
tree79e24bdb3c387c287e8df924fa87f772d573f5f5 /frontends/php/history.php
parente0391b3736f5f150182b7ca9e1bb47459e709af1 (diff)
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2019 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/history.php')
-rw-r--r--frontends/php/history.php23
1 files changed, 3 insertions, 20 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php
index 788a0bc3..576f7788 100644
--- a/frontends/php/history.php
+++ b/frontends/php/history.php
@@ -47,10 +47,6 @@
show_header("$host:$description",$beforenextcheck,0);
}
}
- if($_GET["action"]=="showhistory2")
- {
- show_header("$host:$description",0,0);
- }
if($_GET["action"]=="showvalues")
{
show_header("$host:$description",0,0);
@@ -107,7 +103,6 @@
$h2="<input class=\"biginput\" name=\"itemid\" type=\"hidden\" value=\"".$_GET["itemid"]."\">";
$h2=$h2."<select class=\"biginput\" name=\"action\" onChange=\"submit()\">";
$h2=$h2.form_select("action","showhistory",S_LAST_HOUR_GRAPH);
- $h2=$h2.form_select("action","showhistory2",S_LAST_HOUR_GRAPH_DIFF);
$h2=$h2.form_select("action","showvalues",S_VALUES_OF_LAST_HOUR);
$h2=$h2.form_select("action","showfreehist",S_VALUES_OF_SPECIFIED_PERIOD);
$h2=$h2.form_select("action","showplaintxt",S_VALUES_IN_PLAIN_TEXT_FORMAT);
@@ -119,17 +114,13 @@
<?php
if($_GET["action"]=="showfreehist")
{
- if(!isset($_GET["period"]))
- {
- show_freehist($_GET["itemid"],$_GET["period"]);
- }
+ show_freehist($_GET["itemid"],$_GET["period"]);
exit;
-
}
if($_GET["action"]=="showplaintxt")
{
- if(!isset($_GET["period"]))
+// if(!isset($_GET["period"]))
{
show_plaintxt($_GET["itemid"],$_GET["period"]);
}
@@ -253,16 +244,8 @@
{
$_GET["from"]=($now-mktime($_GET["hour"], 0, 0, $_GET["month"], $_GET["day"],$_GET["year"]))/3600;
}
- @show_history($_GET["itemid"],$_GET["from"],$_GET["period"],0);
+ @show_history($_GET["itemid"],$_GET["from"],$_GET["period"]);
show_footer();
exit;
}
-
- if($_GET["action"]=="showhistory2")
- {
- @show_history($_GET["itemid"],$_GET["from"],$_GET["period"],1);
- show_footer();
- exit;
- }
-
?>