$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($config['id_user'], $groupId, 'VR'); $aclWrite = check_acl($config['id_user'], $groupId, 'VW'); $aclManage = check_acl($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')] ).''; 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')] ).''; $options['public_link']['active'] = false; $options['data']['text'] = ''.html_print_image( 'images/op_reporting.png', true, ['title' => __('Main data')] ).''; $options['list_elements']['text'] = ''.html_print_image( 'images/list.png', true, ['title' => __('List elements')] ).''; if (enterprise_installed()) { $options['wizard_services']['text'] = ''.html_print_image( 'images/wand_services.png', true, ['title' => __('Services wizard')] ).''; } $options['wizard']['text'] = ''.html_print_image( 'images/wand.png', true, ['title' => __('Wizard')] ).''; $options['editor']['text'] = ''.html_print_image( 'images/builder.png', true, ['title' => __('Builder')] ).''; } $options['view']['text'] = ''.html_print_image( 'images/operation.png', true, ['title' => __('View')] ).''; $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')] ).''; ui_print_page_header( $visualConsoleName, 'images/visual_console.png', false, '', 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); } if ($pure === false) { echo '