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?> 24982d76d1SGreg Roach 2583615acfSGreg Roach<form method="post" autocomplete="off"> 26982d76d1SGreg Roach <input name="lang" type="hidden" value="<?= e($lang) ?>"> 27982d76d1SGreg Roach <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 28982d76d1SGreg Roach <input name="wtname" type="hidden" value="<?= e($wtname) ?>"> 29982d76d1SGreg Roach <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>"> 30982d76d1SGreg Roach <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>"> 31982d76d1SGreg Roach <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>"> 32982d76d1SGreg Roach 33982d76d1SGreg Roach <h2> 34982d76d1SGreg Roach <?= I18N::translate('Database connection') ?> – PostgreSQL 35982d76d1SGreg Roach </h2> 36982d76d1SGreg Roach 37982d76d1SGreg Roach <?php foreach ($errors as $error) : ?> 38982d76d1SGreg Roach <p class="alert alert-danger"><?= $error ?></p> 39982d76d1SGreg Roach <?php endforeach ?> 40982d76d1SGreg Roach 41982d76d1SGreg Roach <?php foreach ($warnings as $warning) : ?> 42982d76d1SGreg Roach <p class="alert alert-warning"><?= $warning ?></p> 43982d76d1SGreg Roach <?php endforeach ?> 44982d76d1SGreg Roach 45982d76d1SGreg Roach <div class="row form-group"> 46982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbhost"> 47982d76d1SGreg Roach <?= I18N::translate('Server name') ?> 48982d76d1SGreg Roach </label> 49982d76d1SGreg Roach <div class="col-sm-9"> 50982d76d1SGreg Roach <input class="form-control" id="dbhost" name="dbhost" type="text" value="<?= e($dbhost) ?>" dir="ltr"> 51315eb316SGreg Roach <div class="form-text"> 52982d76d1SGreg Roach <?= I18N::translate('Most sites are configured to use localhost. This means that your database runs on the same computer as your web server.') ?> 53315eb316SGreg Roach </div> 54982d76d1SGreg Roach </div> 55982d76d1SGreg Roach </div> 56982d76d1SGreg Roach 57982d76d1SGreg Roach <div class="row form-group"> 58982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbport"> 59982d76d1SGreg Roach <?= I18N::translate('Port number') ?> 60982d76d1SGreg Roach </label> 61982d76d1SGreg Roach <div class="col-sm-9"> 62982d76d1SGreg Roach <input class="form-control" id="dbport" name="dbport" pattern="\d+" type="text" value="<?= e($dbport) ?>" dir="ltr"> 63315eb316SGreg Roach <div class="form-text"> 64511800d3SGreg Roach <?= I18N::translate('Most sites are configured to use the default value of 5432.') ?> 65315eb316SGreg Roach </div> 66982d76d1SGreg Roach </div> 67982d76d1SGreg Roach </div> 68982d76d1SGreg Roach 69982d76d1SGreg Roach <div class="row form-group"> 70982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbuser"> 71982d76d1SGreg Roach <?= I18N::translate('Database user account') ?> 72982d76d1SGreg Roach </label> 73982d76d1SGreg Roach <div class="col-sm-9"> 74982d76d1SGreg Roach <input class="form-control" id="dbuser" name="dbuser" type="text" value="<?= e($dbuser) ?>" dir="ltr"> 75315eb316SGreg Roach <div class="form-text"> 76982d76d1SGreg Roach <?= I18N::translate('This is case sensitive.') ?> 77315eb316SGreg Roach </div> 78982d76d1SGreg Roach </div> 79982d76d1SGreg Roach </div> 80982d76d1SGreg Roach 81982d76d1SGreg Roach <div class="row form-group"> 82982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbpass"> 83982d76d1SGreg Roach <?= I18N::translate('Database password') ?> 84982d76d1SGreg Roach </label> 85982d76d1SGreg Roach <div class="col-sm-9"> 86*d4786c66SGreg Roach <input class="form-control" id="dbpass" name="dbpass" type="password" value="<?= e($dbpass) ?>" dir="ltr" autocomplete="off" 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')) ?>"> 87315eb316SGreg Roach <div class="form-text"> 88982d76d1SGreg Roach <?= I18N::translate('This is case sensitive.') ?> 89315eb316SGreg Roach </div> 90982d76d1SGreg Roach </div> 91982d76d1SGreg Roach </div> 92982d76d1SGreg Roach 93982d76d1SGreg Roach <div class="row form-group"> 94982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbname"> 95982d76d1SGreg Roach <?= I18N::translate('Database name') ?> 96982d76d1SGreg Roach </label> 97982d76d1SGreg Roach <div class="col-sm-9"> 987bf2ba3bSGreg Roach <input class="form-control" dir="ltr" id="dbname" name="dbname" pattern="[^`'"]{1,63}" type="text" value="<?= e($dbname) ?>"> 99982d76d1SGreg Roach </div> 100982d76d1SGreg Roach </div> 101982d76d1SGreg Roach 102982d76d1SGreg Roach <div class="row form-group"> 103982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="tblpfx"> 104982d76d1SGreg Roach <?= I18N::translate('Table prefix') ?> 105982d76d1SGreg Roach </label> 106982d76d1SGreg Roach <div class="col-sm-9"> 1076633baf0SGreg Roach <input class="form-control" dir="ltr" id="tblpfx" maxlength="15" name="tblpfx" pattern="[a-zA-Z0-9_]+" type="text" value="<?= e($tblpfx) ?>"> 108315eb316SGreg Roach <div class="form-text"> 109982d76d1SGreg 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.') ?> 110982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 111315eb316SGreg Roach </div> 112982d76d1SGreg Roach </div> 113982d76d1SGreg Roach </div> 114982d76d1SGreg Roach 115982d76d1SGreg Roach <hr> 116982d76d1SGreg Roach 117982d76d1SGreg Roach <div class="d-flex justify-content-between"> 118982d76d1SGreg Roach <button class="btn btn-primary" name="step" type="submit" value="5"> 119982d76d1SGreg Roach <?= I18N::translate('next') ?> 120982d76d1SGreg Roach </button> 1213e0eba26SGreg Roach 1223e0eba26SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="3"> 1233e0eba26SGreg Roach <?= I18N::translate('previous') ?> 1243e0eba26SGreg Roach </button> 125982d76d1SGreg Roach </div> 126982d76d1SGreg Roach</form> 127