summaryrefslogtreecommitdiffstats
path: root/frontends/php/overview.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-10-24 05:20:19 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-10-24 05:20:19 +0000
commit9a1e779bc865fddde2adc39dde378f0a0439594a (patch)
tree472789ea587b232cb705de4a9f9783002a169566 /frontends/php/overview.php
parentb9e14335fe68cdd6251239883f141a0e0556ac6b (diff)
downloadzabbix-9a1e779bc865fddde2adc39dde378f0a0439594a.tar.gz
zabbix-9a1e779bc865fddde2adc39dde378f0a0439594a.tar.xz
zabbix-9a1e779bc865fddde2adc39dde378f0a0439594a.zip
- all $_GET and $_POST replaced by $_REQUEST. Thanks to James Wells. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2215 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/overview.php')
-rw-r--r--frontends/php/overview.php52
1 files changed, 26 insertions, 26 deletions
diff --git a/frontends/php/overview.php b/frontends/php/overview.php
index ce881fb4..b7a3a6c7 100644
--- a/frontends/php/overview.php
+++ b/frontends/php/overview.php
@@ -38,13 +38,13 @@
show_footer();
exit;
}
- if(isset($_GET["select"])&&($_GET["select"]!=""))
+ if(isset($_REQUEST["select"])&&($_REQUEST["select"]!=""))
{
- unset($_GET["groupid"]);
- unset($_GET["hostid"]);
+ unset($_REQUEST["groupid"]);
+ unset($_REQUEST["hostid"]);
}
- if(isset($_GET["hostid"])&&!check_right("Host","R",$_GET["hostid"]))
+ if(isset($_REQUEST["hostid"])&&!check_right("Host","R",$_REQUEST["hostid"]))
{
show_table_header("<font color=\"AA0000\">".S_NO_PERMISSIONS."</font>");
show_footer();
@@ -53,9 +53,9 @@
?>
<?php
- if(isset($_GET["groupid"])&&($_GET["groupid"]==0))
+ if(isset($_REQUEST["groupid"])&&($_REQUEST["groupid"]==0))
{
- unset($_GET["groupid"]);
+ unset($_REQUEST["groupid"]);
}
update_profile("web.menu.view.last",$page["file"]);
?>
@@ -97,17 +97,17 @@
?>
<?php
- if(!isset($_GET["sort"]))
+ if(!isset($_REQUEST["sort"]))
{
- $_GET["sort"]="description";
+ $_REQUEST["sort"]="description";
}
- if(isset($_GET["groupid"])&&isset($_GET["type"])&&($_GET["type"]==SHOW_DATA))
+ if(isset($_REQUEST["groupid"])&&isset($_REQUEST["type"])&&($_REQUEST["type"]==SHOW_DATA))
{
table_begin();
$header=array("&nbsp;");
$hosts=array();
- $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_GET["groupid"]." and hg.hostid=h.hostid group by h.hostid,h.host order by h.host";
+ $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid group by h.hostid,h.host order by h.host";
$result=DBselect($sql);
while($row=DBfetch($result))
{
@@ -117,27 +117,27 @@
table_header($header);
$col=0;
- if(isset($_GET["sort"]))
+ if(isset($_REQUEST["sort"]))
{
- switch ($_GET["sort"])
+ switch ($_REQUEST["sort"])
{
case "description":
- $_GET["sort"]="order by i.description";
+ $_REQUEST["sort"]="order by i.description";
break;
case "lastcheck":
- $_GET["sort"]="order by i.lastclock";
+ $_REQUEST["sort"]="order by i.lastclock";
break;
default:
- $_GET["sort"]="order by i.description";
+ $_REQUEST["sort"]="order by i.description";
break;
}
}
else
{
- $_GET["sort"]="order by i.description";
+ $_REQUEST["sort"]="order by i.description";
}
// $sql="select distinct description from items order by 1;";
- $sql="select distinct i.description from hosts h,items i,hosts_groups hg where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_GET["groupid"]." and hg.hostid=h.hostid order by 1";
+ $sql="select distinct i.description from hosts h,items i,hosts_groups hg where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid order by 1";
$result=DBselect($sql);
while($row=DBfetch($result))
{
@@ -181,12 +181,12 @@
}
table_end();
}
- else if(isset($_GET["groupid"])&&isset($_GET["type"])&&($_GET["type"]==SHOW_TRIGGERS))
+ else if(isset($_REQUEST["groupid"])&&isset($_REQUEST["type"])&&($_REQUEST["type"]==SHOW_TRIGGERS))
{
table_begin();
$header=array("&nbsp;");
$hosts=array();
- $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg,functions f,triggers t where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_GET["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid group by h.hostid,h.host order by h.host";
+ $sql="select h.hostid,h.host from hosts h,items i,hosts_groups hg,functions f,triggers t where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid group by h.hostid,h.host order by h.host";
$result=DBselect($sql);
while($row=DBfetch($result))
{
@@ -196,27 +196,27 @@
table_header($header);
$col=0;
- if(isset($_GET["sort"]))
+ if(isset($_REQUEST["sort"]))
{
- switch ($_GET["sort"])
+ switch ($_REQUEST["sort"])
{
case "description":
- $_GET["sort"]="order by i.description";
+ $_REQUEST["sort"]="order by i.description";
break;
case "lastcheck":
- $_GET["sort"]="order by i.lastclock";
+ $_REQUEST["sort"]="order by i.lastclock";
break;
default:
- $_GET["sort"]="order by i.description";
+ $_REQUEST["sort"]="order by i.description";
break;
}
}
else
{
- $_GET["sort"]="order by i.description";
+ $_REQUEST["sort"]="order by i.description";
}
// $sql="select distinct description from items order by 1;";
- $sql="select distinct t.description from hosts h,items i,hosts_groups hg,triggers t,functions f where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_GET["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid order by 1";
+ $sql="select distinct t.description from hosts h,items i,hosts_groups hg,triggers t,functions f where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid and hg.groupid=".$_REQUEST["groupid"]." and hg.hostid=h.hostid and t.triggerid=f.triggerid and f.itemid=i.itemid order by 1";
$result=DBselect($sql);
while($row=DBfetch($result))
{