Project

General

Profile

Download (37.6 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/* $Id$ */
3
/*
4
	services_dhcpv6.php
5
	parts of m0n0wall (http://m0n0.ch/wall)
6

    
7
	Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
8
	All rights reserved.
9

    
10
	part of pfSense (http://www.pfsense.org)
11
	Copyright (C) 2010 Seth Mos <seth.mos@dds.nl>.
12
	All rights reserved.
13

    
14
	Redistribution and use in source and binary forms, with or without
15
	modification, are permitted provided that the following conditions are met:
16

    
17
	1. Redistributions of source code must retain the above copyright notice,
18
	   this list of conditions and the following disclaimer.
19

    
20
	2. Redistributions in binary form must reproduce the above copyright
21
	   notice, this list of conditions and the following disclaimer in the
22
	   documentation and/or other materials provided with the distribution.
23

    
24
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
25
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
26
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
28
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
	POSSIBILITY OF SUCH DAMAGE.
34
*/
35
/*
36
	pfSense_BUILDER_BINARIES:	/bin/rm
37
	pfSense_MODULE:	interfaces
38
*/
39

    
40
##|+PRIV
41
##|*IDENT=page-services-dhcpv6server
42
##|*NAME=Services: DHCPv6 server page
43
##|*DESCR=Allow access to the 'Services: DHCPv6 server' page.
44
##|*MATCH=services_dhcpv6.php*
45
##|-PRIV
46

    
47
require("guiconfig.inc");
48

    
49
if(!$g['services_dhcp_server_enable']) {
50
	Header("Location: /");
51
	exit;
52
}
53

    
54
/*  Fix failover DHCP problem
55
 *  http://article.gmane.org/gmane.comp.security.firewalls.pfsense.support/18749
56
 */
57
ini_set("memory_limit","64M");
58

    
59
$if = $_GET['if'];
60
if ($_POST['if'])
61
	$if = $_POST['if'];
62

    
63
/* if OLSRD is enabled, allow WAN to house DHCP. */
64
if($config['installedpackages']['olsrd']) {
65
	foreach($config['installedpackages']['olsrd']['config'] as $olsrd) {
66
			if($olsrd['enable']) {
67
				$is_olsr_enabled = true;
68
				break;
69
			}
70
	}
71
}
72

    
73
if (!$_GET['if'])
74
	$savemsg = "<p><b>" . gettext("The DHCPv6 Server can only be enabled on interfaces configured with static IP addresses") . ".</b></p>" .
75
		   "<p><b>" . gettext("Only interfaces configured with a static IP will be shown") . ".</b></p>";
76

    
77
$iflist = get_configured_interface_with_descr();
78
$iflist = array_merge($iflist, get_configured_pppoe_server_interfaces());
79

    
80
/* set the starting interface */
81
if (!$if || !isset($iflist[$if])) {
82
	foreach ($iflist as $ifent => $ifname) {
83
		$oc = $config['interfaces'][$ifent];
84
		if ((is_array($config['dhcpdv6'][$ifent]) && !isset($config['dhcpdv6'][$ifent]['enable']) && !(is_ipaddrv6($oc['ipaddrv6']) && (!is_linklocal($oc['ipaddrv6'])))) ||
85
			(!is_array($config['dhcpdv6'][$ifent]) && !(is_ipaddrv6($oc['ipaddrv6']) && (!is_linklocal($oc['ipaddrv6'])))))
86
			continue;
87
		$if = $ifent;
88
		break;
89
	}
90
}
91

    
92
if (is_array($config['dhcpdv6'][$if])){
93
	/* DHCPv6 */
94
	if (is_array($config['dhcpdv6'][$if]['range'])) {
95
		$pconfig['range_from'] = $config['dhcpdv6'][$if]['range']['from'];
96
		$pconfig['range_to'] = $config['dhcpdv6'][$if]['range']['to'];
97
	}
98
	if (is_array($config['dhcpdv6'][$if]['prefixrange'])) {
99
		$pconfig['prefixrange_from'] = $config['dhcpdv6'][$if]['prefixrange']['from'];
100
		$pconfig['prefixrange_to'] = $config['dhcpdv6'][$if]['prefixrange']['to'];
101
		$pconfig['prefixrange_length'] = $config['dhcpdv6'][$if]['prefixrange']['prefixlength'];
102
	}
103
	$pconfig['deftime'] = $config['dhcpdv6'][$if]['defaultleasetime'];
104
	$pconfig['maxtime'] = $config['dhcpdv6'][$if]['maxleasetime'];
105
	$pconfig['domain'] = $config['dhcpdv6'][$if]['domain'];
106
	$pconfig['domainsearchlist'] = $config['dhcpdv6'][$if]['domainsearchlist'];
107
	list($pconfig['wins1'],$pconfig['wins2']) = $config['dhcpdv6'][$if]['winsserver'];
108
	list($pconfig['dns1'],$pconfig['dns2']) = $config['dhcpdv6'][$if]['dnsserver'];
109
	$pconfig['enable'] = isset($config['dhcpdv6'][$if]['enable']);
110
	$pconfig['denyunknown'] = isset($config['dhcpdv6'][$if]['denyunknown']);
111
	$pconfig['ddnsdomain'] = $config['dhcpdv6'][$if]['ddnsdomain'];
112
	$pconfig['ddnsupdate'] = isset($config['dhcpdv6'][$if]['ddnsupdate']);
113
	list($pconfig['ntp1'],$pconfig['ntp2']) = $config['dhcpdv6'][$if]['ntpserver'];
114
	$pconfig['tftp'] = $config['dhcpdv6'][$if]['tftp'];
115
	$pconfig['ldap'] = $config['dhcpdv6'][$if]['ldap'];
116
	$pconfig['netboot'] = isset($config['dhcpdv6'][$if]['netboot']);
117
	$pconfig['nextserver'] = $config['dhcpdv6'][$if]['nextserver'];
118
	$pconfig['filename'] = $config['dhcpdv6'][$if]['filename'];
119
	$pconfig['rootpath'] = $config['dhcpdv6'][$if]['rootpath'];
120
	$pconfig['netmask'] = $config['dhcpdv6'][$if]['netmask'];
121
	$pconfig['numberoptions'] = $config['dhcpdv6'][$if]['numberoptions'];
122
	$pconfig['dhcpv6leaseinlocaltime'] = $config['dhcpdv6'][$if]['dhcpv6leaseinlocaltime'];
123
	if (!is_array($config['dhcpdv6'][$if]['staticmap']))
124
		$config['dhcpdv6'][$if]['staticmap'] = array();
125
	$a_maps = &$config['dhcpdv6'][$if]['staticmap'];
126
}
127

    
128
$ifcfgip = get_interface_ipv6($if);
129
$ifcfgsn = get_interface_subnetv6($if);
130

    
131
/*   set the enabled flag which will tell us if DHCP relay is enabled
132
 *   on any interface. We will use this to disable DHCP server since
133
 *   the two are not compatible with each other.
134
 */
135

    
136
$dhcrelay_enabled = false;
137
$dhcrelaycfg = $config['dhcrelay6'];
138

    
139
if(is_array($dhcrelaycfg)) {
140
	foreach ($dhcrelaycfg as $dhcrelayif => $dhcrelayifconf) {
141
		if (isset($dhcrelayifconf['enable']) && isset($iflist[$dhcrelayif]) &&
142
			(!link_interface_to_bridge($dhcrelayif)))
143
			$dhcrelay_enabled = true;
144
	}
145
}
146

    
147
if ($_POST) {
148

    
149
	unset($input_errors);
150

    
151
	$pconfig = $_POST;
152

    
153
	$numberoptions = array();
154
	for($x=0; $x<99; $x++) {
155
		if(isset($_POST["number{$x}"]) && ctype_digit($_POST["number{$x}"])) {
156
			$numbervalue = array();
157
			$numbervalue['number'] = htmlspecialchars($_POST["number{$x}"]);
158
			$numbervalue['value'] = htmlspecialchars($_POST["value{$x}"]);
159
			$numberoptions['item'][] = $numbervalue;
160
		}
161
	}
162
	// Reload the new pconfig variable that the forum uses.
163
	$pconfig['numberoptions'] = $numberoptions;
164

    
165
	/* input validation */
166
	if ($_POST['enable']) {
167
		$reqdfields = explode(" ", "range_from range_to");
168
		$reqdfieldsn = array(gettext("Range begin"),gettext("Range end"));
169

    
170
		do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
171

    
172
		if (($_POST['prefixrange_from'] && !is_ipaddrv6($_POST['prefixrange_from'])))
173
			$input_errors[] = gettext("A valid range must be specified.");
174
		if (($_POST['prefixrange_to'] && !is_ipaddrv6($_POST['prefixrange_to'])))
175
			$input_errors[] = gettext("A valid prefix range must be specified.");
176
		if (($_POST['range_from'] && !is_ipaddrv6($_POST['range_from'])))
177
			$input_errors[] = gettext("A valid range must be specified.");
178
		if (($_POST['range_to'] && !is_ipaddrv6($_POST['range_to'])))
179
			$input_errors[] = gettext("A valid range must be specified.");
180
		if (($_POST['gateway'] && !is_ipaddrv6($_POST['gateway'])))
181
			$input_errors[] = gettext("A valid IPv6 address must be specified for the gateway.");
182
		if (($_POST['dns1'] && !is_ipaddrv6($_POST['dns1'])) || ($_POST['dns2'] && !is_ipaddrv6($_POST['dns2'])))
183
			$input_errors[] = gettext("A valid IPv6 address must be specified for the primary/secondary DNS servers.");
184

    
185
		if ($_POST['deftime'] && (!is_numeric($_POST['deftime']) || ($_POST['deftime'] < 60)))
186
			$input_errors[] = gettext("The default lease time must be at least 60 seconds.");
187
		if ($_POST['maxtime'] && (!is_numeric($_POST['maxtime']) || ($_POST['maxtime'] < 60) || ($_POST['maxtime'] <= $_POST['deftime'])))
188
			$input_errors[] = gettext("The maximum lease time must be at least 60 seconds and higher than the default lease time.");
189
		if (($_POST['ddnsdomain'] && !is_domain($_POST['ddnsdomain'])))
190
			$input_errors[] = gettext("A valid domain name must be specified for the dynamic DNS registration.");
191
		if ($_POST['domainsearchlist']) {
192
			$domain_array=preg_split("/[ ;]+/",$_POST['domainsearchlist']);
193
			foreach ($domain_array as $curdomain) {
194
				if (!is_domain($curdomain)) {
195
					$input_errors[] = gettext("A valid domain search list must be specified.");
196
					break;
197
				}
198
			}
199
		}
200

    
201
		if (($_POST['ntp1'] && !is_ipaddrv6($_POST['ntp1'])) || ($_POST['ntp2'] && !is_ipaddrv6($_POST['ntp2'])))
202
			$input_errors[] = gettext("A valid IPv6 address must be specified for the primary/secondary NTP servers.");
203
		if (($_POST['domain'] && !is_domain($_POST['domain'])))
204
			$input_errors[] = gettext("A valid domain name must be specified for the DNS domain.");
205
		if ($_POST['tftp'] && !is_ipaddr($_POST['tftp']) && !is_domain($_POST['tftp']) && !is_URL($_POST['tftp']))
206
			$input_errors[] = gettext("A valid IPv6 address or hostname must be specified for the TFTP server.");
207
		if (($_POST['nextserver'] && !is_ipaddrv6($_POST['nextserver'])))
208
			$input_errors[] = gettext("A valid IPv6 address must be specified for the network boot server.");
209

    
210
		// Disallow a range that includes the virtualip
211
		if (is_array($config['virtualip']['vip'])) {
212
			foreach($config['virtualip']['vip'] as $vip) {
213
				if($vip['interface'] == $if)
214
					if($vip['subnetv6'] && is_inrange_v6($vip['subnetv6'], $_POST['range_from'], $_POST['range_to']))
215
						$input_errors[] = sprintf(gettext("The subnet range cannot overlap with virtual IPv6 address %s."),$vip['subnetv6']);
216
			}
217
		}
218

    
219
		$noip = false;
220
		if(is_array($a_maps))
221
			foreach ($a_maps as $map)
222
				if (empty($map['ipaddrv6']))
223
					$noip = true;
224
		if (!$input_errors) {
225
			/* make sure the range lies within the current subnet */
226
			$subnet_start = gen_subnetv6($ifcfgip, $ifcfgsn);
227
			$subnet_end = gen_subnetv6_max($ifcfgip, $ifcfgsn);
228

    
229
			if (is_ipaddrv6($ifcfgip)) {
230
				if ((! is_inrange_v6($_POST['range_from'], $subnet_start, $subnet_end)) ||
231
			   	 (! is_inrange_v6($_POST['range_to'], $subnet_start, $subnet_end))) {
232
					$input_errors[] = gettext("The specified range lies outside of the current subnet.");
233
				}
234
			}
235
			/* "from" cannot be higher than "to" */
236
			if (inet_pton($_POST['range_from']) > inet_pton($_POST['range_to']))
237
				$input_errors[] = gettext("The range is invalid (first element higher than second element).");
238

    
239
			/* make sure that the DHCP Relay isn't enabled on this interface */
240
			if (isset($config['dhcrelay'][$if]['enable']))
241
				$input_errors[] = sprintf(gettext("You must disable the DHCP relay on the %s interface before enabling the DHCP server."),$iflist[$if]);
242

    
243

    
244
			/* Verify static mappings do not overlap:
245
			   - available DHCP range
246
			   - prefix delegation range (FIXME: still need to be completed) */
247
			$dynsubnet_start = inet_pton($_POST['range_from']);
248
			$dynsubnet_end = inet_pton($_POST['range_to']);
249

    
250
			if(is_array($a_maps)) {
251
				foreach ($a_maps as $map) {
252
					if (empty($map['ipaddrv6']))
253
						continue;
254
					if ((inet_pton($map['ipaddrv6']) > $dynsubnet_start) &&
255
						(inet_pton($map['ipaddrv6']) < $dynsubnet_end)) {
256
						$input_errors[] = sprintf(gettext("The DHCP range cannot overlap any static DHCP mappings."));
257
						break;
258
					}
259
				}
260
			}
261
		}
262
	}
263

    
264
	if (!$input_errors) {
265
		if (!is_array($config['dhcpdv6'][$if]))
266
			$config['dhcpdv6'][$if] = array();
267
		if (!is_array($config['dhcpdv6'][$if]['range']))
268
			$config['dhcpdv6'][$if]['range'] = array();
269
		if (!is_array($config['dhcpdv6'][$if]['prefixrange']))
270
			$config['dhcpdv6'][$if]['prefixrange'] = array();
271

    
272
		$config['dhcpdv6'][$if]['range']['from'] = $_POST['range_from'];
273
		$config['dhcpdv6'][$if]['range']['to'] = $_POST['range_to'];
274
		$config['dhcpdv6'][$if]['prefixrange']['from'] = $_POST['prefixrange_from'];
275
		$config['dhcpdv6'][$if]['prefixrange']['to'] = $_POST['prefixrange_to'];
276
		$config['dhcpdv6'][$if]['prefixrange']['prefixlength'] = $_POST['prefixrange_length'];
277
		$config['dhcpdv6'][$if]['defaultleasetime'] = $_POST['deftime'];
278
		$config['dhcpdv6'][$if]['maxleasetime'] = $_POST['maxtime'];
279
		$config['dhcpdv6'][$if]['netmask'] = $_POST['netmask'];
280

    
281
		unset($config['dhcpdv6'][$if]['winsserver']);
282

    
283
		unset($config['dhcpdv6'][$if]['dnsserver']);
284
		if ($_POST['dns1'])
285
			$config['dhcpdv6'][$if]['dnsserver'][] = $_POST['dns1'];
286
		if ($_POST['dns2'])
287
			$config['dhcpdv6'][$if]['dnsserver'][] = $_POST['dns2'];
288

    
289
		$config['dhcpdv6'][$if]['domain'] = $_POST['domain'];
290
		$config['dhcpdv6'][$if]['domainsearchlist'] = $_POST['domainsearchlist'];
291
		$config['dhcpdv6'][$if]['denyunknown'] = ($_POST['denyunknown']) ? true : false;
292
		$config['dhcpdv6'][$if]['enable'] = ($_POST['enable']) ? true : false;
293
		$config['dhcpdv6'][$if]['ddnsdomain'] = $_POST['ddnsdomain'];
294
		$config['dhcpdv6'][$if]['ddnsupdate'] = ($_POST['ddnsupdate']) ? true : false;
295

    
296
		unset($config['dhcpdv6'][$if]['ntpserver']);
297
		if ($_POST['ntp1'])
298
			$config['dhcpdv6'][$if]['ntpserver'][] = $_POST['ntp1'];
299
		if ($_POST['ntp2'])
300
			$config['dhcpdv6'][$if]['ntpserver'][] = $_POST['ntp2'];
301

    
302
		$config['dhcpdv6'][$if]['tftp'] = $_POST['tftp'];
303
		$config['dhcpdv6'][$if]['ldap'] = $_POST['ldap'];
304
		$config['dhcpdv6'][$if]['netboot'] = ($_POST['netboot']) ? true : false;
305
		$config['dhcpdv6'][$if]['nextserver'] = $_POST['nextserver'];
306
		$config['dhcpdv6'][$if]['filename'] = $_POST['filename'];
307
		$config['dhcpdv6'][$if]['rootpath'] = $_POST['rootpath'];
308
		$config['dhcpdv6'][$if]['dhcpv6leaseinlocaltime'] = $_POST['dhcpv6leaseinlocaltime'];
309

    
310
		// Handle the custom options rowhelper
311
		if(isset($config['dhcpdv6'][$if]['numberoptions']['item']))
312
			unset($config['dhcpdv6'][$if]['numberoptions']['item']);
313

    
314
		$config['dhcpdv6'][$if]['numberoptions'] = $numberoptions;
315

    
316
		write_config();
317

    
318
		$retval = 0;
319
		$retvaldhcp = 0;
320
		$retvaldns = 0;
321
		/* Stop DHCPv6 so we can cleanup leases */
322
		killbypid("{$g['dhcpd_chroot_path']}{$g['varrun_path']}/dhcpdv6.pid");
323
		// dhcp_clean_leases();
324
		/* dnsmasq_configure calls dhcpd_configure */
325
		/* no need to restart dhcpd twice */
326
		if (isset($config['dnsmasq']['enable']) && isset($config['dnsmasq']['regdhcpstatic']))	{
327
			$retvaldns = services_dnsmasq_configure();
328
			if ($retvaldns == 0) {
329
				clear_subsystem_dirty('hosts');
330
				clear_subsystem_dirty('staticmaps');
331
			}
332
		} else {
333
			$retvaldhcp = services_dhcpd_configure();
334
			if ($retvaldhcp == 0)
335
				clear_subsystem_dirty('staticmaps');
336
		}
337
		if($retvaldhcp == 1 || $retvaldns == 1)
338
			$retval = 1;
339
		$savemsg = get_std_save_message($retval);
340
	}
341
}
342

    
343
if ($_GET['act'] == "del") {
344
	if ($a_maps[$_GET['id']]) {
345
		unset($a_maps[$_GET['id']]);
346
		write_config();
347
		if(isset($config['dhcpdv6'][$if]['enable'])) {
348
			mark_subsystem_dirty('staticmapsv6');
349
			if (isset($config['dnsmasq']['enable']) && isset($config['dnsmasq']['regdhcpstaticv6']))
350
				mark_subsystem_dirty('hosts');
351
		}
352
		header("Location: services_dhcpv6.php?if={$if}");
353
		exit;
354
	}
355
}
356

    
357
$pgtitle = array(gettext("Services"),gettext("DHCPv6 server"));
358
$shortcut_section = "dhcp6";
359

    
360
include("head.inc");
361

    
362
?>
363

    
364
<script type="text/javascript" src="/javascript/row_helper.js">
365
</script>
366

    
367
<script type="text/javascript">
368
	rowname[0] = "number";
369
	rowtype[0] = "textbox";
370
	rowsize[0] = "10";
371
	rowname[1] = "value";
372
	rowtype[1] = "textbox";
373
	rowsize[1] = "55";
374
</script>
375

    
376
<script type="text/javascript" language="JavaScript">
377
	function enable_change(enable_over) {
378
		var endis;
379
		endis = !(document.iform.enable.checked || enable_over);
380
		document.iform.range_from.disabled = endis;
381
		document.iform.range_to.disabled = endis;
382
		document.iform.prefixrange_from.disabled = endis;
383
		document.iform.prefixrange_to.disabled = endis;
384
		document.iform.prefixrange_length.disabled = endis;
385
		document.iform.dns1.disabled = endis;
386
		document.iform.dns2.disabled = endis;
387
		document.iform.deftime.disabled = endis;
388
		document.iform.maxtime.disabled = endis;
389
		//document.iform.gateway.disabled = endis;
390
		document.iform.dhcpv6leaseinlocaltime.disabled = endis;
391
		document.iform.domain.disabled = endis;
392
		document.iform.domainsearchlist.disabled = endis;
393
		document.iform.ddnsdomain.disabled = endis;
394
		document.iform.ddnsupdate.disabled = endis;
395
		document.iform.ntp1.disabled = endis;
396
		document.iform.ntp2.disabled = endis;
397
		//document.iform.tftp.disabled = endis;
398
		document.iform.ldap.disabled = endis;
399
		document.iform.netboot.disabled = endis;
400
		document.iform.nextserver.disabled = endis;
401
		document.iform.filename.disabled = endis;
402
		document.iform.rootpath.disabled = endis;
403
		document.iform.denyunknown.disabled = endis;
404
	}
405

    
406
	function show_shownumbervalue() {
407
		document.getElementById("shownumbervaluebox").innerHTML='';
408
		aodiv = document.getElementById('shownumbervalue');
409
		aodiv.style.display = "block";
410
	}
411

    
412
	function show_ddns_config() {
413
		document.getElementById("showddnsbox").innerHTML='';
414
		aodiv = document.getElementById('showddns');
415
		aodiv.style.display = "block";
416
	}
417
	function show_ntp_config() {
418
		document.getElementById("showntpbox").innerHTML='';
419
		aodiv = document.getElementById('showntp');
420
		aodiv.style.display = "block";
421
	}
422
	/*
423
	function show_tftp_config() {
424
		document.getElementById("showtftpbox").innerHTML='';
425
		aodiv = document.getElementById('showtftp');
426
		aodiv.style.display = "block";
427
	}
428
	*/
429
	function show_ldap_config() {
430
		document.getElementById("showldapbox").innerHTML='';
431
		aodiv = document.getElementById('showldap');
432
		aodiv.style.display = "block";
433
	}
434

    
435
	function show_netboot_config() {
436
		document.getElementById("shownetbootbox").innerHTML='';
437
		aodiv = document.getElementById('shownetboot');
438
		aodiv.style.display = "block";
439
	}
440
</script>
441

    
442
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
443
<?php include("fbegin.inc"); ?>
444
<form action="services_dhcpv6.php" method="post" name="iform" id="iform">
445
<?php if ($input_errors) print_input_errors($input_errors); ?>
446
<?php if ($savemsg) print_info_box($savemsg); ?>
447
<?php
448
	if ($dhcrelay_enabled) {
449
		echo gettext("DHCP Relay is currently enabled. Cannot enable the DHCP Server service while the DHCP Relay is enabled on any interface.");
450
		include("fend.inc");
451
		echo "</body>";
452
		echo "</html>";
453
		exit;
454
	}
455
?>
456
<?php if (is_subsystem_dirty('staticmaps')): ?><p>
457
<?php print_info_box_np(gettext("The static mapping configuration has been changed") . ".<br>" . gettext("You must apply the changes in order for them to take effect."));?><br>
458
<?php endif; ?>
459
<table width="100%" border="0" cellpadding="0" cellspacing="0">
460
<tr><td>
461
<?php
462
	/* active tabs */
463
	$tab_array = array();
464
	$tabscounter = 0;
465
	$i = 0;
466
	foreach ($iflist as $ifent => $ifname) {
467
		$oc = $config['interfaces'][$ifent];
468
		if ((is_array($config['dhcpdv6'][$ifent]) && !isset($config['dhcpdv6'][$ifent]['enable']) && !(is_ipaddrv6($oc['ipaddrv6']) && (!is_linklocal($oc['ipaddrv6'])))) ||
469
			(!is_array($config['dhcpdv6'][$ifent]) && !(is_ipaddrv6($oc['ipaddrv6']) && (!is_linklocal($oc['ipaddrv6'])))))
470
			continue;
471
		if ($ifent == $if)
472
			$active = true;
473
		else
474
			$active = false;
475
		$tab_array[] = array($ifname, $active, "services_dhcpv6.php?if={$ifent}");
476
		$tabscounter++;
477
	}
478
	/* tack on PPPoE or PPtP servers here */
479
	/* pppoe server */
480
	if (is_array($config['pppoes']['pppoe'])) {
481
		foreach($config['pppoes']['pppoe'] as $pppoe) {
482
			if ($pppoe['mode'] == "server") {
483
				$ifent = "poes". $pppoe['pppoeid'];
484
				$ifname = strtoupper($ifent);
485
				if ($ifent == $if)
486
					$active = true;
487
				else
488
					$active = false;
489
				$tab_array[] = array($ifname, $active, "services_dhcpv6.php?if={$ifent}");
490
				$tabscounter++;
491
			}
492
		}
493
	}
494
	if ($tabscounter == 0) {
495
		echo "</td></tr></table></form>";
496
		include("fend.inc");
497
		echo "</body>";
498
		echo "</html>";
499
		exit;
500
	}
501
	display_top_tabs($tab_array);
502
?>
503
</td></tr>
504
<tr><td class="tabnavtbl">
505
<?php
506
$tab_array = array();
507
$tab_array[] = array(gettext("DHCPv6 Server"),         true,  "services_dhcpv6.php?if={$if}");
508
$tab_array[] = array(gettext("Router Advertisements"), false, "services_router_advertisements.php?if={$if}");
509
display_top_tabs($tab_array);
510
?>
511
</td></tr>
512
<tr>
513
<td>
514
	<div id="mainarea">
515
		<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
516
		<tr>
517
			<td width="22%" valign="top" class="vncellreq"><?=gettext("DHCPv6 Server");?></td>
518
			<td width="78%" class="vtable">
519
				<input name="enable" type="checkbox" value="yes" <?php if ($pconfig['enable']) echo "checked"; ?> onClick="enable_change(false);">
520
			<strong><?php printf(gettext("Enable DHCPv6 server on " .
521
			"%s " .
522
			"interface"),htmlspecialchars($iflist[$if]));?></strong></td>
523
			</tr>
524
			<tr>
525
			<td width="22%" valign="top" class="vtable">&nbsp;</td>
526
			<td width="78%" class="vtable">
527
				<input name="denyunknown" id="denyunknown" type="checkbox" value="yes" <?php if ($pconfig['denyunknown']) echo "checked"; ?>>
528
				<strong><?=gettext("Deny unknown clients");?></strong><br>
529
				<?=gettext("If this is checked, only the clients defined below will get DHCP leases from this server. ");?></td>
530
			</tr>
531
			<tr>
532
			<?php
533
			/* the PPPoE Server could well have no IPv6 address and operate fine with just link-local, just hide these */
534
			if(is_ipaddrv6($ifcfgip)) {
535
			?>
536
			<td width="22%" valign="top" class="vncellreq"><?=gettext("Subnet");?></td>
537
			<td width="78%" class="vtable">
538
				<?=gen_subnetv6($ifcfgip, $ifcfgsn);?>
539
			</td>
540
			</tr>
541
			<tr>
542
			<td width="22%" valign="top" class="vncellreq"><?=gettext("Subnet mask");?></td>
543
			<td width="78%" class="vtable">
544
				<?=$ifcfgsn;?> bits
545
			</td>
546
			</tr>
547
			<tr>
548
			<td width="22%" valign="top" class="vncellreq"><?=gettext("Available range");?></td>
549
			<td width="78%" class="vtable">
550
			<?php
551
				$range_from = gen_subnetv6($ifcfgip, $ifcfgsn);
552
				$range_from++;
553
				echo $range_from;
554

    
555
			?>
556
			-
557
			<?php
558
				$range_to = gen_subnetv6_max($ifcfgip, $ifcfgsn);
559
				echo $range_to;
560
			?>
561
			</td>
562
			</tr>
563
			<?php } ?>
564

    
565
			<?php if($is_olsr_enabled): ?>
566
			<tr>
567
			<td width="22%" valign="top" class="vncellreq"><?=gettext("Subnet Mask");?></td>
568
			<td width="78%" class="vtable">
569
				<select name="netmask" class="formselect" id="netmask">
570
				<?php
571
				for ($i = 128; $i > 0; $i--) {
572
					if($i <> 127) {
573
						echo "<option value=\"{$i}\" ";
574
						if ($i == $pconfig['netmask']) echo "selected";
575
						echo ">" . $i . "</option>";
576
					}
577
				}
578
				?>
579
				</select>
580
			</td>
581
			</tr>
582
			<?php endif; ?>
583
			<tr>
584
			<td width="22%" valign="top" class="vncellreq"><?=gettext("Range");?></td>
585
			<td width="78%" class="vtable">
586
				<input name="range_from" type="text" class="formfld unknown" id="range_from" size="28" value="<?=htmlspecialchars($pconfig['range_from']);?>">
587
				&nbsp;<?=gettext("to"); ?>&nbsp; <input name="range_to" type="text" class="formfld unknown" id="range_to" size="28" value="<?=htmlspecialchars($pconfig['range_to']);?>">
588
			</td>
589
			</tr>
590
			<tr>
591
			<td width="22%" valign="top" class="vncell"><?=gettext("Prefix Delegation Range");?></td>
592
			<td width="78%" class="vtable">
593
				<input name="prefixrange_from" type="text" class="formfld unknown" id="prefixrange_from" size="28" value="<?=htmlspecialchars($pconfig['prefixrange_from']);?>">
594
				&nbsp;<?=gettext("to"); ?>&nbsp; <input name="prefixrange_to" type="text" class="formfld unknown" id="prefixrange_to" size="28" value="<?=htmlspecialchars($pconfig['prefixrange_to']);?>">
595
				&nbsp;<br/><?=gettext("Prefix Delegation Size"); ?>:&nbsp; <select name="prefixrange_length" class="formselect" id="prefixrange_length">
596
					<option value="48" <?php if($pconfig['prefixrange_length'] == 48) echo "selected"; ?>>48</option>
597
					<option value="52" <?php if($pconfig['prefixrange_length'] == 52) echo "selected"; ?>>52</option>
598
					<option value="56" <?php if($pconfig['prefixrange_length'] == 56) echo "selected"; ?>>56</option>
599
					<option value="60" <?php if($pconfig['prefixrange_length'] == 60) echo "selected"; ?>>60</option>
600
					<option value="62" <?php if($pconfig['prefixrange_length'] == 62) echo "selected"; ?>>62</option>
601
					<option value="63" <?php if($pconfig['prefixrange_length'] == 63) echo "selected"; ?>>63</option>
602
					<option value="64" <?php if($pconfig['prefixrange_length'] == 64) echo "selected"; ?>>64</option>
603
				</select> <br/>
604
				<?php echo gettext("You can define a Prefix range here for DHCP Prefix Delegation. This allows for 
605
					assigning networks to subrouters. The start and end of the range must end on boundaries of the prefix delegation size."); ?>
606
			</td>
607
			</tr>
608
			<tr>
609
			<td width="22%" valign="top" class="vncell"><?=gettext("DNS servers");?></td>
610
			<td width="78%" class="vtable">
611
				<input name="dns1" type="text" class="formfld unknown" id="dns1" size="28" value="<?=htmlspecialchars($pconfig['dns1']);?>"><br>
612
				<input name="dns2" type="text" class="formfld unknown" id="dns2" size="28" value="<?=htmlspecialchars($pconfig['dns2']);?>"><br>
613
				<?=gettext("NOTE: leave blank to use the system default DNS servers - this interface's IP if DNS forwarder is enabled, otherwise the servers configured on the General page.");?>
614
			</td>
615
			</tr>
616
			<tr>
617
			<td width="22%" valign="top" class="vncell"><?=gettext("Domain name");?></td>
618
			<td width="78%" class="vtable">
619
				<input name="domain" type="text" class="formfld unknown" id="domain" size="28" value="<?=htmlspecialchars($pconfig['domain']);?>"><br>
620
				 <?=gettext("The default is to use the domain name of this system as the default domain name provided by DHCP. You may specify an alternate domain name here.");?>
621
			 </td>
622
			</tr>
623
			<tr>
624
			<td width="22%" valign="top" class="vncell"><?=gettext("Domain search list");?></td>
625
			<td width="78%" class="vtable">
626
				<input name="domainsearchlist" type="text" class="formfld unknown" id="domainsearchlist" size="28" value="<?=htmlspecialchars($pconfig['domainsearchlist']);?>"><br>
627
				<?=gettext("The DHCP server can optionally provide a domain search list. Use the semicolon character as separator");?>
628
			</td>
629
			</tr>
630
			<tr>
631
			<td width="22%" valign="top" class="vncell"><?=gettext("Default lease time");?></td>
632
			<td width="78%" class="vtable">
633
				<input name="deftime" type="text" class="formfld unknown" id="deftime" size="10" value="<?=htmlspecialchars($pconfig['deftime']);?>">
634
				<?=gettext("seconds");?><br>
635
				<?=gettext("This is used for clients that do not ask for a specific " .
636
				"expiration time."); ?><br>
637
				<?=gettext("The default is 7200 seconds.");?>
638
			</td>
639
			</tr>
640
			<tr>
641
			<td width="22%" valign="top" class="vncell"><?=gettext("Maximum lease time");?></td>
642
			<td width="78%" class="vtable">
643
				<input name="maxtime" type="text" class="formfld unknown" id="maxtime" size="10" value="<?=htmlspecialchars($pconfig['maxtime']);?>">
644
				<?=gettext("seconds");?><br>
645
				<?=gettext("This is the maximum lease time for clients that ask".
646
				" for a specific expiration time."); ?><br>
647
				<?=gettext("The default is 86400 seconds.");?>
648
			</td>
649
			</tr>
650
			<tr>
651
				<td width="22%" valign="top" class="vncell"><?=gettext("Time format change"); ?></td>
652
				<td width="78%" class="vtable">
653
				<table>
654
					<tr>
655
					<td>
656
						<input name="dhcpv6leaseinlocaltime" type="checkbox" id="dhcpv6leaseinlocaltime" value="yes" <?php if ($pconfig['dhcpv6leaseinlocaltime']) echo "checked"; ?>>
657
					</td>
658
					<td>
659
						<strong>
660
							<?=gettext("Change DHCPv6 display lease time from UTC to local time."); ?>
661
						</strong>
662
					</td>
663
					</tr>
664
					<tr>
665
					<td>&nbsp;</td>
666
					<td>
667
						<span class="red"><strong><?=gettext("Note:");?></strong></span> <?=gettext("By default DHCPv6 leases are displayed in UTC time.  By checking this 
668
						box DHCPv6 lease time will be displayed in local time and set to time zone selected.  This will be used for all DHCPv6 interfaces lease time."); ?>
669
					
670
					</td>
671
					</tr>
672
				</table>
673
				</td>
674
			</tr>
675
			<tr>
676
			<td width="22%" valign="top" class="vncell"><?=gettext("Dynamic DNS");?></td>
677
			<td width="78%" class="vtable">
678
				<div id="showddnsbox">
679
					<input type="button" onClick="show_ddns_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Dynamic DNS");?></a>
680
				</div>
681
				<div id="showddns" style="display:none">
682
					<input valign="middle" type="checkbox" value="yes" name="ddnsupdate" id="ddnsupdate" <?php if($pconfig['ddnsupdate']) echo " checked"; ?>>&nbsp;
683
					<b><?=gettext("Enable registration of DHCP client names in DNS.");?></b><br />
684
					<p>
685
					<input name="ddnsdomain" type="text" class="formfld unknown" id="ddnsdomain" size="28" value="<?=htmlspecialchars($pconfig['ddnsdomain']);?>"><br />
686
					<?=gettext("Note: Leave blank to disable dynamic DNS registration.");?><br />
687
					<?=gettext("Enter the dynamic DNS domain which will be used to register client names in the DNS server.");?>
688
				</div>
689
			</td>
690
			</tr>
691
			<tr>
692
			<td width="22%" valign="top" class="vncell"><?=gettext("NTP servers");?></td>
693
			<td width="78%" class="vtable">
694
				<div id="showntpbox">
695
					<input type="button" onClick="show_ntp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show NTP configuration");?></a>
696
				</div>
697
				<div id="showntp" style="display:none">
698
					<input name="ntp1" type="text" class="formfld unknown" id="ntp1" size="28" value="<?=htmlspecialchars($pconfig['ntp1']);?>"><br>
699
					<input name="ntp2" type="text" class="formfld unknown" id="ntp2" size="28" value="<?=htmlspecialchars($pconfig['ntp2']);?>">
700
				</div>
701
			</td>
702
			</tr>
703
			<!-- ISC dhcpd does not support tftp for ipv6 yet. See redmine #2016
704
			<tr>
705
			<td width="22%" valign="top" class="vncell"><?=gettext("TFTP server");?></td>
706
			<td width="78%" class="vtable">
707
			<div id="showtftpbox">
708
				<input type="button" onClick="show_tftp_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show TFTP configuration");?></a>
709
			</div>
710
			<div id="showtftp" style="display:none">
711
				<input name="tftp" type="text" class="formfld unknown" id="tftp" size="50" value="<?=htmlspecialchars($pconfig['tftp']);?>"><br>
712
				<?=gettext("Leave blank to disable.  Enter a full hostname or IP for the TFTP server.");?>
713
			</div>
714
			</td>
715
			</tr>
716
			-->
717
			<tr>
718
			<td width="22%" valign="top" class="vncell"><?=gettext("LDAP URI");?></td>
719
			<td width="78%" class="vtable">
720
				<div id="showldapbox">
721
					<input type="button" onClick="show_ldap_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show LDAP configuration");?></a>
722
				</div>
723
				<div id="showldap" style="display:none">
724
					<input name="ldap" type="text" class="formfld unknown" id="ldap" size="80" value="<?=htmlspecialchars($pconfig['ldap']);?>"><br>
725
					<?=gettext("Leave blank to disable.  Enter a full URI for the LDAP server in the form ldap://ldap.example.com/dc=example,dc=com");?>
726
				</div>
727
			</td>
728
			</tr>
729
			<tr>
730
			<td width="22%" valign="top" class="vncell"><?=gettext("Enable network booting");?></td>
731
			<td width="78%" class="vtable">
732
				<div id="shownetbootbox">
733
					<input type="button" onClick="show_netboot_config()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Network booting");?></a>
734
				</div>
735
				<div id="shownetboot" style="display:none">
736
					<input valign="middle" type="checkbox" value="yes" name="netboot" id="netboot" <?php if($pconfig['netboot']) echo " checked"; ?>>&nbsp;
737
					<b><?=gettext("Enables network booting.");?></b>
738
					<p>
739
					<?=gettext("Enter the IP of the"); ?> <b><?=gettext("next-server"); ?></b>
740
					<input name="nextserver" type="text" class="formfld unknown" id="nextserver" size="28" value="<?=htmlspecialchars($pconfig['nextserver']);?>">
741
					<?=gettext("and the filename");?>
742
					<input name="filename" type="text" class="formfld unknown" id="filename" size="28" value="<?=htmlspecialchars($pconfig['filename']);?>"><br>
743
					<?=gettext("Note: You need both a filename and a boot server configured for this to work!");?>
744
					<p>
745
					<?=gettext("Enter the"); ?> <b><?=gettext("root-path"); ?></b>-<?=gettext("string");?>
746
					<input name="rootpath" type="text" class="formfld unknown" id="rootpath" size="90" value="<?=htmlspecialchars($pconfig['rootpath']);?>"><br>
747
					<?=gettext("Note: string-format: iscsi:(servername):(protocol):(port):(LUN):targetname");?>
748
				</div>
749
			</td>
750
			</tr>
751
			<tr>
752
			<td width="22%" valign="top" class="vncell"><?=gettext("Additional BOOTP/DHCP Options");?></td>
753
			<td width="78%" class="vtable">
754
				<div id="shownumbervaluebox">
755
					<input type="button" onClick="show_shownumbervalue()" value="<?=gettext("Advanced");?>"></input> - <?=gettext("Show Additional BOOTP/DHCP Options");?></a>
756
				</div>
757
				<div id="shownumbervalue" style="display:none">
758
				<table id="maintable">
759
				<tbody>
760
				<tr>
761
				<td colspan="3">
762
					<div style="padding:5px; margin-top: 16px; margin-bottom: 16px; border:1px dashed #000066; background-color: #ffffff; color: #000000; font-size: 8pt;" id="itemhelp">
763
					<?=gettext("Enter the DHCP option number and the value for each item you would like to include in the DHCP lease information.  For a list of available options please visit this"); ?> <a href="http://www.iana.org/assignments/bootp-dhcp-parameters/" target="_new"><?=gettext("URL"); ?></a>
764
					</div>
765
				</td>
766
				</tr>
767
				<tr>
768
				<td><div id="onecolumn"><?=gettext("Number");?></div></td>
769
				<td><div id="twocolumn"><?=gettext("Value");?></div></td>
770
				</tr>
771
				<?php $counter = 0; ?>
772
				<?php
773
					if($pconfig['numberoptions'])
774
						foreach($pconfig['numberoptions']['item'] as $item):
775
				?>
776
					<?php
777
						$number = $item['number'];
778
						$value = $item['value'];
779
					?>
780
				<tr>
781
				<td>
782
					<input autocomplete="off" name="number<?php echo $counter; ?>" type="text" class="formfld" id="number<?php echo $counter; ?>" size="10" value="<?=htmlspecialchars($number);?>" />
783
				</td>
784
				<td>
785
					<input autocomplete="off" name="value<?php echo $counter; ?>" type="text" class="formfld" id="value<?php echo $counter; ?>" size="55" value="<?=htmlspecialchars($value);?>" />
786
				</td>
787
				<td>
788
					<input type="image" src="/themes/<?echo $g['theme'];?>/images/icons/icon_x.gif" onclick="removeRow(this); return false;" value="<?=gettext("Delete");?>" />
789
				</td>
790
				</tr>
791
				<?php $counter++; ?>
792
				<?php endforeach; ?>
793
				</tbody>
794
				<tfoot>
795
				</tfoot>
796
				</table>
797
				<a onclick="javascript:addRowTo('maintable', 'formfldalias'); return false;" href="#">
798
					<img border="0" src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" alt="" title="<?=gettext("add another entry");?>" />
799
				</a>
800
				<script type="text/javascript">
801
					field_counter_js = 2;
802
					rows = 1;
803
					totalrows = <?php echo $counter; ?>;
804
					loaded = <?php echo $counter; ?>;
805
				</script>
806
				</div>
807

    
808
				</td>
809
			</tr>
810
			<tr>
811
			<td width="22%" valign="top">&nbsp;</td>
812
			<td width="78%">
813
				<input name="if" type="hidden" value="<?=$if;?>">
814
				<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" onclick="enable_change(true)">
815
			</td>
816
			</tr>
817
			<tr>
818
			<td width="22%" valign="top">&nbsp;</td>
819
			<td width="78%"> <p><span class="vexpl"><span class="red"><strong><?=gettext("Note:");?><br>
820
				</strong></span><?=gettext("The DNS servers entered in"); ?> <a href="system.php"><?=gettext("System: " .
821
				"General setup"); ?></a> <?=gettext("(or the"); ?> <a href="services_dnsmasq.php"><?=gettext("DNS " .
822
				"forwarder"); ?></a>, <?=gettext("if enabled)"); ?> </span><span class="vexpl"><?=gettext("will " .
823
				"be assigned to clients by the DHCP server."); ?><br>
824
				<br>
825
				<?=gettext("The DHCP lease table can be viewed on the"); ?> <a href="status_dhcpv6_leases.php"><?=gettext("Status: " .
826
				"DHCPv6 leases"); ?></a> <?=gettext("page."); ?><br>
827
				</span></p>
828
			</td>
829
			</tr>
830
		</table>
831
		<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
832
		<tr>
833
			<td colspan="4" valign="top" class="listtopic"><?=gettext("DHCPv6 Static Mappings for this interface.");?></td>
834
			<td>&nbsp;</td>
835
		</tr>
836
		<tr>
837
			<td width="25%" class="listhdrr"><?=gettext("DUID");?></td>
838
			<td width="15%" class="listhdrr"><?=gettext("IPv6 address");?></td>
839
			<td width="20%" class="listhdrr"><?=gettext("Hostname");?></td>
840
			<td width="30%" class="listhdr"><?=gettext("Description");?></td>
841
			<td width="10%" class="list">
842
			<table border="0" cellspacing="0" cellpadding="1">
843
			<tr>
844
			<td valign="middle" width="17"></td>
845
			<td valign="middle"><a href="services_dhcpv6_edit.php?if=<?=$if;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td>
846
			</tr>
847
			</table>
848
			</td>
849
		</tr>
850
			<?php if(is_array($a_maps)): ?>
851
			<?php $i = 0; foreach ($a_maps as $mapent): ?>
852
			<?php if($mapent['duid'] <> "" or $mapent['ipaddrv6'] <> ""): ?>
853
		<tr>
854
		<td class="listlr" ondblclick="document.location='services_dhcpv6_edit.php?if=<?=$if;?>&id=<?=$i;?>';">
855
			<?=htmlspecialchars($mapent['duid']);?>
856
		</td>
857
		<td class="listr" ondblclick="document.location='services_dhcpv6_edit.php?if=<?=$if;?>&id=<?=$i;?>';">
858
			<?=htmlspecialchars($mapent['ipaddrv6']);?>&nbsp;
859
		</td>
860
		<td class="listr" ondblclick="document.location='services_dhcpv6_edit.php?if=<?=$if;?>&id=<?=$i;?>';">
861
			<?=htmlspecialchars($mapent['hostname']);?>&nbsp;
862
		</td>
863
		<td class="listbg" ondblclick="document.location='services_dhcpv6_edit.php?if=<?=$if;?>&id=<?=$i;?>';">
864
			<?=htmlspecialchars($mapent['descr']);?>&nbsp;
865
		</td>
866
		<td valign="middle" nowrap="nowrap" class="list">
867
			<table border="0" cellspacing="0" cellpadding="1">
868
			<tr>
869
			<td valign="middle"><a href="services_dhcpv6_edit.php?if=<?=$if;?>&id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a></td>
870
			<td valign="middle"><a href="services_dhcpv6.php?if=<?=$if;?>&act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this mapping?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
871
			</tr>
872
			</table>
873
		</td>
874
		</tr>
875
		<?php endif; ?>
876
		<?php $i++; endforeach; ?>
877
		<?php endif; ?>
878
		<tr>
879
		<td class="list" colspan="4"></td>
880
		<td class="list">
881
			<table border="0" cellspacing="0" cellpadding="1">
882
			<tr>
883
			<td valign="middle" width="17"></td>
884
			<td valign="middle"><a href="services_dhcpv6_edit.php?if=<?=$if;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td>
885
			</tr>
886
			</table>
887
		</td>
888
		</tr>
889
		</table>
890
	</div>
891
</td>
892
</tr>
893
</table>
894
</form>
895
<script language="JavaScript">
896
<!--
897
enable_change(false);
898
//-->
899
</script>
900
<?php include("fend.inc"); ?>
901
</body>
902
</html>
(151-151/246)