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 |
8aa09d6d
|
Chris Buechler
|
header("Location: services_rfc2136.php");
|
52 |
f1f60c92
|
Ermal Luçi
|
exit;
|
53 |
|
|
}
|
54 |
|
|
|
55 |
1c108cef
|
Rafael Lucas
|
$pgtitle = array(gettext("Services"), gettext("RFC 2136 clients"));
|
56 |
f1f60c92
|
Ermal Luçi
|
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 |
1c108cef
|
Rafael Lucas
|
$tab_array[] = array(gettext("DynDns"), false, "services_dyndns.php");
|
69 |
|
|
$tab_array[] = array(gettext("RFC 2136"), true, "services_rfc2136.php");
|
70 |
f1f60c92
|
Ermal Luçi
|
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 |
1c108cef
|
Rafael Lucas
|
<td width="25%" class="listhdrr"><?=gettext("Hostname");?></td>
|
80 |
|
|
<td width="60%" class="listhdr"><?=gettext("Description");?></td>
|
81 |
f1f60c92
|
Ermal Luçi
|
<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 |
528b1eae
|
Rafael Lucas
|
<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>
|
100 |
f1f60c92
|
Ermal Luçi
|
</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 |
8aa09d6d
|
Chris Buechler
|
<br>
|
109 |
f1f60c92
|
Ermal Luçi
|
</strong></span>
|
110 |
8aa09d6d
|
Chris Buechler
|
|
111 |
f1f60c92
|
Ermal Luçi
|
</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>
|