diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 7e4fd076c4..fcfdf925c8 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -2291,4 +2291,19 @@ function config_prepare_session() { ini_set("post_max_size", $config["max_file_size"]); ini_set("upload_max_filesize", $config["max_file_size"]); } + +function config_update_value_in_db ($token, $value) { + $inserted_value = db_get_value('value', 'tconfig', '`token`', $token); + if ($inserted_value === false) { + return db_process_sql_insert( + 'tconfig', + array('value' => $value, 'token' => $token) + ) !== false; + } + else { + return db_process_sql_update( + 'tconfig', array('value' => $value), array('token' => $token) + ) !== false; + } +} ?> diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index dd230d8e47..4ba0fde1c5 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2515,7 +2515,7 @@ function ui_print_page_header ($title, $icon = "", $return = false, if(is_metaconsole()){ if ($help != ""){ - $buffer .= "