Move config to WebUI

This commit is contained in:
pblasquez
2016-04-26 12:56:58 -07:00
parent aeafdf58e9
commit 8e8315dbcd
3 changed files with 10 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ else {
echo('</tr></table>');
$graph_array = $vars;
$graph_array['height'] = "300";
$graph_array['height'] = $config['webui']['min_graph_height'];
$graph_array['width'] = $graph_width;
if($_SESSION['screen_width']) {

View File

@@ -11,11 +11,19 @@ $search_conf = array(
),
);
$graph_conf = array(
array('name' => 'webui.min_graph_height',
'descr' => 'Set the minimum graph height',
'type' => 'text',
),
);
echo '
<div class="panel-group" id="accordion">
<form class="form-horizontal" role="form" action="" method="post">
';
echo generate_dynamic_config_panel('Graph settings',true,$config_groups,$graph_conf);
echo generate_dynamic_config_panel('Search settings',true,$config_groups,$search_conf);
echo '

1
sql-schema/114.sql Normal file
View File

@@ -0,0 +1 @@
INSERT INTO `config` (`config_name`,`config_value`,`config_default`,`config_descr`,`config_group`,`config_group_order`,`config_sub_group`,`config_sub_group_order`,`config_hidden`,`config_disabled`) VALUES ('webui.min_graph_height','300','300','Minimum Graph Height','webui',0,'graph',0,'1','0');