Line 22 | Line 22 |
---|
$id = request_var('i', ''); $mode = request_var('mode', '');
|
$id = request_var('i', ''); $mode = request_var('mode', '');
|
if ($mode == 'login' || $mode == 'logout' || $mode == 'confirm')
| if (in_array($mode, array('login', 'logout', 'confirm', 'sendpassword', 'activate')))
|
{ define('IN_LOGIN', true); }
| { define('IN_LOGIN', true); }
|
Line 127 | Line 127 |
---|
'AGREEMENT_TITLE' => $user->lang[$title], 'AGREEMENT_TEXT' => sprintf($user->lang[$message], $config['sitename'], generate_board_url()), 'U_BACK' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
|
'AGREEMENT_TITLE' => $user->lang[$title], 'AGREEMENT_TEXT' => sprintf($user->lang[$message], $config['sitename'], generate_board_url()), 'U_BACK' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
|
'L_BACK' => $user->lang['BACK_TO_LOGIN']) );
| 'L_BACK' => $user->lang['BACK_TO_LOGIN'], ));
|
page_footer();
| page_footer();
|
Line 143 | Line 143 |
---|
foreach ($_COOKIE as $cookie_name => $cookie_data) {
|
foreach ($_COOKIE as $cookie_name => $cookie_data) {
|
| // Only delete board cookies, no other ones... if (strpos($cookie_name, $config['cookie_name'] . '_') !== 0) { continue; }
|
$cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name);
// Polls are stored as {cookie_name}_poll_{topic_id}, cookie_name_ got removed, therefore checking for poll_
| $cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name);
// Polls are stored as {cookie_name}_poll_{topic_id}, cookie_name_ got removed, therefore checking for poll_
|
Line 186 | Line 192 |
---|
$user_row = $db->sql_fetchrow($result); $db->sql_freeresult($result);
|
$user_row = $db->sql_fetchrow($result); $db->sql_freeresult($result);
|
if (!$auth->acl_get('a_switchperm') || !$user_row || $user_id == $user->data['user_id'])
| if (!$auth->acl_get('a_switchperm') || !$user_row || $user_id == $user->data['user_id'] || !check_link_hash(request_var('hash', ''), 'switchperm'))
|
{ redirect(append_sid("{$phpbb_root_path}index.$phpEx")); }
| { redirect(append_sid("{$phpbb_root_path}index.$phpEx")); }
|
Line 214 | Line 220 |
---|
}
$auth->acl_cache($user->data);
|
}
$auth->acl_cache($user->data);
|
$sql = 'UPDATE ' . USERS_TABLE . " SET user_perm_from = 0 WHERE user_id = " . $user->data['user_id']; $db->sql_query($sql);
| |
$sql = 'SELECT username FROM ' . USERS_TABLE . '
| $sql = 'SELECT username FROM ' . USERS_TABLE . '
|
Line 251 | Line 252 |
---|
if ($user->data['is_bot']) { redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
if ($user->data['is_bot']) { redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
| }
if ($id == 'pm' && $mode == 'view' && isset($_GET['p'])) { $redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . request_var('p', 0)); login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);
|
}
login_box('', $user->lang['LOGIN_EXPLAIN_UCP']);
| }
login_box('', $user->lang['LOGIN_EXPLAIN_UCP']);
|