Line 163 | Line 163 |
---|
}
$cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name);
|
}
$cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name);
|
| /** * Event to save custom cookies from deletion * * @event core.ucp_delete_cookies * @var string cookie_name Cookie name to checking * @var bool retain_cookie Do we retain our cookie or not, true if retain * @since 3.1.3-RC1 */ $retain_cookie = false; $vars = array('cookie_name', 'retain_cookie'); extract($phpbb_dispatcher->trigger_event('core.ucp_delete_cookies', compact($vars))); if ($retain_cookie) { continue; }
|
// Polls are stored as {cookie_name}_poll_{topic_id}, cookie_name_ got removed, therefore checking for poll_ if (strpos($cookie_name, 'poll_') !== 0)
| // Polls are stored as {cookie_name}_poll_{topic_id}, cookie_name_ got removed, therefore checking for poll_ if (strpos($cookie_name, 'poll_') !== 0)
|
Line 221 | Line 237 |
---|
add_log('admin', 'LOG_ACL_TRANSFER_PERMISSIONS', $user_row['username']);
$message = sprintf($user->lang['PERMISSIONS_TRANSFERRED'], $user_row['username']) . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
|
add_log('admin', 'LOG_ACL_TRANSFER_PERMISSIONS', $user_row['username']);
$message = sprintf($user->lang['PERMISSIONS_TRANSFERRED'], $user_row['username']) . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
|
| /** * Event to run code after permissions are switched * * @event core.ucp_switch_permissions * @var int user_id User ID to switch permission to * @var array user_row User data * @var string message Success message * @since 3.1.11-RC1 */ $vars = array('user_id', 'user_row', 'message'); extract($phpbb_dispatcher->trigger_event('core.ucp_switch_permissions', compact($vars)));
|
trigger_error($message);
break;
| trigger_error($message);
break;
|
Line 244 | Line 273 |
---|
add_log('admin', 'LOG_ACL_RESTORE_PERMISSIONS', $username);
$message = $user->lang['PERMISSIONS_RESTORED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
|
add_log('admin', 'LOG_ACL_RESTORE_PERMISSIONS', $username);
$message = $user->lang['PERMISSIONS_RESTORED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
|
| /** * Event to run code after permissions are restored * * @event core.ucp_restore_permissions * @var string username User name * @var string message Success message * @since 3.1.11-RC1 */ $vars = array('username', 'message'); extract($phpbb_dispatcher->trigger_event('core.ucp_restore_permissions', compact($vars)));
|
trigger_error($message);
break;
| trigger_error($message);
break;
|