Project

General

Profile

Download (37.3 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
require_once("filter.inc");
49

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

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

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

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

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

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

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

    
93
if (is_array($config['dhcpdv6'][$if])){
94
	/* DHCPv6 */
95
	if (is_array($config['dhcpdv6'][$if]['range'])) {
96
		$pconfig['range_from'] = $config['dhcpdv6'][$if]['range']['from'];
97
		$pconfig['range_to'] = $config['dhcpdv6'][$if]['range']['to'];
98
	}
99
	if (is_array($config['dhcpdv6'][$if]['prefixrange'])) {
100
		$pconfig['prefixrange_from'] = $config['dhcpdv6'][$if]['prefixrange']['from'];
101
		$pconfig['prefixrange_to'] = $config['dhcpdv6'][$if]['prefixrange']['to'];
102
		$pconfig['prefixrange_length'] = $config['dhcpdv6'][$if]['prefixrange']['prefixlength'];
103
	}
104
	$pconfig['deftime'] = $config['dhcpdv6'][$if]['defaultleasetime'];
105
	$pconfig['maxtime'] = $config['dhcpdv6'][$if]['maxleasetime'];
106
	$pconfig['domain'] = $config['dhcpdv6'][$if]['domain'];
107
	$pconfig['domainsearchlist'] = $config['dhcpdv6'][$if]['domainsearchlist'];
108
	list($pconfig['wins1'],$pconfig['wins2']) = $config['dhcpdv6'][$if]['winsserver'];
109
	list($pconfig['dns1'],$pconfig['dns2']) = $config['dhcpdv6'][$if]['dnsserver'];
110
	$pconfig['enable'] = isset($config['dhcpdv6'][$if]['enable']);
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
	$old_dhcpdv6_enable = ($pconfig['enable'] == true);
152
	$new_dhcpdv6_enable = ($_POST['enable'] ? true : false);
153
	$dhcpdv6_enable_changed = ($old_dhcpdv6_enable != $new_dhcpdv6_enable);
154

    
155
	$pconfig = $_POST;
156

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

    
169
	/* input validation */
170
	if ($_POST['enable']) {
171
		$reqdfields = explode(" ", "range_from range_to");
172
		$reqdfieldsn = array(gettext("Range begin"),gettext("Range end"));
173

    
174
		do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
175

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

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

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

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

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

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

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

    
247

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

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

    
268
	if (!$input_errors) {
269
		if (!is_array($config['dhcpdv6'][$if]))
270
			$config['dhcpdv6'][$if] = array();
271
		if (!is_array($config['dhcpdv6'][$if]['range']))
272
			$config['dhcpdv6'][$if]['range'] = array();
273
		if (!is_array($config['dhcpdv6'][$if]['prefixrange']))
274
			$config['dhcpdv6'][$if]['prefixrange'] = array();
275

    
276
		$config['dhcpdv6'][$if]['range']['from'] = $_POST['range_from'];
277
		$config['dhcpdv6'][$if]['range']['to'] = $_POST['range_to'];
278
		$config['dhcpdv6'][$if]['prefixrange']['from'] = $_POST['prefixrange_from'];
279
		$config['dhcpdv6'][$if]['prefixrange']['to'] = $_POST['prefixrange_to'];
280
		$config['dhcpdv6'][$if]['prefixrange']['prefixlength'] = $_POST['prefixrange_length'];
281
		$config['dhcpdv6'][$if]['defaultleasetime'] = $_POST['deftime'];
282
		$config['dhcpdv6'][$if]['maxleasetime'] = $_POST['maxtime'];
283
		$config['dhcpdv6'][$if]['netmask'] = $_POST['netmask'];
284

    
285
		unset($config['dhcpdv6'][$if]['winsserver']);
286

    
287
		unset($config['dhcpdv6'][$if]['dnsserver']);
288
		if ($_POST['dns1'])
289
			$config['dhcpdv6'][$if]['dnsserver'][] = $_POST['dns1'];
290
		if ($_POST['dns2'])
291
			$config['dhcpdv6'][$if]['dnsserver'][] = $_POST['dns2'];
292

    
293
		$config['dhcpdv6'][$if]['domain'] = $_POST['domain'];
294
		$config['dhcpdv6'][$if]['domainsearchlist'] = $_POST['domainsearchlist'];
295
		$config['dhcpdv6'][$if]['enable'] = ($_POST['enable']) ? true : false;
296
		$config['dhcpdv6'][$if]['ddnsdomain'] = $_POST['ddnsdomain'];
297
		$config['dhcpdv6'][$if]['ddnsupdate'] = ($_POST['ddnsupdate']) ? true : false;
298

    
299
		unset($config['dhcpdv6'][$if]['ntpserver']);
300
		if ($_POST['ntp1'])
301
			$config['dhcpdv6'][$if]['ntpserver'][] = $_POST['ntp1'];
302
		if ($_POST['ntp2'])
303
			$config['dhcpdv6'][$if]['ntpserver'][] = $_POST['ntp2'];
304

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

    
313
		// Handle the custom options rowhelper
314
		if(isset($config['dhcpdv6'][$if]['numberoptions']['item']))
315
			unset($config['dhcpdv6'][$if]['numberoptions']['item']);
316

    
317
		$config['dhcpdv6'][$if]['numberoptions'] = $numberoptions;
318

    
319
		write_config();
320

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

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

    
362
$pgtitle = array(gettext("Services"),gettext("DHCPv6 server"));
363
$shortcut_section = "dhcp6";
364

    
365
include("head.inc");
366

    
367
?>
368

    
369
<script type="text/javascript" src="/javascript/row_helper.js">
370
</script>
371

    
372
<script type="text/javascript">
373
	rowname[0] = "number";
374
	rowtype[0] = "textbox";
375
	rowsize[0] = "10";
376
	rowname[1] = "value";
377
	rowtype[1] = "textbox";
378
	rowsize[1] = "55";
379
</script>
380

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

    
410
	function show_shownumbervalue() {
411
		document.getElementById("shownumbervaluebox").innerHTML='';
412
		aodiv = document.getElementById('shownumbervalue');
413
		aodiv.style.display = "block";
414
	}
415

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

    
439
	function show_netboot_config() {
440
		document.getElementById("shownetbootbox").innerHTML='';
441
		aodiv = document.getElementById('shownetboot');
442
		aodiv.style.display = "block";
443
	}
444
</script>
445

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

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

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

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