mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Changes Dynamic DNS Status Widget to display client description text for Custom and Custom (v6) entries. Implements #7843
This commit is contained in:
parent
9a65d4a232
commit
4c53dfbe72
@ -409,7 +409,8 @@ $section->addInput(new Form_Input(
|
||||
'Description',
|
||||
'text',
|
||||
$pconfig['descr']
|
||||
))->setHelp('A description may be entered here for administrative reference (not parsed).');
|
||||
))->setHelp('A description may be entered here for administrative reference (not parsed).%1$s' .
|
||||
'This field will be used in the Dynamic DNS Status Widget for Custom services.', '<br />');
|
||||
|
||||
if (isset($id) && $a_dyndns[$id]) {
|
||||
$section->addInput(new Form_Input(
|
||||
|
||||
@ -201,18 +201,18 @@ if (!function_exists('get_dyndns_service_text')) {
|
||||
|
||||
?>
|
||||
<tr ondblclick="document.location='<?=$dblclick_location;?>?id=<?=$locationid;?>'"<?=!isset($dyndns['enable'])?' class="disabled"':''?>>
|
||||
<td>
|
||||
<?=get_dyndns_interface_text($dyndns['interface']);?>
|
||||
</td>
|
||||
<td>
|
||||
<?=htmlspecialchars(get_dyndns_service_text($dyndns['type']));?>
|
||||
</td>
|
||||
<td>
|
||||
<?=insert_word_breaks_in_domain_name(htmlspecialchars(get_dyndns_hostname_text($dyndns)));?>
|
||||
</td>
|
||||
<td>
|
||||
<div id="dyndnsstatus<?= $rowid;?>"><?= gettext("Checking ...");?></div>
|
||||
</td>
|
||||
<td><?=get_dyndns_interface_text($dyndns['interface']);?></td>
|
||||
<?php
|
||||
if (((get_dyndns_service_text($dyndns['type']) == 'Custom') ||
|
||||
(get_dyndns_service_text($dyndns['type']) == 'Custom (v6)')) &&
|
||||
(get_dyndns_service_text($dyndns['descr']) != '')):
|
||||
?>
|
||||
<td><?=htmlspecialchars(get_dyndns_service_text($dyndns['descr']));?></td>
|
||||
<?php else:?>
|
||||
<td><?=htmlspecialchars(get_dyndns_service_text($dyndns['type']));?></td>
|
||||
<?php endif;?>
|
||||
<td><?=insert_word_breaks_in_domain_name(htmlspecialchars(get_dyndns_hostname_text($dyndns)));?></td>
|
||||
<td><div id="dyndnsstatus<?= $rowid;?>"><?= gettext("Checking ...");?></div></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php if ($rowid == -1):?>
|
||||
@ -250,7 +250,15 @@ if (!function_exists('get_dyndns_service_text')) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?=get_dyndns_interface_text($dyndns['interface'])?></td>
|
||||
<?php
|
||||
if (((get_dyndns_service_text($dyndns['type']) == 'Custom') ||
|
||||
(get_dyndns_service_text($dyndns['type']) == 'Custom (v6)')) &&
|
||||
(get_dyndns_service_text($dyndns['descr']) != '')):
|
||||
?>
|
||||
<td><?=htmlspecialchars(get_dyndns_service_text($dyndns['descr']));?></td>
|
||||
<?php else:?>
|
||||
<td><?=get_dyndns_service_text($dyndns['type'])?></td>
|
||||
<?php endif;?>
|
||||
<td><?=get_dyndns_hostname_text($dyndns)?></td>
|
||||
<td class="col-sm-2"><input id="show[]" name ="show[]" value="<?=get_dyndnsent_key($dyndns)?>" type="checkbox" <?=(!in_array(get_dyndnsent_key($dyndns), $skipdyndns) ? 'checked':'')?>></td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user