mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #369 from bcyrill/dyndns_rfc
Gray-out disabled RFC2136 entries
This commit is contained in:
commit
8fd76a0704
@ -44,17 +44,16 @@ if (!is_array($config['dnsupdates']['dnsupdate']))
|
||||
$a_rfc2136 = &$config['dnsupdates']['dnsupdate'];
|
||||
|
||||
if ($_GET['act'] == "del") {
|
||||
unset($a_rfc2136[$_GET['id']]);
|
||||
unset($a_rfc2136[$_GET['id']]);
|
||||
|
||||
write_config();
|
||||
write_config();
|
||||
|
||||
header("Location: services_rfc2136.php");
|
||||
exit;
|
||||
header("Location: services_rfc2136.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
$pgtitle = array(gettext("Services"), gettext("RFC 2136 clients"));
|
||||
include("head.inc");
|
||||
|
||||
?>
|
||||
|
||||
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
|
||||
@ -62,61 +61,80 @@ include("head.inc");
|
||||
<form action="services_rfc2136.php" method="post" name="iform" id="iform">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td>
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$tab_array = array();
|
||||
$tab_array[] = array(gettext("DynDns"), false, "services_dyndns.php");
|
||||
$tab_array[] = array(gettext("RFC 2136"), true, "services_rfc2136.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
</td></tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="mainarea">
|
||||
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="5%" class="listhdrr"></td>
|
||||
<td width="25%" class="listhdrr"><?=gettext("Hostname");?></td>
|
||||
<td width="60%" class="listhdr"><?=gettext("Description");?></td>
|
||||
<td width="10%" class="list"></td>
|
||||
</tr>
|
||||
<?php $i = 0; foreach ($a_rfc2136 as $rfc2136): ?>
|
||||
<tr>
|
||||
<td class="listlr">
|
||||
<?php $iflist = get_configured_interface_with_descr();
|
||||
foreach ($iflist as $if => $ifdesc):
|
||||
if ($rfc2136['interface'] == $if): ?>
|
||||
<?=$ifdesc; break;?>
|
||||
<?php endif; endforeach; ?>
|
||||
</td>
|
||||
<td class="listr">
|
||||
<?=htmlspecialchars($rfc2136['host']);?>
|
||||
</td>
|
||||
<td class="listbg">
|
||||
<?=htmlspecialchars($rfc2136['descr']);?>
|
||||
</td>
|
||||
<td valign="middle" nowrap class="list"> <a href="services_rfc2136_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a>
|
||||
<a href="services_rfc2136.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tr>
|
||||
<td class="list" colspan="3"> </td>
|
||||
<td class="list"> <a href="services_rfc2136_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="list"><p class="vexpl"><span class="red"><strong>
|
||||
<br>
|
||||
</strong></span>
|
||||
|
||||
</td>
|
||||
<td class="list"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<td>
|
||||
<div id="mainarea">
|
||||
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="5%" class="listhdrr"></td>
|
||||
<td width="25%" class="listhdrr"><?=gettext("Hostname");?></td>
|
||||
<td width="60%" class="listhdr"><?=gettext("Description");?></td>
|
||||
<td width="10%" class="list"></td>
|
||||
</tr>
|
||||
<?php $i = 0; foreach ($a_rfc2136 as $rfc2136): ?>
|
||||
<tr>
|
||||
<td class="listlr">
|
||||
<?php
|
||||
$iflist = get_configured_interface_with_descr();
|
||||
foreach ($iflist as $if => $ifdesc) {
|
||||
if ($rfc2136['interface'] == $if) {
|
||||
if (!isset($rfc2136['enable']))
|
||||
echo "<span class=\"gray\">{$ifdesc}</span>";
|
||||
else
|
||||
echo "{$ifdesc}";
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td class="listr">
|
||||
<?php
|
||||
if (!isset($rfc2136['enable']))
|
||||
echo "<span class=\"gray\">".htmlspecialchars($rfc2136['host'])."</span>";
|
||||
else
|
||||
echo htmlspecialchars($rfc2136['host']);
|
||||
?>
|
||||
</td>
|
||||
<td class="listbg">
|
||||
<?php
|
||||
if (!isset($rfc2136['enable']))
|
||||
echo "<span class=\"gray\">".htmlspecialchars($rfc2136['descr'])."</span>";
|
||||
else
|
||||
echo htmlspecialchars($rfc2136['descr']);
|
||||
?>
|
||||
</td>
|
||||
<td valign="middle" nowrap class="list">
|
||||
<a href="services_rfc2136_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a>
|
||||
<a href="services_rfc2136.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tr>
|
||||
<td class="list" colspan="3"> </td>
|
||||
<td class="list"> <a href="services_rfc2136_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="list">
|
||||
<p class="vexpl"><span class="red"><strong><br></strong></span></p>
|
||||
</td>
|
||||
<td class="list"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php include("fend.inc"); ?>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user