diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 65377f7cc6..75bdd78a47 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,30 @@ +2009-03-24 Esteban Sanchez + + * godmode/alerts/configure_alert_compound.php: Fixed clean up div for + variable width styles. Min and max fire values commented because it's + not implemented yet. + + * include/config_process.php: Keep database connection resource in + config. + + * include/functions.php: Use mysql_real_escape_string(), replacing + deprecated function. + + * include/functions_alerts.php: Updated to use process_sql_* + functions. Many fixes done such as updating a template name or + escaping the value when duplicating a template. + + * include/functions_ui.php: Fixed an error on refresh header when + using other web servers like Cherokee. + + * operation/agentes/estado_agente.php: Style corrections. + + * reporting/fgraph.php: Fixed a typo on grafico_db_agentes_paquetes(). + + * pandoradb.sql, extras/pandoradb_migrate_v2.x_to_v3.0.sql: Added + foreign key on treport_content and id field on + talert_compound_actions. + 2009-03-24 Sancho Lerena * module_manager_editor.php, diff --git a/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql b/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql index 0a1bf73249..e27bfc0210 100644 --- a/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql +++ b/pandora_console/extras/pandoradb_migrate_v2.x_to_v3.0.sql @@ -33,6 +33,9 @@ ALTER TABLE `tagente_modulo` DROP INDEX `tam_plugin`; ALTER TABLE `tagente_modulo` DROP PRIMARY KEY , ADD PRIMARY KEY ( `id_agente_modulo` ); +ALTER TABLE `treport_content` ADD FOREIGN KEY (`id_report`) REFERENCES treport(`id_report`) + ON UPDATE CASCADE ON DELETE CASCADE; + ALTER TABLE `tagent_access` DROP `timestamp`; ALTER TABLE `tlayout_data` ADD `id_agent` int(10) unsigned NOT NULL default 0; @@ -241,10 +244,12 @@ CREATE TABLE IF NOT EXISTS `talert_compound_elements` ( DROP TABLE IF EXISTS talert_compound_actions; CREATE TABLE IF NOT EXISTS `talert_compound_actions` ( + `id` int(10) unsigned NOT NULL auto_increment, `id_alert_compound` int(10) unsigned NOT NULL, `id_alert_action` int(10) unsigned NOT NULL, `fires_min` int(3) unsigned default 0, `fires_max` int(3) unsigned default 0, + PRIMARY KEY (`id`), FOREIGN KEY (`id_alert_compound`) REFERENCES talert_compound(`id`) ON DELETE CASCADE ON UPDATE CASCADE, FOREIGN KEY (`id_alert_action`) REFERENCES talert_actions(`id`) diff --git a/pandora_console/godmode/alerts/configure_alert_compound.php b/pandora_console/godmode/alerts/configure_alert_compound.php index 72c6f8c6d5..4fa413ca97 100644 --- a/pandora_console/godmode/alerts/configure_alert_compound.php +++ b/pandora_console/godmode/alerts/configure_alert_compound.php @@ -89,7 +89,7 @@ function print_alert_compound_steps ($step, $id) { } echo ''; - echo '
'; + echo '
'; } function update_compound ($step) { @@ -155,6 +155,7 @@ function update_compound ($step) { /* Update actions */ $actions = (array) get_parameter ('actions'); + foreach ($actions as $id_action) { /* TODO: fires_min and fires_max missing */ add_alert_compound_action ($id, (int) $id_action); @@ -352,7 +353,8 @@ if ($step == 2) { $table->data[4][1] .= print_button (__('Add'), 'add_action', false, '', 'class="sub next"', true); $table->data[4][1] .= '
'; - $table->data[4][1] .= ''.__('Advanced options').' » '; + /* TODO: Finish fires_max and fires_min support */ +/* $table->data[4][1] .= ''.__('Advanced options').' » '; $table->data[4][1] .= ''; - +*/ $table->data['actions'][0] = __('Assigned actions'); $table->data['actions'][1] = '