1<?php 2 3use Fisharebest\Webtrees\I18N; 4use Illuminate\Support\Collection; 5 6/** 7 * @var int $cpu_limit 8 * @var string $dbhost 9 * @var string $dbname 10 * @var string $dbpass 11 * @var string $dbport 12 * @var string $dbtype 13 * @var string $dbuser 14 * @var Collection<string> $errors 15 * @var string $lang 16 * @var int $memory_limit 17 * @var string $tblpfx 18 * @var Collection<string> $warnings 19 * @var string $wtemail 20 * @var string $wtname 21 * @var string $wtpass 22 * @var string $wtuser 23 */ 24 25?> 26 27<form method="post" autocomplete="off"> 28 <input name="lang" type="hidden" value="<?= e($lang) ?>"> 29 <input name="dbtype" type="hidden" value="<?= e($dbtype) ?>"> 30 <input name="dbhost" type="hidden" value="<?= e($dbhost) ?>"> 31 <input name="dbport" type="hidden" value="<?= e($dbport) ?>"> 32 <input name="dbuser" type="hidden" value="<?= e($dbuser) ?>"> 33 <input name="dbpass" type="hidden" value="<?= e($dbpass) ?>"> 34 <input name="dbname" type="hidden" value="<?= e($dbname) ?>"> 35 <input name="tblpfx" type="hidden" value="<?= e($tblpfx) ?>"> 36 <input name="wtname" type="hidden" value="<?= e($wtname) ?>"> 37 <input name="wtuser" type="hidden" value="<?= e($wtuser) ?>"> 38 <input name="wtpass" type="hidden" value="<?= e($wtpass) ?>"> 39 <input name="wtemail" type="hidden" value="<?= e($wtemail) ?>"> 40 41 <h2> 42 <?= I18N::translate('Checking server configuration') ?> 43 </h2> 44 45 <?php foreach ($errors as $error) : ?> 46 <p class="alert alert-danger"><?= $error ?></p> 47 <?php endforeach ?> 48 49 <?php foreach ($warnings as $warning) : ?> 50 <p class="alert alert-warning"><?= $warning ?></p> 51 <?php endforeach ?> 52 53 <?php if ($errors->isEmpty() && $warnings->isEmpty()) : ?> 54 <p> 55 <?= I18N::translate('The server configuration is OK.') ?> 56 </p> 57 <?php endif ?> 58 59 <h2><?= I18N::translate('Checking server capacity') ?></h2> 60 61 <p> 62 <?= I18N::translate('The memory and CPU time requirements depend on the number of individuals in your family tree.') ?> 63 </p> 64 <p> 65 <?= I18N::translate('The following list shows typical requirements.') ?> 66 </p> 67 <p> 68 <?= I18N::translate('Small systems (500 individuals): 16–32 MB, 10–20 seconds') ?> 69 <br> 70 <?= I18N::translate('Medium systems (5,000 individuals): 32–64 MB, 20–40 seconds') ?> 71 <br> 72 <?= I18N::translate('Large systems (50,000 individuals): 64–128 MB, 40–80 seconds') ?> 73 </p> 74 75 <p class="alert alert-<?= $memory_limit < 32 || $cpu_limit > 0 && $cpu_limit < 20 ? 'danger' : 'success' ?>"> 76 <?= I18N::translate('This server’s memory limit is %s MB and its CPU time limit is %s seconds.', I18N::number($memory_limit), I18N::number($cpu_limit)) ?> 77 </p> 78 79 <p> 80 <?= I18N::translate('If you try to exceed these limits, you may experience server time-outs and blank pages.') ?> 81 </p> 82 83 <hr> 84 85 <div class="d-flex justify-content-between"> 86 <button class="btn btn-primary" name="step" type="submit" value="3"> 87 <?= I18N::translate('next') ?> 88 </button> 89 90 <button class="btn btn-secondary" name="step" type="submit" value="1"> 91 <?= I18N::translate('previous') ?> 92 </button> 93 </div> 94</form> 95