servnest/pg-act/reg/print.php

12 lines
392 B
PHP
Raw Permalink Normal View History

2023-07-17 19:15:18 +00:00
<?php declare(strict_types=1);
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');
if ($zone_content === false)
output(500, 'Unable to read registry file.');
$data['zone-content'] = parseZoneFile($zone_content, ['A', 'AAAA', 'NS', 'DS'], $_POST['domain']);