servnest/pg-view/ht/add-onion.php
2023-01-21 04:16:02 +01:00

12 lines
441 B
PHP

<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>