Index: branches/5.2.x/core/install/step_templates/sys_config.tpl =================================================================== diff -u -N -r15445 -r15552 --- branches/5.2.x/core/install/step_templates/sys_config.tpl (.../sys_config.tpl) (revision 15445) +++ branches/5.2.x/core/install/step_templates/sys_config.tpl (.../sys_config.tpl) (revision 15552) @@ -11,10 +11,17 @@ 'MemcacheServers' => Array ('type' => 'text', 'title' => 'Location of Memcache Servers', 'section' => 'Misc', 'default' => 'localhost:11211'), 'CompressionEngine' => Array ('type' => 'select', 'title' => 'CSS/JS Compression Engine', 'section' => 'Misc', 'default' => ''), 'WebsiteCharset' => Array ('type' => 'text', 'title' => 'Website Charset', 'section' => 'Misc', 'required' => 1, 'default' => 'utf-8'), + 'EnableSystemLog' => Array ('type' => 'radio', 'title' => 'Enable "System Log"', 'section' => 'Misc', 'required' => 1, 'default' => '0'), + 'SystemLogMaxLevel' => Array ('type' => 'select', 'title' => 'Highest "Log Level", that will be saved in "System Log"', 'section' => 'Misc', 'required' => 1, 'default' => '5'), ); $settings['CacheHandler']['options'] = $this->toolkit->getWorkingCacheHandlers(); $settings['CompressionEngine']['options'] = $this->toolkit->getWorkingCompressionEngines(); + $settings['EnableSystemLog']['options'] = Array (1 => 'Enabled', 2 => 'User-only', 0 => 'Disabled'); + $settings['SystemLogMaxLevel']['options'] = Array ( + 0 => 'emergency', 1 => 'alert', 2 => 'critical', 3 => 'error', + 4 => 'warning', 5 => 'notice', 6 => 'info', 7 => 'debug' + ); $row_class = 'table-color2'; @@ -29,26 +36,36 @@ toolkit->getSystemConfig($output_params['section'], $config_var, $output_params['default']); - if ( $output_params['type'] == 'text' ) { - echo ''; - } - else { - echo ''; + break; - if ( $output_params['options'][$config_value] == 'None' ) { - $tmp_values = array_keys($output_params['options']); + case 'select': + echo ''; + echo ''; + break; + + case 'radio': + foreach($output_params['options'] as $option_key => $option_value) { + $selected = $option_key == $config_value ? ' checked' : ''; + echo '' . $option_value; + } + break; } ?>