| 1 |
f1f60c92
|
Ermal Luçi
|
<?php
|
| 2 |
|
|
/* $Id$ */
|
| 3 |
|
|
/*
|
| 4 |
|
|
Copyright (C) 2008 Ermal Lu?i
|
| 5 |
|
|
All rights reserved.
|
| 6 |
|
|
|
| 7 |
|
|
Redistribution and use in source and binary forms, with or without
|
| 8 |
|
|
modification, are permitted provided that the following conditions are met:
|
| 9 |
|
|
|
| 10 |
|
|
1. Redistributions of source code must retain the above copyright notice,
|
| 11 |
|
|
this list of conditions and the following disclaimer.
|
| 12 |
|
|
|
| 13 |
|
|
2. Redistributions in binary form must reproduce the above copyright
|
| 14 |
|
|
notice, this list of conditions and the following disclaimer in the
|
| 15 |
|
|
documentation and/or other materials provided with the distribution.
|
| 16 |
|
|
|
| 17 |
|
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
| 18 |
|
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
| 19 |
|
|
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
| 20 |
|
|
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
| 21 |
|
|
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 22 |
|
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 23 |
|
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
| 24 |
|
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 25 |
|
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 26 |
|
|
POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
|
|
*/
|
| 28 |
1d333258
|
Scott Ullrich
|
/*
|
| 29 |
|
|
pfSense_MODULE: dnsupdate
|
| 30 |
|
|
*/
|
| 31 |
f1f60c92
|
Ermal Luçi
|
|
| 32 |
6b07c15a
|
Matthew Grooms
|
##|+PRIV
|
| 33 |
|
|
##|*IDENT=page-services-rfc2136clients
|
| 34 |
|
|
##|*NAME=Services: RFC 2136 clients page
|
| 35 |
|
|
##|*DESCR=Allow access to the 'Services: RFC 2136 clients' page.
|
| 36 |
|
|
##|*MATCH=services_rfc2136.php*
|
| 37 |
|
|
##|-PRIV
|
| 38 |
|
|
|
| 39 |
f1f60c92
|
Ermal Luçi
|
require("guiconfig.inc");
|
| 40 |
|
|
|
| 41 |
|
|
if (!is_array($config['dnsupdates']['dnsupdate']))
|
| 42 |
|
|
$config['dnsupdates']['dnsupdate'] = array();
|
| 43 |
|
|
|
| 44 |
|
|
$a_rfc2136 = &$config['dnsupdates']['dnsupdate'];
|
| 45 |
|
|
|
| 46 |
|
|
if ($_GET['act'] == "del") {
|
| 47 |
|
|
unset($a_rfc2136[$_GET['id']]);
|
| 48 |
|
|
|
| 49 |
|
|
write_config();
|
| 50 |
|
|
|
| 51 |
|
|
header("Location: services_dyndns.php");
|
| 52 |
|
|
exit;
|
| 53 |
|
|
}
|
| 54 |
|
|
|
| 55 |
|
|
$pgtitle = array("Services", "RFC 2136 clients");
|
| 56 |
|
|
include("head.inc");
|
| 57 |
|
|
|
| 58 |
|
|
?>
|
| 59 |
|
|
|
| 60 |
|
|
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
|
| 61 |
|
|
<?php include("fbegin.inc"); ?>
|
| 62 |
|
|
<form action="services_rfc2136.php" method="post" name="iform" id="iform">
|
| 63 |
|
|
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
| 64 |
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 65 |
|
|
<tr><td>
|
| 66 |
|
|
<?php
|
| 67 |
|
|
$tab_array = array();
|
| 68 |
|
|
$tab_array[] = array("DynDns", false, "services_dyndns.php");
|
| 69 |
|
|
$tab_array[] = array("RFC 2136", true, "services_rfc2136.php");
|
| 70 |
|
|
display_top_tabs($tab_array);
|
| 71 |
|
|
?>
|
| 72 |
|
|
</td></tr>
|
| 73 |
|
|
<tr>
|
| 74 |
|
|
<td>
|
| 75 |
|
|
<div id="mainarea">
|
| 76 |
|
|
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
|
| 77 |
|
|
<tr>
|
| 78 |
|
|
<td width="5%" class="listhdrr"></td>
|
| 79 |
|
|
<td width="25%" class="listhdrr">Hostname</td>
|
| 80 |
|
|
<td width="60%" class="listhdr">Description</td>
|
| 81 |
|
|
<td width="10%" class="list"></td>
|
| 82 |
|
|
</tr>
|
| 83 |
|
|
<?php $i = 0; foreach ($a_rfc2136 as $rfc2136): ?>
|
| 84 |
|
|
<tr>
|
| 85 |
|
|
<td class="listlr">
|
| 86 |
|
|
<?php $iflist = get_configured_interface_with_descr();
|
| 87 |
|
|
foreach ($iflist as $if => $ifdesc):
|
| 88 |
|
|
if ($rfc2136['interface'] == $if): ?>
|
| 89 |
|
|
<?=$ifdesc; break;?>
|
| 90 |
|
|
<?php endif; endforeach; ?>
|
| 91 |
|
|
</td>
|
| 92 |
|
|
<td class="listr">
|
| 93 |
|
|
<?=htmlspecialchars($rfc2136['host']);?>
|
| 94 |
|
|
</td>
|
| 95 |
|
|
<td class="listbg">
|
| 96 |
|
|
<?=htmlspecialchars($rfc2136['descr']);?>
|
| 97 |
|
|
</td>
|
| 98 |
|
|
<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>
|
| 99 |
|
|
<a href="services_rfc2136.php?act=del&id=<?=$i;?>" onclick="return confirm('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>
|
| 100 |
|
|
</tr>
|
| 101 |
|
|
<?php $i++; endforeach; ?>
|
| 102 |
|
|
<tr>
|
| 103 |
|
|
<td class="list" colspan="3"> </td>
|
| 104 |
|
|
<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>
|
| 105 |
|
|
</tr>
|
| 106 |
|
|
<tr>
|
| 107 |
|
|
<td colspan="3" class="list"><p class="vexpl"><span class="red"><strong>
|
| 108 |
|
|
Note:<br>
|
| 109 |
|
|
</strong></span>
|
| 110 |
|
|
Add something meaningful here.
|
| 111 |
|
|
</td>
|
| 112 |
|
|
<td class="list"> </td>
|
| 113 |
|
|
</tr>
|
| 114 |
|
|
</table>
|
| 115 |
|
|
</div>
|
| 116 |
|
|
</td>
|
| 117 |
|
|
</tr>
|
| 118 |
|
|
</table>
|
| 119 |
|
|
</form>
|
| 120 |
|
|
<?php include("fend.inc"); ?>
|
| 121 |
|
|
</body>
|
| 122 |
|
|
</html>
|