>")) { if(isset($_GET["start"])) { $_GET["start"]+=100; } else { $_GET["start"]=100; } } if(isset($_GET["start"])&&($_GET["start"]<=0)) { unset($_GET["start"]); } ?> "; if(isset($_GET["start"])) { echo ""; echo ""; } else { echo ""; } echo ">\">"; echo ""; show_table_header_end(); ?> 0,$row["max"],0); if(!isset($_GET["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); } $result=DBselect($sql); table_begin(); table_header(array(S_TIME,S_USER,S_RESOURCE,S_ACTION,S_DETAILS)); $col=0; $i=0; while($row=DBfetch($result)) { $i++; if(isset($_GET["start"])&&($i<$_GET["start"])) { continue; } if($i>100) break; if($row["resource"]==AUDIT_RESOURCE_USER) { $resource=S_USER; } else if($row["resource"]==AUDIT_RESOURCE_ZABBIX_CONFIG) { $resource=S_CONFIGURATION_OF_ZABBIX; } else if($row["resource"]==AUDIT_RESOURCE_MEDIA_TYPE) { $resource=S_MEDIA_TYPE; } else if($row["resource"]==AUDIT_RESOURCE_HOST) { $resource=S_HOST; } else if($row["resource"]==AUDIT_RESOURCE_ACTION) { $resource=S_ACTION; } else if($row["resource"]==AUDIT_RESOURCE_GRAPH) { $resource=S_GRAPH; } else if($row["resource"]==AUDIT_RESOURCE_GRAPH_ELEMENT) { $resource=S_GRAPH_ELEMENT; } else { $resource=S_UNKNOWN_RESOURCE; } 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 { $action=S_UNKNOWN_ACTION; } table_row(array( date("Y.M.d H:i:s",$row["clock"]), $row["alias"], $resource, $action, $row["details"] ),$col++); } table_end(); ?>