servnest/pg-act/reg/glue.php
2023-07-31 01:13:06 +02:00

13 lines
350 B
PHP

<?php declare(strict_types=1);
regCheckDomainPossession($_POST['domain']);
rateLimit();
knotcZoneExec(regParseDomain($_POST['domain'])['suffix'], regParseRecord($_POST['domain'], [
'type' => 'ip',
'domain' => formatAbsoluteDomain(formatEndWithDot($_POST['subdomain']) . $_POST['domain']),
...$_POST,
]));
output(200, _('Modification done.'));