Changeset 702 for trunk/forum/ucp.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/ucp.php
r400 r702 3 3 * 4 4 * @package ucp 5 * @version $Id : ucp.php 8915 2008-09-23 13:30:52Z acydburn$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 128 128 'AGREEMENT_TEXT' => sprintf($user->lang[$message], $config['sitename'], generate_board_url()), 129 129 'U_BACK' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'), 130 'L_BACK' => $user->lang['BACK_TO_LOGIN'] )131 ) ;130 'L_BACK' => $user->lang['BACK_TO_LOGIN'], 131 )); 132 132 133 133 page_footer(); … … 144 144 foreach ($_COOKIE as $cookie_name => $cookie_data) 145 145 { 146 // Only delete board cookies, no other ones... 147 if (strpos($cookie_name, $config['cookie_name'] . '_') !== 0) 148 { 149 continue; 150 } 151 146 152 $cookie_name = str_replace($config['cookie_name'] . '_', '', $cookie_name); 147 153 … … 187 193 $db->sql_freeresult($result); 188 194 189 if (!$auth->acl_get('a_switchperm') || !$user_row || $user_id == $user->data['user_id'] )195 if (!$auth->acl_get('a_switchperm') || !$user_row || $user_id == $user->data['user_id'] || !check_link_hash(request_var('hash', ''), 'switchperm')) 190 196 { 191 197 redirect(append_sid("{$phpbb_root_path}index.$phpEx")); … … 215 221 216 222 $auth->acl_cache($user->data); 217 218 $sql = 'UPDATE ' . USERS_TABLE . "219 SET user_perm_from = 0220 WHERE user_id = " . $user->data['user_id'];221 $db->sql_query($sql);222 223 223 224 $sql = 'SELECT username
Note:
See TracChangeset
for help on using the changeset viewer.