Project

General

Profile

Download (22.9 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/* $Id$ */
3
/*
4
	system_advanced_misc.php
5
	part of pfSense
6
	Copyright (C) 2005-2007 Scott Ullrich
7

    
8
	Copyright (C) 2008 Shrew Soft Inc
9

    
10
	originally part of m0n0wall (http://m0n0.ch/wall)
11
	Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
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_MODULE:	system
37
*/
38

    
39
##|+PRIV
40
##|*IDENT=page-system-advanced-misc
41
##|*NAME=System: Advanced: Miscellaneous page
42
##|*DESCR=Allow access to the 'System: Advanced: Miscellaneous' page.
43
##|*MATCH=system_advanced.php*
44
##|-PRIV
45

    
46
require("guiconfig.inc");
47
require_once("functions.inc");
48
require_once("filter.inc");
49
require_once("shaper.inc");
50
require_once("ipsec.inc");
51
require_once("vpn.inc");
52
require_once("vslb.inc");
53

    
54
$pconfig['proxyurl'] = $config['system']['proxyurl'];
55
$pconfig['proxyport'] = $config['system']['proxyport'];
56
$pconfig['proxyuser'] = $config['system']['proxyuser'];
57
$pconfig['proxypass'] = $config['system']['proxypass'];
58
$pconfig['harddiskstandby'] = $config['system']['harddiskstandby'];
59
$pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']);
60
$pconfig['srctrack'] = $config['system']['srctrack'];
61
$pconfig['gw_switch_default'] = isset($config['system']['gw_switch_default']);
62
$pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']);
63
$pconfig['racoondebug_enable'] = isset($config['ipsec']['racoondebug']);
64
$pconfig['maxmss_enable'] = isset($config['system']['maxmss_enable']);
65
$pconfig['maxmss'] = $config['system']['maxmss'];
66
$pconfig['powerd_enable'] = isset($config['system']['powerd_enable']);
67
$pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']);
68
$pconfig['schedule_states'] = isset($config['system']['schedule_states']);
69
$pconfig['kill_states'] = isset($config['system']['kill_states']);
70

    
71
if (!empty($config['system']['powerd_mode']))
72
	$pconfig['powerd_mode'] = $config['system']['powerd_mode'];
73
else
74
	$pconfig['powerd_mode'] = "hadp";
75

    
76
if ($_POST) {
77

    
78
    unset($input_errors);
79
    $pconfig = $_POST;
80

    
81
	ob_flush();
82
	flush();
83

    
84
	if (!$input_errors) {
85

    
86
		if($_POST['harddiskstandby'] <> "") {
87
			$config['system']['harddiskstandby'] = $_POST['harddiskstandby'];
88
			system_set_harddisk_standby();
89
		} else
90
			unset($config['system']['harddiskstandby']);
91

    
92
		if($_POST['proxyurl'] <> "")
93
			$config['system']['proxyurl'] = $_POST['proxyurl'];
94
		else
95
			unset($config['system']['proxyurl']);
96

    
97
		if($_POST['proxyport'] <> "")
98
			$config['system']['proxyport'] = $_POST['proxyport'];
99
		else
100
			unset($config['system']['proxyport']);
101

    
102
		if($_POST['proxyuser'] <> "")
103
			$config['system']['proxyuser'] = $_POST['proxyuser'];
104
		else
105
			unset($config['system']['proxyuser']);
106

    
107
		if($_POST['proxypass'] <> "")
108
			$config['system']['proxypass'] = $_POST['proxypass'];
109
		else
110
			unset($config['system']['proxypass']);
111

    
112
		$need_relayd_restart = false;
113
		if($_POST['lb_use_sticky'] == "yes") {
114
			if (!isset($config['system']['lb_use_sticky'])) {
115
				$config['system']['lb_use_sticky'] = true;
116
				$config['system']['srctrack'] = $_POST['srctrack'];
117
				$need_relayd_restart = true;
118
			}
119
		} else {
120
			if (isset($config['system']['lb_use_sticky'])) {
121
				unset($config['system']['lb_use_sticky']);
122
				$need_relayd_restart = true;
123
			}
124
		}
125

    
126
		if($_POST['gw_switch_default'] == "yes")
127
			$config['system']['gw_switch_default'] = true;
128
		else
129
			unset($config['system']['gw_switch_default']);
130

    
131
		if($_POST['preferoldsa_enable'] == "yes")
132
			$config['ipsec']['preferoldsa'] = true;
133
		elseif (isset($config['ipsec']['preferoldsa']))
134
			unset($config['ipsec']['preferoldsa']);
135

    
136
		$need_racoon_restart = false;
137
		if($_POST['racoondebug_enable'] == "yes") {
138
			if (!isset($config['ipsec']['racoondebug'])) {
139
				$config['ipsec']['racoondebug'] = true;
140
				$need_racoon_restart = true;
141
			}
142
		} else {
143
			if (isset($config['ipsec']['racoondebug'])) {
144
				unset($config['ipsec']['racoondebug']);
145
				$need_racoon_restart = true;
146
			}
147
		}
148

    
149
		if($_POST['maxmss_enable'] == "yes") {
150
                        $config['system']['maxmss_enable'] = true;
151
			$config['system']['maxmss'] = $_POST['maxmss'];
152
                } else {
153
                        unset($config['system']['maxmss_enable']);
154
                        unset($config['system']['maxmss']);
155
		}
156

    
157
		if($_POST['powerd_enable'] == "yes")
158
                        $config['system']['powerd_enable'] = true;
159
                else
160
                        unset($config['system']['powerd_enable']);
161

    
162
		$config['system']['powerd_mode'] = $_POST['powerd_mode'];
163
						
164
		if($_POST['glxsb_enable'] == "yes")
165
                        $config['system']['glxsb_enable'] = true;
166
                else
167
                        unset($config['system']['glxsb_enable']);
168

    
169
		if($_POST['schedule_states'] == "yes")
170
                        $config['system']['schedule_states'] = true;
171
                else
172
                        unset($config['system']['schedule_states']);
173

    
174
		if($_POST['kill_states'] == "yes")
175
                        $config['system']['kill_states'] = true;
176
                else
177
                        unset($config['system']['kill_states']);
178

    
179
		write_config();
180

    
181
		$retval = 0;
182
		system_resolvconf_generate(true);
183
		$retval = filter_configure();
184
		if(stristr($retval, "error") <> true)
185
		    $savemsg = get_std_save_message(gettext($retval));
186
		else
187
		    $savemsg = gettext($retval);
188
		
189
		activate_powerd();
190
		load_glxsb();
191
		vpn_ipsec_configure_preferoldsa();
192
		if ($need_racoon_restart)
193
			vpn_ipsec_force_reload();
194
		if ($need_relayd_restart)
195
			relayd_configure();
196
	}
197
}
198

    
199
$pgtitle = array(gettext("System"),gettext("Advanced: Miscellaneous"));
200
include("head.inc");
201

    
202
?>
203

    
204
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
205
<?php
206
	include("fbegin.inc");
207
	if ($input_errors)
208
		print_input_errors($input_errors);
209
	if ($savemsg)
210
		print_info_box($savemsg);
211
?>
212
<script type="text/javascript" >
213
function sticky_checked(obj) {
214
	if (obj.checked)
215
		jQuery('#srctrack').attr('disabled',false);
216
	else
217
		jQuery('#srctrack').attr('disabled','true');
218
}
219
function maxmss_checked(obj) {
220
	if (obj.checked)
221
		jQuery('#maxmss').attr('disabled',false);
222
	else
223
		jQuery('#maxmss').attr('disabled','true');
224
}
225
</script>
226
	<form action="system_advanced_misc.php" method="post" name="iform" id="iform">
227
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
228
			<tr>
229
				<td>
230
					<?php
231
						$tab_array = array();
232
						$tab_array[] = array(gettext("Admin Access"), false, "system_advanced_admin.php");
233
						$tab_array[] = array(gettext("Firewall / NAT"), false, "system_advanced_firewall.php");
234
						$tab_array[] = array(gettext("Networking"), false, "system_advanced_network.php");
235
						$tab_array[] = array(gettext("Miscellaneous"), true, "system_advanced_misc.php");
236
						$tab_array[] = array(gettext("System Tunables"), false, "system_advanced_sysctl.php");
237
						$tab_array[] = array(gettext("Notifications"), false, "system_advanced_notifications.php");
238
						display_top_tabs($tab_array);
239
					?>
240
				</td>
241
			</tr>
242
			<tr>
243
				<td id="mainarea">
244
					<div class="tabcont">
245
						<span class="vexpl">
246
							<span class="red">
247
								<strong><?=gettext("NOTE:"); ?>&nbsp</strong>
248
							</span>
249
							<?=gettext("The options on this page are intended for use by advanced users only."); ?>
250
							<br/>
251
						</span>
252
						<br/>
253
						<table width="100%" border="0" cellpadding="6" cellspacing="0">
254
							<tr>
255
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Proxy support"); ?></td>
256
							</tr>
257
							<tr>
258
								<td width="22%" valign="top" class="vncell"><?=gettext("Proxy URL"); ?></td>
259
								<td width="78%" class="vtable">
260
									<input name="proxyurl" id="proxyurl" value="<?php if ($pconfig['proxyurl'] <> "") echo $pconfig['proxyurl']; ?>" class="formfld unknown">
261
									<br />
262
									<?php printf(gettext("Proxy url for allowing %s to use this proxy to connect outside."),$g['product']); ?>
263
								</td>
264
							</tr>
265
							<tr>
266
								<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Port"); ?></td>
267
								<td width="78%" class="vtable">
268
									<input name="proxyport" id="proxyport" value="<?php if ($pconfig['proxyport'] <> "") echo $pconfig['proxyport']; ?>" class="formfld unknown">
269
									<br />
270
									<?php printf(gettext("Proxy port to use when %s connects to the proxy URL configured above. Default is 8080 for http protocol or 443 for ssl."),$g['product']); ?>
271
								</td>
272
							</tr>
273
							<tr>
274
								<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Username"); ?></td>
275
								<td width="78%" class="vtable">
276
									<input name="proxyuser" id="proxyuser" value="<?php if ($pconfig['proxyuser'] <> "") echo $pconfig['proxyuser']; ?>" class="formfld unknown">
277
									<br />
278
									<?php printf(gettext("Proxy username for allowing %s to use this proxy to connect outside"),$g['product']); ?>
279
								</td>
280
							</tr>
281
							<tr>
282
								<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Pass"); ?></td>
283
								<td width="78%" class="vtable">
284
									<input type="password" name="proxypass" id="proxypass" value="<?php if ($pconfig['proxypass'] <> "") echo $pconfig['proxypass']; ?>" class="formfld unknown">
285
									<br />
286
									<?php printf(gettext("Proxy password for allowing %s to use this proxy to connect outside"),$g['product']); ?>
287
								</td>
288
							</tr>
289
							<tr>
290
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Load Balancing"); ?></td>
291
							</tr>
292
							<tr>
293
								<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
294
								<td width="78%" class="vtable">
295
									<input name="lb_use_sticky" type="checkbox" id="lb_use_sticky" value="yes" <?php if ($pconfig['lb_use_sticky']) echo "checked=\"checked\""; ?> onClick="sticky_checked(this)" />
296
									<strong><?=gettext("Use sticky connections"); ?></strong><br/>
297
									<?=gettext("Successive connections will be redirected to the servers " .
298
									"in a round-robin manner with connections from the same " .
299
									"source being sent to the same web server. This 'sticky " .
300
									"connection' will exist as long as there are states that " .
301
									"refer to this connection. Once the states expire, so will " .
302
									"the sticky connection. Further connections from that host " .
303
									"will be redirected to the next web server in the round " .
304
									"robin. Changing this option will restart the Load Balancing service."); ?>
305
									<br />
306
									<input name="srctrack" id="srctrack" value="<?php if ($pconfig['srctrack'] <> "") echo $pconfig['srctrack']; else "1400"; ?>" class="formfld unknown" <?php if ($pconfig['lb_use_sticky'] == false) echo "disabled"; ?>>
307
									<br />
308
									<?=gettext("Set the source tracking timeout for sticky connections. " .
309
									"By default this is 0, so source tracking is removed as soon as the state expires. " .
310
									"Setting this timeout higher will cause the source/destination relationship to persist for longer periods of time."); ?>
311
								</td>
312
							</tr>
313
							<tr>
314
								<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
315
								<td width="78%" class="vtable">
316
									<input name="gw_switch_default" type="checkbox" id="gw_switch_default" value="yes" <?php if ($pconfig['gw_switch_default']) echo "checked=\"checked\""; ?> />
317
									<strong><?=gettext("Allow default gateway switching"); ?></strong><br/>
318
									<?=gettext("If the link where the default gateway resides fails " .
319
									"switch the default gateway to another available one."); ?>
320
								</td>
321
							</tr>
322
							<tr>
323
								<td colspan="2" class="list" height="12">&nbsp;</td>
324
							</tr>
325
							<tr>
326
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Power savings"); ?></td>
327
							</tr>
328
							<tr>
329
								<td width="22%" valign="top" class="vncell"><?=gettext("PowerD"); ?></td>
330
								<td width="78%" class="vtable">
331
									<input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked"; ?> />
332
									<strong><?=gettext("Use PowerD"); ?></strong><br/>
333
									<br/>
334
									<?=gettext("Mode"); ?>&nbsp;:&nbsp;
335
									<select name="powerd_mode" id="powerd_mode">
336
										<option value="hadp"<?php if($pconfig['powerd_mode']=="hadp") echo " selected"; ?>><?=gettext("Hiadaptive");?></option>
337
										<option value="adp"<?php if($pconfig['powerd_mode']=="adp") echo " selected"; ?>><?=gettext("Adaptive");?></option>
338
										<option value="min"<?php if($pconfig['powerd_mode']=="min") echo " selected"; ?>><?=gettext("Minimum");?></option>
339
										<option value="max"<?php if($pconfig['powerd_mode']=="max") echo " selected"; ?>><?=gettext("Maximum");?></option>
340
									</select>
341
									<br/><br/>
342
								     <?=gettext("The powerd utility monitors the system state and sets various power control " .
343
								     "options accordingly.  It offers four modes (maximum, minimum, adaptive " .
344
								     "and hiadaptive) that can be individually selected while on AC power or batteries. " . 
345
								     "The modes maximum, minimum, adaptive and hiadaptive may be abbreviated max, " .
346
								     "min, adp, hadp.  Maximum mode chooses the highest performance values.  Minimum " .
347
								     "mode selects the lowest performance values to get the most power savings. " .
348
								     "Adaptive mode attempts to strike a balance by degrading performance when " .
349
								     "the system appears idle and increasing it when the system is busy.  It " .
350
								     "offers a good balance between a small performance loss for greatly " .
351
								     "increased power savings.  Hiadaptive mode is alike adaptive mode, but " .
352
									 "tuned for systems where performance and interactivity are more important" .
353
									 "than power consumption.  It rises frequency faster, drops slower and" .
354
									 "keeps twice lower CPU load."); ?>
355
								</td>
356
							</tr>
357
							<tr>
358
								<td colspan="2" class="list" height="12">&nbsp;</td>
359
							</tr>
360
							<tr>
361
								<td colspan="2" valign="top" class="listtopic"><?=gettext("glxsb Crypto Acceleration"); ?></td>
362
							</tr>
363
							<tr>
364
								<td width="22%" valign="top" class="vncell"><?=gettext("glxsb"); ?></td>
365
								<td width="78%" class="vtable">
366
									<input name="glxsb_enable" type="checkbox" id="glxsb_enable" value="yes" <?php if ($pconfig['glxsb_enable']) echo "checked"; ?> />
367
									<strong><?=gettext("Use glxsb"); ?></strong><br/>
368
									<br />
369
								     <?=gettext("The AMD Geode LX Security Block will accelerate some cryptographic functions " .
370
								     "on systems which have the chip. Do not enable this option if you have a " .
371
								     "Hifn cryptographic acceleration card, as this will take precedence and the " .
372
								     "Hifn card will not be used. Acceleration should be automatic for IPsec " .
373
								     "when using Rijndael (AES). OpenVPN should be set for AES-128-CBC."); ?>
374
								     <br/><br/>
375
								     <?=gettext("If you do not have a glxsb chip in your system, this option will have no " .
376
								     "effect. To unload the module, uncheck this option and then reboot."); ?>
377
								</td>
378
							</tr>
379
							<tr>
380
								<td colspan="2" class="list" height="12">&nbsp;</td>
381
							</tr>
382
							<tr>
383
								<td colspan="2" valign="top" class="listtopic"><?=gettext("IP Security"); ?></td>
384
							</tr>
385
							<tr>
386
								<td width="22%" valign="top" class="vncell"><?=gettext("Security Associations"); ?></td>
387
								<td width="78%" class="vtable">
388
									<input name="preferoldsa_enable" type="checkbox" id="preferoldsa_enable" value="yes" <?php if ($pconfig['preferoldsa_enable']) echo "checked"; ?> />
389
									<strong><?=gettext("Prefer older IPsec SAs"); ?></strong>
390
									<br />
391
									<?=gettext("By default, if several SAs match, the newest one is " .
392
									"preferred if it's at least 30 seconds old. Select this " .
393
									"option to always prefer old SAs over new ones."); ?>
394
								</td>
395
							</tr>
396
							<tr>
397
								<td width="22%" valign="top" class="vncell"><?=gettext("IPsec Debug"); ?></td>
398
								<td width="78%" class="vtable">
399
									<input name="racoondebug_enable" type="checkbox" id="racoondebug_enable" value="yes" <?php if ($pconfig['racoondebug_enable']) echo "checked"; ?> />
400
									<strong><?=gettext("Start racoon in debug mode"); ?></strong>
401
									<br />
402
									<?=gettext("Launches racoon in debug mode so that more verbose logs " .
403
									"will be generated to aid in troubleshooting."); ?><br/>
404
									<?=gettext("NOTE: Changing this setting will restart racoon."); ?>
405
								</td>
406
							</tr>
407
							<tr>
408
								<td width="22%" valign="top" class="vncell"><?=gettext("Maximum MSS"); ?></td>
409
								<td width="78%" class="vtable">
410
									<input name="maxmss_enable" type="checkbox" id="maxmss_enable" value="yes" <?php if ($pconfig['maxmss_enable'] == true) echo "checked"; ?> onClick="maxmss_checked(this)" />
411
									<strong><?=gettext("Enable MSS clamping on VPN traffic"); ?></strong>
412
									<br />
413
									<input name="maxmss" id="maxmss" value="<?php if ($pconfig['maxmss'] <> "") echo $pconfig['maxmss']; else "1400"; ?>" class="formfld unknown" <?php if ($pconfig['maxmss_enable'] == false) echo "disabled"; ?>>
414
									<br />
415
									<?=gettext("Enable MSS clamping on TCP flows over VPN. " .
416
									"This helps overcome problems with PMTUD on IPsec VPN links. If left blank, the default value is 1400 bytes. "); ?>
417
								</td>
418
							</tr>
419
                                                        <tr>
420
                                                                <td colspan="2" class="list" height="12">&nbsp;</td>
421
                                                        </tr>
422
                                                        <tr>
423
                                                                <td colspan="2" valign="top" class="listtopic"><?=gettext("Schedules"); ?></td>
424
                                                        </tr>
425
                                                        <tr>
426
                                                                <td width="22%" valign="top" class="vncell"><?=gettext("Schedule States"); ?></td>
427
                                                                <td width="78%" class="vtable">
428
                                                                        <input name="schedule_states" type="checkbox" id="schedule_states" value="yes" <?php if ($pconfig['schedule_states']) echo "checked"; ?> />
429
                                                                        <br />
430
									<?=gettext("By default schedules clear the states of existing connections when the expiration time has come. ".
431
									"This option overrides that behavior by not clearing states for existing connections."); ?>
432
                                                                </td>
433
                                                        </tr>
434
                                                        <tr>
435
                                                                <td colspan="2" class="list" height="12">&nbsp;</td>
436
                                                        </tr>
437
                                                        <tr>
438
                                                                <td colspan="2" valign="top" class="listtopic"><?=gettext("Gateway Monitoring"); ?></td>
439
                                                        </tr>
440
                                                        <tr>
441
                                                                <td width="22%" valign="top" class="vncell"><?=gettext("States"); ?></td>
442
                                                                <td width="78%" class="vtable">
443
                                                                        <input name="kill_states" type="checkbox" id="kill_states" value="yes" <?php if ($pconfig['kill_states']) echo "checked"; ?> />
444
                                                                        <br />
445
									<?=gettext("By default the monitoring process will flush states for a gateway that goes down. ".
446
									"This option overrides that behavior by not clearing states for existing connections."); ?>
447
                                                                </td>
448
                                                        </tr>
449
							<tr>
450
								<td colspan="2" class="list" height="12">&nbsp;</td>
451
							</tr>
452
							<?php if($g['platform'] == "pfSenseDISABLED"): ?>
453
							<tr>
454
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Hardware Settings"); ?></td>
455
							</tr>
456
							<tr>
457
								<td width="22%" valign="top" class="vncell"><?=gettext("Hard disk standby time "); ?></td>
458
								<td width="78%" class="vtable">
459
									<select name="harddiskstandby" class="formselect">
460
										<?php
461
										 	## Values from ATA-2 http://www.t13.org/project/d0948r3-ATA-2.pdf (Page 66)
462
											$sbvals = explode(" ", "0.5,6 1,12 2,24 3,36 4,48 5,60 7.5,90 10,120 15,180 20,240 30,241 60,242");
463
										?>
464
										<option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected');?>><?=gettext("Always on"); ?></option>
465
										<?php
466
											foreach ($sbvals as $sbval):
467
												list($min,$val) = explode(",", $sbval);
468
										?>
469
										<option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected');?>><?=$min;?> <?=gettext("minutes"); ?></option>
470
										<?php endforeach; ?>
471
									</select>
472
									<br/>
473
									<?=gettext("Puts the hard disk into standby mode when the selected amount of time after the last ".
474
									"access has elapsed."); ?> <em><?=gettext("Do not set this for CF cards."); ?></em>
475
								</td>
476
							</tr>
477
							<tr>
478
								<td colspan="2" class="list" height="12">&nbsp;</td>
479
							</tr>
480
							<?php endif; ?>
481

    
482
							<tr>
483
								<td width="22%" valign="top">&nbsp;</td>
484
								<td width="78%">
485
									<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
486
								</td>
487
							</tr>
488
						</table>
489
					</div>
490
				</td>
491
			</tr>
492
		</table>
493
	</form>
494

    
495
<?php include("fend.inc"); ?>
496
</body>
497
</html>
498

    
(199-199/248)