-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added functionality to display audit logs (#157)
* #128: Added functionality to display audit logs. * #128: Added audit log date-based retrieval limit. * #128: Added audit log date-based retrieval limit. * #128: Changed Action and Result to readable messages. Added link to User. Trimmed CN to only display user. * #128: Changed date format to fit in table. * #128: Removing finished TODO. * #128: Removing unneccessary variable. * #128: Setting default values. Adding comments to class. * #128: Added documentation to configure displaying audit logs. * #128: Added functionality to sort audit logs by date as well as display newest log entries first. Added documentation for the reverse sort ordering feature. * #128: Removing unneccessary variables from config. * #128: Commenting out audit logs. * Fixing review comments: - Fixing display text from entries to events. - Moving Audit Log link to menu item. - Commenting out audit configuration. * Audit logrotate documentation update. * Audit logrotate documentation update. * Update default configuration * Fix display button link * Remove unused parameter * Remove condition in menu * FR translation --------- Co-authored-by: Clément OUDOT <clement.oudot@worteks.com>
- Loading branch information
Showing
16 changed files
with
220 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/* | ||
* Collect audit logs to be displayed. | ||
*/ | ||
require_once("../conf/config.inc.php"); | ||
require __DIR__ . '/../vendor/autoload.php'; | ||
require_once("../lib/date.inc.php"); | ||
require_once("../lib/audit.inc.php"); | ||
|
||
$events = array(); | ||
[$events,$nb_events] = displayauditlog($audit_log_file, $audit_log_days, $audit_log_sortby, $audit_log_reverse); | ||
|
||
$smarty->assign("page_title", "auditlogtitle"); | ||
$smarty->assign("nb_events", $nb_events); | ||
$smarty->assign("events", $events); | ||
$smarty->assign("listing_columns", $audit_log_items); | ||
$smarty->assign("truncate_value_after", $audit_log_truncate_value_after); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="alert alert-warning"> | ||
{if $nb_events==0}{$msg_noeventsfound}{elseif $nb_events==1}{$nb_events} {$msg_eventfound}{else}{$nb_events} {$msg_eventsfound}{/if} | ||
</div> | ||
|
||
<table id="search-listing" class="table table-striped table-hover table-condensed dataTable"> | ||
{include 'listing_table.tpl' display="audit"} | ||
</table> |
Oops, something went wrong.