getUserName() && User::findByIdentifier($form_username)) { WT_FlashMessages::addMessage(WT_I18N::translate('Duplicate user name. A user with that user name already exists. Please choose another user name.')); } elseif ($form_email !== Auth::user()->getEmail() && User::findByIdentifier($form_email)) { WT_FlashMessages::addMessage(WT_I18N::translate('Duplicate email address. A user with that email already exists.')); } else { // Change username if ($form_username !== Auth::user()->getUserName()) { Log::addAuthenticationLog('User ' . Auth::user()->getUserName() . ' renamed to ' . $form_username); Auth::user()->setUserName($form_username); } // Change password if ($form_pass1 && $form_pass1 === $form_pass2) { Auth::user()->setPassword($form_pass1); } // Change other settings Auth::user() ->setRealName($form_realname) ->setEmail($form_email) ->setPreference('language', $form_language) ->setPreference('contactmethod', $form_contact_method) ->setPreference('visibleonline', $form_visible_online ? '1' : '0'); if ($form_theme === null) { Auth::user()->deletePreference('theme'); } else { Auth::user()->setPreference('theme', $form_theme); } $WT_TREE->setUserPreference(Auth::user(), 'rootid', $form_rootid); } break; case 'delete': // An administrator can only be deleted by another administrator if (!Auth::user()->getPreference('admin')) { Auth::logout(); Auth::user()->delete(); } break; } header('Location: ' . WT_BASE_URL . WT_SCRIPT_NAME); return; } $controller = new WT_Controller_Page; $controller ->setPageTitle(WT_I18N::translate('My account')) ->pageHeader() ->addExternalJavascript(WT_AUTOCOMPLETE_JS_URL) ->addInlineJavascript('autocomplete();'); $my_individual_record = WT_Individual::getInstance(WT_USER_GEDCOM_ID); $default_individual = WT_Individual::getInstance(WT_USER_ROOT_ID); // Form validation ?>

getPageTitle(); ?>

format_list('span'); ?>


format_list('span'); ?>

getPreference('language')); ?>

getPreference('contactmethod')); ?>

getPreference('visibleonline')); ?>


When this box is unchecked, you will be completely invisible to others, and you will also not be able to see other online users. When this box is checked, exactly the opposite is true. You will be visible to others, and you will also be able to see others who are configured to be visible.'); ?>

getPreference('admin')): ?>