diff --git a/pandora_console/godmode/agentes/agent_wizard.php b/pandora_console/godmode/agentes/agent_wizard.php index 36236a89bc..c04edf4d66 100644 --- a/pandora_console/godmode/agentes/agent_wizard.php +++ b/pandora_console/godmode/agentes/agent_wizard.php @@ -1,74 +1,5 @@ '[AgentWizard]'.$e->getMessage() ]); - exit; - } else { - echo '[AgentWizard]'.$e->getMessage(); - } - - // Stop this execution, but continue 'globally'. - return; -} - -// AJAX controller. -if (is_ajax()) { - $method = get_parameter('method'); - - if (method_exists($obj, $method) === true) { - $obj->{$method}(); - } else { - $obj->error('Method not found. ['.$method.']'); - } - - // Stop any execution. - exit; -} else { - // Run. - $obj->run(); -} - - -// OLD. FOR ERASE. // Pandora FMS - http://pandorafms.com // ================================================== // Copyright (c) 2005-2011 Artica Soluciones Tecnologicas @@ -80,16 +11,15 @@ if (is_ajax()) { // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -/* - global $config; +global $config; - check_login(); +check_login(); - $wizard_section = get_parameter('wizard_section', 'snmp_interfaces_explorer'); - $idAgent = (int) get_parameter('id_agente', 0); - $ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent); +$wizard_section = get_parameter('wizard_section', 'snmp_interfaces_explorer'); +$idAgent = (int) get_parameter('id_agente', 0); +$ipAgent = db_get_value('direccion', 'tagente', 'id_agente', $idAgent); - switch ($wizard_section) { +switch ($wizard_section) { case 'snmp_interfaces_explorer': $snmp_interfaces_explorer_style = 'font-weight: bold;'; $wmi_explorer_style = ''; @@ -104,9 +34,9 @@ if (is_ajax()) { $snmp_interfaces_explorer_style = ''; $wmi_explorer_style = 'font-weight: bold;'; break; - } +} - /* +/* echo "