From d8a29769267def0bce45c422ca46c75874fb1489 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Wed, 18 Mar 2015 12:26:12 +0100 Subject: [PATCH] Revert "Fixed an SQL error when serving the agent status tooltip" This reverts commit 96389ee94e5dc133e241ba30dd9e05c15483a00b. --- .../operation/agentes/stat_win.php | 44 +++---------------- 1 file changed, 7 insertions(+), 37 deletions(-) diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index e71955c871..206678bf92 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -27,7 +27,6 @@ require_once ($config['homedir'] . '/include/functions_db.php'); require_once ($config['homedir'] . '/include/functions_reporting.php'); require_once ($config['homedir'] . '/include/functions_graph.php'); require_once ($config['homedir'] . '/include/functions_modules.php'); -require_once ($config['homedir'] . '/include/functions_agents.php'); // Hash login process if (! isset ($config['id_user']) && get_parameter("loginhash", 0)) { @@ -48,21 +47,6 @@ if (! isset ($config['id_user']) && get_parameter("loginhash", 0)) { check_login (); -$server_id = (int) get_parameter("server"); - -if (!empty($server_id) && defined('METACONSOLE')) { - $server = metaconsole_get_connection_by_id($server_id); - - if (metaconsole_connect($server) !== NOERR) { - echo ""; - echo ""; - ui_print_error_message(__('There was a problem connecting with the node')); - echo ""; - echo ""; - exit; - } -} - $user_language = get_user_language ($config['id_user']); if (file_exists ('../../include/languages/'.$user_language.'.mo')) { $l10n = new gettext_reader (new CachedFileReader ('../../include/languages/'.$user_language.'.mo')); @@ -117,36 +101,22 @@ $label = base64_decode(get_parameter('label', ''));