Update add-dns.php for newer db schema
This commit is contained in:
parent
bf4eedbe71
commit
5adb07c7c8
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ $_POST['domain'] = formatDomain($_POST['domain']);
|
||||||
if (dirsStatuses('dns')[$_POST['dir']] !== false)
|
if (dirsStatuses('dns')[$_POST['dir']] !== false)
|
||||||
output(403, 'Wrong value for <code>dir</code>.');
|
output(403, 'Wrong value for <code>dir</code>.');
|
||||||
|
|
||||||
if (query('select', 'sites', ['domain' => $_POST['domain']], 'domain') !== [])
|
if (query('select', 'sites', ['address' => $_POST['domain']], 'address') !== [])
|
||||||
output(403, _('This domain already exists on this service. Use another one.'));
|
output(403, _('This domain already exists on this service. Use another one.'));
|
||||||
|
|
||||||
$remoteAaaaRecords = dns_get_record($_POST['domain'], DNS_AAAA);
|
$remoteAaaaRecords = dns_get_record($_POST['domain'], DNS_AAAA);
|
||||||
|
|
Loading…
Reference in a new issue