1<?php use Fisharebest\Webtrees\I18N; 2use Fisharebest\Webtrees\Webtrees; ?> 3 4<form method="POST" autocomplete="off"> 5 <input name="route" type="hidden" value="setup"> 6 <input name="lang" type="hidden" value="<?= e($lang) ?>"> 7 <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 8 <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>"> 9 <input name="dbport" type="hidden" value="<?= e($dbport) ?>"> 10 <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>"> 11 <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>"> 12 <input name="wtname" type="hidden" value="<?= e($wtname) ?>"> 13 <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>"> 14 <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>"> 15 <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>"> 16 17 <h2> 18 <?= I18N::translate('Database connection') ?> – SQLite 19 </h2> 20 21 <?php foreach ($errors as $error) : ?> 22 <p class="alert alert-danger"><?= $error ?></p> 23 <?php endforeach ?> 24 25 <?php foreach ($warnings as $warning) : ?> 26 <p class="alert alert-warning"><?= $warning ?></p> 27 <?php endforeach ?> 28 29 <div class="row form-group"> 30 <label class="col-form-label col-sm-3" for="dbname"> 31 <?= I18N::translate('Database name') ?> 32 </label> 33 34 <div class="col-sm-9"> 35 <div class="input-group" dir="ltr"> 36 <div class="input-group-prepend"> 37 <span class="input-group-text"><?=e( realpath(Webtrees::ROOT_DIR)) ?>data/</span> 38 </div> 39 40 <input class="form-control" id="dbname" name="dbname" pattern="[a-zA-Z0-9_]{1,63}" type="text" value="<?= e($dbname) ?>"> 41 42 <div class="input-group-append"> 43 <span class="input-group-text">.sqlite</span> 44 </div> 45 </div> 46 47 <p class="small text-muted"> 48 <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 49 </p> 50 </div> 51 </div> 52 53 <div class="row form-group"> 54 <label class="col-form-label col-sm-3" for="tblpfx"> 55 <?= I18N::translate('Table prefix') ?> 56 </label> 57 58 <div class="col-sm-9"> 59 <input class="form-control" dir="ltr" id="tblpfx" maxlength="15" name="tblpfx" pattern="[a-zA-Z0-9_]+" type="text" value="<?= e($tblpfx) ?>"> 60 61 <p class="small text-muted"> 62 <?= 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.') ?> 63 <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 64 </p> 65 </div> 66 </div> 67 68 <hr> 69 70 <div class="d-flex justify-content-between"> 71 <button class="btn btn-primary" name="step" type="submit" value="5"> 72 <?= I18N::translate('next') ?> 73 </button> 74 75 <button class="btn btn-secondary" name="step" type="submit" value="3"> 76 <?= I18N::translate('previous') ?> 77 </button> 78 </div> 79</form> 80