diff -r a8a21e1c7afa -r c0c445d4a13e punbb/profile.php --- a/punbb/profile.php Thu Jul 12 01:04:01 2007 -0400 +++ b/punbb/profile.php Thu Jul 12 15:00:35 2007 -0400 @@ -686,7 +686,8 @@ $form['admin_note'] = trim($_POST['admin_note']); // Are we allowed to change usernames? - if ($pun_user['g_id'] == USER_LEVEL_ADMIN || ($pun_user['g_id'] == USER_LEVEL_MOD && $pun_config['p_mod_rename_users'] == '1')) + // In Enano, NO! + if ( false ) // ($pun_user['g_id'] == USER_LEVEL_ADMIN || ($pun_user['g_id'] == USER_LEVEL_MOD && $pun_config['p_mod_rename_users'] == '1')) { $form['username'] = trim($_POST['req_username']); $old_username = trim($_POST['old_username']); @@ -703,7 +704,7 @@ message($lang_prof_reg['Username BBCode']); // Check that the username is not already registered - $result = $pun_db->query('SELECT 1 FROM '.$pun_db->prefix.'users WHERE username=\''.$pun_db->escape($form['username']).'\' AND id!='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $pun_db->error()); + $result = $pun_db->query('SELECT 1 FROM '.table_prefix.'users WHERE username=\''.$pun_db->escape($form['username']).'\' AND user_id!='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $pun_db->error()); if ($pun_db->num_rows($result)) message($lang_profile['Dupe username']); @@ -1061,7 +1062,7 @@ { if ($pun_user['g_id'] >= USER_LEVEL_MEMBER) { - if ($pun_user['g_id'] == USER_LEVEL_ADMIN || $pun_config['p_mod_rename_users'] == '1') + if ( false ) // NO RENAMING IN ENANO // ($pun_user['g_id'] == USER_LEVEL_ADMIN || $pun_config['p_mod_rename_users'] == '1') $username_field = ''."\n"; else $username_field = '

'.$lang_common['Username'].': '.pun_htmlspecialchars($user['username']).'

'."\n"; @@ -1092,7 +1093,7 @@ } $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['Profile']; - $required_fields = array('req_username' => $lang_common['Username'], 'req_email' => $lang_common['E-mail']); + $GLOBALS['required_fields'] = array('req_username' => $lang_common['Username']); require PUN_ROOT.'header.php'; generate_profile_menu('essentials');