2022-06-14 18:21:09 +02:00
|
|
|
<?php displayIndex(); ?>
|
2022-11-07 19:40:40 +01:00
|
|
|
<p>
|
2023-01-21 01:27:52 +01:00
|
|
|
<?php if (isset($_SESSION['id'])) {
|
|
|
|
echo match ($_SESSION['type']) {
|
|
|
|
'testing' => _('You are currently using a testing account.'),
|
|
|
|
'approved' => _('You are currently using an approved account.'),
|
|
|
|
} . ' ' . sprintf(_('It\'s internal ID is %s.'), '<small><code>' . $_SESSION['id'] . '</code></small>');
|
|
|
|
} else {
|
|
|
|
echo _('You are not logged in.');
|
|
|
|
} ?>
|
2022-11-07 19:40:40 +01:00
|
|
|
</p>
|
|
|
|
|
2023-01-21 01:27:52 +01:00
|
|
|
<h2><?= _('Account types') ?></h2>
|
2022-11-07 19:40:40 +01:00
|
|
|
|
|
|
|
<dl>
|
2023-01-21 01:27:52 +01:00
|
|
|
<dt><span aria-hidden="true">⏳ </span><em><?= _('Testing') ?></em></dt>
|
2022-11-07 19:40:40 +01:00
|
|
|
<dd>
|
2023-01-21 01:27:52 +01:00
|
|
|
<?= _('It\'s the default account type, with limited capabilities in order to avoid abuses:') ?>
|
2022-11-07 19:40:40 +01:00
|
|
|
<ul>
|
2023-01-21 01:27:52 +01:00
|
|
|
<li><strong><?= _('May be deleted anytime') ?></strong></li>
|
|
|
|
<li><?= sprintf(_('%s of SFTP quota'), ((CONF['ht']['user_quota_testing'] >> 30) >= 1) ? CONF['ht']['user_quota_testing'] >> 30 . ' ' . _('<abbr title="gibibyte">GiB</abbr>') : CONF['ht']['user_quota_testing'] >> 20 . ' ' . _('<abbr title="mebibyte">MiB</abbr>')) ?></li>
|
|
|
|
<li><?= _('Let\'s Encrypt certificate from the staging environment (not trusted by clients)') ?></li>
|
2022-11-07 19:40:40 +01:00
|
|
|
</ul>
|
|
|
|
</dd>
|
2023-01-21 01:27:52 +01:00
|
|
|
<dt><span aria-hidden="true">👤 </span><em><?= _('Approved') ?></em></dt>
|
2022-11-07 19:40:40 +01:00
|
|
|
<dd>
|
2023-03-09 01:35:30 +01:00
|
|
|
<?= _('It was originally a testing account, but has been approved by an administrator, and is suitable for stable use cases:') ?>
|
2022-11-07 19:40:40 +01:00
|
|
|
<ul>
|
2023-01-21 01:27:52 +01:00
|
|
|
<li><?= sprintf(_('%s of SFTP quota'), ((CONF['ht']['user_quota_approved'] >> 30) >= 1) ? CONF['ht']['user_quota_approved'] >> 30 . ' ' . _('<abbr title="gibibyte">GiB</abbr>') : CONF['ht']['user_quota_approved'] >> 20 . ' ' . _('<abbr title="mebibyte">MiB</abbr>')) ?></li>
|
|
|
|
<li><?= _('Stable Let\'s Encrypt certificates') ?></li>
|
2022-11-07 19:40:40 +01:00
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
</dl>
|