1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 4d70512abSGreg Roach 5d70512abSGreg Roach?> 6dd6b2bfcSGreg Roach 783615acfSGreg Roach<form method="post" autocomplete="off"> 8dd6b2bfcSGreg Roach <input name="lang" type="hidden" value="<?= e($lang) ?>"> 9982d76d1SGreg Roach <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 10dd6b2bfcSGreg Roach <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>"> 11dd6b2bfcSGreg Roach <input name="dbport" type="hidden" value="<?= e($dbport) ?>"> 12dd6b2bfcSGreg Roach <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>"> 13dd6b2bfcSGreg Roach <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>"> 14dd6b2bfcSGreg Roach <input name="dbname" type="hidden" value="<?= e($dbname) ?>"> 15dd6b2bfcSGreg Roach <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>"> 16673fcaccSGreg Roach <input name="baseurl" type="hidden" value=""> 17dd6b2bfcSGreg Roach 18982d76d1SGreg Roach <h2> 19982d76d1SGreg Roach <?= I18N::translate('Administrator account') ?> 20982d76d1SGreg Roach </h2> 21982d76d1SGreg Roach 22982d76d1SGreg Roach <?php foreach ($errors as $error) : ?> 23982d76d1SGreg Roach <p class="alert alert-danger"><?= $error ?></p> 24982d76d1SGreg Roach <?php endforeach ?> 25982d76d1SGreg Roach 26982d76d1SGreg Roach <?php foreach ($warnings as $warning) : ?> 27982d76d1SGreg Roach <p class="alert alert-warning"><?= $warning ?></p> 28982d76d1SGreg Roach <?php endforeach ?> 29dd6b2bfcSGreg Roach 30dd6b2bfcSGreg Roach <p> 31dd6b2bfcSGreg Roach <?= I18N::translate('You need to set up an administrator account. This account can control all aspects of this webtrees installation. Please choose a strong password.') ?> 32dd6b2bfcSGreg Roach </p> 33dd6b2bfcSGreg Roach 34dd6b2bfcSGreg Roach <div class="row form-group"> 35dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3" for="wtname"> 36dd6b2bfcSGreg Roach <?= I18N::translate('Your name') ?> 37dd6b2bfcSGreg Roach </label> 38dd6b2bfcSGreg Roach <div class="col-sm-9"> 391f1ffa65SGreg Roach <input class="form-control" dir="ltr" id="wtname" name="wtname" type="text" value="<?= e($wtname) ?>" autocomplete="name"> 40dd6b2bfcSGreg Roach <p class="small text-muted"> 41dd6b2bfcSGreg Roach <?= I18N::translate('This is your real name, as you would like it displayed on screen.') ?> 42dd6b2bfcSGreg Roach </p> 43dd6b2bfcSGreg Roach </div> 44dd6b2bfcSGreg Roach </div> 45dd6b2bfcSGreg Roach 46dd6b2bfcSGreg Roach <div class="row form-group"> 47dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3" for="wtuser"> 48dd6b2bfcSGreg Roach <?= I18N::translate('Username') ?> 49dd6b2bfcSGreg Roach </label> 50dd6b2bfcSGreg Roach <div class="col-sm-9"> 511f1ffa65SGreg Roach <input class="form-control" dir="ltr" id="wtuser" name="wtuser" type="text" value="<?= e($wtuser) ?>" autocomplete="username"> 52dd6b2bfcSGreg Roach <p class="small text-muted"> 53dd6b2bfcSGreg Roach <?= I18N::translate('You will use this to sign in to webtrees.') ?> 54dd6b2bfcSGreg Roach </p> 55dd6b2bfcSGreg Roach </div> 56dd6b2bfcSGreg Roach </div> 57dd6b2bfcSGreg Roach 58dd6b2bfcSGreg Roach <div class="row form-group"> 59dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3" for="wtpass"> 60dd6b2bfcSGreg Roach <?= I18N::translate('Password') ?> 61dd6b2bfcSGreg Roach </label> 62dd6b2bfcSGreg Roach <div class="col-sm-9"> 631f1ffa65SGreg Roach <input class="form-control" dir="ltr" id="wtpass" name="wtpass" pattern=".{6,}" type="password" value="<?= e($wtpass) ?>" autocomplete="current-password"> 64dd6b2bfcSGreg Roach <p class="small text-muted"> 65dd6b2bfcSGreg Roach <?= I18N::translate('This must be at least six characters long. It is case-sensitive.') ?> 66dd6b2bfcSGreg Roach </p> 67dd6b2bfcSGreg Roach </div> 68dd6b2bfcSGreg Roach </div> 69dd6b2bfcSGreg Roach 70dd6b2bfcSGreg Roach <div class="row form-group"> 71dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3" for="wtemail"> 72dd6b2bfcSGreg Roach <?= I18N::translate('Email address') ?> 73dd6b2bfcSGreg Roach </label> 74dd6b2bfcSGreg Roach <div class="col-sm-9"> 751f1ffa65SGreg Roach <input class="form-control" dir="ltr" id="wtemail" name="wtemail" type="email" value="<?= e($wtemail) ?>" autocomplete="email"> 76dd6b2bfcSGreg Roach <p class="small text-muted"> 77dd6b2bfcSGreg Roach <?= I18N::translate('This email address will be used to send password reminders, website notifications, and messages from other family members who are registered on the website.') ?> 78dd6b2bfcSGreg Roach </p> 79dd6b2bfcSGreg Roach </div> 80dd6b2bfcSGreg Roach </div> 81dd6b2bfcSGreg Roach 82dd6b2bfcSGreg Roach <hr> 83dd6b2bfcSGreg Roach 84982d76d1SGreg Roach <div class="d-flex justify-content-between"> 85dd6b2bfcSGreg Roach <button class="btn btn-primary" name="step" type="submit" value="6"> 86dd6b2bfcSGreg Roach <?= I18N::translate('next') ?> 87dd6b2bfcSGreg Roach </button> 883e0eba26SGreg Roach 893e0eba26SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="4"> 903e0eba26SGreg Roach <?= I18N::translate('previous') ?> 913e0eba26SGreg Roach </button> 92982d76d1SGreg Roach </div> 93dd6b2bfcSGreg Roach</form> 94673fcaccSGreg Roach 95673fcaccSGreg Roach<script> 96*cd4fed47SGreg Roach document.querySelector('input[name=baseurl]').value = decodeURI(location.href.split('index.php')[0].replace(/\/+$/, '')); 97673fcaccSGreg Roach</script> 98