From a94f044a9b7ab731929ef362bc1e1f38a84710ef Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 25 Jun 2009 13:03:53 +0000 Subject: [PATCH] 2009-06-25 Miguel de Dios * godmode/agentes/massive_delete_agents.php, godmode/agentes/massive_delete_agents.php: changes for clarity and maintenance code. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1771 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ .../godmode/agentes/massive_delete_agents.php | 4 ++-- pandora_console/include/config_process.php | 12 +++++++++--- 3 files changed, 17 insertions(+), 5 deletions(-) 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"]);