Line 124 | Line 124 |
---|
$allow_user = true; } }
|
$allow_user = true; } }
|
| /** * Allow modification of the permissions to access the mcp file * * @event core.mcp_modify_permissions * @var array user_quickmod_actions Array holding the quickmod actions and their respectiev permissions * @var bool quickmod Whether or not the action is performed via QuickMod * @var bool allow_user Boolean holding if the user can access the mcp * @var int forum_id The current forum ID * @var int topic_id The current topic ID * @since 3.3.3-RC1 */ $vars = array( 'user_quickmod_actions', 'quickmod', 'allow_user', 'forum_id', 'topic_id', ); extract($phpbb_dispatcher->trigger_event('core.mcp_modify_permissions', compact($vars)));
|
if (!$allow_user) {
| if (!$allow_user) {
|
Line 312 | Line 332 |
---|
'BREADCRUMB_NAME' => $user->lang('MCP'), 'U_BREADCRUMB' => append_sid("{$phpbb_root_path}mcp.$phpEx"), ));
|
'BREADCRUMB_NAME' => $user->lang('MCP'), 'U_BREADCRUMB' => append_sid("{$phpbb_root_path}mcp.$phpEx"), ));
|
// Load and execute the relevant module $module->load_active();
// Assign data to the template engine for the list of modules $module->assign_tpl_vars(append_sid("{$phpbb_root_path}mcp.$phpEx"));
| |
// Generate urls for letting the moderation control panel being accessed in different modes $template->assign_vars(array(
| // Generate urls for letting the moderation control panel being accessed in different modes $template->assign_vars(array(
|
Line 326 | Line 340 |
---|
'U_MCP_TOPIC' => ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=topic_view&t=$topic_id") : '', 'U_MCP_POST' => ($forum_id && $topic_id && $post_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=post_details&t=$topic_id&p=$post_id") : '', ));
|
'U_MCP_TOPIC' => ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=topic_view&t=$topic_id") : '', 'U_MCP_POST' => ($forum_id && $topic_id && $post_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=post_details&t=$topic_id&p=$post_id") : '', ));
|
| // Load and execute the relevant module $module->load_active();
// Assign data to the template engine for the list of modules $module->assign_tpl_vars(append_sid("{$phpbb_root_path}mcp.$phpEx"));
|
// Generate the page, do not display/query online list $module->display($module->get_page_title());
| // Generate the page, do not display/query online list $module->display($module->get_page_title());
|