1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 4*dc270d8cSGreg Roachuse Illuminate\Support\Collection; 5*dc270d8cSGreg Roach 6*dc270d8cSGreg Roach/** 7*dc270d8cSGreg Roach * @var string $dbhost 8*dc270d8cSGreg Roach * @var string $dbname 9*dc270d8cSGreg Roach * @var string $dbpass 10*dc270d8cSGreg Roach * @var string $dbport 11*dc270d8cSGreg Roach * @var string $dbtype 12*dc270d8cSGreg Roach * @var string $dbuser 13*dc270d8cSGreg Roach * @var Collection<string> $errors 14*dc270d8cSGreg Roach * @var string $lang 15*dc270d8cSGreg Roach * @var string $tblpfx 16*dc270d8cSGreg Roach * @var Collection<string> $warnings 17*dc270d8cSGreg Roach * @var string $wtemail 18*dc270d8cSGreg Roach * @var string $wtname 19*dc270d8cSGreg Roach * @var string $wtpass 20*dc270d8cSGreg Roach * @var string $wtuser 21*dc270d8cSGreg 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> 346b4dc746SGreg Roach <?= I18N::translate('Database connection') ?> – MySQL / MariaDB / Percona 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 50982d76d1SGreg Roach <div class="col-sm-9"> 51982d76d1SGreg Roach <input class="form-control" id="dbhost" name="dbhost" type="text" value="<?= e($dbhost) ?>" dir="ltr"> 52982d76d1SGreg Roach 53982d76d1SGreg Roach <p class="small text-muted"> 54982d76d1SGreg Roach <?= I18N::translate('Most sites are configured to use localhost. This means that your database runs on the same computer as your web server.') ?> 55982d76d1SGreg Roach </p> 56982d76d1SGreg Roach 576b4dc746SGreg Roach <!-- 58982d76d1SGreg Roach <p class="small text-muted"> 59982d76d1SGreg Roach <?= I18N::translate('If you connect to the database using a UNIX socket, enter the path here and leave the port number empty.') ?> 60982d76d1SGreg Roach </p> 616b4dc746SGreg Roach --> 62982d76d1SGreg Roach </div> 63982d76d1SGreg Roach </div> 64982d76d1SGreg Roach 65982d76d1SGreg Roach <div class="row form-group"> 66982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbport"> 67982d76d1SGreg Roach <?= I18N::translate('Port number') ?> 68982d76d1SGreg Roach </label> 69982d76d1SGreg Roach 70982d76d1SGreg Roach <div class="col-sm-9"> 71982d76d1SGreg Roach <input class="form-control" id="dbport" name="dbport" pattern="\d+" type="text" value="<?= e($dbport) ?>" dir="ltr"> 72982d76d1SGreg Roach 73982d76d1SGreg Roach <p class="small text-muted"> 74982d76d1SGreg Roach <?= I18N::translate('Most sites are configured to use the default value of 3306.') ?> 75982d76d1SGreg Roach </p> 76982d76d1SGreg Roach </div> 77982d76d1SGreg Roach </div> 78982d76d1SGreg Roach 79982d76d1SGreg Roach <div class="row form-group"> 80982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbuser"> 81982d76d1SGreg Roach <?= I18N::translate('Database user account') ?> 82982d76d1SGreg Roach </label> 83982d76d1SGreg Roach 84982d76d1SGreg Roach <div class="col-sm-9"> 85982d76d1SGreg Roach <input class="form-control" id="dbuser" name="dbuser" type="text" value="<?= e($dbuser) ?>" dir="ltr"> 86982d76d1SGreg Roach 87982d76d1SGreg Roach <p class="small text-muted"> 88982d76d1SGreg Roach <?= I18N::translate('This is case sensitive.') ?> 89982d76d1SGreg Roach </p> 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="dbpass"> 95982d76d1SGreg Roach <?= I18N::translate('Database password') ?> 96982d76d1SGreg Roach </label> 97982d76d1SGreg Roach 98982d76d1SGreg Roach <div class="col-sm-9"> 991f1ffa65SGreg Roach <input class="form-control" id="dbpass" name="dbpass" type="password" value="<?= e($dbpass) ?>" dir="ltr" autocomplete="off"> 100982d76d1SGreg Roach 101982d76d1SGreg Roach <p class="small text-muted"> 102982d76d1SGreg Roach <?= I18N::translate('This is case sensitive.') ?> 103982d76d1SGreg Roach </p> 104982d76d1SGreg Roach </div> 105982d76d1SGreg Roach </div> 106982d76d1SGreg Roach 107982d76d1SGreg Roach <div class="row form-group"> 108982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="dbname"> 109982d76d1SGreg Roach <?= I18N::translate('Database name') ?> 110982d76d1SGreg Roach </label> 111982d76d1SGreg Roach 112982d76d1SGreg Roach <div class="col-sm-9"> 1137bf2ba3bSGreg Roach <input class="form-control" dir="ltr" id="dbname" name="dbname" pattern="[^`'"]{1,64}" type="text" value="<?= e($dbname) ?>"> 114982d76d1SGreg Roach </div> 115982d76d1SGreg Roach </div> 116982d76d1SGreg Roach 117982d76d1SGreg Roach <div class="row form-group"> 118982d76d1SGreg Roach <label class="col-form-label col-sm-3" for="tblpfx"> 119982d76d1SGreg Roach <?= I18N::translate('Table prefix') ?> 120982d76d1SGreg Roach </label> 121982d76d1SGreg Roach <div class="col-sm-9"> 12209331e47SGreg Roach <input class="form-control" dir="ltr" id="tblpfx" maxlength="15" name="tblpfx" pattern="^[^`]*$" type="text" value="<?= e($tblpfx) ?>"> 123982d76d1SGreg Roach <p class="small text-muted"> 124982d76d1SGreg 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.') ?> 125982d76d1SGreg Roach <?= I18N::translate('Use letters A-Z, a-z, digits 0-9, or underscores') ?> 126982d76d1SGreg Roach </p> 127982d76d1SGreg Roach </div> 128982d76d1SGreg Roach </div> 129982d76d1SGreg Roach 130982d76d1SGreg Roach <hr> 131982d76d1SGreg Roach 132982d76d1SGreg Roach <div class="d-flex justify-content-between"> 133982d76d1SGreg Roach <button class="btn btn-primary" name="step" type="submit" value="5"> 134982d76d1SGreg Roach <?= I18N::translate('next') ?> 135982d76d1SGreg Roach </button> 1363e0eba26SGreg Roach 1373e0eba26SGreg Roach <button class="btn btn-secondary" name="step" type="submit" value="3"> 1383e0eba26SGreg Roach <?= I18N::translate('previous') ?> 1393e0eba26SGreg Roach </button> 140982d76d1SGreg Roach </div> 141982d76d1SGreg Roach</form> 142