Revision dc77f005
Added by Chris Buechler over 9 years ago
usr/local/www/services_unbound.php | ||
---|---|---|
76 | 76 |
if (isset($config['unbound']['regdhcpstatic'])) { |
77 | 77 |
$pconfig['regdhcpstatic'] = true; |
78 | 78 |
} |
79 |
if (isset($config['unbound']['txtsupport'])) { |
|
80 |
$pconfig['txtsupport'] = true; |
|
81 |
} |
|
82 | 79 |
|
83 | 80 |
$pconfig['port'] = $config['unbound']['port']; |
84 | 81 |
$pconfig['custom_options'] = base64_decode($config['unbound']['custom_options']); |
... | ... | |
159 | 156 |
} else { |
160 | 157 |
unset($a_unboundcfg['regdhcpstatic']); |
161 | 158 |
} |
162 |
if (isset($_POST['txtsupport'])) { |
|
163 |
$a_unboundcfg['txtsupport'] = true; |
|
164 |
} else { |
|
165 |
unset($a_unboundcfg['txtsupport']); |
|
166 |
} |
|
167 | 159 |
if (is_array($_POST['active_interface']) && !empty($_POST['active_interface'])) { |
168 | 160 |
$a_unboundcfg['active_interface'] = implode(",", $_POST['active_interface']); |
169 | 161 |
} |
... | ... | |
213 | 205 |
function enable_change(enable_over) { |
214 | 206 |
var endis; |
215 | 207 |
endis = !(jQuery('#enable').is(":checked") || enable_over); |
216 |
jQuery("#active_interface,#outgoing_interface,#dnssec,#forwarding,#regdhcp,#regdhcpstatic,#dhcpfirst,#port,#txtsupport,#custom_options").prop('disabled', endis);
|
|
208 |
jQuery("#active_interface,#outgoing_interface,#dnssec,#forwarding,#regdhcp,#regdhcpstatic,#dhcpfirst,#port,#custom_options").prop('disabled', endis); |
|
217 | 209 |
} |
218 | 210 |
function show_advanced_dns() { |
219 | 211 |
jQuery("#showadv").show(); |
... | ... | |
358 | 350 |
"System: General setup%s to the proper value."),'<a href="system.php">','</a>');?></p> |
359 | 351 |
</td> |
360 | 352 |
</tr> |
361 |
<tr> |
|
362 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("TXT Comment Support");?></td> |
|
363 |
<td width="78%" class="vtable"><p> |
|
364 |
<input name="txtsupport" type="checkbox" id="txtsupport" value="yes" <?php echo (isset($pconfig['txtsupport']) ? "checked=\"checked\"" : "");?> /> |
|
365 |
<strong><?=gettext("If this option is set, then any descriptions associated with Host entries and DHCP Static mappings will create a corresponding TXT record.");?><br /> |
|
366 |
</strong></p> |
|
367 |
</td> |
|
368 |
</tr> |
|
369 | 353 |
<tr> |
370 | 354 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Advanced");?></td> |
371 | 355 |
<td width="78%" class="vtable"> |
Also available in: Unified diff
Remove txtsupport from Unbound. Of limited use, and the back end code was never ported over from the package (and is messy to do so). Ticket #5545