fixed minor error

This commit is contained in:
Daniel Barbero Martin 2021-03-26 13:25:42 +01:00
parent 1f74bd071c
commit 487a9b96d9
3 changed files with 10 additions and 7 deletions

View File

@ -122,10 +122,10 @@ if ($action == 'new') {
src="">';
} else {
if (defined('METACONSOLE')) {
$table->data[0][2] = '<img id="imagen2"
$table->data[0][2] = '<img id="imagen2" style="width:230px;"
src="../../images/console/background/'.$background.'">';
} else {
$table->data[0][2] = '<img id="imagen2"
$table->data[0][2] = '<img id="imagen2" style="width:230px;"
src="images/console/background/'.$background.'">';
}

View File

@ -20,10 +20,13 @@ require_once $config['homedir'].'/include/functions_visual_map.php';
require_once $config['homedir'].'/include/functions_agents.php';
enterprise_include_once('include/functions_visual_map.php');
// Retrieve the visual console id
// Retrieve the visual console id.
set_unless_defined($idVisualConsole, 0);
// Set default
// Set default.
$idVisualConsole = get_parameter('id_visual_console', $idVisualConsole);
if (empty($idVisualConsole) === true) {
$idVisualConsole = get_parameter('id_visualmap', 0);
}
if (!defined('METACONSOLE')) {
$action_name_parameter = 'action';
@ -795,7 +798,7 @@ $buttons['view'] = [
'text' => '<a href="'.$url_view.'">'.html_print_image('images/operation.png', true, ['title' => __('View'), 'class' => 'invert_filter']).'</a>',
];
if ($action == 'new' || $idVisualConsole === false) {
if ($idVisualConsole === false) {
$buttons = ['data' => $buttons['data']];
// Show only the data tab
// If it is a fail try, reset the values
@ -822,7 +825,7 @@ if ($statusProcessInDB !== null) {
echo $statusProcessInDB['message'];
}
// The source code for PAINT THE PAGE
// The source code for PAINT THE PAGE.
switch ($activeTab) {
case 'wizard':
include_once $config['homedir'].'/godmode/reporting/visual_console_builder.wizard.php';

View File

@ -16,7 +16,7 @@ global $config;
check_login();
// Visual console required.
if (empty($visualConsole)) {
if (empty($visualConsole) === true) {
db_pandora_audit(
'ACL Violation',
'Trying to access report builder'