summaryrefslogtreecommitdiffstats
path: root/frontends/php/audit.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-12 15:12:34 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-12 15:12:34 +0000
commit1c61097f8490a7f34f61012c0fc54e38e091a4a4 (patch)
treeff4caba28a17d3052447a284cba00f45e97ef558 /frontends/php/audit.php
parent4182bc6afb20b00fa27a54c67056bb98a58a49bb (diff)
downloadzabbix-1c61097f8490a7f34f61012c0fc54e38e091a4a4.tar.gz
zabbix-1c61097f8490a7f34f61012c0fc54e38e091a4a4.tar.xz
zabbix-1c61097f8490a7f34f61012c0fc54e38e091a4a4.zip
- removed unused table stats (Alexei)
- removed all references to escalations (Alexei) - table audit renamed to auditlog (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@2826 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/audit.php')
-rw-r--r--frontends/php/audit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/audit.php b/frontends/php/audit.php
index 805c6d16..166473db 100644
--- a/frontends/php/audit.php
+++ b/frontends/php/audit.php
@@ -67,19 +67,19 @@
?>
<?php
- $sql="select max(auditid) as max from audit";
+ $sql="select max(auditid) as max from auditlog";
$result=DBselect($sql);
$row=DBfetch($result);
$maxauditid=@iif($row,$row["max"],0);
if(!isset($_REQUEST["start"]))
{
- $sql="select u.alias,a.clock,a.action,a.resource,a.details from audit a, users u".
+ $sql="select u.alias,a.clock,a.action,a.resource,a.details from auditlog 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".
+ $sql="select u.alias,a.clock,a.action,a.resource,a.details from auditlog a, users u".
" where u.userid=a.userid and a.auditid>$maxauditid-".($_REQUEST["start"]+200).
" order by clock desc limit ".($_REQUEST["start"]+200);