diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cd30a423c2..10f8b9ef7d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2009-06-25 Miguel de Dios + + * godmode/agentes/massive_delete_agents.php, + godmode/agentes/massive_delete_agents.php: changes for clarity + and maintenance code. + 2009-06-25 Jorge Gonzalez * include/languages/es.po, include/languages/es.mo: Updated Spanish diff --git a/pandora_console/godmode/agentes/massive_delete_agents.php b/pandora_console/godmode/agentes/massive_delete_agents.php index d5a12ff663..454dfac92a 100644 --- a/pandora_console/godmode/agentes/massive_delete_agents.php +++ b/pandora_console/godmode/agentes/massive_delete_agents.php @@ -27,8 +27,6 @@ require_once ('include/functions_agents.php'); require_once ('include/functions_alerts.php'); require_once ('include/functions_modules.php'); -echo '

'.__('Massive agent deletion').'

'; - function process_manage_delete ($id_agents) { if (empty ($id_agents)) { echo '

'.__('No agents selected').'

'; @@ -64,6 +62,8 @@ $id_agents = get_parameter ('id_agents'); $delete = (bool) get_parameter_post ('delete'); +echo '

'.__('Massive agent deletion').'

'; + if ($delete) { process_manage_delete ($id_agents); } diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index f18236eb76..b1a1b4e63c 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -24,9 +24,13 @@ $config['start_time'] = microtime (true); $config['dbconnection'] = mysql_connect ($config["dbhost"], $config["dbuser"], $config["dbpass"]); if (! $config['dbconnection']) { exit (' - Pandora FMS Error + + + Pandora FMS Error -
+ + +
logo @@ -40,7 +44,9 @@ if (! $config['dbconnection']) { MySQL ERROR: '. mysql_error().'
 
-
'); +
+ + '); } mysql_select_db ($config["dbname"]);