1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 4d70512abSGreg Roachuse Fisharebest\Webtrees\Webtrees; 5*dc270d8cSGreg Roachuse Illuminate\Support\Collection; 6*dc270d8cSGreg Roach 7*dc270d8cSGreg Roach/** 8*dc270d8cSGreg Roach * @var string $dbhost 9*dc270d8cSGreg Roach * @var string $dbname 10*dc270d8cSGreg Roach * @var string $dbpass 11*dc270d8cSGreg Roach * @var string $dbport 12*dc270d8cSGreg Roach * @var string $dbtype 13*dc270d8cSGreg Roach * @var string $dbuser 14*dc270d8cSGreg Roach * @var Collection<string> $errors 15*dc270d8cSGreg Roach * @var string $lang 16*dc270d8cSGreg Roach * @var string $tblpfx 17*dc270d8cSGreg Roach * @var Collection<string> $warnings 18*dc270d8cSGreg Roach * @var string $wtemail 19*dc270d8cSGreg Roach * @var string $wtname 20*dc270d8cSGreg Roach * @var string $wtpass 21*dc270d8cSGreg Roach * @var string $wtuser 22*dc270d8cSGreg Roach */ 23d70512abSGreg Roach 24d70512abSGreg Roach?> 25982d76d1SGreg Roach 2683615acfSGreg Roach<form method="post" autocomplete="off"> 27982d76d1SGreg Roach <input name="lang" type="hidden" value="<?= e($lang) ?>"> 28982d76d1SGreg Roach <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 29982d76d1SGreg Roach <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>"> 30982d76d1SGreg Roach <input name="dbport" type="hidden" value="<?= e($dbport) ?>"> 31982d76d1SGreg Roach <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>"> 32982d76d1SGreg Roach <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>"> 33982d76d1SGreg Roach <input name="wtname" type="hidden" value="<?= e($wtname) ?>"> 34982d76d1SGreg Roach <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>"> 35982d76d1SGreg Roach <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>"> 36982d76d1SGreg Roach <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>"> 37982d76d1SGreg Roach 38982d76d1SGreg Roach <h2> 39982d76d1SGreg Roach <?= I18N::translate('Database connection') ?> – SQLite 40982d76d1SGreg Roach </h2> 41982d76d1SGreg Roach 42982d76d1SGreg Roach <?php foreach ($errors as $error) : ?> 43982d76d1SGreg Roach <p class="alert alert-danger"><?= $error ?></p> 44982d76d1SGreg Roach <?php endforeach ?> 45982d76d1SGreg Roach 46982d76d1SGreg Roach <?php foreach ($warnings as $warning) : ?> 47982d76d1SGreg Roach <p class="alert alert-warning"><?= $warning ?></p> 48982d76d1SGreg Roach <?php endforeach ?> 49982d76d1SGreg Roach 50982d76d1SGreg Roach <div class="row form-group"> 51982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbname"> 52982d76d1SGreg Roach <?= I18N::translate('Database name') ?> 53982d76d1SGreg Roach </label> 54982d76d1SGreg Roach 55982d76d1SGreg Roach <div class="col-sm-9"> 56982d76d1SGreg Roach <div class="input-group" dir="ltr"> 57982d76d1SGreg Roach <div class="input-group-prepend"> 58*dc270d8cSGreg Roach <span class="input-group-text"><?=e((string) realpath(Webtrees::ROOT_DIR)) ?>/data/</span> 59982d76d1SGreg Roach </div> 60982d76d1SGreg Roach 617bf2ba3bSGreg Roach <input class="form-control" id="dbname" name="dbname" pattern="[a-zA-Z0-9_]{1,63}" type="text" value="<?= e($dbname) ?>"> 62982d76d1SGreg Roach 63982d76d1SGreg Roach <div class="input-group-append"> 64982d76d1SGreg Roach <span class="input-group-text">.sqlite</span> 65982d76d1SGreg Roach </div> 66982d76d1SGreg Roach </div> 67982d76d1SGreg Roach 68982d76d1SGreg Roach <p class="small text-muted"> 69982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 70982d76d1SGreg Roach </p> 71982d76d1SGreg Roach </div> 72982d76d1SGreg Roach </div> 73982d76d1SGreg Roach 74982d76d1SGreg Roach <div class="row form-group"> 75982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="tblpfx"> 76982d76d1SGreg Roach <?= I18N::translate('Table prefix') ?> 77982d76d1SGreg Roach </label> 78982d76d1SGreg Roach 79982d76d1SGreg Roach <div class="col-sm-9"> 8009331e47SGreg Roach <input class="form-control" dir="ltr" id="tblpfx" maxlength="15" name="tblpfx" pattern="[a-zA-Z0-9_]+" type="text" value="<?= e($tblpfx) ?>"> 81982d76d1SGreg Roach 82982d76d1SGreg Roach <p class="small text-muted"> 83982d76d1SGreg Roach <?= I18N::translate('The prefix is optional, but recommended. By giving the table names a unique prefix you can let several different applications share the same database.') ?> 84982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 85982d76d1SGreg Roach </p> 86982d76d1SGreg Roach </div> 87982d76d1SGreg Roach </div> 88982d76d1SGreg Roach 89982d76d1SGreg Roach <hr> 90982d76d1SGreg Roach 91982d76d1SGreg Roach <div class="d-flex justify-content-between"> 92982d76d1SGreg Roach <button class="btn btn-primary" name="step" type="submit" value="5"> 93982d76d1SGreg Roach <?= I18N::translate('next') ?> 94982d76d1SGreg Roach </button> 953e0eba26SGreg Roach 963e0eba26SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="3"> 973e0eba26SGreg Roach <?= I18N::translate('previous') ?> 983e0eba26SGreg Roach </button> 99982d76d1SGreg Roach </div> 100982d76d1SGreg Roach</form> 101