mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13344] Add core event to acp/info/acp_logs.php
PHPBB3-13344
This commit is contained in:
parent
4139e4f2b5
commit
3e5e8fd0e3
1 changed files with 20 additions and 6 deletions
|
@ -15,16 +15,30 @@ class acp_logs_info
|
||||||
{
|
{
|
||||||
function module()
|
function module()
|
||||||
{
|
{
|
||||||
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
|
$modes = array(
|
||||||
|
'admin' => array('title' => 'ACP_ADMIN_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
|
||||||
|
'mod' => array('title' => 'ACP_MOD_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
|
||||||
|
'users' => array('title' => 'ACP_USERS_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
|
||||||
|
'critical' => array('title' => 'ACP_CRITICAL_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event to add or modify ACP log modulemodes
|
||||||
|
*
|
||||||
|
* @event core.acp_logs_info_modify_modes
|
||||||
|
* @var array modes Array with modes info
|
||||||
|
* @since 3.1.11-RC1
|
||||||
|
*/
|
||||||
|
$vars = array('modes');
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.acp_logs_info_modify_modes', compact($vars)));
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'filename' => 'acp_logs',
|
'filename' => 'acp_logs',
|
||||||
'title' => 'ACP_LOGGING',
|
'title' => 'ACP_LOGGING',
|
||||||
'version' => '1.0.0',
|
'version' => '1.0.0',
|
||||||
'modes' => array(
|
'modes' => $modes,
|
||||||
'admin' => array('title' => 'ACP_ADMIN_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
|
|
||||||
'mod' => array('title' => 'ACP_MOD_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
|
|
||||||
'users' => array('title' => 'ACP_USERS_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
|
|
||||||
'critical' => array('title' => 'ACP_CRITICAL_LOGS', 'auth' => 'acl_a_viewlogs', 'cat' => array('ACP_FORUM_LOGS')),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue