Revision 1fd9322b
Added by Stephen Beaver over 9 years ago
src/conf.default/config.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0"?> |
2 | 2 |
<pfsense> |
3 |
<version>12.3</version>
|
|
3 |
<version>12.7</version>
|
|
4 | 4 |
<lastchange/> |
5 | 5 |
<system> |
6 | 6 |
<optimization>normal</optimization> |
... | ... | |
252 | 252 |
</monitor_type> |
253 | 253 |
</load_balancer> |
254 | 254 |
<widgets> |
255 |
<sequence>system_information-container:col1:show,captive_portal_status-container:col1:none,carp_status-container:col1:none,cpu_graphs-container:col1:none,gateways-container:col1:none,gmirror_status-container:col1:none,installed_packages-container:col1:none,interface_statistics-container:col1:none,interfaces-container:col2:show,ipsec-container:col2:none,load_balancer_status-container:col2:none,log-container:col2:none,picture-container:col2:none,rss-container:col2:none,services_status-container:col2:none,traffic_graphs-container:col2:none</sequence>
|
|
255 |
<sequence>system_information:col1:show,interfaces:col2:show</sequence>
|
|
256 | 256 |
</widgets> |
257 | 257 |
<openvpn/> |
258 | 258 |
<dnshaper/> |
src/etc/inc/globals.inc | ||
---|---|---|
72 | 72 |
"disablecrashreporter" => false, |
73 | 73 |
"crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php", |
74 | 74 |
"debug" => false, |
75 |
"latest_config" => "12.6",
|
|
75 |
"latest_config" => "12.7",
|
|
76 | 76 |
"nopkg_platforms" => array("cdrom"), |
77 | 77 |
"minimum_ram_warning" => "101", |
78 | 78 |
"minimum_ram_warning_text" => "128 MB", |
src/etc/inc/upgrade_config.inc | ||
---|---|---|
4048 | 4048 |
} |
4049 | 4049 |
} |
4050 | 4050 |
|
4051 |
// prior to v2.3 <widgets><sequence> contains a list of widgets with display types: |
|
4052 |
// none, close, hide, & show |
|
4053 |
// v2.3 & later uses: |
|
4054 |
// close & open |
|
4055 |
// widgets not in use are simply not in the list |
|
4056 |
function upgrade_126_to_127() { |
|
4057 |
global $config; |
|
4058 |
|
|
4059 |
if (!isset($config['widgets']['sequence'])) { |
|
4060 |
return; |
|
4061 |
} |
|
4062 |
|
|
4063 |
$cur_widgets = explode(',', trim($config['widgets']['sequence'])); |
|
4064 |
$new_widgets = array(); |
|
4065 |
|
|
4066 |
foreach ($cur_widgets as $widget) { |
|
4067 |
list($file, $col, $display) = explode(':', $widget); |
|
4068 |
|
|
4069 |
switch ($display) { |
|
4070 |
case 'hide': |
|
4071 |
$display = 'close'; |
|
4072 |
break; |
|
4073 |
case 'show': |
|
4074 |
$display = 'open'; |
|
4075 |
break; |
|
4076 |
default: |
|
4077 |
/* close, none or something is wrong here, ignore it */ |
|
4078 |
continue; |
|
4079 |
} |
|
4080 |
|
|
4081 |
/* Remove '-container' from widget name */ |
|
4082 |
$file = preg_replace('/-container$/', '', $file); |
|
4083 |
|
|
4084 |
$new_widgets[] = "{$file}:{$col}:{$display}"; |
|
4085 |
} |
|
4086 |
|
|
4087 |
$config['widgets']['sequence'] = implode(',', $new_widgets); |
|
4088 |
|
|
4089 |
} |
|
4051 | 4090 |
|
4052 | 4091 |
?> |
Also available in: Unified diff
Fixed #5432