1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 4dc270d8cSGreg Roachuse Illuminate\Support\Collection; 5dc270d8cSGreg Roach 6dc270d8cSGreg Roach/** 7dc270d8cSGreg Roach * @var string $dbhost 8dc270d8cSGreg Roach * @var string $dbname 9dc270d8cSGreg Roach * @var string $dbpass 10dc270d8cSGreg Roach * @var string $dbport 11dc270d8cSGreg Roach * @var string $dbtype 12dc270d8cSGreg Roach * @var string $dbuser 13dc270d8cSGreg Roach * @var Collection<string> $errors 14dc270d8cSGreg Roach * @var string $lang 15dc270d8cSGreg Roach * @var string $tblpfx 16dc270d8cSGreg Roach * @var Collection<string> $warnings 17dc270d8cSGreg Roach * @var string $wtemail 18dc270d8cSGreg Roach * @var string $wtname 19dc270d8cSGreg Roach * @var string $wtpass 20dc270d8cSGreg Roach * @var string $wtuser 21dc270d8cSGreg Roach */ 22d70512abSGreg Roach 23d70512abSGreg Roach?> 24dd6b2bfcSGreg Roach 2583615acfSGreg Roach<form method="post" autocomplete="off"> 26dd6b2bfcSGreg Roach <input name="lang" type="hidden" value="<?= e($lang) ?>"> 27982d76d1SGreg Roach <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 28dd6b2bfcSGreg Roach <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>"> 29dd6b2bfcSGreg Roach <input name="dbport" type="hidden" value="<?= e($dbport) ?>"> 30dd6b2bfcSGreg Roach <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>"> 31dd6b2bfcSGreg Roach <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>"> 32dd6b2bfcSGreg Roach <input name="dbname" type="hidden" value="<?= e($dbname) ?>"> 33dd6b2bfcSGreg Roach <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>"> 34673fcaccSGreg Roach <input name="baseurl" type="hidden" value=""> 35dd6b2bfcSGreg Roach 36982d76d1SGreg Roach <h2> 37982d76d1SGreg Roach <?= I18N::translate('Administrator account') ?> 38982d76d1SGreg Roach </h2> 39982d76d1SGreg Roach 40982d76d1SGreg Roach <?php foreach ($errors as $error) : ?> 41982d76d1SGreg Roach <p class="alert alert-danger"><?= $error ?></p> 42982d76d1SGreg Roach <?php endforeach ?> 43982d76d1SGreg Roach 44982d76d1SGreg Roach <?php foreach ($warnings as $warning) : ?> 45982d76d1SGreg Roach <p class="alert alert-warning"><?= $warning ?></p> 46982d76d1SGreg Roach <?php endforeach ?> 47dd6b2bfcSGreg Roach 48dd6b2bfcSGreg Roach <p> 49dd6b2bfcSGreg 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.') ?> 50dd6b2bfcSGreg Roach </p> 51dd6b2bfcSGreg Roach 52dd6b2bfcSGreg Roach <div class="row form-group"> 53dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3" for="wtname"> 54dd6b2bfcSGreg Roach <?= I18N::translate('Your name') ?> 55dd6b2bfcSGreg Roach </label> 56dd6b2bfcSGreg Roach <div class="col-sm-9"> 571f1ffa65SGreg Roach <input class="form-control" dir="ltr" id="wtname" name="wtname" type="text" value="<?= e($wtname) ?>" autocomplete="name"> 58315eb316SGreg Roach <div class="form-text"> 59dd6b2bfcSGreg Roach <?= I18N::translate('This is your real name, as you would like it displayed on screen.') ?> 60315eb316SGreg Roach </div> 61dd6b2bfcSGreg Roach </div> 62dd6b2bfcSGreg Roach </div> 63dd6b2bfcSGreg Roach 64dd6b2bfcSGreg Roach <div class="row form-group"> 65dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3" for="wtuser"> 66dd6b2bfcSGreg Roach <?= I18N::translate('Username') ?> 67dd6b2bfcSGreg Roach </label> 68dd6b2bfcSGreg Roach <div class="col-sm-9"> 691f1ffa65SGreg Roach <input class="form-control" dir="ltr" id="wtuser" name="wtuser" type="text" value="<?= e($wtuser) ?>" autocomplete="username"> 70315eb316SGreg Roach <div class="form-text"> 71dd6b2bfcSGreg Roach <?= I18N::translate('You will use this to sign in to webtrees.') ?> 72315eb316SGreg Roach </div> 73dd6b2bfcSGreg Roach </div> 74dd6b2bfcSGreg Roach </div> 75dd6b2bfcSGreg Roach 76dd6b2bfcSGreg Roach <div class="row form-group"> 77dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3" for="wtpass"> 78dd6b2bfcSGreg Roach <?= I18N::translate('Password') ?> 79dd6b2bfcSGreg Roach </label> 80dd6b2bfcSGreg Roach <div class="col-sm-9"> 81*d4786c66SGreg Roach <input class="form-control" dir="ltr" id="wtpass" name="wtpass" pattern=".{6,}" type="password" value="<?= e($wtpass) ?>" autocomplete="current-password" data-wt-show-password-text="<?= e(I18N::translate('show')) ?>" data-wt-show-password-title="<?= e(I18N::translate('Show password')) ?>" data-wt-hide-password-text="<?= e(I18N::translate('hide')) ?>" data-wt-hide-password-title="<?= e(I18N::translate('Hide password')) ?>"> 82315eb316SGreg Roach <div class="form-text"> 83dd6b2bfcSGreg Roach <?= I18N::translate('This must be at least six characters long. It is case-sensitive.') ?> 84315eb316SGreg Roach </div> 85dd6b2bfcSGreg Roach </div> 86dd6b2bfcSGreg Roach </div> 87dd6b2bfcSGreg Roach 88dd6b2bfcSGreg Roach <div class="row form-group"> 89dd6b2bfcSGreg Roach <label class="col-form-label col-sm-3" for="wtemail"> 90dd6b2bfcSGreg Roach <?= I18N::translate('Email address') ?> 91dd6b2bfcSGreg Roach </label> 92dd6b2bfcSGreg Roach <div class="col-sm-9"> 931f1ffa65SGreg Roach <input class="form-control" dir="ltr" id="wtemail" name="wtemail" type="email" value="<?= e($wtemail) ?>" autocomplete="email"> 94315eb316SGreg Roach <div class="form-text"> 95dd6b2bfcSGreg 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.') ?> 96315eb316SGreg Roach </div> 97dd6b2bfcSGreg Roach </div> 98dd6b2bfcSGreg Roach </div> 99dd6b2bfcSGreg Roach 100dd6b2bfcSGreg Roach <hr> 101dd6b2bfcSGreg Roach 102982d76d1SGreg Roach <div class="d-flex justify-content-between"> 103dd6b2bfcSGreg Roach <button class="btn btn-primary" name="step" type="submit" value="6"> 104dd6b2bfcSGreg Roach <?= I18N::translate('next') ?> 105dd6b2bfcSGreg Roach </button> 1063e0eba26SGreg Roach 1073e0eba26SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="4"> 1083e0eba26SGreg Roach <?= I18N::translate('previous') ?> 1093e0eba26SGreg Roach </button> 110982d76d1SGreg Roach </div> 111dd6b2bfcSGreg Roach</form> 112673fcaccSGreg Roach 113673fcaccSGreg Roach<script> 114cd4fed47SGreg Roach document.querySelector('input[name=baseurl]').value = decodeURI(location.href.split('index.php')[0].replace(/\/+$/, '')); 115673fcaccSGreg Roach</script> 116