data['user_id']; $modules['Preferances'] = "module_id=$selected_module&mode=preferancese&u=" . $user->data['user_id']; $modules['Avatar_settings'] = "module_id=$selected_module&u=" . $user->data['user_id']; $modules['Signature_settings'] = "module_id=$selected_module&mode=signaturee&u=" . $user->data['user_id']; foreach($modules as $section_title => $module_link) { $template->assign_block_vars('ucp_subsections', array('U_SUBSECTION' => "ucp.$phpEx$SID&" . $module_link , 'SUBSECTION' => $user->lang[$section_title], 'IS_MULTI_SECTIONS' => (count($modules) > 1) ? TRUE : FALSE)); } $mode = ($_GET['mode']) ? $_GET['mode'] : $_POST['mode']; $submit = ($_GET['submit']) ? $_GET['submit'] : $_POST['submit']; switch($mode) { case 'editprofile': default: if($submit) { // // Save basic profile information // } else { // // Get userdata // $username = $user->data['username']; $email = $user->data['user_email']; $s_hidden_fields = ''; // // Show edit profile info form // $template->assign_vars(array( 'IS_PROFILE' => TRUE, 'USERNAME' => $username, 'EMAIL' => $email, 'L_CURRENT_PASSWORD' => $user->lang['Current_password'], 'L_NEW_PASSWORD' => ($mode == 'register') ? $user->lang['Password'] : $user->lang['New_password'], 'L_CONFIRM_PASSWORD' => $user->lang['Confirm_password'], 'L_CONFIRM_PASSWORD_EXPLAIN' => ($mode == 'editprofile') ? $user->lang['Confirm_password_explain'] : '', 'L_PASSWORD_IF_CHANGED' => ($mode == 'editprofile') ? $user->lang['password_if_changed'] : '', 'L_PASSWORD_CONFIRM_IF_CHANGED' => ($mode == 'editprofile') ? $user->lang['password_confirm_if_changed'] : '', 'L_SUBMIT' => $user->lang['Submit'], 'L_RESET' => $user->lang['Reset'], 'L_ITEMS_REQUIRED' => $user->lang['Items_required'], 'S_CONFIRM_CODE' => ($config['enable_confirm']) ? 1 : 0, 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_PROFILE_ACTION' => "ucp.$phpEx$SID") ); } break; case 'preferancese': break; case 'signaturee': break; } include($phpbb_root_path . 'includes/page_header.'.$phpEx); $template->set_filenames(array( 'body' => 'usercp_profile.html') ); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); ?>