17 lines
322 B
PHP
17 lines
322 B
PHP
|
<?php
|
||
|
|
||
|
regCheckDomainPossession($_POST['suffix']);
|
||
|
|
||
|
$domain = formatAbsoluteDomain(formatEndWithDot($_POST['subdomain']) . $_POST['suffix']);
|
||
|
|
||
|
$record = checkIpFormat($_POST['ip']);
|
||
|
|
||
|
knotcZoneExec(CONF['reg']['registry'], [
|
||
|
$domain,
|
||
|
CONF['reg']['ttl'],
|
||
|
$record,
|
||
|
$_POST['ip']
|
||
|
]);
|
||
|
|
||
|
output(200, 'Glue ajouté/retiré.');
|