Fix domain edit for .eu and other domains.

This commit is contained in:
Eduard Stehlík
2023-12-04 18:40:53 +01:00
parent 7d0813a163
commit f47c5cca84
3 changed files with 18 additions and 9 deletions

View File

@@ -70,15 +70,13 @@ if (isset($_POST['edit_domain'])) {
$registrar = intval($_POST['registrar']);
$webhost = intval($_POST['webhost']);
$expire = sanitizeInput($_POST['expire']);
if (empty($expire)) {
$expire = "NULL";
} else {
$expire = "'" . $expire . "'";
}
$client_id = intval($_POST['client_id']);
// Update domain expiry date
$expire = getDomainExpirationDate($name);
if (empty($expire) || (new DateTime($expire)) < (new DateTime())) {
// Update domain expiry date
$expire = getDomainExpirationDate($name);
}
$client_id = intval($_POST['client_id']);
// Update NS, MX, A and WHOIS records/data
$records = getDomainRecords($name);