setUserNameChange(fusion_get_settings('userNameChange')); // accept or not username change. $userInput->verifyNewEmail = TRUE; $userInput->userData = fusion_get_userdata(); $userInput->saveUpdate(); if (\defender::safe()) { redirect(FUSION_REQUEST); } } else if (isset($_GET['code']) && fusion_get_settings('email_verification') == 1) { $userInput = new PHPFusion\UserFieldsInput(); $userInput->verifyCode($_GET['code']); redirect(FUSION_REQUEST); } if (fusion_get_settings('email_verification') == 1) { $result = dbquery("SELECT user_email FROM ".DB_EMAIL_VERIFY." WHERE user_id='".$userdata['user_id']."'"); if (dbrows($result)) { $data = dbarray($result); $info['email_notification'] = sprintf($locale['u200'], $data['user_email'])."\n
\n".$locale['u201']; } } $userFields = new PHPFusion\UserFields(); $userFields->postName = "update_profile"; $userFields->postValue = $locale['u105']; $userFields->userData = fusion_get_userdata(); $userFields->plugin_folder = [INCLUDES."user_fields/", INFUSIONS]; $userFields->plugin_locale_folder = LOCALE.LOCALESET."user_fields/"; $userFields->setUserNameChange(fusion_get_settings("userNameChange")); $userFields->registration = FALSE; $userFields->method = 'input'; $userFields = $userFields->display_profile_input($info); require_once THEMES.'templates/footer.php';