diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-24 05:20:19 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-24 05:20:19 +0000 |
commit | 9a1e779bc865fddde2adc39dde378f0a0439594a (patch) | |
tree | 472789ea587b232cb705de4a9f9783002a169566 /frontends/php/audit.php | |
parent | b9e14335fe68cdd6251239883f141a0e0556ac6b (diff) | |
download | zabbix-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/audit.php')
-rw-r--r-- | frontends/php/audit.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/frontends/php/audit.php b/frontends/php/audit.php index 956dd816..54952ef3 100644 --- a/frontends/php/audit.php +++ b/frontends/php/audit.php @@ -30,24 +30,24 @@ ?> <?php - if(isset($_GET["start"])&&isset($_GET["do"])&&($_GET["do"]=="<< Prev 100")) + if(isset($_REQUEST["start"])&&isset($_REQUEST["do"])&&($_REQUEST["do"]=="<< Prev 100")) { - $_GET["start"]-=100; + $_REQUEST["start"]-=100; } - if(isset($_GET["do"])&&($_GET["do"]=="Next 100 >>")) + if(isset($_REQUEST["do"])&&($_REQUEST["do"]=="Next 100 >>")) { - if(isset($_GET["start"])) + if(isset($_REQUEST["start"])) { - $_GET["start"]+=100; + $_REQUEST["start"]+=100; } else { - $_GET["start"]=100; + $_REQUEST["start"]=100; } } - if(isset($_GET["start"])&&($_GET["start"]<=0)) + if(isset($_REQUEST["start"])&&($_REQUEST["start"]<=0)) { - unset($_GET["start"]); + unset($_REQUEST["start"]); } ?> @@ -56,9 +56,9 @@ echo " ".S_AUDIT_LOG_BIG; show_table3_h_delimiter(20); echo "<form name=\"form2\" method=\"get\" action=\"audit.php\">"; - if(isset($_GET["start"])) + if(isset($_REQUEST["start"])) { - echo "<input class=\"biginput\" name=\"start\" type=hidden value=".$_GET["start"]." size=8>"; + echo "<input class=\"biginput\" name=\"start\" type=hidden value=".$_REQUEST["start"]." size=8>"; echo "<input class=\"button\" type=\"submit\" name=\"do\" value=\"<< Prev 100\">"; } else @@ -76,13 +76,13 @@ $row=DBfetch($result); $maxauditid=@iif(DBnum_rows($result)>0,$row["max"],0); - if(!isset($_GET["start"])) + if(!isset($_REQUEST["start"])) { $sql="select u.alias,a.clock,a.action,a.resource,a.details from audit a, users u where u.userid=a.userid and a.auditid>$maxauditid-200 order by clock desc limit 200"; } else { - $sql="select u.alias,a.clock,a.action,a.resource,a.details from audit a, users u where u.userid=a.userid and a.auditid>$maxauditid-".($_GET["start"]+200)." order by clock desc limit ".($_GET["start"]+200); + $sql="select u.alias,a.clock,a.action,a.resource,a.details from audit a, users u where u.userid=a.userid and a.auditid>$maxauditid-".($_REQUEST["start"]+200)." order by clock desc limit ".($_REQUEST["start"]+200); } $result=DBselect($sql); @@ -94,7 +94,7 @@ while($row=DBfetch($result)) { $i++; - if(isset($_GET["start"])&&($i<$_GET["start"])) + if(isset($_REQUEST["start"])&&($i<$_REQUEST["start"])) { continue; } |