0) { metaconsole_connect(null, $node); } } if ($networkmap) { $networkmap_id = get_parameter('networkmap_id', 0); $x_offset = get_parameter('x_offset', 0); $y_offset = get_parameter('y_offset', 0); $zoom_dash = get_parameter('zoom_dash', 0.5); // Dashboard mode. $ignore_acl = (bool) get_parameter('ignore_acl', 0); $networkmap = db_get_row_filter('tmap', ['id' => $networkmap_id]); if ($ignore_acl === false) { // ACL for the network map. $networkmap_read = check_acl($config['id_user'], $networkmap['id_group'], 'MR'); $networkmap_write = check_acl($config['id_user'], $networkmap['id_group'], 'MW'); $networkmap_manage = check_acl($config['id_user'], $networkmap['id_group'], 'MM'); if (!$networkmap_read && !$networkmap_write && !$networkmap_manage) { db_pandora_audit( AUDIT_LOG_ACL_VIOLATION, 'Trying to access networkmap' ); include 'general/noaccess.php'; if ($node > 0) { metaconsole_restore_db(); } return; } } ob_start(); if ($networkmap['generation_method'] == LAYOUT_RADIAL_DYNAMIC) { $data['name'] = ''.$networkmap['name'].''; global $id_networkmap; $id_networkmap = $networkmap['id']; $tab = 'radial_dynamic'; include_once 'operation/agentes/networkmap.dinamic.php'; } else { $map = new NetworkMap( [ 'id_map' => $networkmap_id, 'widget' => 1, 'pure' => 1, 'no_popup' => 1, 'map_options' => [ 'x_offs' => $x_offset, 'y_offs' => $y_offset, 'z_dash' => $zoom_dash, ], ] ); $map->printMap(false, $ignore_acl); } $return = ob_get_clean(); echo $return; if ($node > 0) { metaconsole_restore_db(); } return; } if ($node > 0) { metaconsole_restore_db(); }