summaryrefslogtreecommitdiffstats
path: root/frontends/php/audit.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-19 09:18:27 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-19 09:18:27 +0000
commit55258ec574e3e9a0984b13cf119d725dd8ae1791 (patch)
treebbb37fe8a5d51d7eb363989108becaa5399bcd8d /frontends/php/audit.php
parent1c3253c2dddc63349e34e38d681bedeede2da8a7 (diff)
downloadzabbix-55258ec574e3e9a0984b13cf119d725dd8ae1791.tar.gz
zabbix-55258ec574e3e9a0984b13cf119d725dd8ae1791.tar.xz
zabbix-55258ec574e3e9a0984b13cf119d725dd8ae1791.zip
- fixed oracle sql request limitation
git-svn-id: svn://svn.zabbix.com/trunk@2859 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/audit.php')
-rw-r--r--frontends/php/audit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/frontends/php/audit.php b/frontends/php/audit.php
index cd98b459..d38f4153 100644
--- a/frontends/php/audit.php
+++ b/frontends/php/audit.php
@@ -75,16 +75,18 @@
if(!isset($_REQUEST["start"]))
{
$sql="select u.alias,a.clock,a.action,a.resourcetype,a.details from auditlog a, users u".
- " where u.userid=a.userid and a.auditid>$maxauditid-200 order by clock desc limit 200";
+ " 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.resourcetype,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);
+ " order by clock desc";
+ $limit = $_REQUEST["start"]+200;
}
- $result=DBselect($sql);
+ $result=DBselect($sql,$limit);
$table = new CTableInfo();
$table->setHeader(array(S_TIME,S_USER,S_RESOURCE,S_ACTION,S_DETAILS));