From ce946fff3c1ca24df83015a76c3a6f7314f1d20b Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Thu, 26 Feb 2015 18:55:17 +0100 Subject: [PATCH] The interfaces graph popup now appears properly in the metaconsole --- pandora_console/include/functions_treeview.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index fb50f16d05..944fa2c3d8 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -554,7 +554,21 @@ function treeview_printTable($id_agente, $server_data = array()) { $params_json = json_encode($params); $params_encoded = base64_encode($params_json); $win_handle = dechex(crc32($interface['status_module_id'].$interface_name)); - $graph_link = "" . + + $graph_url = ''; + if (!defined('METACONSOLE')) { + $graph_url = $config['homeurl'] . + "operation/agentes/interface_traffic_graph_win.php?" . + "params=$params_encoded"; + } + else if (!empty($server)) { + $graph_url = ui_meta_get_url_console_child( + $server_id, null, null, null, null, + "operation/agentes/interface_traffic_graph_win.php?" . + "params=$params_encoded"); + } + + $graph_link = "" . html_print_image("images/chart_curve.png", true, array("title" => __('Interface traffic'))) . ""; } else {