11 lines
392 B
PHP
11 lines
392 B
PHP
<?php declare(strict_types=1);
|
|
|
|
regCheckDomainPossession($_POST['domain']);
|
|
|
|
rateLimit();
|
|
|
|
$zone_content = file_get_contents(CONF['reg']['suffixes_path'] . '/' . regParseDomain($_POST['domain'])['suffix'] . 'zone');
|
|
if ($zone_content === false)
|
|
output(500, 'Unable to read registry file.');
|
|
|
|
$data['zone-content'] = parseZoneFile($zone_content, ['A', 'AAAA', 'NS', 'DS'], $_POST['domain']);
|