mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#10598 remove show license and show always
This commit is contained in:
parent
e6e4448ea9
commit
4407efecc0
@ -385,7 +385,6 @@ class WelcomeWindow extends Wizard
|
|||||||
$flag_su = true;
|
$flag_su = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$show_license = true;
|
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
$license_valid = true;
|
$license_valid = true;
|
||||||
enterprise_include_once('include/functions_license.php');
|
enterprise_include_once('include/functions_license.php');
|
||||||
@ -405,7 +404,9 @@ class WelcomeWindow extends Wizard
|
|||||||
$flag_lv = false;
|
$flag_lv = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$show_license = false;
|
$btn_license_valid_class = 'fail';
|
||||||
|
$li_license_valid_class = 'row_grey';
|
||||||
|
$flag_lv = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$inputs[] = [
|
$inputs[] = [
|
||||||
@ -510,36 +511,34 @@ class WelcomeWindow extends Wizard
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
if ($show_license) {
|
$inputs[] = [
|
||||||
$inputs[] = [
|
'wrapper' => 'div',
|
||||||
'wrapper' => 'div',
|
'block_id' => 'div_license_valid',
|
||||||
'block_id' => 'div_license_valid',
|
'class' => 'hole flex-row flex-items-center w98p '.$li_license_valid_class,
|
||||||
'class' => 'hole flex-row flex-items-center w98p '.$li_license_valid_class,
|
'direct' => 1,
|
||||||
'direct' => 1,
|
'block_content' => [
|
||||||
'block_content' => [
|
[
|
||||||
[
|
'label' => __('Enterprise licence valid'),
|
||||||
'label' => __('Enterprise licence valid'),
|
'arguments' => [
|
||||||
'arguments' => [
|
'class' => 'first_lbl',
|
||||||
'class' => 'first_lbl',
|
'name' => 'lbl_license_valid',
|
||||||
'name' => 'lbl_license_valid',
|
'id' => 'lbl_license_valid',
|
||||||
'id' => 'lbl_license_valid',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'arguments' => [
|
|
||||||
'label' => '',
|
|
||||||
'type' => 'button',
|
|
||||||
'attributes' => [
|
|
||||||
'class' => (empty($btn_license_valid_class) === false) ? $btn_license_valid_class : 'invisible_important',
|
|
||||||
'mode' => 'onlyIcon',
|
|
||||||
],
|
|
||||||
'name' => 'btn_license_valid_conf',
|
|
||||||
'id' => 'btn_license_valid_conf',
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
[
|
||||||
}
|
'arguments' => [
|
||||||
|
'label' => '',
|
||||||
|
'type' => 'button',
|
||||||
|
'attributes' => [
|
||||||
|
'class' => (empty($btn_license_valid_class) === false) ? $btn_license_valid_class : 'invisible_important',
|
||||||
|
'mode' => 'onlyIcon',
|
||||||
|
],
|
||||||
|
'name' => 'btn_license_valid_conf',
|
||||||
|
'id' => 'btn_license_valid_conf',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
} else {
|
} else {
|
||||||
$inputs[] = [
|
$inputs[] = [
|
||||||
'wrapper' => 'div',
|
'wrapper' => 'div',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user