2022-12-20 20:17:03 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
regCheckDomainPossession($_POST['domain']);
|
|
|
|
|
2023-04-28 13:39:05 +00:00
|
|
|
rateLimit();
|
|
|
|
|
2023-01-23 00:14:59 +00:00
|
|
|
$zone_content = file_get_contents(CONF['reg']['suffixes_path'] . '/' . regParseDomain($_POST['domain'])['suffix'] . 'zone');
|
2022-12-20 20:17:03 +00:00
|
|
|
if ($zone_content === false)
|
|
|
|
output(500, 'Unable to read registry file.');
|
|
|
|
|
|
|
|
$data['zone-content'] = parseZoneFile($zone_content, ['A', 'AAAA', 'NS', 'DS'], $_POST['domain']);
|