servnest/pg-act/reg/ns.php

13 lines
258 B
PHP

<?php
regCheckDomainPossession($_POST['domain']);
$_POST['ns'] = formatAbsoluteDomain($_POST['ns']);
knotcZoneExec(CONF['reg']['registry'], [
$_POST['domain'],
CONF['reg']['ttl'],
'NS',
$_POST['ns']
]);
output(200, 'Enregistrement ajouté/retiré.');