summaryrefslogtreecommitdiffstats
path: root/frontends/php/alerts.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-08-01 15:51:49 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-08-01 15:51:49 +0000
commit45d9a5cfcd90e2086d74dce58338f75b721b647d (patch)
treec3cacfeb7d1a8e4ea936527d5146292a6af974ab /frontends/php/alerts.php
parent667ee48caee487831dbc44583e021832489e8390 (diff)
downloadzabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.tar.gz
zabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.tar.xz
zabbix-45d9a5cfcd90e2086d74dce58338f75b721b647d.zip
- use $_GET, $_POST, $_COOKIE to be PHP5-compatible. Thanks to Martin MOHNHAUP. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1368 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/alerts.php')
-rw-r--r--frontends/php/alerts.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/php/alerts.php b/frontends/php/alerts.php
index 80581254..cee3188b 100644
--- a/frontends/php/alerts.php
+++ b/frontends/php/alerts.php
@@ -33,15 +33,15 @@
?>
<?php
- if(isset($HTTP_GET_VARS["start"])&&($HTTP_GET_VARS["start"]<=0))
+ if(isset($_GET["start"])&&($_GET["start"]<=0))
{
- unset($HTTP_GET_VARS["start"]);
+ unset($_GET["start"]);
}
- if(isset($HTTP_GET_VARS["start"]))
+ if(isset($_GET["start"]))
{
- echo "[<A HREF=\"alerts.php?start=".($HTTP_GET_VARS["start"]-100)."\">";
+ echo "[<A HREF=\"alerts.php?start=".($_GET["start"]-100)."\">";
echo "Show previous 100</A>] ";
- echo "[<A HREF=\"alerts.php?start=".($HTTP_GET_VARS["start"]+100)."\">";
+ echo "[<A HREF=\"alerts.php?start=".($_GET["start"]+100)."\">";
echo S_SHOW_NEXT_100;
echo "</A>]";
}
@@ -66,13 +66,13 @@
$row=DBfetch($result);
$maxalertid=@iif(DBnum_rows($result)>0,$row["max"],0);
- if(!isset($HTTP_GET_VARS["start"]))
+ if(!isset($_GET["start"]))
{
$sql="select a.alertid,a.clock,mt.description,a.sendto,a.subject,a.message,ac.triggerid,a.status,a.retries,ac.scope from alerts a,actions ac,media_type mt where a.actionid=ac.actionid and mt.mediatypeid=a.mediatypeid and a.alertid>$maxalertid-200 order by a.clock desc limit 200";
}
else
{
- $sql="select a.alertid,a.clock,mt.description,a.sendto,a.subject,a.message,ac.triggerid,a.status,a.retries,ac.scope from alerts a,actions ac,media_type mt where a.actionid=ac.actionid and mt.mediatypeid=a.mediatypeid and a.alertid>$maxalertid-200-".$HTTP_GET_VARS["start"]." order by a.clock desc limit ".($HTTP_GET_VARS["start"]+500);
+ $sql="select a.alertid,a.clock,mt.description,a.sendto,a.subject,a.message,ac.triggerid,a.status,a.retries,ac.scope from alerts a,actions ac,media_type mt where a.actionid=ac.actionid and mt.mediatypeid=a.mediatypeid and a.alertid>$maxalertid-200-".$_GET["start"]." order by a.clock desc limit ".($_GET["start"]+500);
}
$result=DBselect($sql);
@@ -90,7 +90,7 @@
while($row=DBfetch($result))
{
$zzz++;
- if(isset($HTTP_GET_VARS["start"])&&($zzz<$HTTP_GET_VARS["start"]))
+ if(isset($_GET["start"])&&($zzz<$_GET["start"]))
{
continue;
}