$visualConsoleId]); } catch (Throwable $e) { db_pandora_audit( 'ACL Violation', 'Trying to access visual console without Id' ); include 'general/noaccess.php'; exit; } $visualConsoleData = $visualConsole->toArray(); $groupId = $visualConsoleData['groupId']; $visualConsoleName = $visualConsoleData['name']; // ACL. $aclRead = check_acl_restricted_all($config['id_user'], $groupId, 'VR'); $aclWrite = check_acl_restricted_all($config['id_user'], $groupId, 'VW'); $aclManage = check_acl_restricted_all($config['id_user'], $groupId, 'VM'); if (!$aclRead && !$aclWrite && !$aclManage) { db_pandora_audit( 'ACL Violation', 'Trying to access visual console without group access' ); include 'general/noaccess.php'; exit; } // Render map. $options = []; $options['consoles_list']['text'] = ''.html_print_image( 'images/visual_console.png', true, [ 'title' => __('Visual consoles list'), 'class' => 'invert_filter', ] ).''; if ($aclWrite || $aclManage) { $action = get_parameterBetweenListValues( is_metaconsole() ? 'action2' : 'action', [ 'new', 'save', 'edit', 'update', 'delete', ], 'edit' ); $baseUrl = 'index.php?sec=network&sec2=godmode/reporting/visual_console_builder&action='.$action; $hash = md5($config['dbpass'].$visualConsoleId.$config['id_user']); $options['public_link']['text'] = ''.html_print_image( 'images/camera_mc.png', true, [ 'title' => __('Show link to public Visual Console'), 'class' => 'invert_filter', ] ).''; $options['public_link']['active'] = false; $options['data']['text'] = ''.html_print_image( 'images/op_reporting.png', true, [ 'title' => __('Main data'), 'class' => 'invert_filter', ] ).''; $options['list_elements']['text'] = ''.html_print_image( 'images/list.png', true, [ 'title' => __('List elements'), 'class' => 'invert_filter', ] ).''; if (enterprise_installed()) { $options['wizard_services']['text'] = ''.html_print_image( 'images/wand_services.png', true, [ 'title' => __('Services wizard'), 'class' => 'invert_filter', ] ).''; } $options['wizard']['text'] = ''.html_print_image( 'images/wand.png', true, [ 'title' => __('Wizard'), 'class' => 'invert_filter', ] ).''; } $options['view']['text'] = ''.html_print_image( 'images/eye.png', true, [ 'title' => __('View'), 'class' => 'invert_filter', ] ).''; $options['view']['active'] = true; if (!is_metaconsole()) { if (!$config['pure']) { $options['pure']['text'] = ''.html_print_image( 'images/full_screen.png', true, [ 'title' => __('Full screen mode'), 'class' => 'invert_filter', ] ).''; ui_print_page_header( $visualConsoleName, 'images/visual_console.png', false, 'visual_console_view', false, $options ); } // Set the hidden value for the javascript. html_print_input_hidden('metaconsole', 0); } else { // Set the hidden value for the javascript. html_print_input_hidden('metaconsole', 1); } $edit_capable = (bool) ( check_acl($config['id_user'], 0, 'VM') || check_acl($config['id_user'], 0, 'VW') ); if ($pure === false) { if ($edit_capable === true) { echo '
'; echo ''; if ($aclWrite || $aclManage) { echo html_print_checkbox_switch('edit-mode', 1, false, true); } echo '
'; } } echo '
'; echo '
'; echo '
'; if ($pure === true) { // Floating menu - Start. echo '
'; echo ''; echo '
'; // Floating menu - End. ?>