summaryrefslogtreecommitdiffstats
path: root/frontends/php/audit.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-04 14:07:34 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-04 14:07:34 +0000
commitc7baec87cd3825785d33f66bad65493b4ff18e7d (patch)
tree0f82b78f8e799c9683fe26294c6ab2be5d2f1cb1 /frontends/php/audit.php
parent5b09df95f41c91dbbcfe8112c10ef6f5a297103b (diff)
downloadzabbix-c7baec87cd3825785d33f66bad65493b4ff18e7d.tar.gz
zabbix-c7baec87cd3825785d33f66bad65493b4ff18e7d.tar.xz
zabbix-c7baec87cd3825785d33f66bad65493b4ff18e7d.zip
- minor improvements in Audit (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5318 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/audit.php')
-rw-r--r--frontends/php/audit.php31
1 files changed, 25 insertions, 6 deletions
diff --git a/frontends/php/audit.php b/frontends/php/audit.php
index 75489a24..ff0ac70e 100644
--- a/frontends/php/audit.php
+++ b/frontends/php/audit.php
@@ -68,12 +68,31 @@ include_once "include/page_header.php";
{
if($i<$start) continue;
- if($row["action"]==AUDIT_ACTION_ADD) $action = S_ADDED;
- else if($row["action"]==AUDIT_ACTION_UPDATE) $action = S_UPDATED;
- else if($row["action"]==AUDIT_ACTION_DELETE) $action = S_DELETED;
- else if($row["action"]==AUDIT_ACTION_LOGIN) $action = S_LOGIN;
- else if($row["action"]==AUDIT_ACTION_LOGOUT) $action = S_LOGOUT;
- else $action = S_UNKNOWN_ACTION;
+ switch($row["action"]){
+ case AUDIT_ACTION_ADD:
+ $action = S_ADDED;
+ break;
+ case AUDIT_ACTION_UPDATE:
+ $action = S_UPDATED;
+ break;
+ case AUDIT_ACTION_DELETE:
+ $action = S_DELETED;
+ break;
+ case AUDIT_ACTION_LOGIN:
+ $action = S_LOGIN;
+ break;
+ case AUDIT_ACTION_LOGOUT:
+ $action = S_LOGOUT;
+ break;
+ case AUDIT_ACTION_ENABLE:
+ $action = S_ENABLED;
+ break;
+ case AUDIT_ACTION_DISABLE:
+ $action = S_DISABLED;
+ break;
+ default:
+ $action = S_UNKNOWN_ACTION;
+ }
$table->addRow(array(
date("Y.M.d H:i:s",$row["clock"]),