servnest/pg-view/ht/add-onion.php
2023-07-17 21:15:18 +02:00

13 lines
475 B
PHP

<?php declare(strict_types=1); ?>
<form method="post">
<label for="dir"><?= _('Target directory') ?></label><br>
<select required="" name="dir" id="dir">
<option value="" disabled="" selected="">—</option>
<?php
foreach (dirsStatuses('onion') as $dir => $alreadyEnabled)
echo ' <option' . ($alreadyEnabled ? ' disabled=""' : '') . ' value="' . $dir . '">' . $dir . '</option>' . LF;
?>
</select>
<br>
<input type="submit" value="<?= _('Setup access') ?>">
</form>