added ui_get_full_url to paths
This commit is contained in:
parent
a53966e286
commit
b29e0c7966
|
@ -160,21 +160,21 @@ echo '<div class="login_page">';
|
||||||
echo '<a href="'.$logo_link.'">';
|
echo '<a href="'.$logo_link.'">';
|
||||||
if (defined('METACONSOLE')) {
|
if (defined('METACONSOLE')) {
|
||||||
if (!isset($config['custom_logo_login'])) {
|
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 {
|
} 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')) {
|
} else if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
||||||
if (!isset($config['custom_logo_login'])) {
|
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 {
|
} 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 {
|
} else {
|
||||||
if (!isset($config['custom_logo_login']) || $config['custom_logo_login'] === 0) {
|
if (empty($config['custom_logo_login']) === true) {
|
||||||
html_print_image('images/custom_logo_login/pandora_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/pandora_logo.png'), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true);
|
||||||
} else {
|
} 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.
|
// I comment this in case in the future we put a logo without text.
|
||||||
|
|
|
@ -11112,7 +11112,7 @@ function reporting_get_stats_servers()
|
||||||
$output .= 'parameters["page"] = "include/ajax/events";';
|
$output .= 'parameters["page"] = "include/ajax/events";';
|
||||||
$output .= 'parameters["total_events"] = 1;';
|
$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 .= 'success: function(data) {';
|
||||||
$output .= '$("#total_events").text(data);';
|
$output .= '$("#total_events").text(data);';
|
||||||
$output .= '}';
|
$output .= '}';
|
||||||
|
|
|
@ -235,7 +235,7 @@ echo '</tr></table>';
|
||||||
parameters["page"] = "include/ajax/events";
|
parameters["page"] = "include/ajax/events";
|
||||||
parameters["total_event_graph"] = 1;
|
parameters["total_event_graph"] = 1;
|
||||||
|
|
||||||
$.ajax({type: "GET",url: "ajax.php",data: parameters,
|
$.ajax({type: "GET",url: "<?php echo ui_get_full_url('ajax.php', false, false, false); ?>",data: parameters,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$("#spinner_total_event_graph").hide();
|
$("#spinner_total_event_graph").hide();
|
||||||
$("#total_event_graph").append(data);
|
$("#total_event_graph").append(data);
|
||||||
|
@ -245,7 +245,7 @@ echo '</tr></table>';
|
||||||
delete parameters["total_event_graph"];
|
delete parameters["total_event_graph"];
|
||||||
parameters["graphic_event_group"] = 1;
|
parameters["graphic_event_group"] = 1;
|
||||||
|
|
||||||
$.ajax({type: "GET",url: "ajax.php",data: parameters,
|
$.ajax({type: "GET",url: "<?php echo ui_get_full_url('ajax.php', false, false, false); ?>",data: parameters,
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$("#spinner_graphic_event_group").hide();
|
$("#spinner_graphic_event_group").hide();
|
||||||
$("#graphic_event_group").append(data);
|
$("#graphic_event_group").append(data);
|
||||||
|
|
Loading…
Reference in New Issue