Project

General

Profile

Download (17.8 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/*
3
 * status_ipsec.php
4
 *
5
 * part of pfSense (https://www.pfsense.org)
6
 * Copyright (c) 2004-2013 BSD Perimeter
7
 * Copyright (c) 2013-2016 Electric Sheep Fencing
8
 * Copyright (c) 2014-2019 Rubicon Communications, LLC (Netgate)
9
 * All rights reserved.
10
 *
11
 * originally based on m0n0wall (http://m0n0.ch/wall)
12
 * Copyright (c) 2003-2004 Manuel Kasper <mk@neon1.net>.
13
 * All rights reserved.
14
 *
15
 * Licensed under the Apache License, Version 2.0 (the "License");
16
 * you may not use this file except in compliance with the License.
17
 * You may obtain a copy of the License at
18
 *
19
 * http://www.apache.org/licenses/LICENSE-2.0
20
 *
21
 * Unless required by applicable law or agreed to in writing, software
22
 * distributed under the License is distributed on an "AS IS" BASIS,
23
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
 * See the License for the specific language governing permissions and
25
 * limitations under the License.
26
 */
27

    
28
##|+PRIV
29
##|*IDENT=page-status-ipsec
30
##|*NAME=Status: IPsec
31
##|*DESCR=Allow access to the 'Status: IPsec' page.
32
##|*MATCH=status_ipsec.php*
33
##|-PRIV
34

    
35
require_once("guiconfig.inc");
36
require_once("ipsec.inc");
37

    
38
global $g;
39

    
40
init_config_arr(array('ipsec', 'phase1'));
41

    
42
// If this is just an AJAX call to update the table body, just generate the body and quit
43
if ($_REQUEST['ajax']) {
44
	print_ipsec_body();
45
	exit;
46
}
47

    
48
if ($_POST['act'] == 'connect') {
49
	if (ctype_digit($_POST['ikeid'])) {
50
		$ph1ent = ipsec_get_phase1($_POST['ikeid']);
51
		if (!empty($ph1ent)) {
52
			if (empty($ph1ent['iketype']) || $ph1ent['iketype'] == 'ikev1' || isset($ph1ent['splitconn'])) {
53
				$ph2entries = ipsec_get_number_of_phase2($_POST['ikeid']);
54
				for ($i = 0; $i < $ph2entries; $i++) {
55
					$connid = escapeshellarg("con{$_POST['ikeid']}00{$i}");
56
					mwexec_bg("/usr/local/sbin/ipsec down {$connid}");
57
					mwexec_bg("/usr/local/sbin/ipsec up {$connid}");
58
				}
59
			} else {
60
				mwexec_bg("/usr/local/sbin/ipsec down con" . escapeshellarg($_POST['ikeid'] . '000'));
61
				mwexec_bg("/usr/local/sbin/ipsec up con" . escapeshellarg($_POST['ikeid'] . '000'));
62
			}
63
		}
64
	}
65
} else if ($_POST['act'] == 'ikedisconnect') {
66

    
67
	if (!empty($_POST['ikesaid']) && ctype_digit($_POST['ikesaid'])) {
68
		mwexec_bg("/usr/local/sbin/ipsec down " ."'" . escapeshellarg($_POST['ikeid']) . "[" . escapeshellarg($_POST['ikesaid']) . "]" . "'");
69
	} else {
70
		mwexec_bg("/usr/local/sbin/ipsec down " . escapeshellarg($_POST['ikeid']));
71
	}
72
} else if ($_POST['act'] == 'childdisconnect') {
73
	//pull out number from id
74
		if (!empty($_POST['ikesaid']) && ctype_digit($_POST['ikesaid'])) {
75
			mwexec_bg("/usr/local/sbin/ipsec down " . escapeshellarg($_POST['ikeid']) . "{" . escapeshellarg($_POST['ikesaid']) . "}");
76
		}
77
}
78

    
79
// Table body is composed here so that it can be more easily updated via AJAX
80
function print_ipsec_body() {
81
	global $config;
82
	$a_phase1 = &$config['ipsec']['phase1'];
83
	$status = ipsec_list_sa();
84
	$ipsecconnected = array();
85
	if (is_array($status)) {
86
		foreach ($status as $ikeid => $ikesa) {
87
			//check which array format
88
			if(isset($ikesa['con-id'])){
89
				$con_id = substr($ikesa['con-id'],3);
90
			}else{
91
				$con_id = filter_var($ikeid, FILTER_SANITIZE_NUMBER_INT);
92
			}
93
			if ($ikesa['version'] == 1) {
94
				$ph1idx = substr($con_id, 0, strrpos(substr($con_id, 0, -1), '00'));
95
				$ipsecconnected[$ph1idx] = $ph1idx;
96
			} else {
97
				if (!ipsec_ikeid_used($con_id)) {
98
					// probably a v2 with split connection then
99
					$ph1idx = substr($con_id, 0, strrpos(substr($con_id, 0, -1), '00'));
100
					$ipsecconnected[$ph1idx] = $ph1idx;
101
				} else {
102
					$ipsecconnected[$con_id] = $ph1idx = $con_id;
103
				}
104
			}
105

    
106
			print("<tr>\n");
107

    
108
			print("<td>\n");
109
			print(htmlspecialchars($ikesa['con-id'])) . ":\n";
110
			print('#' . htmlspecialchars($ikesa['uniqueid']));
111
			print("</td>\n");
112

    
113
			print("<td>\n");
114
			if (is_array($a_phase1) && htmlspecialchars(ipsec_get_descr($ph1idx)) == "") {
115
				foreach ($a_phase1 as $ph1) {
116
					if($con_id == $ph1['ikeid'] && isset($ph1['mobile']) ){
117
						print(htmlspecialchars($ph1['descr']));
118
						break;
119
					}
120
				}
121
			}
122
			print(htmlspecialchars(ipsec_get_descr($ph1idx)));
123
			print("</td>\n");
124

    
125
			print("<td>\n");
126

    
127
			if (!empty($ikesa['local-id'])) {
128
				if ($ikesa['local-id'] == '%any') {
129
					print(gettext('Any identifier'));
130
				} else {
131
					print(htmlspecialchars($ikesa['local-id']));
132
				}
133
			} else {
134
				print(gettext("Unknown"));
135
			}
136

    
137
			print("</td>\n");
138
			print("<td>\n");
139

    
140
			if (!empty($ikesa['local-host'])) {
141
				print(htmlspecialchars($ikesa['local-host']));
142
			} else {
143
				print(gettext("Unknown"));
144
			}
145

    
146
			/*
147
			 * XXX: local-nat-t was defined by pfSense
148
			 * When strongswan team accepted the change, they changed it to
149
			 * nat-local. Keep both for a while and remove local-nat-t in
150
			 * the future
151
			 */
152
			if (isset($ikesa['local-nat-t']) || isset($ikesa['nat-local'])) {
153
				print(" NAT-T");
154
			}
155

    
156
			print("</td>\n");
157
			print("<td>\n");
158

    
159
			$identity = "";
160
			if (!empty($ikesa['remote-id'])) {
161
				if ($ikesa['remote-id'] == '%any') {
162
					$identity = htmlspecialchars(gettext('Any identifier'));
163
				} else {
164
					$identity = htmlspecialchars($ikesa['remote-id']);
165
				}
166
			}
167

    
168
			if (!empty($ikesa['remote-xauth-id'])) {
169
				echo htmlspecialchars($ikesa['remote-xauth-id']);
170
				echo "<br/>{$identity}";
171
			} elseif (!empty($ikesa['remote-eap-id'])) {
172
				echo htmlspecialchars($ikesa['remote-eap-id']);
173
				echo "<br/>{$identity}";
174
			} else {
175
				if (empty($identity)) {
176
					print(gettext("Unknown"));
177
				} else {
178
					print($identity);
179
				}
180
			}
181

    
182
			print("</td>\n");
183
			print("<td>\n");
184

    
185
			if (!empty($ikesa['remote-host'])) {
186
				print(htmlspecialchars($ikesa['remote-host']));
187
			} else {
188
				print(gettext("Unknown"));
189
			}
190
			/*
191
			 * XXX: remote-nat-t was defined by pfSense
192
			 * When strongswan team accepted the change, they changed it to
193
			 * nat-remote. Keep both for a while and remove remote-nat-t in
194
			 * the future
195
			 */
196
			if (isset($ikesa['remote-nat-t']) || isset($ikesa['nat-remote'])) {
197
				print(" NAT-T");
198
			}
199

    
200
			print("</td>\n");
201
			print("<td>\n");
202
			print("IKEv" . htmlspecialchars($ikesa['version']));
203
			print("<br/>\n");
204

    
205
			if ($ikesa['initiator'] == 'yes') {
206
				print("initiator");
207
			} else {
208
				print("responder");
209
			}
210

    
211
			print("</td>\n");
212
			print("<td>\n");
213
			print(htmlspecialchars($ikesa['reauth-time']) . gettext(" seconds (") . convert_seconds_to_dhms($ikesa['reauth-time']) . ")");
214
			print("</td>\n");
215
			print("<td>\n");
216
			print(htmlspecialchars($ikesa['encr-alg']));
217
			print("<br/>");
218
			print(htmlspecialchars($ikesa['integ-alg']));
219
			print("<br/>");
220
			print(htmlspecialchars($ikesa['prf-alg']));
221
			print("<br/>\n");
222
			print(htmlspecialchars($ikesa['dh-group']));
223
			print("</td>\n");
224
			print("<td>\n");
225

    
226
			if ($ikesa['state'] == 'ESTABLISHED') {
227
				print('<span class="text-success">');
228
			} else {
229
				print('<span>');
230
			}
231

    
232
			print(ucfirst(htmlspecialchars($ikesa['state'])));
233

    
234
			if ($ikesa['state'] == 'ESTABLISHED') {
235
				print("<br/>");
236
				printf(gettext('%1$s seconds (%2$s) ago'), htmlspecialchars($ikesa['established']), convert_seconds_to_dhms($ikesa['established']));
237
			}
238

    
239
			print("</span><br /><br />");
240

    
241
			if ($ikesa['state'] != 'ESTABLISHED') {
242

    
243
				print('<a href="status_ipsec.php?act=connect&amp;ikeid=' . $con_id . '&amp;ikesaid=' .$ikesa['uniqueid'] . '" class="btn btn-xs btn-success" data-toggle="tooltip" title="' . gettext("Connect VPN"). '" usepost>');
244
				print('<i class="fa fa-sign-in icon-embed-btn"></i>');
245
				print(gettext("Connect VPN"));
246
				print("</a>\n");
247

    
248
			} else {
249

    
250
				print('<a href="status_ipsec.php?act=ikedisconnect&amp;ikeid=' . $ikesa['con-id']. '&amp;ikesaid=' .$ikesa['uniqueid'] . '"class="btn btn-xs btn-danger" data-toggle="tooltip" title="' . gettext("Disconnect VPN") . '" usepost>');
251
				print('<i class="fa fa-trash icon-embed-btn"></i>');
252
				print(gettext("Disconnect"));
253
				print("</a><br />\n");
254

    
255
			}
256

    
257
			print("</td>\n");
258
			print("</tr>\n");
259
			print("<tr>\n");
260
			print("<td colspan = 10>\n");
261

    
262
			if (is_array($ikesa['child-sas']) && (count($ikesa['child-sas']) > 0)) {
263
				$child_key = "";
264
				foreach ($ikesa['child-sas'] as $key => $val){
265
					$child_key = $key;
266
					break;
267
				}
268

    
269
				print('<div>');
270
				print('<a type="button" id="btnchildsa-'. $child_key .  '" class="btn btn-sm btn-info">');
271
				print('<i class="fa fa-plus-circle icon-embed-btn"></i>');
272
				print(gettext('Show child SA entries'));
273
				print("</a>\n");
274
				print("	</div>\n");
275

    
276
				print('<table class="table table-hover table-condensed" id="childsa-'.$child_key . '" style="display:none">');
277
				print("<thead>\n");
278
				print('<tr class="bg-info">');
279
				print('<th>' . gettext("IPsec ID") . '</th>');
280
				print('<th>' . gettext("Local subnets") . '</th>');
281
				print('<th>' . gettext("Local SPI(s)") . '</th>');
282
				print('<th>' . gettext("Remote subnets") . '</th>');
283
				print('<th>' . gettext("Times") . '</th>');
284
				print('<th>' . gettext("Algo") . '</th>');
285
				print('<th>' . gettext("Stats") . '</th>');
286
				print('<th><!-- Buttons --></th>');
287
				print("</tr\n");
288
				print("</thead>\n");
289
				print("<tbody>\n");
290

    
291
				foreach ($ikesa['child-sas'] as $childid => $childsa) {
292
					print("<tr>");
293
					print("<td>\n");
294
					print($childsa['name'] . ":<br />");
295
					print("#" . $childsa['uniqueid']);
296
					print("</td>\n");
297
					print("<td>\n");
298

    
299
					if (is_array($childsa['local-ts'])) {
300
						foreach ($childsa['local-ts'] as $lnets) {
301
							print(htmlspecialchars(ipsec_fixup_network($lnets)) . "<br />");
302
						}
303
					} else {
304
						print(gettext("Unknown"));
305
					}
306

    
307
					print("</td>\n");
308
					print("<td>\n");
309

    
310
					if (isset($childsa['spi-in'])) {
311
						print(gettext("Local: ") . htmlspecialchars($childsa['spi-in']));
312
					}
313

    
314
					if (isset($childsa['spi-out'])) {
315
						print('<br/>' . gettext('Remote: ') . htmlspecialchars($childsa['spi-out']));
316
					}
317

    
318
					print("</td>\n");
319
					print("<td>\n");
320

    
321
					if (is_array($childsa['remote-ts'])) {
322
						foreach ($childsa['remote-ts'] as $rnets) {
323
							print(htmlspecialchars(ipsec_fixup_network($rnets)) . '<br />');
324
						}
325
					} else {
326
						print(gettext("Unknown"));
327
					}
328

    
329
					print("</td>\n");
330
					print("<td>\n");
331

    
332
					printf(gettext('Rekey: %1$s seconds (%2$s)'), htmlspecialchars($childsa['rekey-time']), convert_seconds_to_dhms($childsa['rekey-time']));
333
					print('<br/>');
334
					printf(gettext('Life: %1$s seconds (%2$s)'), htmlspecialchars($childsa['life-time']), convert_seconds_to_dhms($childsa['life-time']));
335
					print('<br/>');
336
					printf(gettext('Install: %1$s seconds (%2$s)'), htmlspecialchars($childsa['install-time']), convert_seconds_to_dhms($childsa['install-time']));
337

    
338

    
339
					print("</td>\n");
340
					print("<td>\n");
341

    
342
					print(htmlspecialchars($childsa['encr-alg']) . '<br/>');
343
					print(htmlspecialchars($childsa['integ-alg']) . '<br/>');
344

    
345
					if (!empty($childsa['prf-alg'])) {
346
						print(htmlspecialchars($childsa['prf-alg']) . '<br/>');
347
					}
348

    
349
					if (!empty($childsa['dh-group'])) {
350
						print(htmlspecialchars($childsa['dh-group']) . '<br/>');
351
					}
352

    
353
					if (!empty($childsa['esn'])) {
354
						print(htmlspecialchars($childsa['esn']) . '<br/>');
355
					}
356

    
357
					print(gettext("IPComp: "));
358
					if (!empty($childsa['cpi-in']) || !empty($childsa['cpi-out'])) {
359
						print(htmlspecialchars($childsa['cpi-in']) . " " . htmlspecialchars($childsa['cpi-out']));
360
					} else {
361
						print(gettext('none'));
362
					}
363

    
364
					print("</td>\n");
365
					print("<td>\n");
366

    
367
					print(gettext("Bytes-In: ") . htmlspecialchars(number_format($childsa['bytes-in'])) . ' (' . htmlspecialchars(format_bytes($childsa['bytes-in'])) . ')<br/>');
368
					print(gettext("Packets-In: ") . htmlspecialchars(number_format($childsa['packets-in'])) . '<br/>');
369
					print(gettext("Bytes-Out: ") . htmlspecialchars(number_format($childsa['bytes-out'])) . ' (' . htmlspecialchars(format_bytes($childsa['bytes-out'])) . ')<br/>');
370
					print(gettext("Packets-Out: ") . htmlspecialchars(number_format($childsa['packets-out'])) . '<br/>');
371

    
372
					print("</td>\n");
373
					print("<td>\n");
374
					print('<a href="status_ipsec.php?act=childdisconnect&amp;ikeid=' . $childsa['name'] . '&amp;ikesaid=' . $childsa['uniqueid'] . '" class="btn btn-xs btn-warning" data-toggle="tooltip" title="' . gettext('Disconnect Child SA') . '" usepost>');
375
					print('<i class="fa fa-trash icon-embed-btn"></i>');
376
					print(gettext("Disconnect"));
377
					print("</a>\n");
378
					print("</td>\n");
379
					print("</tr>\n");
380

    
381
				}
382

    
383
				print("</tbody>\n");
384
				print("	</table>\n");
385
				print("</td>\n");
386
				print("</tr>\n");
387

    
388
			}
389

    
390
			unset($con_id);
391
		}
392

    
393
	}
394

    
395
	$rgmap = array();
396
	if (is_array($a_phase1)) {
397
		foreach ($a_phase1 as $ph1ent) {
398
			if (isset($ph1ent['disabled'])) {
399
				continue;
400
			}
401

    
402
			$rgmap[$ph1ent['remote-gateway']] = $ph1ent['remote-gateway'];
403

    
404
			if ($ipsecconnected[$ph1ent['ikeid']]) {
405
				continue;
406
			}
407

    
408
			print("<tr>\n");
409
			print("<td></td>\n");
410
			print("<td>\n");
411
			print(htmlspecialchars($ph1ent['descr']));
412
			print("</td>\n");
413
			print("<td>\n");
414
			list ($myid_type, $myid_data) = ipsec_find_id($ph1ent, "local");
415

    
416
			if (empty($myid_data)) {
417
				print(gettext("Unknown"));
418
			} else {
419
				print(htmlspecialchars($myid_data));
420
			}
421

    
422
			print("</td>\n");
423
			print("<td>\n");
424
			$ph1src = ipsec_get_phase1_src($ph1ent);
425

    
426
			if (empty($ph1src)) {
427
				print(gettext("Unknown"));
428
			} else {
429
				print(htmlspecialchars($ph1src));
430
			}
431

    
432
			print("</td>\n");
433
			print("<td>\n");
434

    
435
			list ($peerid_type, $peerid_data) = ipsec_find_id($ph1ent, "peer", $rgmap);
436

    
437
			if (empty($peerid_data)) {
438
				print(gettext("Unknown"));
439
			} else {
440
				print(htmlspecialchars($peerid_data));
441
			}
442
			print("			</td>\n");
443
			print("			<td>\n");
444
			$ph1src = ipsec_get_phase1_dst($ph1ent);
445

    
446
			if (empty($ph1src)) {
447
				print(gettext("Unknown"));
448
			} else {
449
				print(htmlspecialchars($ph1src));
450
			}
451

    
452
			print("</td>\n");
453
			print("<td>\n");
454
			print("</td>\n");
455
			print("<td>\n");
456
			print("</td>\n");
457
			print("<td>\n");
458
			print("</td>\n");
459

    
460
			if (isset($ph1ent['mobile'])) {
461

    
462
				print("<td>\n");
463
				print(gettext("Awaiting connections"));
464
				print("</td>\n");
465
				print("<td>\n");
466
				print("</td>\n");
467
				print("</td>\n");
468
			} else {
469

    
470
				print("<td>\n");
471
				print(gettext("Disconnected"));
472
				print("</td>\n");
473
				print("<td>\n");
474
				print('<a href="status_ipsec.php?act=connect&amp;ikeid=' . $ph1ent['ikeid'] . '" class="btn btn-xs btn-success" usepost>');
475
				print('<i class="fa fa-sign-in icon-embed-btn"></i>');
476
				print(gettext("Connect VPN"));
477
				print("</a>\n");
478
				print("</td>\n");
479

    
480
			}
481
			print("</tr>\n");
482
		}
483
	}
484

    
485
	unset($ipsecconnected, $phase1, $rgmap);
486
}
487

    
488
$pgtitle = array(gettext("Status"), gettext("IPsec"), gettext("Overview"));
489
$pglinks = array("", "@self", "@self");
490
$shortcut_section = "ipsec";
491

    
492
include("head.inc");
493

    
494
$tab_array = array();
495
$tab_array[] = array(gettext("Overview"), true, "status_ipsec.php");
496
$tab_array[] = array(gettext("Leases"), false, "status_ipsec_leases.php");
497
$tab_array[] = array(gettext("SADs"), false, "status_ipsec_sad.php");
498
$tab_array[] = array(gettext("SPDs"), false, "status_ipsec_spd.php");
499
display_top_tabs($tab_array);
500
?>
501

    
502
<div class="panel panel-default">
503
	<div class="panel-heading"><h2 class="panel-title"><?=gettext("IPsec Status");?></h2></div>
504
	<div class="panel-body table-responsive">
505
		<table class="table table-striped table-condensed table-hover sortable-theme-bootstrap" data-sortable>
506
			<thead>
507
				<tr>
508
					<th><?=gettext("IPsec ID")?></th>
509
					<th><?=gettext("Description")?></th>
510
					<th><?=gettext("Local ID")?></th>
511
					<th><?=gettext("Local IP")?></th>
512
					<th><?=gettext("Remote ID")?></th>
513
					<th><?=gettext("Remote IP")?></th>
514
					<th><?=gettext("Role")?></th>
515
					<th><?=gettext("Reauth")?></th>
516
					<th><?=gettext("Algo")?></th>
517
					<th><?=gettext("Status")?></th>
518
					<th></th>
519
				</tr>
520
			</thead>
521
			<tbody id="ipsec-body">
522
				<tr>
523
					<td colspan="10">
524
						<?=print_info_box(gettext("Collecting IPsec status information."), "warning", "")?>
525
					</td>
526
				</tr>
527
			</tbody>
528
		</table>
529
	</div>
530
</div>
531

    
532
<?php
533
unset($status);
534

    
535
if (ipsec_enabled()) {
536
	print('<div class="infoblock">');
537
} else {
538
	print('<div class="infoblock blockopen">');
539
}
540

    
541
print_info_box(sprintf(gettext('IPsec can be configured %1$shere%2$s.'), '<a href="vpn_ipsec.php">', '</a>'), 'info', false);
542
?>
543
</div>
544

    
545
<script type="text/javascript">
546
//<![CDATA[
547

    
548
events.push(function() {
549
	ajax_lock = false;		// Mutex so we don't make a call until the previous call is finished
550
	sa_open = new Array();	// Array in which to keep the child SA show/hide state
551
	tryCount = 3;
552
	// Fetch the tbody contents from the server
553
	function update_table() {
554
		if (ajax_lock) {
555
			return;
556
		}
557

    
558
		ajax_lock = true;
559

    
560
		ajaxRequest = $.ajax(
561
			{
562
				url: "/status_ipsec.php",
563
				type: "post",
564
				data: {
565
					ajax: 	"ajax"
566
				},
567
				error: function(xhr, textStatus, errorThrown){
568
					//alert("error.... retrying");
569
					if (tryCount > 0){
570
						tryCount --;
571
						ajax_lock = false;
572
						update_table();
573
					}
574
					return;
575
				}
576
			}
577
		);
578

    
579
		// Deal with the results of the above ajax call
580
		ajaxRequest.done(function (response, textStatus, jqXHR) {
581
			if(textStatus === "success"){
582
				tryCount =3;
583
			}
584
			if (!response) {
585
				response = '<tr><td colspan="10"><?=print_info_box(addslashes(gettext("No IPsec status information available.")), "warning", "")?></td></tr>';
586
			}
587

    
588
			$('#ipsec-body').html(response);
589
			ajax_lock = false;
590

    
591
			// Update "Show child SA" handlers
592
			$('[id^=btnchildsa-]').click(function () {
593
				show_childsa($(this).prop("id").replace( 'btnchildsa-', ''));
594
			});
595

    
596
			// Check the sa_open array for child SAs that have been opened
597
			$('[id^=childsa-]').each(function(idx) {
598
				sa_idx = $(this).prop("id").replace( 'childsa-', '');
599

    
600
				if (sa_open[sa_idx]) {
601
					show_childsa(sa_idx);
602
				}
603
			});
604

    
605
			// re-attached the GET to POST handler
606
			interceptGET();
607

    
608
			// and do it again
609
			setTimeout(update_table, 5000);
610
		});
611
	}
612

    
613
	function show_childsa(said) {
614
		sa_open[said] = true;
615
		$('#childsa-' + said).show();
616
		$('#btnchildsa-con' + said).hide();
617
	}
618

    
619
	// Populate the tbody on page load
620
	update_table();
621
});
622
//]]>
623
</script>
624

    
625
<?php
626
include("foot.inc"); ?>
(165-165/227)