Project

General

Profile

Download (19.8 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/*
3
	system.php
4
*/
5
/* ====================================================================
6
 *	Copyright (c)  2004-2015  Electric Sheep Fencing, LLC. All rights reserved.
7
 *
8
 *	Some or all of this file is based on the m0n0wall project which is
9
 *	Copyright (c)  2004 Manuel Kasper (BSD 2 clause)
10
 *
11
 *	Redistribution and use in source and binary forms, with or without modification,
12
 *	are permitted provided that the following conditions are met:
13
 *
14
 *	1. Redistributions of source code must retain the above copyright notice,
15
 *		this list of conditions and the following disclaimer.
16
 *
17
 *	2. Redistributions in binary form must reproduce the above copyright
18
 *		notice, this list of conditions and the following disclaimer in
19
 *		the documentation and/or other materials provided with the
20
 *		distribution.
21
 *
22
 *	3. All advertising materials mentioning features or use of this software
23
 *		must display the following acknowledgment:
24
 *		"This product includes software developed by the pfSense Project
25
 *		 for use in the pfSense software distribution. (http://www.pfsense.org/).
26
 *
27
 *	4. The names "pfSense" and "pfSense Project" must not be used to
28
 *		 endorse or promote products derived from this software without
29
 *		 prior written permission. For written permission, please contact
30
 *		 coreteam@pfsense.org.
31
 *
32
 *	5. Products derived from this software may not be called "pfSense"
33
 *		nor may "pfSense" appear in their names without prior written
34
 *		permission of the Electric Sheep Fencing, LLC.
35
 *
36
 *	6. Redistributions of any form whatsoever must retain the following
37
 *		acknowledgment:
38
 *
39
 *	"This product includes software developed by the pfSense Project
40
 *	for use in the pfSense software distribution (http://www.pfsense.org/).
41
 *
42
 *	THIS SOFTWARE IS PROVIDED BY THE pfSense PROJECT ``AS IS'' AND ANY
43
 *	EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
44
 *	IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
45
 *	PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE pfSense PROJECT OR
46
 *	ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
47
 *	SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
48
 *	NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
49
 *	LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
50
 *	HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
51
 *	STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
52
 *	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
53
 *	OF THE POSSIBILITY OF SUCH DAMAGE.
54
 *
55
 *	====================================================================
56
 *
57
 */
58

    
59
##|+PRIV
60
##|*IDENT=page-system-generalsetup
61
##|*NAME=System: General Setup
62
##|*DESCR=Allow access to the 'System: General Setup' page.
63
##|*MATCH=system.php*
64
##|-PRIV
65

    
66
require("guiconfig.inc");
67
require_once("functions.inc");
68
require_once("filter.inc");
69
require_once("shaper.inc");
70
require_once("system.inc");
71

    
72
$pconfig['hostname'] = $config['system']['hostname'];
73
$pconfig['domain'] = $config['system']['domain'];
74
list($pconfig['dns1'], $pconfig['dns2'], $pconfig['dns3'], $pconfig['dns4']) = $config['system']['dnsserver'];
75

    
76
$arr_gateways = return_gateways_array();
77

    
78
// set default colmns to two if unset
79
if (!isset($config['system']['webgui']['dashboardcolumns'])) {
80
	$config['system']['webgui']['dashboardcolumns'] = 2;
81
}
82

    
83
$pconfig['dns1gw'] = $config['system']['dns1gw'];
84
$pconfig['dns2gw'] = $config['system']['dns2gw'];
85
$pconfig['dns3gw'] = $config['system']['dns3gw'];
86
$pconfig['dns4gw'] = $config['system']['dns4gw'];
87

    
88
$pconfig['dnsallowoverride'] = isset($config['system']['dnsallowoverride']);
89
$pconfig['timezone'] = $config['system']['timezone'];
90
$pconfig['timeservers'] = $config['system']['timeservers'];
91
$pconfig['language'] = $config['system']['language'];
92
$pconfig['webguicss'] = $config['system']['webgui']['webguicss'];
93
$pconfig['webguifixedmenu'] = $config['system']['webgui']['webguifixedmenu'];
94
$pconfig['dashboardcolumns'] = $config['system']['webgui']['dashboardcolumns'];
95
$pconfig['webguileftcolumnhyper'] = isset($config['system']['webgui']['webguileftcolumnhyper']);
96
$pconfig['dashboardavailablewidgetspanel'] = isset($config['system']['webgui']['dashboardavailablewidgetspanel']);
97
$pconfig['systemlogsfilterpanel'] = isset($config['system']['webgui']['systemlogsfilterpanel']);
98
$pconfig['systemlogsmanagelogpanel'] = isset($config['system']['webgui']['systemlogsmanagelogpanel']);
99
$pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']);
100

    
101
if (!$pconfig['timezone']) {
102
	if (isset($g['default_timezone']) && !empty($g['default_timezone'])) {
103
		$pconfig['timezone'] = $g['default_timezone'];
104
	} else {
105
		$pconfig['timezone'] = "Etc/UTC";
106
	}
107
}
108

    
109
if (!$pconfig['timeservers']) {
110
	$pconfig['timeservers'] = "pool.ntp.org";
111
}
112

    
113
$changedesc = gettext("System") . ": ";
114
$changecount = 0;
115

    
116
function is_timezone($elt) {
117
	return !preg_match("/\/$/", $elt);
118
}
119

    
120
if ($pconfig['timezone'] <> $_POST['timezone']) {
121
	filter_pflog_start(true);
122
}
123

    
124
$timezonelist = system_get_timezone_list();
125

    
126
$multiwan = false;
127
$interfaces = get_configured_interface_list();
128
foreach ($interfaces as $interface) {
129
	if (interface_has_gateway($interface)) {
130
		$multiwan = true;
131
	}
132
}
133

    
134
if ($_POST) {
135

    
136
	$changecount++;
137

    
138
	unset($input_errors);
139
	$pconfig = $_POST;
140

    
141
	/* input validation */
142
	$reqdfields = explode(" ", "hostname domain");
143
	$reqdfieldsn = array(gettext("Hostname"), gettext("Domain"));
144

    
145
	do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
146

    
147
	if ($_POST['webguicss']) {
148
		$config['system']['webgui']['webguicss'] = $_POST['webguicss'];
149
	} else {
150
		unset($config['system']['webgui']['webguicss']);
151
	}
152

    
153
	if ($_POST['webguifixedmenu']) {
154
		$config['system']['webgui']['webguifixedmenu'] = $_POST['webguifixedmenu'];
155
	} else {
156
		unset($config['system']['webgui']['webguifixedmenu']);
157
	}
158

    
159
	if ($_POST['dashboardcolumns']) {
160
		$config['system']['webgui']['dashboardcolumns'] = $_POST['dashboardcolumns'];
161
	} else {
162
		unset($config['system']['webgui']['dashboardcolumns']);
163
	}
164

    
165
	if ($_POST['hostname']) {
166
		if (!is_hostname($_POST['hostname'])) {
167
			$input_errors[] = gettext("The hostname can only contain the characters A-Z, 0-9 and '-'. It may not start or end with '-'.");
168
		} else {
169
			if (!is_unqualified_hostname($_POST['hostname'])) {
170
				$input_errors[] = gettext("A valid hostname is specified, but the domain name part should be omitted");
171
			}
172
		}
173
	}
174
	if ($_POST['domain'] && !is_domain($_POST['domain'])) {
175
		$input_errors[] = gettext("The domain may only contain the characters a-z, 0-9, '-' and '.'.");
176
	}
177

    
178
	$dnslist = $ignore_posted_dnsgw = array();
179

    
180
	for ($dnscounter=1; $dnscounter<5; $dnscounter++) {
181
		$dnsname="dns{$dnscounter}";
182
		$dnsgwname="dns{$dnscounter}gw";
183
		$dnslist[] = $_POST[$dnsname];
184

    
185
		if (($_POST[$dnsname] && !is_ipaddr($_POST[$dnsname]))) {
186
			$input_errors[] = sprintf(gettext("A valid IP address must be specified for DNS server %s."), $dnscounter);
187
		} else {
188
			if (($_POST[$dnsgwname] <> "") && ($_POST[$dnsgwname] <> "none")) {
189
				// A real gateway has been selected.
190
				if (is_ipaddr($_POST[$dnsname])) {
191
					if ((is_ipaddrv4($_POST[$dnsname])) && (validate_address_family($_POST[$dnsname], $_POST[$dnsgwname]) === false)) {
192
						$input_errors[] = sprintf(gettext('You can not specify IPv6 gateway "%1$s" for IPv4 DNS server "%2$s".'), $_POST[$dnsgwname], $_POST[$dnsname]);
193
					}
194
					if ((is_ipaddrv6($_POST[$dnsname])) && (validate_address_family($_POST[$dnsname], $_POST[$dnsgwname]) === false)) {
195
						$input_errors[] = sprintf(gettext('You can not specify IPv4 gateway "%1$s" for IPv6 DNS server "%2$s".'), $_POST[$dnsgwname], $_POST[$dnsname]);
196
					}
197
				} else {
198
					// The user selected a gateway but did not provide a DNS address. Be nice and set the gateway back to "none".
199
					$ignore_posted_dnsgw[$dnsgwname] = true;
200
				}
201
			}
202
		}
203
	}
204

    
205
	if (count(array_filter($dnslist)) != count(array_unique(array_filter($dnslist)))) {
206
		$input_errors[] = gettext('Each configured DNS server must have a unique IP address. Remove the duplicated IP.');
207
	}
208

    
209
	$direct_networks_list = explode(" ", filter_get_direct_networks_list());
210
	for ($dnscounter=1; $dnscounter<5; $dnscounter++) {
211
		$dnsitem = "dns{$dnscounter}";
212
		$dnsgwitem = "dns{$dnscounter}gw";
213
		if ($_POST[$dnsgwitem]) {
214
			if (interface_has_gateway($_POST[$dnsgwitem])) {
215
				foreach ($direct_networks_list as $direct_network) {
216
					if (ip_in_subnet($_POST[$dnsitem], $direct_network)) {
217
						$input_errors[] = sprintf(gettext("You can not assign a gateway to DNS '%s' server which is on a directly connected network."), $_POST[$dnsitem]);
218
					}
219
				}
220
			}
221
		}
222
	}
223

    
224
	# it's easy to have a little too much whitespace in the field, clean it up for the user before processing.
225
	$_POST['timeservers'] = preg_replace('/[[:blank:]]+/', ' ', $_POST['timeservers']);
226
	$_POST['timeservers'] = trim($_POST['timeservers']);
227
	foreach (explode(' ', $_POST['timeservers']) as $ts) {
228
		if (!is_domain($ts)) {
229
			$input_errors[] = gettext("A NTP Time Server name may only contain the characters a-z, 0-9, '-' and '.'.");
230
		}
231
	}
232

    
233
	if (!$input_errors) {
234
		update_if_changed("hostname", $config['system']['hostname'], $_POST['hostname']);
235
		update_if_changed("domain", $config['system']['domain'], $_POST['domain']);
236
		update_if_changed("timezone", $config['system']['timezone'], $_POST['timezone']);
237
		update_if_changed("NTP servers", $config['system']['timeservers'], strtolower($_POST['timeservers']));
238

    
239
		if ($_POST['language'] && $_POST['language'] != $config['system']['language']) {
240
			$config['system']['language'] = $_POST['language'];
241
			set_language();
242
		}
243

    
244
		unset($config['system']['webgui']['webguileftcolumnhyper']);
245
		$config['system']['webgui']['webguileftcolumnhyper'] = $_POST['webguileftcolumnhyper'] ? true : false;
246

    
247
		unset($config['system']['webgui']['dashboardavailablewidgetspanel']);
248
		$config['system']['webgui']['dashboardavailablewidgetspanel'] = $_POST['dashboardavailablewidgetspanel'] ? true : false;
249

    
250
		unset($config['system']['webgui']['systemlogsfilterpanel']);
251
		$config['system']['webgui']['systemlogsfilterpanel'] = $_POST['systemlogsfilterpanel'] ? true : false;
252

    
253
		unset($config['system']['webgui']['systemlogsmanagelogpanel']);
254
		$config['system']['webgui']['systemlogsmanagelogpanel'] = $_POST['systemlogsmanagelogpanel'] ? true : false;
255

    
256
		/* XXX - billm: these still need updating after figuring out how to check if they actually changed */
257
		$olddnsservers = $config['system']['dnsserver'];
258
		unset($config['system']['dnsserver']);
259
		if ($_POST['dns1']) {
260
			$config['system']['dnsserver'][] = $_POST['dns1'];
261
		}
262
		if ($_POST['dns2']) {
263
			$config['system']['dnsserver'][] = $_POST['dns2'];
264
		}
265
		if ($_POST['dns3']) {
266
			$config['system']['dnsserver'][] = $_POST['dns3'];
267
		}
268
		if ($_POST['dns4']) {
269
			$config['system']['dnsserver'][] = $_POST['dns4'];
270
		}
271

    
272
		$olddnsallowoverride = $config['system']['dnsallowoverride'];
273

    
274
		unset($config['system']['dnsallowoverride']);
275
		$config['system']['dnsallowoverride'] = $_POST['dnsallowoverride'] ? true : false;
276

    
277
		if ($_POST['dnslocalhost'] == "yes") {
278
			$config['system']['dnslocalhost'] = true;
279
		} else {
280
			unset($config['system']['dnslocalhost']);
281
		}
282

    
283
		/* which interface should the dns servers resolve through? */
284
		$outdnscounter = 0;
285
		for ($dnscounter=1; $dnscounter<5; $dnscounter++) {
286
			$dnsname="dns{$dnscounter}";
287
			$dnsgwname="dns{$dnscounter}gw";
288
			$olddnsgwname = $config['system'][$dnsgwname];
289

    
290
			if ($ignore_posted_dnsgw[$dnsgwname]) {
291
				$thisdnsgwname = "none";
292
			} else {
293
				$thisdnsgwname = $pconfig[$dnsgwname];
294
			}
295

    
296
			// "Blank" out the settings for this index, then we set them below using the "outdnscounter" index.
297
			$config['system'][$dnsgwname] = "none";
298
			$pconfig[$dnsgwname] = "none";
299
			$pconfig[$dnsname] = "";
300

    
301
			if ($_POST[$dnsname]) {
302
				// Only the non-blank DNS servers were put into the config above.
303
				// So we similarly only add the corresponding gateways sequentially to the config (and to pconfig), as we find non-blank DNS servers.
304
				// This keeps the DNS server IP and corresponding gateway "lined up" when the user blanks out a DNS server IP in the middle of the list.
305
				$outdnscounter++;
306
				$outdnsname="dns{$outdnscounter}";
307
				$outdnsgwname="dns{$outdnscounter}gw";
308
				$pconfig[$outdnsname] = $_POST[$dnsname];
309
				if ($_POST[$dnsgwname]) {
310
					$config['system'][$outdnsgwname] = $thisdnsgwname;
311
					$pconfig[$outdnsgwname] = $thisdnsgwname;
312
				} else {
313
					// Note: when no DNS GW name is chosen, the entry is set to "none", so actually this case never happens.
314
					unset($config['system'][$outdnsgwname]);
315
					$pconfig[$outdnsgwname] = "";
316
				}
317
			}
318
			if (($olddnsgwname != "") && ($olddnsgwname != "none") && (($olddnsgwname != $thisdnsgwname) || ($olddnsservers[$dnscounter-1] != $_POST[$dnsname]))) {
319
				// A previous DNS GW name was specified. It has now gone or changed, or the DNS server address has changed.
320
				// Remove the route. Later calls will add the correct new route if needed.
321
				if (is_ipaddrv4($olddnsservers[$dnscounter-1])) {
322
					mwexec("/sbin/route delete " . escapeshellarg($olddnsservers[$dnscounter-1]));
323
				} else if (is_ipaddrv6($olddnsservers[$dnscounter-1])) {
324
					mwexec("/sbin/route delete -inet6 " . escapeshellarg($olddnsservers[$dnscounter-1]));
325
				}
326
			}
327
		}
328

    
329
		if ($changecount > 0) {
330
			write_config($changedesc);
331
		}
332

    
333
		$retval = 0;
334
		$retval = system_hostname_configure();
335
		$retval |= system_hosts_generate();
336
		$retval |= system_resolvconf_generate();
337
		if (isset($config['dnsmasq']['enable'])) {
338
			$retval |= services_dnsmasq_configure();
339
		} elseif (isset($config['unbound']['enable'])) {
340
			$retval |= services_unbound_configure();
341
		}
342
		$retval |= system_timezone_configure();
343
		$retval |= system_ntp_configure();
344

    
345
		if ($olddnsallowoverride != $config['system']['dnsallowoverride']) {
346
			$retval |= send_event("service reload dns");
347
		}
348

    
349
		// Reload the filter - plugins might need to be run.
350
		$retval |= filter_configure();
351

    
352
		$savemsg = get_std_save_message($retval);
353
	}
354

    
355
	unset($ignore_posted_dnsgw);
356
}
357

    
358
$pgtitle = array(gettext("System"), gettext("General Setup"));
359
include("head.inc");
360

    
361
if ($input_errors) {
362
	print_input_errors($input_errors);
363
}
364

    
365
if ($savemsg) {
366
	print_info_box($savemsg, 'success');
367
}
368
?>
369
<div id="container">
370
<?php
371

    
372
$form = new Form;
373
$section = new Form_Section('System');
374
$section->addInput(new Form_Input(
375
	'hostname',
376
	'Hostname',
377
	'text',
378
	$pconfig['hostname'],
379
	['placeholder' => 'pfSense']
380
))->setHelp('Name of the firewall host, without domain part');
381
$section->addInput(new Form_Input(
382
	'domain',
383
	'Domain',
384
	'text',
385
	$pconfig['domain'],
386
	['placeholder' => 'mycorp.com, home, office, private, etc.']
387
))->setHelp('Do not use \'local\' as a domain name. It will cause local '.
388
	'hosts running mDNS (avahi, bonjour, etc.) to be unable to resolve '.
389
	'local hosts not running mDNS.');
390
$form->add($section);
391

    
392
$section = new Form_Section('DNS Server Settings');
393

    
394
for ($i=1; $i<5; $i++) {
395
//	if (!isset($pconfig['dns'.$i]))
396
//		continue;
397

    
398
	$group = new Form_Group('DNS Server ' . $i);
399

    
400
	$group->add(new Form_Input(
401
		'dns' . $i,
402
		'DNS Server',
403
		'text',
404
		$pconfig['dns'. $i]
405
	))->setHelp(($i == 4) ? 'Address':null);
406

    
407
	$help = "Enter IP addresses to be used by the system for DNS resolution. " .
408
		"These are also used for the DHCP service, DNS forwarder and for PPTP VPN clients.";
409

    
410
	if ($multiwan)	{
411
		$options = array('none' => 'none');
412

    
413
		foreach ($arr_gateways as $gwname => $gwitem) {
414
			if ((is_ipaddrv4(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv6($gwitem['gateway'])))) {
415
				continue;
416
			}
417

    
418
			if ((is_ipaddrv6(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv4($gwitem['gateway'])))) {
419
				continue;
420
			}
421

    
422
			$options[$gwname] = $gwname.' - '.$gwitem['friendlyiface'].' - '.$gwitem['gateway'];
423
		}
424

    
425
		$group->add(new Form_Select(
426
			'dns' . $i . 'gw',
427
			'Gateway',
428
			$pconfig['dns' . $i . 'gw'],
429
			$options
430
		))->setHelp(($i == 4) ? 'Gateway':null);;
431

    
432
		$help .= '<br/>'. "In addition, optionally select the gateway for each DNS server. " .
433
			"When using multiple WAN connections there should be at least one unique DNS server per gateway.";
434
	}
435

    
436
	if ($i == 4) {
437
		$group->setHelp($help);
438
	}
439

    
440
	$section->add($group);
441
}
442

    
443
$section->addInput(new Form_Checkbox(
444
	'dnsallowoverride',
445
	'DNS Server Override',
446
	'Allow DNS server list to be overridden by DHCP/PPP on WAN',
447
	$pconfig['dnsallowoverride']
448
))->setHelp(sprintf(gettext('If this option is set, %s will use DNS servers '.
449
	'assigned by a DHCP/PPP server on WAN for its own purposes (including '.
450
	'the DNS forwarder). However, they will not be assigned to DHCP and PPTP '.
451
	'VPN clients.'), $g['product_name']));
452

    
453
$section->addInput(new Form_Checkbox(
454
	'dnslocalhost',
455
	'Disable DNS Forwarder',
456
	'Do not use the DNS Forwarder as a DNS server for the firewall',
457
	$pconfig['dnslocalhost']
458
))->setHelp('By default localhost (127.0.0.1) will be used as the first DNS '.
459
	'server where the DNS Forwarder or DNS Resolver is enabled and set to '.
460
	'listen on Localhost, so system can use the local DNS service to perform '.
461
	'lookups. Checking this box omits localhost from the list of DNS servers.');
462

    
463
$form->add($section);
464

    
465
$section = new Form_Section('Localization');
466
$section->addInput(new Form_Select(
467
	'timezone',
468
	'Timezone',
469
	$pconfig['timezone'],
470
	array_combine($timezonelist, $timezonelist)
471
))->setHelp('Select the location closest to you');
472
$section->addInput(new Form_Input(
473
	'timeservers',
474
	'Timeservers',
475
	'text',
476
	$pconfig['timeservers']
477
))->setHelp('Use a space to separate multiple hosts (only one required). '.
478
	'Remember to set up at least one DNS server if you enter a host name here!');
479
$section->addInput(new Form_Select(
480
	'language',
481
	'Language',
482
	$pconfig['language'],
483
	get_locale_list()
484
))->setHelp('Choose a language for the webConfigurator');
485

    
486
$form->add($section);
487

    
488
$csslist = array();
489
$css = glob("/usr/local/www/bootstrap/css/*.css");
490
foreach ($css as $file) {
491
	$file = basename($file);
492
	if (substr($file, 0, 9) !== 'bootstrap') {
493
		$csslist[$file] = pathinfo($file, PATHINFO_FILENAME);
494
	}
495
}
496

    
497
asort($csslist);
498

    
499
if (!isset($pconfig['webguicss']) || !isset($csslist[$pconfig['webguicss']])) {
500
	$pconfig['webguicss'] = "pfSense.css";
501
}
502

    
503
$section = new Form_Section('webConfigurator');
504

    
505
$section->addInput(new Form_Select(
506
	'webguicss',
507
	'Theme',
508
	$pconfig['webguicss'],
509
	$csslist
510
))->setHelp('Choose an alternative css file (if installed) to change the appearance of the webConfigurator. css files are located in /usr/local/www/bootstrap/css');
511

    
512
$section->addInput(new Form_Select(
513
	'webguifixedmenu',
514
	'Top Navigation',
515
	$pconfig['webguifixedmenu'],
516
	["" => gettext("Scrolls with page"), "fixed" => gettext("Fixed (Remains visible at top of page)")]
517
))->setHelp("The fixed option is intended for large screens only.");
518

    
519
$section->addInput(new Form_Input(
520
	'dashboardcolumns',
521
	'Dashboard Columns',
522
	'number',
523
	$pconfig['dashboardcolumns'],
524
	[min => 1, max => 4]
525
))->setHelp('<span class="badge" title="This feature is in BETA">BETA</span>');
526

    
527
$group = new Form_Group('Associated Panels Show/Hide');
528

    
529
$group->add(new Form_Checkbox(
530
	'dashboardavailablewidgetspanel',
531
	null,
532
	'Available Widgets',
533
	$pconfig['dashboardavailablewidgetspanel']
534
	))->setHelp('Show the Available Widgets panel on the Dashboard.');
535

    
536
$group->add(new Form_Checkbox(
537
	'systemlogsfilterpanel',
538
	null,
539
	'Log Filter',
540
	$pconfig['systemlogsfilterpanel']
541
))->setHelp('Show the Log Filter panel in System Logs.');
542

    
543
$group->add(new Form_Checkbox(
544
	'systemlogsmanagelogpanel',
545
	null,
546
	'Manage Log',
547
	$pconfig['systemlogsmanagelogpanel']
548
))->setHelp('Show the Manage Log panel in System Logs.');
549

    
550
$group->setHelp('These options allow certain panels to be automatically hidden on page load. A control is provided in the title bar to un-hide the panel.
551
<br /><span class="badge" title="This feature is in BETA">BETA</span>');
552

    
553
$section->add($group);
554

    
555
$section->addInput(new Form_Checkbox(
556
	'webguileftcolumnhyper',
557
	'Left Column Labels',
558
	'Active',
559
	$pconfig['webguileftcolumnhyper']
560
))->setHelp('If selected, clicking a label in the left column will select/toggle the first item of the group.<br /><span class="badge" title="This feature is in BETA">BETA</span>');
561

    
562
$form->add($section);
563

    
564
print $form;
565
?>
566
</div>
567
<?php
568
include("foot.inc");
569
?>
(185-185/227)