<td><input type="password" name="pass2" style="width:95%;" value="', WT_Filter::escapeHtml($pass2), '" required placeholder="', WT_I18N::translate('Type the password again.'), '" pattern="', WT_REGEX_PASSWORD, '"></td> <td>', WT_I18N::translate('Allow this user to edit his account information'), help_link('useradmin_editaccount'), '</td> <td><input type="checkbox" name="editaccount" value="1" checked="checked"></td> <tr> <td>', WT_I18N::translate('Preferred contact method'), '</td> <td>'; echo edit_field_contact('new_contact_method', $new_contact_method); echo '</td> <td>', WT_I18N::translate('Visible to other users when online'), help_link('useradmin_visibleonline'), '</td> <td><input type="checkbox" name="visibleonline" value="1" checked="checked"></td> </tr> <tr> </tr> <tr> <td>', WT_I18N::translate('Language'), '</td> <td>', edit_field_language('user_language', $user_language), '</td>'; if (WT_Site::preference('ALLOW_USER_THEMES')) { echo '<td>', WT_I18N::translate('Theme'), help_link('THEME'), '</td> <td> <select name="new_user_theme"> <option value="" selected="selected">', WT_Filter::escapeHtml(WT_I18N::translate('<default theme>')), '</option>'; foreach (get_theme_names() as $themename => $themedir) { echo '<option value="', $themedir, '">', $themename, '</option>'; } echo '</select> </td>'; } echo '</tr>'; if (Auth::isAdmin()) { echo '<tr> <td>', WT_I18N::translate('Admin comments on user'), '</td>
<div class="value">', $person->format_list('span'), '</div>'; } $person = WT_Individual::getInstance(WT_USER_ROOT_ID); echo '<div class="label">', WT_I18N::translate('Default individual'), help_link('default_individual'), '</div> <div class="value"><input data-autocomplete-type="INDI" type="text" name="form_rootid" id="rootid" value="', WT_USER_ROOT_ID, '">'; echo print_findindi_link('rootid'), '<br>'; if ($person) { echo $person->format_list('span'); } echo '</div> <div class="label">', WT_I18N::translate('Password'), help_link('password'), '</div> <div class="value"><input type="password" name="form_pass1"> ', WT_I18N::translate('Leave password blank if you want to keep the current password.'), '</div> <div class="label">', WT_I18N::translate('Confirm password'), help_link('password_confirm'), '</div> <div class="value"><input type="password" name="form_pass2"></div> <div class="label">', WT_I18N::translate('Language'), '</div> <div class="value">', edit_field_language('form_language', Auth::user()->getSetting('language')), '</div> <div class="label">', WT_I18N::translate('Email address'), help_link('email'), '</div> <div class="value"><input type="email" name="form_email" value="', WT_Filter::escapeHtml(Auth::user()->getEmail()), '" size="50"></div> <div class="label">', WT_I18N::translate('Theme'), help_link('THEME'), '</div> <div class="value"> <select name="form_theme"> <option value="">', WT_Filter::escapeHtml(WT_I18N::translate('<default theme>')), '</option>'; foreach (get_theme_names() as $themename => $themedir) { echo '<option value="', $themedir, '"'; if ($themedir == Auth::user()->getSetting('theme')) { echo ' selected="selected"'; } echo '>', $themename, '</option>'; } echo '</select> </div>
</style> </head> <body> <h1> <?php echo WT_I18N::translate('Setup wizard for <b>webtrees</b>'); ?> </h1> <?php echo '<form name="config" action="', WT_SCRIPT_NAME, '" method="post" onsubmit="this.btncontinue.disabled=\'disabled\';">'; echo '<input type="hidden" name="lang" value="', WT_LOCALE, '">'; //////////////////////////////////////////////////////////////////////////////// // Step one - choose language and confirm server configuration //////////////////////////////////////////////////////////////////////////////// if (!isset($_POST['lang'])) { echo '<p>', WT_I18N::translate('Change language'), ' ', edit_field_language('change_lang', WT_LOCALE, 'onchange="window.location=\'' . WT_SCRIPT_NAME . '?lang=\'+this.value;">'), '</p>', '<h2>', WT_I18N::translate('Checking server configuration'), '</h2>'; $warnings = false; $errors = false; // Mandatory functions $disable_functions = preg_split('/ *, */', ini_get('disable_functions')); foreach (array('ini_set', 'parse_ini_file') as $function) { if (in_array($function, $disable_functions)) { echo '<p class="bad">', WT_I18N::translate('%s is disabled on this server. You cannot install webtrees until it is enabled. Please ask your server’s administrator to enable it.', $function . '()'), '</p>'; $errors = true; } } // Mandatory extensions foreach (array('pcre', 'pdo', 'pdo_mysql', 'session', 'iconv') as $extension) { if (!extension_loaded($extension)) { echo '<p class="bad">', WT_I18N::translate('PHP extension “%s” is disabled. You cannot install webtrees until this is enabled. Please ask your server’s administrator to enable it.', $extension), '</p>'; $errors = true;
<?php echo WT_SERVER_NAME, WT_SCRIPT_PATH; ?> index.php?ged=<input type="text" name="gedcom" dir="ltr" value="<?php echo WT_Filter::escapeHtml(WT_GEDCOM); ?> " size="20" maxlength="255"> </td> </tr> <tr> <td><?php echo WT_I18N::translate('Language'), help_link('LANGUAGE'); ?> </td> <td><?php echo edit_field_language('GEDCOMLANG', $LANGUAGE); ?> </td> </tr> <tr> <td> <?php echo WT_I18N::translate('Default individual'), help_link('default_individual'); ?> </td> <td class="wrap"> <input data-autocomplete-type="INDI" type="text" name="NEW_PEDIGREE_ROOT_ID" id="NEW_PEDIGREE_ROOT_ID" value="<?php echo get_gedcom_setting(WT_GED_ID, 'PEDIGREE_ROOT_ID'); ?> " size="5" maxlength="20"> <?php