48 lines
1.4 KiB
PHP
48 lines
1.4 KiB
PHP
<?php require "../top.inc.php"; ?>
|
|
<p>
|
|
Ici vous pouvez ajouter des informations dans une zone déjà enregistrée sur le serveur ns1.atope.art
|
|
</p>
|
|
|
|
<form method="post">
|
|
|
|
<label for="domain">Domaine :</label>
|
|
<input type="text" name="domain" id="domain"/>
|
|
|
|
<select name="action">
|
|
<option value="add">Ajouter</option>
|
|
<option value="delete">Retirer</option>
|
|
</select>
|
|
<label for="ttl">TTL :</label>
|
|
<input type="number" name="ttl" id="ttl"/>
|
|
IN
|
|
<select name="type">
|
|
<option value="a">A</option>
|
|
<option value="aaaa">AAAA</option>
|
|
<option value="mx">MX</option>
|
|
<option value="txt">TXT</option>
|
|
<option value="txt">CNAME</option>
|
|
<option value="txt">SRV</option>
|
|
<option value="txt">NS</option>
|
|
</select>
|
|
|
|
<label for="value">Valeur :</label>
|
|
<input type="text" name="value" id="value"/>
|
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
if (isset($_POST['zone'])) {
|
|
|
|
exec("knotc zone-begin " . $_POST['zone']);
|
|
exec("knotc zone-set " . $_POST['zone'] . " " . $_POST['domain'] . ". 900 IN A " . $_POST['ip']);
|
|
exec("knotc zone-commit " . $_POST['zone']);
|
|
|
|
echo "Formulaire traité !!";
|
|
} else {
|
|
echo "Rien n'a été reçu lors du dernière chargement";
|
|
}
|
|
|
|
?>
|
|
|
|
<?php require "../bottom.inc.php"; ?>
|