2012-12-12 Sergio Martin <sergio.martin@artica.es>

* include/functions_config.php: Added configuration
	parameters for the events replication



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7264 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-12-12 09:35:40 +00:00
parent 62ce961cbf
commit 451185161c
2 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-12-12 Sergio Martin <sergio.martin@artica.es>
* include/functions_config.php: Added configuration
parameters for the events replication
2012-12-12 Hirofumi Kosaka <kosaka@rworks.jp>
* godmode/agentes/module_manager_editor.php: Fixed a bug only

View File

@ -127,6 +127,12 @@ function config_update_config () {
config_update_value ('metaconsole', get_parameter ('metaconsole'));
config_update_value ('collection_max_size', get_parameter('collection_max_size'));
config_update_value ('activate_netflow', (bool) get_parameter ('activate_netflow'));
config_update_value ('event_replication', (int)get_parameter('event_replication'));
config_update_value ('replication_interval', (int)get_parameter('replication_interval'));
config_update_value ('replication_host', (string)get_parameter('replication_host'));
config_update_value ('replication_database', (string)get_parameter('replication_database'));
config_update_value ('replication_user', (string)get_parameter('replication_user'));
config_update_value ('replication_password', (string)get_parameter('replication_password'));
config_update_value ('public_url', get_parameter('public_url'));
config_update_value ('referer_security', get_parameter('referer_security'));
@ -428,6 +434,30 @@ function config_process_config () {
config_update_value ('collection_max_size', 1000000);
}
if (!isset ($config["event_replication"])) {
config_update_value ('event_replication', 0);
}
if (!isset ($config["replication_interval"])) {
config_update_value ('replication_interval', 120);
}
if (!isset ($config["replication_host"])) {
config_update_value ('replication_host', "");
}
if (!isset ($config["replication_database"])) {
config_update_value ('replication_database', "");
}
if (!isset ($config["replication_user"])) {
config_update_value ('replication_user', "");
}
if (!isset ($config["replication_password"])) {
config_update_value ('replication_password', "");
}
if (!isset ($config["font_size"])) {
config_update_value ('font_size', 6);
}