Project

General

Profile

Download (19.3 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/*
3
    system_camanager.php
4

    
5
    Copyright (C) 2008 Shrew Soft Inc.
6
    All rights reserved.
7

    
8
    Redistribution and use in source and binary forms, with or without
9
    modification, are permitted provided that the following conditions are met:
10

    
11
    1. Redistributions of source code must retain the above copyright notice,
12
       this list of conditions and the following disclaimer.
13

    
14
    2. Redistributions in binary form must reproduce the above copyright
15
       notice, this list of conditions and the following disclaimer in the
16
       documentation and/or other materials provided with the distribution.
17

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

    
33
##|+PRIV
34
##|*IDENT=page-system-camanager
35
##|*NAME=System: CA Manager
36
##|*DESCR=Allow access to the 'System: CA Manager' page.
37
##|*MATCH=system_camanager.php*
38
##|-PRIV
39

    
40
require("guiconfig.inc");
41
require_once("certs.inc");
42

    
43
$ca_methods = array(
44
	"existing" => gettext("Import an existing Certificate Authority"),
45
	"internal" => gettext("Create an internal Certificate Authority"));
46

    
47
$ca_keylens = array( "512", "1024", "2048", "4096");
48

    
49
$pgtitle = array(gettext("System"), gettext("Certificate Authority Manager"));
50

    
51
$id = $_GET['id'];
52
if (isset($_POST['id']))
53
	$id = $_POST['id'];
54

    
55
if (!is_array($config['ca']))
56
	$config['ca'] = array();
57

    
58
$a_ca =& $config['ca'];
59

    
60
if (!is_array($config['cert']))
61
	$config['cert'] = array();
62

    
63
$a_cert =& $config['cert'];
64

    
65
if (!is_array($config['crl']))
66
	$config['crl'] = array();
67

    
68
$a_crl =& $config['crl'];
69

    
70
$act = $_GET['act'];
71
if ($_POST['act'])
72
	$act = $_POST['act'];
73

    
74
if ($act == "del") {
75

    
76
	if (!$a_ca[$id]) {
77
		pfSenseHeader("system_camanager.php");
78
		exit;
79
	}
80

    
81
	$index = count($a_cert) - 1;
82
	for (;$index >=0; $index--)
83
		if ($a_cert[$index]['caref'] == $a_ca[$id]['refid'])
84
			unset($a_cert[$index]);
85

    
86
	$index = count($a_crl) - 1;
87
	for (;$index >=0; $index--)
88
		if ($a_crl[$index]['caref'] == $a_ca[$id]['refid'])
89
			unset($a_crl[$index]);
90

    
91
	$name = $a_ca[$id]['descr'];
92
	unset($a_ca[$id]);
93
	write_config();
94
	$savemsg = sprintf(gettext("Certificate Authority %s and its CRLs (if any) successfully deleted"), $name) . "<br/>";
95
	pfSenseHeader("system_camanager.php");
96
	exit;
97
}
98

    
99
if ($act == "edit") {
100
	if (!$a_ca[$id]) {
101
		pfSenseHeader("system_camanager.php");
102
		exit;
103
	}
104
	$pconfig['descr']  = $a_ca[$id]['descr'];
105
	$pconfig['refid']  = $a_ca[$id]['refid'];
106
	$pconfig['cert']   = base64_decode($a_ca[$id]['crt']);
107
	$pconfig['serial'] = $a_ca[$id]['serial'];
108
	if (!empty($a_ca[$id]['prv']))
109
		$pconfig['key'] = base64_decode($a_ca[$id]['prv']);
110
}
111

    
112
if ($act == "new") {
113
	$pconfig['method'] = $_GET['method'];
114
	$pconfig['keylen'] = "2048";
115
	$pconfig['lifetime'] = "3650";
116
	$pconfig['dn_commonname'] = "internal-ca";
117
}
118

    
119
if ($act == "exp") {
120

    
121
	if (!$a_ca[$id]) {
122
		pfSenseHeader("system_camanager.php");
123
		exit;
124
	}
125

    
126
	$exp_name = urlencode("{$a_ca[$id]['descr']}.crt");
127
	$exp_data = base64_decode($a_ca[$id]['crt']);
128
	$exp_size = strlen($exp_data);
129

    
130
	header("Content-Type: application/octet-stream");
131
	header("Content-Disposition: attachment; filename={$exp_name}");
132
	header("Content-Length: $exp_size");
133
	echo $exp_data;
134
	exit;
135
}
136

    
137
if ($act == "expkey") {
138

    
139
	if (!$a_ca[$id]) {
140
		pfSenseHeader("system_camanager.php");
141
		exit;
142
	}
143

    
144
	$exp_name = urlencode("{$a_ca[$id]['descr']}.key");
145
	$exp_data = base64_decode($a_ca[$id]['prv']);
146
	$exp_size = strlen($exp_data);
147

    
148
	header("Content-Type: application/octet-stream");
149
	header("Content-Disposition: attachment; filename={$exp_name}");
150
	header("Content-Length: $exp_size");
151
	echo $exp_data;
152
	exit;
153
}
154

    
155
if ($_POST) {
156

    
157
	unset($input_errors);
158
	$pconfig = $_POST;
159

    
160
	/* input validation */
161
	if ($pconfig['method'] == "existing") {
162
		$reqdfields = explode(" ", "descr cert");
163
		$reqdfieldsn = array(
164
				gettext("Descriptive name"),
165
				gettext("Certificate data"));
166
		if ($_POST['cert'] && (!strstr($_POST['cert'], "BEGIN CERTIFICATE") || !strstr($_POST['cert'], "END CERTIFICATE")))
167
			$input_errors[] = gettext("This certificate does not appear to be valid.");
168
		if ($_POST['key'] && strstr($_POST['key'], "ENCRYPTED"))
169
			$input_errors[] = gettext("Encrypted private keys are not yet supported.");
170
	}
171
	if ($pconfig['method'] == "internal") {
172
		$reqdfields = explode(" ",
173
				"descr keylen lifetime dn_country dn_state dn_city ".
174
				"dn_organization dn_email dn_commonname");
175
		$reqdfieldsn = array(
176
				gettext("Descriptive name"),
177
				gettext("Key length"),
178
				gettext("Lifetime"),
179
				gettext("Distinguished name Country Code"),
180
				gettext("Distinguished name State or Province"),
181
				gettext("Distinguished name City"),
182
				gettext("Distinguished name Organization"),
183
				gettext("Distinguished name Email Address"),
184
				gettext("Distinguished name Common Name"));
185
	}
186

    
187
	do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
188

    
189
	/* if this is an AJAX caller then handle via JSON */
190
	if (isAjax() && is_array($input_errors)) {
191
		input_errors2Ajax($input_errors);
192
		exit;
193
	}
194

    
195
	/* save modifications */
196
	if (!$input_errors) {
197

    
198
		$ca = array();
199
		if (!isset($pconfig['refid']) || empty($pconfig['refid']))
200
			$ca['refid'] = uniqid();
201
		else
202
			$ca['refid'] = $pconfig['refid'];
203

    
204
		if (isset($id) && $a_ca[$id])
205
			$ca = $a_ca[$id];
206

    
207
		$ca['descr'] = $pconfig['descr'];
208

    
209
		if ($_POST['edit'] == "edit") {
210
			$ca['descr']  = $pconfig['descr'];
211
			$ca['refid']  = $pconfig['refid'];
212
			$ca['serial'] = $pconfig['serial'];
213
			$ca['crt']    = base64_encode($pconfig['cert']);
214
			if (!empty($pconfig['key']))
215
				$ca['prv']    = base64_encode($pconfig['key']);
216
		} else {
217
			if ($pconfig['method'] == "existing")
218
				ca_import($ca, $pconfig['cert'], $pconfig['key'], $pconfig['serial']);
219

    
220
			if ($pconfig['method'] == "internal") {
221
				$dn = array(
222
					'countryName' => $pconfig['dn_country'],
223
					'stateOrProvinceName' => $pconfig['dn_state'],
224
					'localityName' => $pconfig['dn_city'],
225
					'organizationName' => $pconfig['dn_organization'],
226
					'emailAddress' => $pconfig['dn_email'],
227
					'commonName' => $pconfig['dn_commonname']);
228
				ca_create($ca, $pconfig['keylen'], $pconfig['lifetime'], $dn);
229
			}
230
		}
231

    
232
		if (isset($id) && $a_ca[$id])
233
			$a_ca[$id] = $ca;
234
		else
235
			$a_ca[] = $ca;
236

    
237
		write_config();
238

    
239
//		pfSenseHeader("system_camanager.php");
240
	}
241
}
242

    
243
include("head.inc");
244
?>
245

    
246
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
247
<?php include("fbegin.inc"); ?>
248
<script type="text/javascript">
249
<!--
250

    
251
function method_change() {
252

    
253
	method = document.iform.method.selectedIndex;
254

    
255
	switch (method) {
256
		case 0:
257
			document.getElementById("existing").style.display="";
258
			document.getElementById("internal").style.display="none";
259
			break;
260
		case 1:
261
			document.getElementById("existing").style.display="none";
262
			document.getElementById("internal").style.display="";
263
			break;
264
	}
265
}
266

    
267
//-->
268
</script>
269
<?php
270
	if ($input_errors)
271
		print_input_errors($input_errors);
272
	if ($savemsg)
273
		print_info_box($savemsg);
274
?>
275
<table width="100%" border="0" cellpadding="0" cellspacing="0">
276
	<tr>
277
		<td>
278
		<?php
279
			$tab_array = array();
280
			$tab_array[] = array(gettext("CAs"), true, "system_camanager.php");
281
			$tab_array[] = array(gettext("Certificates"), false, "system_certmanager.php");
282
			$tab_array[] = array(gettext("Certificate Revocation"), false, "system_crlmanager.php");
283
			display_top_tabs($tab_array);
284
		?>
285
		</td>
286
	</tr>
287
	<tr>
288
		<td id="mainarea">
289
			<div class="tabcont">
290

    
291
				<?php if ($act == "new" || $act == "edit" || $act == gettext("Save") || $input_errors): ?>
292

    
293
				<form action="system_camanager.php" method="post" name="iform" id="iform">
294
					<?php if ($act == "edit"): ?>
295
					<input type="hidden" name="edit" value="edit" id="edit">
296
					<input type="hidden" name="id" value="<?php echo $id; ?>" id="id">
297
					<input type="hidden" name="refid" value="<?php echo $pconfig['refid']; ?>" id="refid">
298
					<?php endif; ?>
299
					<table width="100%" border="0" cellpadding="6" cellspacing="0">
300
						<tr>
301
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
302
							<td width="78%" class="vtable">
303
								<input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($pconfig['descr']);?>"/>
304
							</td>
305
						</tr>
306
						<?php if (!isset($id) || $act == "edit"): ?>
307
						<tr>
308
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Method");?></td>
309
							<td width="78%" class="vtable">
310
								<select name='method' id='method' class="formselect" onchange='method_change()'>
311
								<?php
312
									foreach($ca_methods as $method => $desc):
313
									$selected = "";
314
									if ($pconfig['method'] == $method)
315
										$selected = "selected";
316
								?>
317
									<option value="<?=$method;?>"<?=$selected;?>><?=$desc;?></option>
318
								<?php endforeach; ?>
319
								</select>
320
							</td>
321
						</tr>
322
						<?php endif; ?>
323
					</table>
324

    
325
					<table width="100%" border="0" cellpadding="6" cellspacing="0" id="existing">
326
						<tr>
327
							<td colspan="2" class="list" height="12"></td>
328
						</tr>
329
						<tr>
330
							<td colspan="2" valign="top" class="listtopic"><?=gettext("Existing Certificate Authority");?></td>
331
						</tr>
332

    
333
						<tr>
334
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate data");?></td>
335
							<td width="78%" class="vtable">
336
								<textarea name="cert" id="cert" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['cert']);?></textarea>
337
								<br>
338
								<?=gettext("Paste a certificate in X.509 PEM format here.");?></td>
339
							</td>
340
						</tr>
341
						<tr>
342
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate Private Key");?><br/><?=gettext("(optional)");?></td>
343
							<td width="78%" class="vtable">
344
								<textarea name="key" id="key" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['key']);?></textarea>
345
								<br>
346
								<?=gettext("Paste the private key for the above certificate here. This is optional in most cases, but required if you need to generate a Certificate Revocation List (CRL).");?></td>
347
							</td>
348
						</tr>
349

    
350
					<?php if (!isset($id) || $act == "edit"): ?>
351
						<tr>
352
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Serial");?></td>
353
							<td width="78%" class="vtable">
354
								<input name="serial" type="text" class="formfld unknown" id="serial" size="20" value="<?=htmlspecialchars($pconfig['serial']);?>"/>
355
							</td>
356
						</tr>
357
					<?php endif; ?>
358
					</table>
359

    
360
					<table width="100%" border="0" cellpadding="6" cellspacing="0" id="internal">
361
						<tr>
362
							<td colspan="2" class="list" height="12"></td>
363
						</tr>
364
						<tr>
365
							<td colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate Authority");?></td>
366
						</tr>
367
						<tr>
368
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Key length");?></td>
369
							<td width="78%" class="vtable">
370
								<select name='keylen' id='keylen' class="formselect">
371
								<?php
372
									foreach( $ca_keylens as $len):
373
									$selected = "";
374
									if ($pconfig['keylen'] == $len)
375
										$selected = "selected";
376
								?>
377
									<option value="<?=$len;?>"<?=$selected;?>><?=$len;?></option>
378
								<?php endforeach; ?>
379
								</select>
380
								<?=gettext("bits");?>
381
							</td>
382
						</tr>
383
						<tr>
384
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Lifetime");?></td>
385
							<td width="78%" class="vtable">
386
								<input name="lifetime" type="text" class="formfld unknown" id="lifetime" size="5" value="<?=htmlspecialchars($pconfig['lifetime']);?>"/>
387
								<?=gettext("days");?>
388
							</td>
389
						</tr>
390
						<tr>
391
							<td width="22%" valign="top" class="vncellreq"><?=gettext("Distinguished name");?></td>
392
							<td width="78%" class="vtable">
393
								<table border="0" cellspacing="0" cellpadding="2">
394
									<tr>
395
										<td align="right"><?=gettext("Country Code");?> : &nbsp;</td>
396
										<td align="left">
397
											<input name="dn_country" type="text" class="formfld unknown" maxlength="2" size="2" value="<?=htmlspecialchars($pconfig['dn_country']);?>"/>
398
											&nbsp;
399
											<em><?=gettext("ex:");?></em>
400
											&nbsp;
401
											<?=gettext("US");?>
402
											<em><?=gettext("( two letters )");?></em>
403
										</td>
404
									</tr>
405
									<tr>
406
										<td align="right"><?=gettext("State or Province");?> : &nbsp;</td>
407
										<td align="left">
408
											<input name="dn_state" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_state']);?>"/>
409
											&nbsp;
410
											<em><?=gettext("ex:");?></em>
411
											&nbsp;
412
											<?=gettext("Texas");?>
413
										</td>
414
									</tr>
415
									<tr>
416
										<td align="right"><?=gettext("City");?> : &nbsp;</td>
417
										<td align="left">
418
											<input name="dn_city" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_city']);?>"/>
419
											&nbsp;
420
											<em><?=gettext("ex:");?></em>
421
											&nbsp;
422
											<?=gettext("Austin");?>
423
										</td>
424
									</tr>
425
									<tr>
426
										<td align="right"><?=gettext("Organization");?> : &nbsp;</td>
427
										<td align="left">
428
											<input name="dn_organization" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_organization']);?>"/>
429
											&nbsp;
430
											<em><?=gettext("ex:");?></em>
431
											&nbsp;
432
											<?=gettext("My Company Inc.");?>
433
										</td>
434
									</tr>
435
									<tr>
436
										<td align="right"><?=gettext("Email Address");?> : &nbsp;</td>
437
										<td align="left">
438
											<input name="dn_email" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['dn_email']);?>"/>
439
											&nbsp;
440
											<em><?=gettext("ex:");?></em>
441
											&nbsp;
442
											<?=gettext("admin@mycompany.com");?>
443
										</td>
444
									</tr>
445
									<tr>
446
										<td align="right"><?=gettext("Common Name");?> : &nbsp;</td>
447
										<td align="left">
448
											<input name="dn_commonname" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['dn_commonname']);?>"/>
449
											&nbsp;
450
											<em><?=gettext("ex:");?></em>
451
											&nbsp;
452
											<?=gettext("internal-ca");?>
453
										</td>
454
									</tr>
455
								</table>
456
							</td>
457
						</tr>
458
					</table>
459

    
460
					<table width="100%" border="0" cellpadding="6" cellspacing="0">
461
						<tr>
462
							<td width="22%" valign="top">&nbsp;</td>
463
							<td width="78%">
464
								<input id="submit" name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
465
								<?php if (isset($id) && $a_ca[$id]): ?>
466
								<input name="id" type="hidden" value="<?=$id;?>" />
467
								<?php endif;?>
468
							</td>
469
						</tr>
470
					</table>
471
				</form>
472

    
473
				<?php else: ?>
474

    
475
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
476
					<tr>
477
						<td width="20%" class="listhdrr"><?=gettext("Name");?></td>
478
						<td width="10%" class="listhdrr"><?=gettext("Internal");?></td>
479
						<td width="10%" class="listhdrr"><?=gettext("Issuer");?></td>
480
						<td width="10%" class="listhdrr"><?=gettext("Certificates");?></td>
481
						<td width="40%" class="listhdrr"><?=gettext("Distinguished Name");?></td>
482
						<td width="10%" class="list"></td>
483
					</tr>
484
					<?php
485
						$i = 0;
486
						foreach($a_ca as $ca):
487
							$name = htmlspecialchars($ca['descr']);
488
							$subj = cert_get_subject($ca['crt']);
489
							$issuer = cert_get_issuer($ca['crt']);
490
							if($subj == $issuer)
491
							  $issuer_name = "<em>" . gettext("self-signed") . "</em>";
492
							else
493
							  $issuer_name = "<em>" . gettext("external") . "</em>";
494
							$subj = htmlspecialchars($subj);
495
							$issuer = htmlspecialchars($issuer);
496
							$certcount = 0;
497

    
498
							$issuer_ca = lookup_ca($ca['caref']);
499
							if ($issuer_ca)
500
								$issuer_name = $issuer_ca['descr'];
501

    
502
							// TODO : Need gray certificate icon
503

    
504
							if($ca['prv']) {
505
								$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
506
								$internal = "YES";
507

    
508
							} else {
509
								$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
510
								$internal = "NO";
511
							}
512
							foreach ($a_cert as $cert)
513
								if ($cert['caref'] == $ca['refid'])
514
									$certcount++;
515
  						foreach ($a_ca as $cert)
516
  							if ($cert['caref'] == $ca['refid'])
517
  								$certcount++;
518
					?>
519
					<tr>
520
						<td class="listlr">
521
							<table border="0" cellpadding="0" cellspacing="0">
522
								<tr>
523
									<td align="left" valign="center">
524
										<img src="<?=$caimg;?>" alt="CA" title="CA" border="0" height="16" width="16" />
525
									</td>
526
									<td align="left" valign="middle">
527
										<?=$name;?>
528
									</td>
529
								</tr>
530
							</table>
531
						</td>
532
						<td class="listr"><?=$internal;?>&nbsp;</td>
533
						<td class="listr"><?=$issuer_name;?>&nbsp;</td>
534
						<td class="listr"><?=$certcount;?>&nbsp;</td>
535
						<td class="listr"><?=$subj;?>&nbsp;</td>
536
						<td valign="middle" nowrap class="list">
537
							<a href="system_camanager.php?act=edit&id=<?=$i;?>")">
538
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("export ca");?>" alt="<?=gettext("edit ca");?>" width="17" height="17" border="0" />
539
							</a>
540
							<a href="system_camanager.php?act=exp&id=<?=$i;?>")">
541
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("export ca");?>" alt="<?=gettext("export ca");?>" width="17" height="17" border="0" />
542
							</a>
543
							<?php if ($ca['prv']): ?>
544
							<a href="system_camanager.php?act=expkey&id=<?=$i;?>")">
545
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("export ca private key");?>" alt="<?=gettext("export ca private key");?>" width="17" height="17" border="0" />
546
							</a>
547
							<?php endif; ?>
548
							<a href="system_camanager.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate Authority and its CRLs, and unreference any associated certificates?");?>')">
549
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("delete ca");?>" alt="<?=gettext("delete ca"); ?>" width="17" height="17" border="0" />
550
							</a>
551
						</td>
552
					</tr>
553
					<?php
554
							$i++;
555
						endforeach;
556
					?>
557
					<tr>
558
						<td class="list" colspan="5"></td>
559
						<td class="list">
560
							<a href="system_camanager.php?act=new">
561
								<img src="/themes/<?= $g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("add or import ca");?>" alt="<?=gettext("add ca");?>" width="17" height="17" border="0" />
562
							</a>
563
						</td>
564
					</tr>
565
					<tr>
566
						<td colspan="5">
567
							<p>
568
								<?=gettext("Additional trusted Certificate Authorities can be added here.");?>
569
							</p>
570
						</td>
571
					</tr>
572
				</table>
573

    
574
				<?php endif; ?>
575

    
576
			</div>
577
		</td>
578
	</tr>
579
</table>
580
<?php include("fend.inc");?>
581
<script type="text/javascript">
582
<!--
583

    
584
method_change();
585

    
586
//-->
587
</script>
588

    
589
</body>
(184-184/225)