модификация, возвращающая пользователя после выхода из авторизации (вдруг ему захочется) на ту же страницу, где он был до выхода (но уже в качестве гостя).
Если вам это надо - устанавливаем. Быстро и просто.
Открыть includes/functions.php
Найти
Вставить после найденного
Код: Выделить всё
$u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout', true, $user->session_id);
Вставить после найденного
Код: Выделить всё
//-- mod: Prime Logout Return -----------------------------------------------//
$redirect = (defined('ADMIN_START') || $user->page['page_name'] == "ucp.$phpEx" || $user->page['page_name'] == "mcp.$phpEx") ? '' : '&redirect=' . urlencode(str_replace('&', '&', build_url(array('_f_'))));
$u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout' . $redirect, true, $user->session_id);
//-- end: Prime Logout Return -----------------------------------------------//
Открыть ucp.php
Найти
Вставить перед найденным
Вставить после найденного
Код: Выделить всё
meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));
$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
Вставить перед найденным
Код: Выделить всё
//-- mod: Prime Logout Return -----------------------------------------------//
if (($redirect = request_var('redirect', '')) != '')
{
meta_refresh(3, append_sid($redirect));
$message = $message . (($redirect === "{$phpbb_root_path}index.$phpEx" || $redirect === "index.$phpEx") ? '' : '<br /><br />' . sprintf($user->lang['RETURN_PAGE'], '<a href="' . append_sid($redirect) . '">', '</a> '));
}
else
{
//-- end: Prime Logout Return -----------------------------------------------//
Вставить после найденного
Код: Выделить всё
}
Вот и всё. Можете проверять.
Пак с самим модом, лицензии, файл установки и остальное:
Вложение: