Projet

Général

Profil

Télécharger (17,7 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / usr / local / www / status_interfaces.php @ ce3ef2e7

1
<?php
2
/* $Id$ */
3
/*
4
	status_interfaces.php
5
	part of pfSense
6
	Copyright (C) 2009 Scott Ullrich <sullrich@gmail.com>.
7
	All rights reserved.
8

    
9
	originally part of m0n0wall (http://m0n0.ch/wall)
10
	Copyright (C) 2003-2005 Manuel Kasper <mk@neon1.net>.
11
	All rights reserved.
12

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

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

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

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

    
38
##|+PRIV
39
##|*IDENT=page-status-interfaces
40
##|*NAME=Status: Interfaces page
41
##|*DESCR=Allow access to the 'Status: Interfaces' page.
42
##|*MATCH=status_interfaces.php*
43
##|-PRIV
44

    
45
require_once("guiconfig.inc");
46
require_once("shaper.inc");
47
require_once("filter.inc");
48

    
49
if ($_POST['if']) {
50
	$interface = $_POST['if'];
51
	if ($_POST['action'] == "disconnect" || $_POST['action'] == "release") {
52
		interface_bring_down($interface);
53
	} else if ($_POST['action'] == "connect" || $_POST['action'] == "renew") {
54
		interface_configure($interface); 
55
	}
56
	header("Location: status_interfaces.php");
57
	exit;
58
}
59

    
60
$pgtitle = array(gettext("Status"),gettext("Interfaces"));
61
$shortcut_section = "interfaces";
62
include("head.inc");
63

    
64
?>
65

    
66
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
67
<?php include("fbegin.inc"); ?>
68
<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="status interfaces">
69
<?php 
70
	$i = 0; 
71
	$ifdescrs = get_configured_interface_with_descr(false, true);
72
	foreach ($ifdescrs as $ifdescr => $ifname):
73
	$ifinfo = get_interface_info($ifdescr);
74
	// Load MAC-Manufacturer table
75
	$mac_man = load_mac_manufacturer_table();
76
?>
77
<?php if ($i): ?>
78
	<tr>
79
		<td colspan="8" class="list" height="12"></td>
80
	</tr>
81
<?php endif; ?>
82
	<tr>
83
		<td colspan="2" class="listtopic">
84
			<?=htmlspecialchars($ifname);?> <?=gettext("interface"); ?> (<?=htmlspecialchars($ifinfo['hwif']);?>)
85
		</td>
86
	</tr>
87
	<tr>
88
		<td width="22%" class="vncellt"><?=gettext("Status"); ?></td>
89
		<td width="78%" class="listr">
90
			<?=htmlspecialchars($ifinfo['status']);?>
91
		</td>
92
	</tr>
93
	<?php if ($ifinfo['dhcplink']): ?>
94
	<tr>
95
		<td width="22%" class="vncellt">
96
			DHCP
97
		</td>
98
		<td width="78%" class="listr">
99
			<form name="dhcplink_form" action="status_interfaces.php" method="post">
100
				<?=htmlspecialchars($ifinfo['dhcplink']);?>&nbsp;&nbsp;
101
				<?php if ($ifinfo['dhcplink'] == "up"): ?>
102
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
103
					<input type="hidden" name="action" value="release" />
104
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Release"); ?>" />
105
				<?php else: ?>
106
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
107
					<input type="hidden" name="action" value="renew" />
108
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Renew"); ?>" />
109
				<?php endif; ?>
110
			</form>
111
		</td>
112
	</tr>
113
	<?php endif;
114
	if ($ifinfo['dhcp6link']): ?>
115
	<tr>
116
		<td width="22%" class="vncellt">
117
			DHCP6
118
		</td>
119
		<td width="78%" class="listr">
120
			<form name="dhcp6link_form" action="status_interfaces.php" method="post">
121
				<?=htmlspecialchars($ifinfo['dhcp6link']);?>&nbsp;&nbsp;
122
				<?php if ($ifinfo['dhcp6link'] == "up"): ?>
123
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
124
					<input type="hidden" name="action" value="release" />
125
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Release"); ?>" />
126
				<?php else: ?>
127
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
128
					<input type="hidden" name="action" value="renew" />
129
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Renew"); ?>" />
130
				<?php endif; ?>
131
			</form>
132
		</td>
133
	</tr>
134
	<?php endif; if ($ifinfo['pppoelink']): ?>
135
	<tr>
136
		<td width="22%" class="vncellt"><?=gettext("PPPoE"); ?></td>
137
		<td width="78%" class="listr">
138
			<form name="pppoelink_form" action="status_interfaces.php" method="post">
139
				<?=htmlspecialchars($ifinfo['pppoelink']);?>&nbsp;&nbsp;
140
				<?php if ($ifinfo['pppoelink'] == "up"): ?>
141
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
142
					<input type="hidden" name="action" value="disconnect" />
143
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Disconnect"); ?>" />
144
				<?php else: ?>
145
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
146
					<input type="hidden" name="action" value="connect" />
147
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Connect"); ?>" />
148
				<?php endif; ?>
149
			</form>
150
		</td>
151
	</tr>
152
	<?php  endif; if ($ifinfo['pptplink']): ?>
153
	<tr>
154
		<td width="22%" class="vncellt"><?=gettext("PPTP"); ?></td>
155
		<td width="78%" class="listr">
156
			<form name="pptplink_form" action="status_interfaces.php" method="post">
157
				<?=htmlspecialchars($ifinfo['pptplink']);?>&nbsp;&nbsp;
158
				<?php if ($ifinfo['pptplink'] == "up"): ?>
159
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
160
					<input type="hidden" name="action" value="disconnect" />
161
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Disconnect"); ?>" />
162
				<?php else: ?>
163
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
164
					<input type="hidden" name="action" value="connect" />
165
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Connect"); ?>" />
166
				<?php endif; ?>
167
			</form>
168
		</td>
169
	</tr>
170
	<?php  endif; if ($ifinfo['l2tplink']): ?>
171
	<tr>
172
		<td width="22%" class="vncellt"><?=gettext("L2TP"); ?></td>
173
		<td width="78%" class="listr">
174
			<form name="l2tplink_form" action="status_interfaces.php" method="post">
175
				<?=htmlspecialchars($ifinfo['l2tplink']);?>&nbsp;&nbsp;
176
				<?php if ($ifinfo['l2tplink'] == "up"): ?>
177
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
178
					<input type="hidden" name="action" value="disconnect" />
179
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Disconnect"); ?>" />
180
				<?php else: ?>
181
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
182
					<input type="hidden" name="action" value="connect" />
183
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Connect"); ?>" />
184
				<?php endif; ?>
185
			</form>
186
		</td>
187
	</tr>
188
	<?php  endif; if ($ifinfo['ppplink']): ?>
189
	<tr>
190
		<td width="22%" class="vncellt"><?=gettext("PPP"); ?></td>
191
		<td width="78%" class="listr">
192
			<form name="ppplink_form" action="status_interfaces.php" method="post">
193
				<?=htmlspecialchars($ifinfo['pppinfo']);?>
194
				<?php if ($ifinfo['ppplink'] == "up"): ?>
195
					<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
196
					<input type="hidden" name="action" value="disconnect" />
197
					<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Disconnect"); ?>" />
198
				<?php else: ?>
199
					<?php if (!$ifinfo['nodevice']): ?>
200
						<input type="hidden" name="if" value="<?php echo $ifdescr; ?>" />
201
						<input type="hidden" name="action" value="connect" />
202
						<input type="submit" name="submit" class="formbtn" value="<?php echo gettext("Connect"); ?>" />
203
					<?php endif; ?>
204
				<?php endif; ?>
205
			</form>
206
		</td>
207
	</tr>
208
	<?php  endif; if ($ifinfo['ppp_uptime'] || $ifinfo['ppp_uptime_accumulated']): ?>
209
	<tr>
210
		<td width="22%" class="vncellt"><?=gettext("Uptime ");?><?php if ($ifinfo['ppp_uptime_accumulated']) echo "(historical)"; ?></td>
211
		<td width="78%" class="listr">
212
			<?=htmlspecialchars($ifinfo['ppp_uptime']);?> <?=htmlspecialchars($ifinfo['ppp_uptime_accumulated']);?>
213
		</td>
214
        </tr>
215
	<?php  endif; if ($ifinfo['cell_rssi']): ?>
216
	<tr>
217
		<td width="22%" class="vncellt"><?=gettext("Cell Signal (RSSI)");?></td>
218
		<td width="78%" class="listr">
219
			<?=htmlspecialchars($ifinfo['cell_rssi']);?>
220
		</td>
221
        </tr>
222
	<?php  endif; if ($ifinfo['cell_mode']): ?>
223
	<tr>
224
		<td width="22%" class="vncellt"><?=gettext("Cell Mode");?></td>
225
		<td width="78%" class="listr">
226
			<?=htmlspecialchars($ifinfo['cell_mode']);?>
227
		</td>
228
        </tr>
229
	<?php  endif; if ($ifinfo['cell_simstate']): ?>
230
	<tr>
231
		<td width="22%" class="vncellt"><?=gettext("Cell SIM State");?></td>
232
		<td width="78%" class="listr">
233
			<?=htmlspecialchars($ifinfo['cell_simstate']);?>
234
		</td>
235
        </tr>
236
	<?php  endif; if ($ifinfo['cell_service']): ?>
237
	<tr>
238
		<td width="22%" class="vncellt"><?=gettext("Cell Service");?></td>
239
		<td width="78%" class="listr">
240
			<?=htmlspecialchars($ifinfo['cell_service']);?>
241
		</td>
242
        </tr>
243
	<?php  endif; if ($ifinfo['cell_bwupstream']): ?>
244
	<tr>
245
		<td width="22%" class="vncellt"><?=gettext("Cell Upstream");?></td>
246
		<td width="78%" class="listr">
247
			<?=htmlspecialchars($ifinfo['cell_bwupstream']);?> kbit/s
248
		</td>
249
        </tr>
250
	<?php  endif; if ($ifinfo['cell_bwdownstream']): ?>
251
	<tr>
252
		<td width="22%" class="vncellt"><?=gettext("Cell Downstream");?></td>
253
		<td width="78%" class="listr">
254
			<?=htmlspecialchars($ifinfo['cell_bwdownstream']);?> kbit/s
255
		</td>
256
        </tr>
257
	<?php  endif; if ($ifinfo['cell_upstream']): ?>
258
	<tr>
259
		<td width="22%" class="vncellt"><?=gettext("Cell Current Up");?></td>
260
		<td width="78%" class="listr">
261
			<?=htmlspecialchars($ifinfo['cell_upstream']);?> kbit/s
262
		</td>
263
        </tr>
264
	<?php  endif; if ($ifinfo['cell_downstream']): ?>
265
	<tr>
266
		<td width="22%" class="vncellt"><?=gettext("Cell Current Down");?></td>
267
		<td width="78%" class="listr">
268
			<?=htmlspecialchars($ifinfo['cell_downstream']);?> kbit/s
269
		</td>
270
        </tr>
271
	<?php  endif; if ($ifinfo['macaddr']): ?>
272
	<tr>
273
		<td width="22%" class="vncellt"><?=gettext("MAC address");?></td>
274
		<td width="78%" class="listr">
275
			<?php 
276
			$mac=$ifinfo['macaddr']; 
277
			$mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]);
278
			if(isset($mac_man[$mac_hi])){ print "<span>" . $mac . " - " . htmlspecialchars($mac_man[$mac_hi]); print "</span>"; }
279
			      else {print htmlspecialchars($mac);}
280
			?>
281
		</td>
282
	</tr>
283
	<?php endif; if ($ifinfo['status'] != "down"): ?>
284
	<?php if ($ifinfo['dhcplink'] != "down" && $ifinfo['pppoelink'] != "down" && $ifinfo['pptplink'] != "down"): ?>
285
	<?php if ($ifinfo['ipaddr']): ?>
286
	<tr>
287
		<td width="22%" class="vncellt"><?=gettext("IPv4 address");?></td>
288
		<td width="78%" class="listr">
289
			<?=htmlspecialchars($ifinfo['ipaddr']);?>
290
			&nbsp; 
291
		</td>
292
	</tr>
293
	<?php endif; ?><?php if ($ifinfo['subnet']): ?>
294
	<tr>
295
		<td width="22%" class="vncellt"><?=gettext("Subnet mask IPv4");?></td>
296
		<td width="78%" class="listr">
297
			<?=htmlspecialchars($ifinfo['subnet']);?>
298
		</td>
299
	</tr>
300
	<?php endif; ?><?php if ($ifinfo['gateway']): ?>
301
	<tr>
302
		<td width="22%" class="vncellt"><?=gettext("Gateway IPv4");?></td>
303
		<td width="78%" class="listr">
304
			<?=htmlspecialchars($config['interfaces'][$ifdescr]['gateway']);?>
305
			<?=htmlspecialchars($ifinfo['gateway']);?>
306
		</td>
307
	</tr>
308
	<?php endif; ?><?php if ($ifinfo['linklocal']): ?>
309
	<tr>
310
		<td width="22%" class="vncellt"><?=gettext("IPv6 Link Local");?></td>
311
		<td width="78%" class="listr">
312
			<?=htmlspecialchars($ifinfo['linklocal']);?>
313
			&nbsp; 
314
		</td>
315
	</tr>
316
	<?php endif; ?><?php if ($ifinfo['ipaddrv6']): ?>
317
	<tr>
318
		<td width="22%" class="vncellt"><?=gettext("IPv6 address");?></td>
319
		<td width="78%" class="listr">
320
			<?=htmlspecialchars($ifinfo['ipaddrv6']);?>
321
			&nbsp; 
322
		</td>
323
	</tr>
324
	<?php endif; ?><?php if ($ifinfo['subnetv6']): ?>
325
	<tr>
326
		<td width="22%" class="vncellt"><?=gettext("Subnet mask IPv6");?></td>
327
		<td width="78%" class="listr">
328
			<?=htmlspecialchars($ifinfo['subnetv6']);?>
329
		</td>
330
	</tr>
331
	<?php endif; ?><?php if ($ifinfo['gatewayv6']): ?>
332
	<tr>
333
		<td width="22%" class="vncellt"><?=gettext("Gateway IPv6");?></td>
334
		<td width="78%" class="listr">
335
			<?=htmlspecialchars($config['interfaces'][$ifdescr]['gatewayv6']);?>
336
			<?=htmlspecialchars($ifinfo['gatewayv6']);?>
337
		</td>
338
	</tr>
339
	<?php endif; if ($ifdescr == "wan" && file_exists("{$g['varetc_path']}/resolv.conf")): ?>
340
	<tr>
341
	<td width="22%" class="vncellt"><?=gettext("ISP DNS servers");?></td>
342
	<td width="78%" class="listr">
343
		<?php
344
			$dns_servers = get_dns_servers();
345
			foreach($dns_servers as $dns) {
346
				echo "{$dns}<br/>";
347
			}
348
		?>
349
		</td>
350
	</tr>
351
	<?php endif; endif; if ($ifinfo['media']): ?>
352
	<tr>
353
		<td width="22%" class="vncellt"><?=gettext("Media");?></td>
354
		<td width="78%" class="listr">
355
			<?=htmlspecialchars($ifinfo['media']);?>
356
		</td>
357
	</tr>
358
	<?php endif; if ($ifinfo['laggproto']): ?>
359
	<tr>
360
		<td width="22%" class="vncellt"><?=gettext("LAGG Protocol");?></td>
361
		<td width="78%" class="listr">
362
			<?=htmlspecialchars($ifinfo['laggproto']);?>
363
		</td>
364
	</tr>
365
	<?php endif; if (is_array($ifinfo['laggport'])): ?>
366
	<tr>
367
		<td width="22%" class="vncellt"><?=gettext("LAGG Ports");?></td>
368
		<td width="78%" class="listr">
369
			<?php 	foreach ($ifinfo['laggport'] as $laggport) { ?>
370
					<?php echo htmlspecialchars($laggport); ?><br/>
371
			<?php	} ?>
372
		</td>
373
	</tr>
374
<?php endif; ?><?php if ($ifinfo['channel']): ?>
375
	<tr>
376
		<td width="22%" class="vncellt"><?=gettext("Channel");?></td>
377
		<td width="78%" class="listr">
378
			<?=htmlspecialchars($ifinfo['channel']);?>
379
		</td>
380
	</tr>
381
<?php endif; ?><?php if ($ifinfo['ssid']): ?>
382
	<tr>
383
		<td width="22%" class="vncellt"><?=gettext("SSID");?></td>
384
		<td width="78%" class="listr">
385
			<?=htmlspecialchars($ifinfo['ssid']);?>
386
		</td>
387
	</tr>
388
<?php endif; ?><?php if ($ifinfo['bssid']): ?>
389
	<tr>
390
		<td width="22%" class="vncellt"><?=gettext("BSSID");?></td>
391
		<td width="78%" class="listr">
392
			<?=htmlspecialchars($ifinfo['bssid']);?>
393
		</td>
394
	</tr>
395
<?php endif; ?><?php if ($ifinfo['rate']): ?>
396
	<tr>
397
		<td width="22%" class="vncellt"><?=gettext("Rate");?></td>
398
		<td width="78%" class="listr">
399
			<?=htmlspecialchars($ifinfo['rate']);?>
400
		</td>
401
	</tr>
402
<?php endif; ?><?php if ($ifinfo['rssi']): ?>
403
	<tr>
404
		<td width="22%" class="vncellt"><?=gettext("RSSI");?></td>
405
		<td width="78%" class="listr">
406
			<?=htmlspecialchars($ifinfo['rssi']);?>
407
		</td>
408
	</tr>
409
<?php endif; ?>
410
	<tr>
411
		<td width="22%" class="vncellt"><?=gettext("In/out packets");?></td>
412
		<td width="78%" class="listr">
413
		<?php
414
			echo htmlspecialchars($ifinfo['inpkts'] . "/" . $ifinfo['outpkts'] . " (");
415
			echo htmlspecialchars(format_bytes($ifinfo['inbytes']) . "/" . format_bytes($ifinfo['outbytes']) . ")");
416
		?>
417
		</td>
418
	</tr>
419
	<tr>
420
		<td width="22%" class="vncellt"><?=gettext("In/out packets (pass)");?></td>
421
		<td width="78%" class="listr">
422
			<?php
423
				echo htmlspecialchars($ifinfo['inpktspass'] . "/" . $ifinfo['outpktspass'] . " (");
424
				echo htmlspecialchars(format_bytes($ifinfo['inbytespass']) . "/" . format_bytes($ifinfo['outbytespass']) . ")");
425
			?>
426
		</td>
427
	</tr>
428
	<tr>
429
		<td width="22%" class="vncellt"><?=gettext("In/out packets (block)");?></td>
430
		<td width="78%" class="listr">
431
			<?php
432
				echo htmlspecialchars($ifinfo['inpktsblock'] . "/" . $ifinfo['outpktsblock'] . " (");
433
				echo htmlspecialchars(format_bytes($ifinfo['inbytesblock']) . "/" . format_bytes($ifinfo['outbytesblock']) . ")");
434
			?>
435
		</td>
436
	</tr>
437
<?php if (isset($ifinfo['inerrs'])): ?>
438
	<tr>
439
		<td width="22%" class="vncellt"><?=gettext("In/out errors");?></td>
440
		<td width="78%" class="listr">
441
			<?=htmlspecialchars($ifinfo['inerrs'] . "/" . $ifinfo['outerrs']);?>
442
		</td>
443
	</tr>
444
<?php endif; ?>
445
<?php if (isset($ifinfo['collisions'])): ?>
446
	<tr>
447
		<td width="22%" class="vncellt"><?=gettext("Collisions");?></td>
448
		<td width="78%" class="listr">
449
			<?=htmlspecialchars($ifinfo['collisions']);?>
450
		</td>
451
	</tr>
452
<?php endif; ?>
453
<?php endif; ?>
454
<?php if ($ifinfo['bridge']): ?>
455
	<tr>
456
		<td width="22%" class="vncellt"><?php printf(gettext("Bridge (%s)"),$ifinfo['bridgeint']);?></td>
457
		<td width="78%" class="listr">
458
			<?=$ifinfo['bridge'];?>
459
		</td>
460
	</tr>
461
<?php endif; ?>
462
<?php if(file_exists("/usr/bin/vmstat")): ?>
463
<?php
464
	$real_interface = "";
465
	$interrupt_total = "";
466
	$interrupt_sec = "";
467
	$real_interface = $ifinfo['hwif'];
468
	$interrupt_total = `vmstat -i | grep $real_interface | awk '{ print $3 }'`;
469
	$interrupt_sec = `vmstat -i | grep $real_interface | awk '{ print $4 }'`;
470
	if(strstr($interrupt_total, "hci")) {
471
		$interrupt_total = `vmstat -i | grep $real_interface | awk '{ print $4 }'`;
472
		$interrupt_sec = `vmstat -i | grep $real_interface | awk '{ print $5 }'`;          	
473
	}
474
	unset($interrupt_total); // XXX: FIX ME!  Need a regex and parse correct data 100% of the time.
475
?>
476
<?php if($interrupt_total): ?>
477
	<tr>
478
		<td width="22%" class="vncellt"><?=gettext("Interrupts/Second");?></td>
479
		<td width="78%" class="listr">
480
			<?php
481
				echo $interrupt_total . " " . gettext("total");
482
				echo "<br/>";
483
				echo $interrupt_sec . " " . gettext("rate");
484
			?>
485
		</td>
486
	</tr>
487
<?php endif; ?>
488
<?php endif; ?>
489
<?php $i++; endforeach; ?>
490
</table>
491

    
492
<br/>
493

    
494
<?php printf(gettext("Using dial-on-demand will bring the connection up again if any packet ".
495
"triggers it. To substantiate this point: disconnecting manually ".
496
"will %snot%s prevent dial-on-demand from making connections ".
497
"to the outside! Don't use dial-on-demand if you want to make sure that the line ".
498
"is kept disconnected."),'<strong>','</strong>')?>
499

    
500
<?php include("fend.inc"); ?>
501
</body>
502
</html>
(183-183/246)