1982d76d1SGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2982d76d1SGreg Roach 3982d76d1SGreg 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') ?> – MySQL 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 29982d76d1SGreg Roach <div class="col-sm-9"> 30982d76d1SGreg Roach <input class="form-control" id="dbhost" name="dbhost" type="text" value="<?= e($dbhost) ?>" dir="ltr"> 31982d76d1SGreg Roach 32982d76d1SGreg Roach <p class="small text-muted"> 33982d76d1SGreg Roach <?= I18N::translate('Most sites are configured to use localhost. This means that your database runs on the same computer as your web server.') ?> 34982d76d1SGreg Roach </p> 35982d76d1SGreg Roach 36982d76d1SGreg Roach <p class="small text-muted"> 37982d76d1SGreg Roach <?= I18N::translate('If you connect to the database using a UNIX socket, enter the path here and leave the port number empty.') ?> 38982d76d1SGreg Roach </p> 39982d76d1SGreg Roach </div> 40982d76d1SGreg Roach </div> 41982d76d1SGreg Roach 42982d76d1SGreg Roach <div class="row form-group"> 43982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbport"> 44982d76d1SGreg Roach <?= I18N::translate('Port number') ?> 45982d76d1SGreg Roach </label> 46982d76d1SGreg Roach 47982d76d1SGreg Roach <div class="col-sm-9"> 48982d76d1SGreg Roach <input class="form-control" id="dbport" name="dbport" pattern="\d+" type="text" value="<?= e($dbport) ?>" dir="ltr"> 49982d76d1SGreg Roach 50982d76d1SGreg Roach <p class="small text-muted"> 51982d76d1SGreg Roach <?= I18N::translate('Most sites are configured to use the default value of 3306.') ?> 52982d76d1SGreg Roach </p> 53982d76d1SGreg Roach </div> 54982d76d1SGreg Roach </div> 55982d76d1SGreg Roach 56982d76d1SGreg Roach <div class="row form-group"> 57982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbuser"> 58982d76d1SGreg Roach <?= I18N::translate('Database user account') ?> 59982d76d1SGreg Roach </label> 60982d76d1SGreg Roach 61982d76d1SGreg Roach <div class="col-sm-9"> 62982d76d1SGreg Roach <input class="form-control" id="dbuser" name="dbuser" type="text" value="<?= e($dbuser) ?>" dir="ltr"> 63982d76d1SGreg Roach 64982d76d1SGreg Roach <p class="small text-muted"> 65982d76d1SGreg Roach <?= I18N::translate('This is case sensitive.') ?> 66982d76d1SGreg Roach </p> 67982d76d1SGreg Roach </div> 68982d76d1SGreg Roach </div> 69982d76d1SGreg Roach 70982d76d1SGreg Roach <div class="row form-group"> 71982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbpass"> 72982d76d1SGreg Roach <?= I18N::translate('Database password') ?> 73982d76d1SGreg Roach </label> 74982d76d1SGreg Roach 75982d76d1SGreg Roach <div class="col-sm-9"> 76*1f1ffa65SGreg Roach <input class="form-control" id="dbpass" name="dbpass" type="password" value="<?= e($dbpass) ?>" dir="ltr" autocomplete="off"> 77982d76d1SGreg Roach 78982d76d1SGreg Roach <p class="small text-muted"> 79982d76d1SGreg Roach <?= I18N::translate('This is case sensitive.') ?> 80982d76d1SGreg Roach </p> 81982d76d1SGreg Roach </div> 82982d76d1SGreg Roach </div> 83982d76d1SGreg Roach 84982d76d1SGreg Roach <div class="row form-group"> 85982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbname"> 86982d76d1SGreg Roach <?= I18N::translate('Database name') ?> 87982d76d1SGreg Roach </label> 88982d76d1SGreg Roach 89982d76d1SGreg Roach <div class="col-sm-9"> 90982d76d1SGreg Roach <input class="form-control" dir="ltr" id="dbname" name="dbname" pattern="[a-zA-Z0-9_]+" type="text" value="<?= e($dbname) ?>"> 91982d76d1SGreg Roach 92982d76d1SGreg Roach <p class="small text-muted"> 93982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 94982d76d1SGreg Roach </p> 95982d76d1SGreg Roach </div> 96982d76d1SGreg Roach </div> 97982d76d1SGreg Roach 98982d76d1SGreg Roach <div class="row form-group"> 99982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="tblpfx"> 100982d76d1SGreg Roach <?= I18N::translate('Table prefix') ?> 101982d76d1SGreg Roach </label> 102982d76d1SGreg Roach <div class="col-sm-9"> 103982d76d1SGreg Roach <input class="form-control" dir="ltr" id="tblpfx" name="tblpfx" pattern="^[^`]*$" type="text" value="<?= e($tblpfx) ?>"> 104982d76d1SGreg Roach <p class="small text-muted"> 105982d76d1SGreg 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.') ?> 106982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 107982d76d1SGreg Roach </p> 108982d76d1SGreg Roach </div> 109982d76d1SGreg Roach </div> 110982d76d1SGreg Roach 111982d76d1SGreg Roach <hr> 112982d76d1SGreg Roach 113982d76d1SGreg Roach <div class="d-flex justify-content-between"> 114982d76d1SGreg Roach <button class="btn btn-primary" name="step" type="submit" value="5"> 115982d76d1SGreg Roach <?= I18N::translate('next') ?> 116982d76d1SGreg Roach </button> 1173e0eba26SGreg Roach 1183e0eba26SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="3"> 1193e0eba26SGreg Roach <?= I18N::translate('previous') ?> 1203e0eba26SGreg Roach </button> 121982d76d1SGreg Roach </div> 122982d76d1SGreg Roach</form> 123