From 931477fcd57edf717d8f825cead17de8226fb1fd Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Mon, 21 Feb 2022 12:26:48 +0100 Subject: [PATCH] implement new netflow item --- pandora_console/include/functions_api.php | 2 +- pandora_console/include/functions_netflow.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index c74fc94278..e03036ce01 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -13810,7 +13810,7 @@ function api_get_netflow_get_top_N($trash1, $trash2, $params) // http://localhost/pandora_console/include/api.php?op=get&op2=netflow_get_summary&other=1348562410|1348648810|_base64_encode(json_encode($filter))&other_mode=url_encode_separator_|&apipass=pandora&user=pandora&pass=pandora' function api_get_netflow_get_summary($discard_1, $discard_2, $params) { - if (defined('METACONSOLE')) { + if (is_metaconsole() === true) { return; } diff --git a/pandora_console/include/functions_netflow.php b/pandora_console/include/functions_netflow.php index ac25aa4153..2698d94aeb 100644 --- a/pandora_console/include/functions_netflow.php +++ b/pandora_console/include/functions_netflow.php @@ -840,7 +840,7 @@ function netflow_get_summary($start_date, $end_date, $filter, $connection_name=' global $config; // Requesting remote data. - if (defined('METACONSOLE') && $connection_name != '') { + if (is_metaconsole() === true && $connection_name != '') { $data = metaconsole_call_remote_api($connection_name, 'netflow_get_summary', "$start_date|$end_date|".base64_encode(json_encode($filter))); return json_decode($data, true); }