Cleanup Networkmaps
Former-commit-id: 68893c73092e80bf4a67a0aa82c51ec242aab01f
This commit is contained in:
parent
750c64fbd7
commit
95c61024f7
|
@ -30,9 +30,7 @@
|
|||
global $config;
|
||||
|
||||
require_once $config['homedir'].'/include/functions_networkmap.php';
|
||||
require_once $config['homedir'].'/include/functions_pandora_networkmap.php';
|
||||
|
||||
enterprise_include_once('include/functions_pandora_networkmap.php');
|
||||
enterprise_include_once('include/functions_networkmap.php');
|
||||
|
||||
define('SOURCE_GROUP', 0);
|
||||
define('SOURCE_TASK', 1);
|
||||
|
@ -653,7 +651,6 @@ class NetworkMap
|
|||
ui_print_error_message(
|
||||
__('Failed to generate dotmap, please select different layout schema')
|
||||
);
|
||||
$this->graph = networkmap_process_networkmap($this->idMap);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -2202,7 +2202,7 @@ function agents_delete_agent($id_agents, $disableACL=false)
|
|||
|
||||
// Delete agent in networkmap enterprise
|
||||
if (enterprise_installed()) {
|
||||
enterprise_include_once('include/functions_pandora_networkmap.php');
|
||||
enterprise_include_once('include/functions_networkmap.php');
|
||||
networkmap_delete_nodes_by_agent([$id_agent]);
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,17 +1,29 @@
|
|||
<?php
|
||||
;
|
||||
// Pandora FMS - http://pandorafms.com
|
||||
// ==================================================
|
||||
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
||||
// Please see http://pandorafms.org for full contribution list
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License
|
||||
// as published by the Free Software Foundation; version 2
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// 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.
|
||||
/*
|
||||
* @package Include
|
||||
* @subpackage Networkmaps
|
||||
/**
|
||||
* Library for networkmaps in Pandora FMS
|
||||
*
|
||||
* @category Deprecated
|
||||
* @package Pandora FMS
|
||||
* @subpackage NetworkMap
|
||||
* @version 1.0.0
|
||||
* @license See below
|
||||
*
|
||||
* ______ ___ _______ _______ ________
|
||||
* | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
|
||||
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
|
||||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||
*
|
||||
* ============================================================================
|
||||
* Copyright (c) 2005-2019 Artica Soluciones Tecnologicas
|
||||
* Please see http://pandorafms.org for full contribution list
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation for version 2.
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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.
|
||||
* ============================================================================
|
||||
*/
|
||||
|
||||
// Deprecated.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -30,7 +30,6 @@ if (!$networkmaps_read && !$networkmaps_write && !$networkmaps_manage) {
|
|||
}
|
||||
|
||||
require_once 'include/functions_networkmap.php';
|
||||
require_once 'include/functions_pandora_networkmap.php';
|
||||
|
||||
$new_networkmap = (bool) get_parameter('new_networkmap', false);
|
||||
$save_networkmap = (bool) get_parameter('save_networkmap', false);
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
global $config;
|
||||
|
||||
require_once 'include/functions_pandora_networkmap.php';
|
||||
require_once 'include/functions_networkmap.php';
|
||||
enterprise_include_once('include/functions_policies.php');
|
||||
enterprise_include_once('include/functions_dashboard.php');
|
||||
require_once 'include/functions_modules.php';
|
||||
|
@ -866,13 +866,6 @@ if ($networkmap === false) {
|
|||
);
|
||||
}
|
||||
|
||||
/*
|
||||
$nodes_and_relations = networkmap_process_networkmap($id);
|
||||
|
||||
show_networkmap($id, $user_readonly, $nodes_and_relations, $dash_mode, $map_dash_details);
|
||||
*/
|
||||
|
||||
|
||||
include_once $config['homedir'].'/include/class/NetworkMap.class.php';
|
||||
|
||||
$map_manager = new NetworkMap(
|
||||
|
|
Loading…
Reference in New Issue