13 lines
258 B
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é.');
|