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