WelcomeWindow buttons

This commit is contained in:
jose.gonzalez@pandorafms.com 2022-10-25 16:25:34 +02:00
parent 3e8267d1fc
commit dd7f378354
1 changed files with 35 additions and 25 deletions

View File

@ -14,7 +14,7 @@
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______| * |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
* *
* ============================================================================ * ============================================================================
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas * Copyright (c) 2005-2022 Artica Soluciones Tecnologicas
* Please see http://pandorafms.org for full contribution list * Please see http://pandorafms.org for full contribution list
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -392,15 +392,10 @@ class WelcomeWindow extends Wizard
'class' => 'modal', 'class' => 'modal',
]; ];
$logo_url = ''; $logo_url = 'images/custom_logo/pandora_logo_head_white_bg.png';
if (enterprise_installed()) {
$logo_url = ENTERPRISE_DIR.'/';
}
if (empty($config['custom_logo_white_bg']) === false) { if (enterprise_installed() === true) {
$logo_url .= 'images/custom_logo/'.$config['custom_logo_white_bg']; $logo_url = ENTERPRISE_DIR.'/'.$logo_url;
} else {
$logo_url .= 'images/custom_logo/pandora_logo_head_white_bg.png';
} }
$inputs = [ $inputs = [
@ -421,7 +416,7 @@ class WelcomeWindow extends Wizard
[ [
'wrapper' => 'div', 'wrapper' => 'div',
'block_id' => 'div_configure_mail', 'block_id' => 'div_configure_mail',
'class' => 'hole flex-row w98p '.$li_configure_mail_class, 'class' => 'hole flex-row flex-items-center w98p '.$li_configure_mail_class,
'direct' => 1, 'direct' => 1,
'block_content' => [ 'block_content' => [
[ [
@ -436,7 +431,10 @@ class WelcomeWindow extends Wizard
'arguments' => [ 'arguments' => [
'label' => '', 'label' => '',
'type' => 'button', 'type' => 'button',
'attributes' => 'class="go '.$btn_configure_mail_class.' second_background"', 'attributes' => [
'class' => (empty($btn_configure_mail_class) === false) ? $btn_configure_mail_class : 'invisible_important',
'mode' => 'onlyIcon',
],
'name' => 'btn_email_conf', 'name' => 'btn_email_conf',
'id' => 'btn_email_conf', 'id' => 'btn_email_conf',
], ],
@ -455,7 +453,7 @@ class WelcomeWindow extends Wizard
[ [
'wrapper' => 'div', 'wrapper' => 'div',
'block_id' => 'div_create_agent', 'block_id' => 'div_create_agent',
'class' => 'learn_content_indented flex-row w98p '.$li_create_agent_class, 'class' => 'learn_content_indented flex-row flex-items-center w98p '.$li_create_agent_class,
'direct' => 1, 'direct' => 1,
'block_content' => [ 'block_content' => [
[ [
@ -470,7 +468,10 @@ class WelcomeWindow extends Wizard
'arguments' => [ 'arguments' => [
'label' => '', 'label' => '',
'type' => 'button', 'type' => 'button',
'attributes' => 'class="go '.$btn_create_agent_class.' second_background"', 'attributes' => [
'class' => (empty($btn_create_agent_class) === false) ? $btn_create_agent_class : 'invisible_important',
'mode' => 'onlyIcon',
],
'name' => 'btn_create_agent', 'name' => 'btn_create_agent',
'id' => 'btn_create_agent', 'id' => 'btn_create_agent',
], ],
@ -480,7 +481,7 @@ class WelcomeWindow extends Wizard
[ [
'wrapper' => 'div', 'wrapper' => 'div',
'block_id' => 'div_monitor_actions', 'block_id' => 'div_monitor_actions',
'class' => 'learn_content_indented flex-row w98p '.$li_create_module_class, 'class' => 'learn_content_indented flex-row flex-items-center w98p '.$li_create_module_class,
'direct' => 1, 'direct' => 1,
'block_content' => [ 'block_content' => [
[ [
@ -495,7 +496,10 @@ class WelcomeWindow extends Wizard
'arguments' => [ 'arguments' => [
'label' => '', 'label' => '',
'type' => 'button', 'type' => 'button',
'attributes' => 'class="go '.$btn_create_module_class.' second_background"', 'attributes' => [
'class' => (empty($btn_create_module_class) === false) ? $btn_create_module_class : 'invisible_important',
'mode' => 'onlyIcon',
],
'name' => 'btn_create_module', 'name' => 'btn_create_module',
'id' => 'btn_create_module', 'id' => 'btn_create_module',
], ],
@ -505,7 +509,7 @@ class WelcomeWindow extends Wizard
[ [
'wrapper' => 'div', 'wrapper' => 'div',
'block_id' => 'div_monitor_actions', 'block_id' => 'div_monitor_actions',
'class' => 'hole learn_content_indented flex-row w98p '.$li_create_alert_class, 'class' => 'hole learn_content_indented flex-row flex-items-center w98p '.$li_create_alert_class,
'direct' => 1, 'direct' => 1,
'block_content' => [ 'block_content' => [
[ [
@ -520,7 +524,10 @@ class WelcomeWindow extends Wizard
'arguments' => [ 'arguments' => [
'label' => '', 'label' => '',
'type' => 'button', 'type' => 'button',
'attributes' => 'class="go '.$btn_create_alert_class.' second_background"', 'attributes' => [
'class' => (empty($btn_create_alert_class) === false) ? $btn_create_alert_class : 'invisible_important',
'mode' => 'onlyIcon',
],
'name' => 'btn_create_alert', 'name' => 'btn_create_alert',
'id' => 'btn_create_alert', 'id' => 'btn_create_alert',
], ],
@ -530,7 +537,7 @@ class WelcomeWindow extends Wizard
[ [
'wrapper' => 'div', 'wrapper' => 'div',
'block_id' => 'div_discover', 'block_id' => 'div_discover',
'class' => 'hole flex-row w98p '.$li_create_discovery_class, 'class' => 'hole flex-row flex-items-center w98p '.$li_create_discovery_class,
'direct' => 1, 'direct' => 1,
'block_content' => [ 'block_content' => [
[ [
@ -545,7 +552,10 @@ class WelcomeWindow extends Wizard
'arguments' => [ 'arguments' => [
'label' => '', 'label' => '',
'type' => 'button', 'type' => 'button',
'attributes' => 'class="go '.$btn_create_discovery_class.' second_background"', 'attributes' => [
'class' => (empty($btn_create_discovery_class) === false) ? $btn_create_discovery_class : 'invisible_important',
'mode' => 'onlyIcon',
],
'name' => 'btn_discover_devices', 'name' => 'btn_discover_devices',
'id' => 'btn_discover_devices', 'id' => 'btn_discover_devices',
], ],
@ -554,11 +564,11 @@ class WelcomeWindow extends Wizard
], ],
]; ];
if (enterprise_installed()) { if (enterprise_installed() === true) {
$inputs[] = [ $inputs[] = [
'wrapper' => 'div', 'wrapper' => 'div',
'block_id' => 'div_not_working', 'block_id' => 'div_not_working',
'class' => 'hole flex-row w98p', 'class' => 'hole flex-row flex-items-center w98p',
'direct' => 1, 'direct' => 1,
'block_content' => [ 'block_content' => [
[ [
@ -773,7 +783,7 @@ class WelcomeWindow extends Wizard
// Create Discovery task is pending. // Create Discovery task is pending.
// Host&Devices finishses on page 2. // Host&Devices finishses on page 2.
if ($sec2 === 'godmode/servers/discovery' if ($sec2 === 'godmode/servers/discovery'
&& get_parameter('page', 0) == 2 && (int) get_parameter('page') === 2
) { ) {
// Discovery task have been created. // Discovery task have been created.
$this->step = W_CREATE_TASK; $this->step = W_CREATE_TASK;