16 lines
271 B
PHP
16 lines
271 B
PHP
<?php declare(strict_types=1);
|
|
|
|
$values = nsParseCommonRequirements();
|
|
|
|
$_POST['ns'] = formatAbsoluteDomain($_POST['ns']);
|
|
|
|
rateLimit();
|
|
|
|
knotcZoneExec($_POST['zone'], [
|
|
$values['domain'],
|
|
$values['ttl'],
|
|
'NS',
|
|
$_POST['ns']
|
|
]);
|
|
|
|
output(200, _('Modification done.'));
|