false,
'text' => ''.html_print_image(
'images/normal_screen.png',
true,
[
'title' => __('Normal screen'),
'class' => 'invert_filter',
]
).'',
];
} else {
if (!$dash_mode) {
$buttons['screen'] = [
'active' => false,
'text' => ''.html_print_image(
'images/full_screen.png',
true,
[
'title' => __('Full screen'),
'class' => 'invert_filter',
]
).'',
];
$buttons['list'] = [
'active' => false,
'text' => ''.html_print_image(
'images/list.png',
true,
[
'title' => __('List of networkmap'),
'class' => 'invert_filter',
]
).'',
];
}
}
ui_print_page_header(
io_safe_output($networkmap['name']),
'images/bricks.png',
false,
'network_map_enterprise_list',
false,
$buttons,
false,
'',
$config['item_title_size_text']
);
global $width;
global $height;
if (_id_ != '_id_') {
$width = [];
$height = [];
}
if (empty($width)) {
$width = 600;
}
if (empty($height)) {
$height = 650;
}
if ($activeTab == 'radial_dynamic') {
include_once 'include/functions_graph.php';
echo "
";
$filter = [];
if ($networkmap['source'] == 0) {
$filter['group'] = $networkmap['source_data'];
}
$map_filter = json_decode($networkmap['filter'], true);
if (isset($map_filter['dont_show_subgroups']) && $map_filter['dont_show_subgroups']) {
$filter['dont_show_subgroups'] = true;
} else {
$filter['dont_show_subgroups'] = false;
}
if (!empty($module_group)) {
$filter['module_group'] = $module_group;
}
echo graph_monitor_wheel($width, $height, $filter, $strict_user);
echo '
';
return;
}
$networkmap = db_get_row('tmap', 'id', $id);
switch ($networkmap['generation_method']) {
case 0:
$layout = 'circular';
break;
case 1:
$layout = 'flat';
break;
case 2:
$layout = 'radial';
break;
case 3:
$layout = 'neato';
break;
case 4:
$layout = 'spring1';
break;
case 5:
$layout = 'spring2';
break;
}
// Set filter
$filter = networkmap_get_filter($layout);
if (!isset($text_filter)) {
$text_filter = '';
}
// Generate dot file
$graph = networkmap_generate_hash(
__('Pandora FMS'),
$group,
$simple,
$font_size,
$layout,
$nooverlap,
$zoom,
$ranksep,
$center,
$regen,
$pure,
$id,
$show_snmp_modules,
true,
true,
$text_filter,
$strict_user
);
networkmap_print_jsdata($graph);
$zoom_default = file($config['homedir'].'/images/zoom_default.svg');
?>
';
?>