1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 4d70512abSGreg Roachuse Fisharebest\Webtrees\Webtrees; 5dc270d8cSGreg Roachuse Illuminate\Support\Collection; 6dc270d8cSGreg Roach 7dc270d8cSGreg Roach/** 8dc270d8cSGreg Roach * @var string $dbhost 9dc270d8cSGreg Roach * @var string $dbname 10dc270d8cSGreg Roach * @var string $dbpass 11dc270d8cSGreg Roach * @var string $dbport 12dc270d8cSGreg Roach * @var string $dbtype 13dc270d8cSGreg Roach * @var string $dbuser 14*36779af1SGreg Roach * @var Collection<int,string> $errors 15dc270d8cSGreg Roach * @var string $lang 16dc270d8cSGreg Roach * @var string $tblpfx 17*36779af1SGreg Roach * @var Collection<int,string> $warnings 18dc270d8cSGreg Roach * @var string $wtemail 19dc270d8cSGreg Roach * @var string $wtname 20dc270d8cSGreg Roach * @var string $wtpass 21dc270d8cSGreg Roach * @var string $wtuser 22dc270d8cSGreg 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 50afc2d190SGreg Roach <div class="row form-group mb-3"> 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"> 57dc270d8cSGreg Roach <span class="input-group-text"><?=e((string) realpath(Webtrees::ROOT_DIR)) ?>/data/</span> 58982d76d1SGreg Roach 597bf2ba3bSGreg Roach <input class="form-control" id="dbname" name="dbname" pattern="[a-zA-Z0-9_]{1,63}" type="text" value="<?= e($dbname) ?>"> 60982d76d1SGreg Roach 61982d76d1SGreg Roach <span class="input-group-text">.sqlite</span> 62982d76d1SGreg Roach </div> 63982d76d1SGreg Roach 64315eb316SGreg Roach <div class="form-text"> 65982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 66315eb316SGreg Roach </div> 67982d76d1SGreg Roach </div> 68982d76d1SGreg Roach </div> 69982d76d1SGreg Roach 70afc2d190SGreg Roach <div class="row form-group mb-3"> 71982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="tblpfx"> 72982d76d1SGreg Roach <?= I18N::translate('Table prefix') ?> 73982d76d1SGreg Roach </label> 74982d76d1SGreg Roach 75982d76d1SGreg Roach <div class="col-sm-9"> 7609331e47SGreg Roach <input class="form-control" dir="ltr" id="tblpfx" maxlength="15" name="tblpfx" pattern="[a-zA-Z0-9_]+" type="text" value="<?= e($tblpfx) ?>"> 77982d76d1SGreg Roach 78315eb316SGreg Roach <div class="form-text"> 79982d76d1SGreg 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.') ?> 80982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 81315eb316SGreg Roach </div> 82982d76d1SGreg Roach </div> 83982d76d1SGreg Roach </div> 84982d76d1SGreg Roach 85982d76d1SGreg Roach <hr> 86982d76d1SGreg Roach 87982d76d1SGreg Roach <div class="d-flex justify-content-between"> 88982d76d1SGreg Roach <button class="btn btn-primary" name="step" type="submit" value="5"> 89982d76d1SGreg Roach <?= I18N::translate('next') ?> 90982d76d1SGreg Roach </button> 913e0eba26SGreg Roach 923e0eba26SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="3"> 933e0eba26SGreg Roach <?= I18N::translate('previous') ?> 943e0eba26SGreg Roach </button> 95982d76d1SGreg Roach </div> 96982d76d1SGreg Roach</form> 97