diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 2410094c41..7eb798296a 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -160,21 +160,21 @@ echo '
'; echo ''; if (defined('METACONSOLE')) { if (!isset($config['custom_logo_login'])) { - html_print_image('images/custom_logo_login/login_logo.png', false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); + html_print_image(ui_get_full_url('images/custom_logo_login/login_logo.png'), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } else { - html_print_image('images/custom_logo_login/'.$config['custom_logo_login'], false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); + html_print_image(ui_get_full_url('images/custom_logo_login/'.$config['custom_logo_login']), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } } else if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) { if (!isset($config['custom_logo_login'])) { - html_print_image('enterprise/images/custom_logo_login/login_logo_v7.png', false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); + html_print_image(ui_get_full_url('enterprise/images/custom_logo_login/login_logo_v7.png'), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } else { - html_print_image('enterprise/images/custom_logo_login/'.$config['custom_logo_login'], false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); + html_print_image(ui_get_full_url('enterprise/images/custom_logo_login/'.$config['custom_logo_login']), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } } else { - if (!isset($config['custom_logo_login']) || $config['custom_logo_login'] === 0) { - html_print_image('images/custom_logo_login/pandora_logo.png', false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); + if (empty($config['custom_logo_login']) === true) { + html_print_image(ui_get_full_url('images/custom_logo_login/pandora_logo.png'), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } else { - html_print_image('images/custom_logo_login/'.$config['custom_logo_login'], false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); + html_print_image(ui_get_full_url('images/custom_logo_login/').$config['custom_logo_login'], false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } // I comment this in case in the future we put a logo without text. diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 26adab6d06..8cdc094486 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -11112,7 +11112,7 @@ function reporting_get_stats_servers() $output .= 'parameters["page"] = "include/ajax/events";'; $output .= 'parameters["total_events"] = 1;'; - $output .= '$.ajax({type: "GET",url: "/pandora_console/ajax.php",data: parameters,'; + $output .= '$.ajax({type: "GET",url: "'.ui_get_full_url('ajax.php', false, false, false).'",data: parameters,'; $output .= 'success: function(data) {'; $output .= '$("#total_events").text(data);'; $output .= '}'; diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index 1a54e84afc..b691d313d9 100755 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -235,7 +235,7 @@ echo ''; parameters["page"] = "include/ajax/events"; parameters["total_event_graph"] = 1; - $.ajax({type: "GET",url: "ajax.php",data: parameters, + $.ajax({type: "GET",url: "",data: parameters, success: function(data) { $("#spinner_total_event_graph").hide(); $("#total_event_graph").append(data); @@ -245,7 +245,7 @@ echo ''; delete parameters["total_event_graph"]; parameters["graphic_event_group"] = 1; - $.ajax({type: "GET",url: "ajax.php",data: parameters, + $.ajax({type: "GET",url: "",data: parameters, success: function(data) { $("#spinner_graphic_event_group").hide(); $("#graphic_event_group").append(data);