2023-07-17 19:15:18 +00:00
|
|
|
<?php declare(strict_types=1); ?>
|
2022-12-22 00:44:57 +00:00
|
|
|
<form method="post">
|
2023-01-21 00:27:52 +00:00
|
|
|
<label for="site"><?= _('Access to delete') ?></label><br>
|
2022-12-22 00:44:57 +00:00
|
|
|
<select required="" name="site" id="site">
|
2023-01-21 03:16:02 +00:00
|
|
|
<option value="" disabled="" selected="">—</option>
|
2022-12-22 00:44:57 +00:00
|
|
|
<?php
|
|
|
|
foreach (query('select', 'sites', ['username' => $_SESSION['id'] ?? '']) as $site) {
|
|
|
|
$url = match ($site['type']) {
|
|
|
|
'subpath' => 'https://' . CONF['ht']['subpath_domain'] . '/' . $site['address'] . '/',
|
|
|
|
'subdomain' => 'https://' . $site['address'] . '.' . CONF['ht']['subdomain_domain'] . '/',
|
|
|
|
'onion' => 'http://' . $site['address'] . '/',
|
|
|
|
'dns' => 'https://' . $site['address'] . '/',
|
|
|
|
};
|
2023-06-19 22:41:30 +00:00
|
|
|
echo ' <option value="' . $site['type'] . ':' . $site['address'] . '">' . ' ' . sprintf(_('%1$s to %2$s'), $url, '/' . $site['site_dir']) . '</option>' . LF;
|
2022-12-22 00:44:57 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
<br>
|
2023-01-21 00:27:52 +00:00
|
|
|
<input type="submit" value="<?= _('Delete access') ?>">
|
2022-12-22 00:44:57 +00:00
|
|
|
</form>
|