Update services_dyndns_edit.php

(cherry picked from commit 8b3e2e26f3)
This commit is contained in:
Matthew Fine 2019-05-31 09:55:26 -05:00 committed by jim-p
parent 98375c6341
commit 8c6b6ea296

View File

@ -73,7 +73,7 @@ if ($_POST['save'] || $_POST['force']) {
unset($input_errors);
$pconfig = $_POST;
if (($pconfig['type'] == "freedns" || $pconfig['type'] == "freedns-v6" || $pconfig['type'] == "namecheap" || $pconfig['type'] == "digitalocean" || $pconfig['type'] == "linode" || $pconfig['type'] == "linode-v6") && $_POST['username'] == "") {
if (($pconfig['type'] == "freedns" || $pconfig['type'] == "freedns-v6" || $pconfig['type'] == "namecheap" || $pconfig['type'] == "digitalocean" || $pconfig['type'] == "digitalocean-v6") || $pconfig['type'] == "linode" || $pconfig['type'] == "linode-v6") && $_POST['username'] == "") {
$_POST['username'] = "none";
}
@ -114,8 +114,7 @@ if ($_POST['save'] || $_POST['force']) {
$host_to_check = $_POST['domainname'];
} elseif ((($pconfig['type'] == "godaddy") || ($pconfig['type'] == "godaddy-v6")) && ($_POST['host'] == '@.' || $_POST['host'] == '@')) {
$host_to_check = $_POST['domainname'];
} elseif (($pconfig['type'] == "digitalocean") && ($_POST['host'] == '@.' || $_POST['host'] == '@')) {
$host_to_check = $_POST['domainname'];
} elseif ((($pconfig['type'] == "digitalocean") || ($pconfig['type'] == "digitalocean-v6")) && ($_POST['host'] == '@.' || $_POST['host'] == '@')) {
} elseif (($pconfig['type'] == "linode") || ($pconfig['type'] == "linode-v6")) {
$host_to_check = $_POST['host'] == '@' ? $_POST['domainname'] : ( $_POST['host'] . '.' . $_POST['domainname'] );
$allow_wildcard = true;
@ -550,6 +549,7 @@ events.push(function() {
hideInput('ttl', true);
break;
case "digitalocean":
case "digitalocean-v6":
hideGroupInput('domainname', false);
hideInput('resultmatch', true);
hideInput('updateurl', true);