mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Merge branch 'ent-12050-security-hardening-console-widget-dashboard' into 'develop'
Ent 12050 Security hardening: Console - Widget dashboard See merge request artica/pandorafms!6450
This commit is contained in:
commit
6acbc5b684
BIN
pandora_console/images/widgets/security_hardening.png
Normal file
BIN
pandora_console/images/widgets/security_hardening.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
@ -6280,6 +6280,20 @@ function html_print_input($data, $wrapper='div', $input_only=false)
|
||||
);
|
||||
break;
|
||||
|
||||
case 'date_range':
|
||||
$output .= html_print_select_date_range(
|
||||
$data['name'],
|
||||
true,
|
||||
(isset($data['selected']) === true) ? $data['selected'] : SECONDS_1DAY,
|
||||
(isset($data['date_init']) === true) ? $data['date_init'] : '',
|
||||
(isset($data['time_init']) === true) ? $data['time_init'] : '',
|
||||
(isset($data['date_end']) === true) ? $data['date_end'] : '',
|
||||
(isset($data['time_end']) === true) ? $data['time_end'] : '',
|
||||
(isset($data['date_text']) === true) ? $data['date_text'] : SECONDS_1DAY,
|
||||
(isset($data['class']) === true) ? $data['class'] : 'w100p',
|
||||
);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Ignore.
|
||||
break;
|
||||
|
@ -444,6 +444,14 @@ class Widget
|
||||
$className .= '\HeatmapWidget';
|
||||
break;
|
||||
|
||||
case 'security_hardening':
|
||||
if (\enterprise_installed() === false) {
|
||||
$not_installed = true;
|
||||
}
|
||||
|
||||
$className .= '\SecurityHardening';
|
||||
break;
|
||||
|
||||
default:
|
||||
$className = false;
|
||||
break;
|
||||
|
1145
pandora_console/include/lib/Dashboard/Widgets/security_hardening.php
Normal file
1145
pandora_console/include/lib/Dashboard/Widgets/security_hardening.php
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user