diff options
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/action_logs.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/admin/action_logs.php b/admin/action_logs.php new file mode 100644 index 0000000..e69cdf2 --- /dev/null +++ b/admin/action_logs.php @@ -0,0 +1,34 @@ +<?php +require_once( '../../bit_setup_inc.php' ); +include_once( KERNEL_PKG_PATH.'simple_form_functions_lib.php' ); + +$gBitSystem->verifyPermission( 'p_admin' ); + +$gContent = new LibertyContent(); + +// logging options +$logSettings = array( + 'liberty_action_log' => array( + 'label' => 'Action Logs', + 'note' => 'Log all changes made to liberty content.', + 'type' => 'toggle', + ), +); +$gBitSmarty->assign( 'logSettings', $logSettings ); + +// form processing +if( !empty( $_REQUEST['apply_settings'] ) ) { + $settings = array_merge( $logSettings ); + foreach( array_keys( $settings ) as $item ) { + simple_set_toggle( $item, LIBERTY_PKG_NAME ); + } +} + +// get list of log entries +$listHash = $_REQUEST; +$actionLogs = $gContent->getActionLogs( $listHash ); +$gBitSmarty->assign( 'listInfo', $listHash['listInfo'] ); +$gBitSmarty->assign( 'actionLogs', $actionLogs ); + +$gBitSystem->display( 'bitpackage:liberty/action_logs.tpl', tra( 'Action Logs' ) ); +?> |
