Revision e4a62f32
Added by Daniel Becker almost 12 years ago
usr/local/www/services_dyndns_edit.php | ||
---|---|---|
93 | 93 |
$reqdfieldsn = array(); |
94 | 94 |
$reqdfields = array("type"); |
95 | 95 |
$reqdfieldsn = array(gettext("Service type")); |
96 |
if ($pconfig['type'] != "custom") { |
|
96 |
if ($pconfig['type'] != "custom" && $pconfig['type'] != "custom-v6") {
|
|
97 | 97 |
$reqdfields[] = "host"; |
98 | 98 |
$reqdfieldsn[] = gettext("Hostname"); |
99 | 99 |
$reqdfields[] = "password"; |
... | ... | |
134 | 134 |
$dyndns['updateurl'] = $_POST['updateurl']; |
135 | 135 |
// Trim hard-to-type but sometimes returned characters |
136 | 136 |
$dyndns['resultmatch'] = trim($_POST['resultmatch'], "\t\n\r"); |
137 |
$dyndns['type'] == "custom" ? $dyndns['requestif'] = $_POST['requestif'] : $dyndns['requestif'] = $_POST['interface'];
|
|
137 |
($dyndns['type'] == "custom" || $dyndns['type'] == "custom-v6") ? $dyndns['requestif'] = $_POST['requestif'] : $dyndns['requestif'] = $_POST['interface'];
|
|
138 | 138 |
$dyndns['descr'] = $_POST['descr']; |
139 | 139 |
$dyndns['force'] = isset($_POST['force']); |
140 | 140 |
|
... | ... | |
176 | 176 |
function _onTypeChange(type){ |
177 | 177 |
switch(type) { |
178 | 178 |
case "custom": |
179 |
case "custom-v6": |
|
179 | 180 |
document.getElementById("_resulttr").style.display = ''; |
180 | 181 |
document.getElementById("_urltr").style.display = ''; |
181 | 182 |
document.getElementById("_requestiftr").style.display = ''; |
Also available in: Unified diff
properly handle custom-v6 dyndns entries in web interface