';
-if (defined('METACONSOLE')) {
+if (is_metaconsole() === true) {
if (!isset($config['custom_logo_login'])) {
- 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);
+ html_print_image(
+ 'enterprise/images/custom_logo_login/login_logo.png',
+ false,
+ [
+ 'class' => 'login_logo',
+ 'alt' => 'logo',
+ 'border' => 0,
+ 'title' => $logo_title,
+ ],
+ false
+ );
} else {
- 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);
+ html_print_image(
+ 'enterprise/images/custom_logo_login/'.$config['custom_logo_login'],
+ false,
+ [
+ 'class' => 'login_logo',
+ 'alt' => 'logo',
+ 'border' => 0,
+ 'title' => $logo_title,
+ ],
+ false
+ );
}
} else if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
if (!isset($config['custom_logo_login'])) {
@@ -344,9 +364,27 @@ if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
echo '';
if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
if (isset($config['custom_splash_login'])) {
- html_print_image('enterprise/images/custom_splash_login/'.$config['custom_splash_login'], false, [ 'alt' => 'splash', 'border' => 0], false, true);
+ html_print_image(
+ 'enterprise/images/custom_splash_login/'.$config['custom_splash_login'],
+ false,
+ [
+ 'alt' => 'splash',
+ 'border' => 0,
+ ],
+ false,
+ false
+ );
} else {
- html_print_image('enterprise/images/custom_splash_login/splash_image_default.png', false, ['alt' => 'logo', 'border' => 0], false, true);
+ html_print_image(
+ 'enterprise/images/custom_splash_login/splash_image_default.png',
+ false,
+ [
+ 'alt' => 'logo',
+ 'border' => 0,
+ ],
+ false,
+ false
+ );
}
} else {
html_print_image('images/splash_image_default.png', false, ['alt' => 'logo', 'border' => 0], false, true);
diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php
index 03a5edc584..27cf2646ef 100755
--- a/pandora_console/include/functions_ui.php
+++ b/pandora_console/include/functions_ui.php
@@ -1473,15 +1473,16 @@ function ui_require_css_file($name, $path='include/styles/', $echo_tag=false)
&& ! file_exists($config['homedir'].'/'.$filename)
&& ! file_exists($config['homedir'].'/'.ENTERPRISE_DIR.'/'.$filename)
) {
- return false;
- }
-
- if (is_metaconsole()) {
- $config['css'][$name] = '/../../'.$filename;
- } else {
- $config['css'][$name] = $filename;
+ if (is_metaconsole() === true
+ && file_exists('/../../'.$filename) === true
+ ) {
+ $filename = '/../../'.$filename;
+ } else {
+ return false;
+ }
}
+ $config['css'][$name] = $filename;
return true;
}