1982d76d1SGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2982d76d1SGreg Roach 3*83615acfSGreg Roach<form method="post" autocomplete="off"> 4982d76d1SGreg Roach <input name="route" type="hidden" value="setup"> 5982d76d1SGreg Roach <input name="lang" type="hidden" value="<?= e($lang) ?>"> 6982d76d1SGreg Roach <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 7982d76d1SGreg Roach <input name="wtname" type="hidden" value="<?= e($wtname) ?>"> 8982d76d1SGreg Roach <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>"> 9982d76d1SGreg Roach <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>"> 10982d76d1SGreg Roach <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>"> 11982d76d1SGreg Roach 12982d76d1SGreg Roach <h2> 13982d76d1SGreg Roach <?= I18N::translate('Database connection') ?> – PostgreSQL 14982d76d1SGreg Roach </h2> 15982d76d1SGreg Roach 16982d76d1SGreg Roach <?php foreach ($errors as $error) : ?> 17982d76d1SGreg Roach <p class="alert alert-danger"><?= $error ?></p> 18982d76d1SGreg Roach <?php endforeach ?> 19982d76d1SGreg Roach 20982d76d1SGreg Roach <?php foreach ($warnings as $warning) : ?> 21982d76d1SGreg Roach <p class="alert alert-warning"><?= $warning ?></p> 22982d76d1SGreg Roach <?php endforeach ?> 23982d76d1SGreg Roach 24982d76d1SGreg Roach <div class="row form-group"> 25982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbhost"> 26982d76d1SGreg Roach <?= I18N::translate('Server name') ?> 27982d76d1SGreg Roach </label> 28982d76d1SGreg Roach <div class="col-sm-9"> 29982d76d1SGreg Roach <input class="form-control" id="dbhost" name="dbhost" type="text" value="<?= e($dbhost) ?>" dir="ltr"> 30982d76d1SGreg Roach <p class="small text-muted"> 31982d76d1SGreg Roach <?= I18N::translate('Most sites are configured to use localhost. This means that your database runs on the same computer as your web server.') ?> 32982d76d1SGreg Roach </p> 33982d76d1SGreg Roach </div> 34982d76d1SGreg Roach </div> 35982d76d1SGreg Roach 36982d76d1SGreg Roach <div class="row form-group"> 37982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbport"> 38982d76d1SGreg Roach <?= I18N::translate('Port number') ?> 39982d76d1SGreg Roach </label> 40982d76d1SGreg Roach <div class="col-sm-9"> 41982d76d1SGreg Roach <input class="form-control" id="dbport" name="dbport" pattern="\d+" type="text" value="<?= e($dbport) ?>" dir="ltr"> 42982d76d1SGreg Roach <p class="small text-muted"> 43511800d3SGreg Roach <?= I18N::translate('Most sites are configured to use the default value of 5432.') ?> 44982d76d1SGreg Roach </p> 45982d76d1SGreg Roach </div> 46982d76d1SGreg Roach </div> 47982d76d1SGreg Roach 48982d76d1SGreg Roach <div class="row form-group"> 49982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbuser"> 50982d76d1SGreg Roach <?= I18N::translate('Database user account') ?> 51982d76d1SGreg Roach </label> 52982d76d1SGreg Roach <div class="col-sm-9"> 53982d76d1SGreg Roach <input class="form-control" id="dbuser" name="dbuser" type="text" value="<?= e($dbuser) ?>" dir="ltr"> 54982d76d1SGreg Roach <p class="small text-muted"> 55982d76d1SGreg Roach <?= I18N::translate('This is case sensitive.') ?> 56982d76d1SGreg Roach </p> 57982d76d1SGreg Roach </div> 58982d76d1SGreg Roach </div> 59982d76d1SGreg Roach 60982d76d1SGreg Roach <div class="row form-group"> 61982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbpass"> 62982d76d1SGreg Roach <?= I18N::translate('Database password') ?> 63982d76d1SGreg Roach </label> 64982d76d1SGreg Roach <div class="col-sm-9"> 651f1ffa65SGreg Roach <input class="form-control" id="dbpass" name="dbpass" type="password" value="<?= e($dbpass) ?>" dir="ltr" autocomplete="off"> 66982d76d1SGreg Roach <p class="small text-muted"> 67982d76d1SGreg Roach <?= I18N::translate('This is case sensitive.') ?> 68982d76d1SGreg Roach </p> 69982d76d1SGreg Roach </div> 70982d76d1SGreg Roach </div> 71982d76d1SGreg Roach 72982d76d1SGreg Roach <div class="row form-group"> 73982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbname"> 74982d76d1SGreg Roach <?= I18N::translate('Database name') ?> 75982d76d1SGreg Roach </label> 76982d76d1SGreg Roach <div class="col-sm-9"> 777bf2ba3bSGreg Roach <input class="form-control" dir="ltr" id="dbname" name="dbname" pattern="[^`'"]{1,63}" type="text" value="<?= e($dbname) ?>"> 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="tblpfx"> 83982d76d1SGreg Roach <?= I18N::translate('Table prefix') ?> 84982d76d1SGreg Roach </label> 85982d76d1SGreg Roach <div class="col-sm-9"> 8609331e47SGreg Roach <input class="form-control" dir="ltr" id="tblpfx" name="tblpfx" maxlength="15" pattern="^[^`]*$" type="text" value="<?= e($tblpfx) ?>"> 87982d76d1SGreg Roach <p class="small text-muted"> 88982d76d1SGreg 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.') ?> 89982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 90982d76d1SGreg Roach </p> 91982d76d1SGreg Roach </div> 92982d76d1SGreg Roach </div> 93982d76d1SGreg Roach 94982d76d1SGreg Roach <hr> 95982d76d1SGreg Roach 96982d76d1SGreg Roach <div class="d-flex justify-content-between"> 97982d76d1SGreg Roach <button class="btn btn-primary" name="step" type="submit" value="5"> 98982d76d1SGreg Roach <?= I18N::translate('next') ?> 99982d76d1SGreg Roach </button> 1003e0eba26SGreg Roach 1013e0eba26SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="3"> 1023e0eba26SGreg Roach <?= I18N::translate('previous') ?> 1033e0eba26SGreg Roach </button> 104982d76d1SGreg Roach </div> 105982d76d1SGreg Roach</form> 106