55 lines
1.5 KiB
PHP
55 lines
1.5 KiB
PHP
|
<?php declare(strict_types=1); ?>
|
||
|
<form method="post">
|
||
|
<label for="domain"><?= _('Domain to be changed') ?></label>
|
||
|
<br>
|
||
|
<select required="" name="domain" id="domain">
|
||
|
<option value="" disabled="" selected="">-</option>
|
||
|
<?php
|
||
|
foreach (regListUserDomains() as $domain)
|
||
|
echo ' <option value="' . $domain . '">' . $domain . '</option>' . LF;
|
||
|
?>
|
||
|
</select>
|
||
|
<br>
|
||
|
<input type="submit" value="<?= _('Display') ?>">
|
||
|
</form>
|
||
|
|
||
|
<?php
|
||
|
|
||
|
if (isset($data['records'])) { // Display zone
|
||
|
|
||
|
?>
|
||
|
<form method="post">
|
||
|
<input type="hidden" name="domain" value="<?= $_POST['domain'] ?>">
|
||
|
|
||
|
<label for="records"><?= sprintf(_('Delegation records for %s'), '<code><strong>' . $_POST['domain'] . '</strong></code>') ?></label>
|
||
|
<br>
|
||
|
<textarea id="records" name="records" wrap="off" rows="<?= substr_count($data['records'], LF) + 1 ?>"><?= htmlspecialchars($data['records']) ?></textarea>
|
||
|
<br>
|
||
|
<input type="submit" value="<?= _('Replace') ?>">
|
||
|
</form>
|
||
|
|
||
|
<?php
|
||
|
|
||
|
}
|
||
|
|
||
|
displayFinalMessage($data);
|
||
|
|
||
|
?>
|
||
|
|
||
|
<h2><?= _('Input values') ?></h2>
|
||
|
|
||
|
<p><?= _('Precising the class (<code>IN</code>) is optional.') ?></p>
|
||
|
|
||
|
<p><?= sprintf(_('Submitted field content is limited to %s characters.'), REG_TEXTAREA_MAX_CHARACTERS) ?></p>
|
||
|
|
||
|
<p><?= sprintf(_('TTL values are ignored and always set to %s seconds.'), '<code><time datetime="PT' . CONF['reg']['ttl'] . 'S">' . CONF['reg']['ttl'] . '</time></code>') ?></p>
|
||
|
|
||
|
<p><?= _('The only types that can be defined here are:') ?></p>
|
||
|
|
||
|
<ul>
|
||
|
<?php
|
||
|
foreach (REG_ALLOWED_TYPES as $allowed_type)
|
||
|
echo ' <li><code>' . $allowed_type . '</code></li>';
|
||
|
?>
|
||
|
</ul>
|