mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Merge branch 'ent-9662-Restyling-fuentes-colores-botones' of brutus.artica.es:artica/pandorafms into ent-9662-Restyling-fuentes-colores-botones
This commit is contained in:
commit
1c057773aa
@ -76,10 +76,6 @@ function dbmgr_extension_main()
|
||||
|
||||
global $config;
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
open_meta_frame();
|
||||
}
|
||||
|
||||
if (!is_user_admin($config['id_user'])) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
@ -92,7 +88,21 @@ function dbmgr_extension_main()
|
||||
$sql = (string) get_parameter('sql');
|
||||
$node_id = (int) get_parameter('node_id', -1);
|
||||
|
||||
ui_print_page_header(__('Database interface'), 'images/gm_db.png', false, false, true);
|
||||
// Header.
|
||||
ui_print_standard_header(
|
||||
__('Database interface'),
|
||||
'images/gm_db.png',
|
||||
false,
|
||||
'',
|
||||
true,
|
||||
[],
|
||||
[
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('Extensions'),
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
$img = '../../images/warning_modern.png';
|
||||
@ -285,10 +295,6 @@ function dbmgr_extension_main()
|
||||
html_print_table($table);
|
||||
echo '</div>';
|
||||
|
||||
if (is_metaconsole()) {
|
||||
close_meta_frame();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -36,10 +36,6 @@ enterprise_include_once('meta/include/functions_alerts_meta.php');
|
||||
|
||||
check_login();
|
||||
|
||||
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl($config['id_user'], 0, 'LM')) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
@ -473,5 +469,3 @@ if (is_management_allowed() === true) {
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
@ -566,8 +566,6 @@ tyle='display:none;'>";
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if ($update_command) {
|
||||
include_once 'configure_alert_command.php';
|
||||
return;
|
||||
@ -836,8 +834,6 @@ if (users_is_admin() === true) {
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
@ -21,8 +21,6 @@ enterprise_include_once('meta/include/functions_alerts_meta.php');
|
||||
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (is_ajax()) {
|
||||
$get_template_tooltip = (bool) get_parameter('get_template_tooltip');
|
||||
|
||||
@ -124,7 +122,7 @@ $sec = (is_metaconsole() === true) ? 'advanced' : 'galertas';
|
||||
// case delete_templete action is performed.
|
||||
if (!$delete_template) {
|
||||
// Header.
|
||||
if (defined('METACONSOLE')) {
|
||||
if (is_metaconsole() === true) {
|
||||
alerts_meta_print_header();
|
||||
} else {
|
||||
ui_print_page_header(
|
||||
@ -485,5 +483,3 @@ if (is_management_allowed() === true) {
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
@ -48,8 +48,6 @@ if (is_ajax()) {
|
||||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
$sec = 'advanced';
|
||||
} else {
|
||||
@ -412,8 +410,6 @@ if ($is_management_allowed === true) {
|
||||
|
||||
echo '</form>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
ui_require_javascript_file('pandora_alerts');
|
||||
ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
||||
?>
|
||||
|
@ -36,8 +36,6 @@ enterprise_include_once('meta/include/functions_alerts_meta.php');
|
||||
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl($config['id_user'], 0, 'PM')) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
@ -392,7 +390,6 @@ if ($is_management_allowed === true) {
|
||||
|
||||
echo '</form>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
@ -32,8 +32,6 @@ global $config;
|
||||
// Check login and ACLs.
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (!check_acl($config['id_user'], 0, 'PM') && !is_user_admin($config['id_user'])) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
@ -70,30 +68,24 @@ $buttons = [
|
||||
|
||||
$buttons[$tab]['active'] = true;
|
||||
|
||||
// Header.
|
||||
if (is_metaconsole() === true) {
|
||||
ui_meta_print_header(__('Categories configuration'), __('List'), $buttons);
|
||||
} else {
|
||||
ui_print_standard_header(
|
||||
__('Categories configuration'),
|
||||
'images/gm_modules.png',
|
||||
false,
|
||||
'',
|
||||
true,
|
||||
$buttons,
|
||||
ui_print_standard_header(
|
||||
__('Categories configuration'),
|
||||
'images/gm_modules.png',
|
||||
false,
|
||||
'',
|
||||
true,
|
||||
$buttons,
|
||||
[
|
||||
[
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('Resources'),
|
||||
],
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('Module categories'),
|
||||
],
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
'link' => '',
|
||||
'label' => __('Resources'),
|
||||
],
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('Module categories'),
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$is_management_allowed = true;
|
||||
if (is_management_allowed() === false) {
|
||||
@ -277,6 +269,4 @@ if ($is_management_allowed === true) {
|
||||
);
|
||||
|
||||
echo '</form>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
}
|
||||
|
@ -274,8 +274,6 @@ if (is_ajax() === true) {
|
||||
return;
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$tab = (string) get_parameter('tab', 'groups');
|
||||
|
||||
if ($tab !== 'credbox'
|
||||
@ -990,7 +988,6 @@ if ($is_management_allowed === true
|
||||
|
||||
ui_require_javascript_file('TreeController', 'include/javascript/tree/');
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
$tab = 'group_edition';
|
||||
|
||||
?>
|
||||
|
@ -33,7 +33,6 @@ $management_allowed = is_management_allowed();
|
||||
if (is_metaconsole() === true) {
|
||||
$sec = 'advanced';
|
||||
enterprise_include_once('meta/include/functions_components_meta.php');
|
||||
enterprise_hook('open_meta_frame');
|
||||
components_meta_print_header();
|
||||
|
||||
if ($management_allowed === false) {
|
||||
@ -375,7 +374,6 @@ if ($result === false) {
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
enterprise_hook('close_meta_frame');
|
||||
echo '<div id="deploy_messages" class="invisible">';
|
||||
echo '<span>'.__(
|
||||
'The configurations of inventory modules from the nodes have been unified.
|
||||
|
@ -31,8 +31,6 @@ global $config;
|
||||
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl($config['id_user'], 0, 'PM') && ! check_acl($config['id_user'], 0, 'AW')) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
@ -380,8 +378,6 @@ html_print_action_buttons(
|
||||
['type' => 'form_action']
|
||||
);
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
|
@ -30,8 +30,6 @@ global $config;
|
||||
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl($config['id_user'], 0, 'PM') && ! check_acl($config['id_user'], 0, 'AW')) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
@ -934,8 +932,6 @@ html_print_action_buttons(
|
||||
]
|
||||
);
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$( document ).ready(function() {
|
||||
|
@ -14,7 +14,7 @@
|
||||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||
*
|
||||
* ============================================================================
|
||||
* Copyright (c) 2007-2021 Artica Soluciones Tecnologicas
|
||||
* Copyright (c) 2007-2023 Artica Soluciones Tecnologicas
|
||||
* Please see http://pandorafms.org for full contribution list
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@ -62,18 +62,18 @@ if ($is_metaconsole === false) {
|
||||
|
||||
$pure = (int) get_parameter('pure', 0);
|
||||
$hack_metaconsole = '';
|
||||
if (defined('METACONSOLE')) {
|
||||
if (is_metaconsole() === true) {
|
||||
$hack_metaconsole = '../../';
|
||||
}
|
||||
|
||||
$buttons['visual_console'] = [
|
||||
'active' => true,
|
||||
'text' => '<a href="'.$url_visual_console.'">'.html_print_image(
|
||||
'images/visual_console.png',
|
||||
'images/logs@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual Console List'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
];
|
||||
@ -81,11 +81,11 @@ $buttons['visual_console'] = [
|
||||
$buttons['visual_console_favorite'] = [
|
||||
'active' => false,
|
||||
'text' => '<a href="'.$url_visual_console_favorite.'">'.html_print_image(
|
||||
'images/list.png',
|
||||
'images/star@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual Favourite Console'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
];
|
||||
@ -94,11 +94,11 @@ if ($is_enterprise !== ENTERPRISE_NOT_HOOK && $vconsoles_manage) {
|
||||
$buttons['visual_console_template'] = [
|
||||
'active' => false,
|
||||
'text' => '<a href="'.$url_visual_console_template.'">'.html_print_image(
|
||||
'images/templates.png',
|
||||
'images/groups@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual Console Template'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
];
|
||||
@ -106,11 +106,11 @@ if ($is_enterprise !== ENTERPRISE_NOT_HOOK && $vconsoles_manage) {
|
||||
$buttons['visual_console_template_wizard'] = [
|
||||
'active' => false,
|
||||
'text' => '<a href="'.$url_visual_console_template_wizard.'">'.html_print_image(
|
||||
'images/wand.png',
|
||||
'images/wizard@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual Console Template Wizard'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
];
|
||||
@ -328,24 +328,6 @@ if ($ag_group > 0) {
|
||||
}
|
||||
}
|
||||
|
||||
echo "<table class='databox filters bolder mrgn_btn_10px' width='100%'>
|
||||
<tr>";
|
||||
if (is_metaconsole() === false) {
|
||||
echo "<form method='post'
|
||||
action='index.php?sec=network&sec2=godmode/reporting/map_builder'>";
|
||||
} else {
|
||||
echo "<form method='post'
|
||||
action='index.php?sec=screen&sec2=screens/screens&action=visualmap'>";
|
||||
}
|
||||
|
||||
echo "<td class='w33p'>";
|
||||
echo __('Search').' ';
|
||||
html_print_input_text('search', $search, '', 50);
|
||||
|
||||
echo '</td>';
|
||||
echo "<td class='w25p'>";
|
||||
|
||||
echo __('Group').' ';
|
||||
$own_info = get_user_info($config['id_user']);
|
||||
if (!$own_info['is_admin'] && !check_acl($config['id_user'], 0, 'VR')) {
|
||||
$return_all_group = false;
|
||||
@ -353,26 +335,69 @@ if (!$own_info['is_admin'] && !check_acl($config['id_user'], 0, 'VR')) {
|
||||
$return_all_group = true;
|
||||
}
|
||||
|
||||
echo '<div class="w250px inline">';
|
||||
html_print_select_groups(false, 'AR', $return_all_group, 'ag_group', $ag_group, 'this.form.submit();', '', 0, false, false, true, '', false);
|
||||
echo '</div>';
|
||||
echo "<td class='w25p'>";
|
||||
echo __('Group Recursion').' ';
|
||||
html_print_checkbox('recursion', 1, $recursion, false, false, 'this.form.submit()');
|
||||
$filterTable = new stdClass();
|
||||
$filterTable->id = 'map_buider_filter';
|
||||
$filterTable->class = 'filter-table-adv';
|
||||
$filterTable->width = '100%';
|
||||
$filterTable->size = [];
|
||||
$filterTable->size[0] = '33%';
|
||||
$filterTable->size[1] = '33%';
|
||||
|
||||
echo "</td><td class='w22p'>";
|
||||
html_print_submit_button(
|
||||
$filterTable->data = [];
|
||||
|
||||
$filterTable->data[0][] = html_print_label_input_block(
|
||||
__('Search'),
|
||||
'search_visual_console',
|
||||
false,
|
||||
[
|
||||
'icon' => 'search',
|
||||
'mode' => 'secondary mini',
|
||||
]
|
||||
html_print_input_text('search', $search, '', 50, 255, true)
|
||||
);
|
||||
|
||||
$filterTable->data[0][] = html_print_label_input_block(
|
||||
__('Group'),
|
||||
html_print_select_groups(false, 'AR', $return_all_group, 'ag_group', $ag_group, 'this.form.submit();', '', 0, true, false, true, '', false)
|
||||
);
|
||||
|
||||
$filterTable->data[0][] = html_print_label_input_block(
|
||||
__('Group Recursion'),
|
||||
html_print_checkbox_switch('recursion', 1, $recursion, true, false, 'this.form.submit()')
|
||||
);
|
||||
|
||||
if (is_metaconsole() === false) {
|
||||
$actionUrl = 'index.php?sec=network&sec2=godmode/reporting/map_builder';
|
||||
} else {
|
||||
$actionUrl = 'index.php?sec=screen&sec2=screens/screens&action=visualmap';
|
||||
}
|
||||
|
||||
$searchForm = [];
|
||||
$searchForm[] = '<form method="POST" action="'.$actionUrl.'">';
|
||||
$searchForm[] = html_print_table($filterTable, true);
|
||||
$searchForm[] = html_print_div(
|
||||
[
|
||||
'class' => 'action-buttons',
|
||||
'content' => html_print_submit_button(
|
||||
__('Filter'),
|
||||
'search_visual_console',
|
||||
false,
|
||||
[
|
||||
'icon' => 'search',
|
||||
'mode' => 'mini',
|
||||
],
|
||||
true
|
||||
),
|
||||
],
|
||||
true
|
||||
);
|
||||
$searchForm[] = '</form>';
|
||||
|
||||
ui_toggle(
|
||||
implode('', $searchForm),
|
||||
'<span class="subsection_header_title">'.__('Filters').'</span>',
|
||||
'filter_form',
|
||||
'',
|
||||
true,
|
||||
false,
|
||||
'',
|
||||
'white-box-content',
|
||||
'box-flat white_table_graph fixed_filter_bar'
|
||||
);
|
||||
echo '</form>';
|
||||
echo '</td>';
|
||||
echo '</tr></table>';
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
@ -471,7 +496,6 @@ if (!$maps && is_metaconsole() === false) {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
ui_pagination($total_maps, $url, $offset, $pagination);
|
||||
foreach ($maps as $map) {
|
||||
// ACL for the visual console permission.
|
||||
$vconsole_write = false;
|
||||
@ -505,25 +529,25 @@ if (!$maps && is_metaconsole() === false) {
|
||||
4 => 'table_action_buttons',
|
||||
];
|
||||
$data[3] = '<a class="copy_visualmap" href="index.php?sec=network&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&copy_layout=1">'.html_print_image(
|
||||
'images/copy.png',
|
||||
'images/copy.svg',
|
||||
true,
|
||||
['class' => 'invert_filter']
|
||||
['class' => 'main_menu_icon invert_filter']
|
||||
).'</a>';
|
||||
$data[4] = '<a class="delete_visualmap" href="index.php?sec=network&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&delete_layout=1" onclick="javascript: if (!confirm(\''.__('Are you sure?').'\n'.__('Delete').': '.$map['name'].'\')) return false;">'.html_print_image(
|
||||
'images/cross.png',
|
||||
'images/delete.svg',
|
||||
true,
|
||||
['class' => 'invert_filter']
|
||||
['class' => 'main_menu_icon invert_filter']
|
||||
).'</a>';
|
||||
} else {
|
||||
$data[3] = '<a class="copy_visualmap" href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure='.$pure.'&id_layout='.$map['id'].'&copy_layout=1">'.html_print_image(
|
||||
'images/copy.png',
|
||||
'images/copy.svg',
|
||||
true,
|
||||
['class' => 'invert_filter']
|
||||
['class' => 'main_menu_icon invert_filter']
|
||||
).'</a>';
|
||||
$data[4] = '<a class="delete_visualmap" href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure='.$pure.'&id_layout='.$map['id'].'&delete_layout=1" onclick="javascript: if (!confirm(\''.__('Are you sure?').'\n'.__('Delete').': '.$map['name'].'\')) return false;">'.html_print_image(
|
||||
'images/cross.png',
|
||||
'images/delete.svg',
|
||||
true,
|
||||
['class' => 'invert_filter']
|
||||
['class' => 'main_menu_icon invert_filter']
|
||||
).'</a>';
|
||||
}
|
||||
} else {
|
||||
@ -535,42 +559,31 @@ if (!$maps && is_metaconsole() === false) {
|
||||
}
|
||||
|
||||
html_print_table($table);
|
||||
ui_pagination($total_maps, $url, $offset, $pagination, false, 'offset', true, 'pagination-bottom');
|
||||
}
|
||||
|
||||
if ($maps) {
|
||||
if (is_metaconsole() === false) {
|
||||
echo '<div class="action-buttons w100p right_align">';
|
||||
} else {
|
||||
echo '<div class="w100p right right_align mrgn_btn_20px">';
|
||||
}
|
||||
$tablePagination = ui_pagination($total_maps, $url, $offset, $pagination, true, 'offset', false);
|
||||
}
|
||||
|
||||
if ($maps || is_metaconsole() === true) {
|
||||
if ($vconsoles_write || $vconsoles_manage) {
|
||||
if (is_metaconsole() === false) {
|
||||
echo '<form action="index.php?sec=network&sec2=godmode/reporting/visual_console_builder" method="post">';
|
||||
$actionUrl = 'index.php?sec=network&sec2=godmode/reporting/visual_console_builder';
|
||||
} else {
|
||||
echo '<form action="index.php?sec=screen&sec2=screens/screens&action=visualmap&action2=new&operation=new_visualmap&tab=data&pure='.$pure.'" method="post">';
|
||||
$actionUrl = 'index.php?sec=screen&sec2=screens/screens&action=visualmap&action2=new&operation=new_visualmap&tab=data&pure='.$pure;
|
||||
}
|
||||
|
||||
echo '<form action="'.$actionUrl.'" method="post">';
|
||||
html_print_input_hidden('edit_layout', 1);
|
||||
|
||||
html_print_div(
|
||||
[
|
||||
'class' => 'action-buttons',
|
||||
'content' => html_print_submit_button(
|
||||
__('Create'),
|
||||
'',
|
||||
false,
|
||||
[ 'icon' => 'next'],
|
||||
true
|
||||
),
|
||||
]
|
||||
html_print_action_buttons(
|
||||
html_print_submit_button(
|
||||
__('Create'),
|
||||
'',
|
||||
false,
|
||||
[ 'icon' => 'next'],
|
||||
true
|
||||
),
|
||||
[ 'right_content' => $tablePagination ]
|
||||
);
|
||||
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||
*
|
||||
* ============================================================================
|
||||
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
||||
* Copyright (c) 2005-2023 Artica Soluciones Tecnologicas
|
||||
* Please see http://pandorafms.org for full contribution list
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -82,7 +82,7 @@ require_once $config['homedir'].'/include/functions_agents.php';
|
||||
$table = new stdClass();
|
||||
$table->id = 'wizard_table';
|
||||
$table->head = [];
|
||||
if (!is_metaconsole()) {
|
||||
if (is_metaconsole() === false) {
|
||||
$metaconsole_hack = '';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
@ -14,7 +14,7 @@
|
||||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||
*
|
||||
* ============================================================================
|
||||
* Copyright (c) 2007-2022 Artica Soluciones Tecnologicas
|
||||
* Copyright (c) 2007-2023 Artica Soluciones Tecnologicas
|
||||
* Please see http://pandorafms.org for full contribution list
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@ -33,15 +33,14 @@ require_once $config['homedir'].'/include/functions_visual_map.php';
|
||||
// Breadcrumb.
|
||||
require_once $config['homedir'].'/include/class/HTML.class.php';
|
||||
ui_require_css_file('discovery');
|
||||
// ACL for the general permission
|
||||
$vconsoles_read = check_acl($config['id_user'], 0, 'VR');
|
||||
$vconsoles_write = check_acl($config['id_user'], 0, 'VW');
|
||||
$vconsoles_manage = check_acl($config['id_user'], 0, 'VM');
|
||||
// ACL for the general permission.
|
||||
$vconsoles_read = (bool) check_acl($config['id_user'], 0, 'VR');
|
||||
$vconsoles_write = (bool) check_acl($config['id_user'], 0, 'VW');
|
||||
$vconsoles_manage = (bool) check_acl($config['id_user'], 0, 'VM');
|
||||
|
||||
$is_enterprise = enterprise_include_once('include/functions_policies.php');
|
||||
$is_metaconsole = is_metaconsole();
|
||||
|
||||
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
||||
if ($vconsoles_read === false && $vconsoles_write === false && $vconsoles_manage === false) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
'Trying to access map builder'
|
||||
@ -50,8 +49,7 @@ if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
if ($is_metaconsole === false) {
|
||||
if (is_metaconsole() === false) {
|
||||
$url_visual_console = 'index.php?sec=network&sec2=godmode/reporting/map_builder';
|
||||
$url_visual_console_favorite = 'index.php?sec=network&sec2=godmode/reporting/visual_console_favorite';
|
||||
$url_visual_console_template = 'index.php?sec=network&sec2=enterprise/godmode/reporting/visual_console_template';
|
||||
@ -63,14 +61,16 @@ if ($is_metaconsole === false) {
|
||||
$url_visual_console_template_wizard = 'index.php?sec=screen&sec2=screens/screens&action=visualmap_wizard';
|
||||
}
|
||||
|
||||
$buttons = [];
|
||||
|
||||
$buttons['visual_console'] = [
|
||||
'active' => false,
|
||||
'text' => '<a href="'.$url_visual_console.'">'.html_print_image(
|
||||
'images/visual_console.png',
|
||||
'images/logs@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual Console List'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
];
|
||||
@ -78,11 +78,11 @@ $buttons['visual_console'] = [
|
||||
$buttons['visual_console_favorite'] = [
|
||||
'active' => true,
|
||||
'text' => '<a href="'.$url_visual_console_favorite.'">'.html_print_image(
|
||||
'images/list.png',
|
||||
'images/star@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual Favourite Console'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
];
|
||||
@ -91,11 +91,11 @@ if ($is_enterprise !== ENTERPRISE_NOT_HOOK && $vconsoles_manage) {
|
||||
$buttons['visual_console_template'] = [
|
||||
'active' => false,
|
||||
'text' => '<a href="'.$url_visual_console_template.'">'.html_print_image(
|
||||
'images/templates.png',
|
||||
'images/groups@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual Console Template'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
];
|
||||
@ -103,11 +103,11 @@ if ($is_enterprise !== ENTERPRISE_NOT_HOOK && $vconsoles_manage) {
|
||||
$buttons['visual_console_template_wizard'] = [
|
||||
'active' => false,
|
||||
'text' => '<a href="'.$url_visual_console_template_wizard.'">'.html_print_image(
|
||||
'images/wand.png',
|
||||
'images/wizard@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual Console Template Wizard'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>',
|
||||
];
|
||||
@ -136,115 +136,132 @@ $search = (string) get_parameter('search', '');
|
||||
$ag_group = (int) get_parameter('ag_group', 0);
|
||||
$recursion = (int) get_parameter('recursion', 0);
|
||||
|
||||
|
||||
if (is_metaconsole() === false) {
|
||||
echo "<form method='post'
|
||||
action='index.php?sec=network&sec2=godmode/reporting/visual_console_favorite'>";
|
||||
} else {
|
||||
echo "<form method='post'
|
||||
action='index.php?sec=screen&sec2=screens/screens&action=visualmap_favorite'>";
|
||||
$returnAllGroups = 0;
|
||||
$filters = [];
|
||||
if (empty($search) === false) {
|
||||
$filters['name'] = io_safe_input($search);
|
||||
}
|
||||
|
||||
echo "<ul class='form_flex'><li class='first_elements'>";
|
||||
echo '<ul><li>';
|
||||
echo __('Search').' ';
|
||||
html_print_input_text('search', $search, '', 50);
|
||||
echo '</li><li>';
|
||||
echo __('Group').' ';
|
||||
$own_info = get_user_info($config['id_user']);
|
||||
if ($ag_group > 0) {
|
||||
$ag_groups = [];
|
||||
$ag_groups = (array) $ag_group;
|
||||
if ($recursion) {
|
||||
$ag_groups = groups_get_children_ids($ag_group, true);
|
||||
}
|
||||
} else if ($own_info['is_admin']) {
|
||||
$returnAllGroups = 1;
|
||||
}
|
||||
|
||||
if ($ag_group) {
|
||||
$filters['group'] = array_flip($ag_groups);
|
||||
}
|
||||
|
||||
$own_info = get_user_info($config['id_user']);
|
||||
if (!$own_info['is_admin'] && !check_acl($config['id_user'], 0, 'AW')) {
|
||||
$return_all_group = false;
|
||||
} else {
|
||||
$return_all_group = true;
|
||||
}
|
||||
|
||||
html_print_select_groups(
|
||||
false,
|
||||
'AR',
|
||||
$return_all_group,
|
||||
'ag_group',
|
||||
$ag_group,
|
||||
'',
|
||||
'',
|
||||
0,
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
'',
|
||||
false
|
||||
);
|
||||
echo "</li></ul></li><li class='second_elements'><ul><li>";
|
||||
echo __('Group Recursion');
|
||||
html_print_checkbox('recursion', 1, $recursion, false, false, '');
|
||||
echo '</li><li>';
|
||||
html_print_submit_button(
|
||||
__('Search'),
|
||||
$filterTable = new stdClass();
|
||||
$filterTable->id = 'visual_console_favorite_filter';
|
||||
$filterTable->class = 'filter-table-adv';
|
||||
$filterTable->width = '100%';
|
||||
$filterTable->size = [];
|
||||
$filterTable->size[0] = '33%';
|
||||
$filterTable->size[1] = '33%';
|
||||
|
||||
$filterTable->data = [];
|
||||
|
||||
$filterTable->data[0][] = html_print_label_input_block(
|
||||
__('Search'),
|
||||
html_print_input_text('search', $search, '', 50, 255, true)
|
||||
);
|
||||
|
||||
$filterTable->data[0][] = html_print_label_input_block(
|
||||
__('Group'),
|
||||
html_print_select_groups(false, 'AR', $return_all_group, 'ag_group', $ag_group, '', '', 0, true, false, true, '', false)
|
||||
);
|
||||
|
||||
$filterTable->data[0][] = html_print_label_input_block(
|
||||
__('Group Recursion'),
|
||||
html_print_checkbox_switch('recursion', 1, $recursion, true, false, '')
|
||||
);
|
||||
|
||||
if (is_metaconsole() === false) {
|
||||
$actionUrl = 'index.php?sec=network&sec2=godmode/reporting/visual_console_favorite';
|
||||
} else {
|
||||
$actionUrl = 'index.php?sec=screen&sec2=screens/screens&action=visualmap_favorite';
|
||||
}
|
||||
|
||||
// exit;
|
||||
$searchForm = '<form method="POST" action="'.$actionUrl.'">';
|
||||
$searchForm .= html_print_table($filterTable, true);
|
||||
$searchForm .= html_print_div(
|
||||
[
|
||||
'class' => 'action-buttons',
|
||||
'content' => html_print_submit_button(
|
||||
__('Filter'),
|
||||
'search_visual_console',
|
||||
false,
|
||||
[
|
||||
'icon' => 'search',
|
||||
'mode' => 'secondary mini',
|
||||
]
|
||||
);
|
||||
echo '</li></ul></li></ul>';
|
||||
echo '</form>';
|
||||
|
||||
|
||||
$returnAllGroups = 0;
|
||||
$filters = [];
|
||||
if (!empty($search)) {
|
||||
$filters['name'] = io_safe_input($search);
|
||||
}
|
||||
|
||||
if ($ag_group > 0) {
|
||||
$ag_groups = [];
|
||||
$ag_groups = (array) $ag_group;
|
||||
if ($recursion) {
|
||||
$ag_groups = groups_get_children_ids($ag_group, true);
|
||||
}
|
||||
} else if ($own_info['is_admin']) {
|
||||
$returnAllGroups = 1;
|
||||
}
|
||||
|
||||
if ($ag_group) {
|
||||
$filters['group'] = array_flip($ag_groups);
|
||||
}
|
||||
|
||||
$favorite_array = visual_map_get_user_layouts(
|
||||
$config['id_user'],
|
||||
false,
|
||||
$filters,
|
||||
$returnAllGroups,
|
||||
'mode' => 'mini',
|
||||
],
|
||||
true
|
||||
);
|
||||
),
|
||||
],
|
||||
true
|
||||
);
|
||||
$searchForm .= '</form>';
|
||||
|
||||
echo "<div id='is_favourite'>";
|
||||
if ($favorite_array == false) {
|
||||
ui_print_info_message(__('No favourite consoles defined'));
|
||||
ui_toggle(
|
||||
$searchForm,
|
||||
'<span class="subsection_header_title">'.__('Filters').'</span>',
|
||||
'filter_form',
|
||||
'',
|
||||
true,
|
||||
false,
|
||||
'',
|
||||
'white-box-content',
|
||||
'box-flat white_table_graph fixed_filter_bar'
|
||||
);
|
||||
|
||||
$favorite_array = visual_map_get_user_layouts(
|
||||
$config['id_user'],
|
||||
false,
|
||||
$filters,
|
||||
$returnAllGroups,
|
||||
true
|
||||
);
|
||||
|
||||
echo "<div id='is_favourite'>";
|
||||
if ($favorite_array == false) {
|
||||
ui_print_info_message(__('No favourite consoles defined'));
|
||||
} else {
|
||||
echo "<ul class='container'>";
|
||||
foreach ($favorite_array as $favorite_k => $favourite_v) {
|
||||
if (is_metaconsole() === true) {
|
||||
$url = 'index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=0&id_visualmap='.$favourite_v['id'];
|
||||
} else {
|
||||
echo "<ul class='container'>";
|
||||
foreach ($favorite_array as $favorite_k => $favourite_v) {
|
||||
if (is_metaconsole() === true) {
|
||||
$url = 'index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=0&id_visualmap='.$favourite_v['id'];
|
||||
} else {
|
||||
$url = 'index.php?sec=network&sec2=operation/visual_console/render_view&id='.$favourite_v['id'];
|
||||
}
|
||||
|
||||
echo "<a href='".$url."' title='Visual console".$favourite_v['name']."' alt='".$favourite_v['name']."'><li>";
|
||||
echo "<div class='icon_img'>";
|
||||
echo html_print_image(
|
||||
'images/'.groups_get_icon($favourite_v['id_group']).'.png',
|
||||
true,
|
||||
['style' => '']
|
||||
);
|
||||
echo '</div>';
|
||||
echo "<div class='text'>";
|
||||
echo $favourite_v['name'];
|
||||
echo '</div>';
|
||||
echo '</li></a>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
$url = 'index.php?sec=network&sec2=operation/visual_console/render_view&id='.$favourite_v['id'];
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
echo "<a href='".$url."' title='Visual console".$favourite_v['name']."' alt='".$favourite_v['name']."'><li>";
|
||||
echo "<div class='icon_img'>";
|
||||
echo html_print_image(
|
||||
'images/'.groups_get_icon($favourite_v['id_group']).'.png',
|
||||
true,
|
||||
['style' => '']
|
||||
);
|
||||
echo '</div>';
|
||||
echo "<div class='text'>";
|
||||
echo $favourite_v['name'];
|
||||
echo '</div>';
|
||||
echo '</li></a>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
|
@ -332,8 +332,6 @@ if ($filemanager) {
|
||||
$sec = 'gservers';
|
||||
|
||||
if (empty($create) === false || empty($view) === false) {
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$management_allowed = is_management_allowed();
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
@ -708,11 +706,7 @@ if (empty($create) === false || empty($view) === false) {
|
||||
if (defined('METACONSOLE')) {
|
||||
echo '</td></tr>';
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
} else {
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
components_meta_print_header();
|
||||
$sec = 'advanced';
|
||||
@ -1087,8 +1081,6 @@ if (empty($create) === false || empty($view) === false) {
|
||||
// The '%s' will be replaced in the javascript code of the function 'show_locked_dialog'.
|
||||
echo "<div id='dialog_locked' title='".__('List of modules and components created by "%s" ')."' class='invisible left'>";
|
||||
echo '</div>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
}
|
||||
|
||||
ui_require_javascript_file('pandora_modules');
|
||||
|
@ -50,7 +50,6 @@ ui_require_css_file('first_task');
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
enterprise_include_once('meta/include/functions_components_meta.php');
|
||||
enterprise_hook('open_meta_frame');
|
||||
components_meta_print_header();
|
||||
$sec = 'advanced';
|
||||
$management_allowed = is_management_allowed();
|
||||
@ -565,7 +564,3 @@ if ($error !== null && $error !== '') {
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
enterprise_hook('close_meta_frame');
|
||||
}
|
||||
|
@ -42,22 +42,24 @@ if (! check_acl($config['id_user'], 0, 'PM')) {
|
||||
|
||||
$update_settings = (bool) get_parameter_post('update_settings');
|
||||
|
||||
if (is_metaconsole()) {
|
||||
// Metaconsole.
|
||||
ui_require_javascript_file_enterprise('load_enterprise', true);
|
||||
enterprise_include_once('include/functions_license.php');
|
||||
} else {
|
||||
ui_print_page_header(
|
||||
__('License management'),
|
||||
'images/extensions.png',
|
||||
false,
|
||||
'',
|
||||
true
|
||||
);
|
||||
ui_require_javascript_file_enterprise('load_enterprise', is_metaconsole() === true);
|
||||
enterprise_include_once('include/functions_license.php');
|
||||
|
||||
ui_require_javascript_file_enterprise('load_enterprise');
|
||||
enterprise_include_once('include/functions_license.php');
|
||||
}
|
||||
// Header.
|
||||
ui_print_standard_header(
|
||||
__('License management'),
|
||||
'images/extensions.png',
|
||||
false,
|
||||
'',
|
||||
true,
|
||||
[],
|
||||
[
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('License'),
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
enterprise_include_once('include/functions_crypto.php');
|
||||
|
||||
@ -135,81 +137,201 @@ if (enterprise_installed()) {
|
||||
|
||||
</script>
|
||||
<?php
|
||||
echo '<form method="post" id="form-license">';
|
||||
echo '<form method="post" id="form-license" class="max_floating_element_size">';
|
||||
// Retrieve UM url configured (or default).
|
||||
$url = get_um_url();
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
if (is_metaconsole()) {
|
||||
$table->head[0] = __('Licence');
|
||||
$table->head_colspan[0] = 3;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
}
|
||||
|
||||
$table->class = 'databox filter-table-adv';
|
||||
$table->size = [];
|
||||
$table->size[0] = '50%';
|
||||
$table->size[1] = '50%';
|
||||
$table->data = [];
|
||||
$table->colspan = [];
|
||||
|
||||
$table->data[0][0] = '<strong>'.__('Customer key').'</strong>';
|
||||
$table->data[0][1] = html_print_textarea('keys[customer_key]', 10, 255, $settings->customer_key, 'style="width: 450px" class="height_50px w450px"', true);
|
||||
$table->colspan[0][0] = 2;
|
||||
$table->data[-1][0] = '<div class="section_table_title">'.__('Licence').'</div>';
|
||||
|
||||
$table->data[1][0] = '<strong>'.__($license['expiry_caption']).'</strong>';
|
||||
$table->data[1][1] = html_print_input_text('expires', $license['expiry_date'], '', 10, 255, true, true);
|
||||
|
||||
$table->data[2][0] = '<strong>'.__('Platform Limit').'</strong>';
|
||||
$table->data[2][1] = html_print_input_text('expires', $license['limit'], '', 10, 255, true, true).' '.($license['limit_mode'] == 0 ? __('agents') : __('modules'));
|
||||
|
||||
$table->data[3][0] = '<strong>'.__('Current Platform Count').'</strong>';
|
||||
$table->data[3][1] = html_print_input_text('expires', $license['count'], '', 10, 255, true, true).' '.($license['limit_mode'] == 0 ? __('agents') : __('modules'));
|
||||
|
||||
$table->data[4][0] = '<strong>'.__('Current Platform Count (enabled: items)').'</strong>';
|
||||
$table->data[4][1] = html_print_input_text('expires', $license['count_enabled'], '', 10, 255, true, true).' '.($license['limit_mode'] == 0 ? __('agents') : __('modules'));
|
||||
|
||||
$table->data[5][0] = '<strong>'.__('Current Platform Count (disabled: items)').'</strong>';
|
||||
$table->data[5][1] = html_print_input_text('expires', $license['count_disabled'], '', 10, 255, true, true).' '.($license['limit_mode'] == 0 ? __('agents') : __('modules'));
|
||||
|
||||
$table->data[6][0] = '<strong>'.__('License Mode').'</strong>';
|
||||
$table->data[6][1] = html_print_input_text('expires', $license['license_mode'], '', 10, 255, true, true);
|
||||
|
||||
$table->data[7][0] = '<strong>'.__('NMS').'</strong>';
|
||||
$table->data[7][1] = html_print_input_text('expires', ($license['nms'] == 1 ? __('enabled') : __('disabled')), '', 10, 255, true, true);
|
||||
|
||||
$table->data[8][0] = '<strong>'.__('Satellite').'</strong>';
|
||||
$table->data[8][1] = html_print_input_text('expires', ($license['dhpm'] == 1 ? __('enabled') : __('disabled')), '', 10, 255, true, true);
|
||||
|
||||
if ($license['dhpm'] == 1) {
|
||||
$table->data[9][0] = '<strong>'.__('License encryption key').'</strong>'.ui_print_help_tip(
|
||||
__('This key is used to encrypt your Pandora FMS license when it is shared with other Pandora FMS components'),
|
||||
$table->colspan[0][0] = 2;
|
||||
$table->data[0][0] = html_print_label_input_block(
|
||||
__('Customer key'),
|
||||
html_print_textarea(
|
||||
'keys[customer_key]',
|
||||
10,
|
||||
255,
|
||||
$settings->customer_key,
|
||||
'style="width: 100%; height:80px;"',
|
||||
true
|
||||
);
|
||||
$table->data[9][1] = html_print_input_password(
|
||||
'license_encryption_key',
|
||||
io_safe_output($settings->license_encryption_key),
|
||||
)
|
||||
);
|
||||
|
||||
$table->data[1][0] = html_print_label_input_block(
|
||||
__($license['expiry_caption']),
|
||||
html_print_input_text(
|
||||
'expires',
|
||||
$license['expiry_date'],
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
false
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
$table->data[1][1] = html_print_label_input_block(
|
||||
__('Platform Limit'),
|
||||
html_print_input_text(
|
||||
'expires',
|
||||
$license['limit'],
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
true
|
||||
).' '.($license['limit_mode'] == 0 ? __('agents') : __('modules'))
|
||||
);
|
||||
|
||||
$table->data[2][0] = html_print_label_input_block(
|
||||
__('Current Platform Count'),
|
||||
html_print_input_text(
|
||||
'expires',
|
||||
$license['count'],
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
true
|
||||
).' '.($license['limit_mode'] == 0 ? __('agents') : __('modules'))
|
||||
);
|
||||
|
||||
$table->data[2][1] = html_print_label_input_block(
|
||||
__('Current Platform Count (enabled: items)'),
|
||||
html_print_input_text(
|
||||
'expires',
|
||||
$license['count_enabled'],
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
true
|
||||
).' '.($license['limit_mode'] == 0 ? __('agents') : __('modules'))
|
||||
);
|
||||
|
||||
$table->data[3][0] = html_print_label_input_block(
|
||||
__('Current Platform Count (disabled: items)'),
|
||||
html_print_input_text(
|
||||
'expires',
|
||||
$license['count_disabled'],
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
true
|
||||
).' '.($license['limit_mode'] == 0 ? __('agents') : __('modules'))
|
||||
);
|
||||
|
||||
$table->data[3][1] = html_print_label_input_block(
|
||||
__('License Mode'),
|
||||
html_print_input_text(
|
||||
'expires',
|
||||
$license['license_mode'],
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
$table->data[4][0] = html_print_label_input_block(
|
||||
__('NMS'),
|
||||
html_print_input_text(
|
||||
'expires',
|
||||
($license['nms'] == 1 ? __('enabled') : __('disabled')),
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
$table->data[4][1] = html_print_label_input_block(
|
||||
__('Satellite'),
|
||||
html_print_input_text(
|
||||
'expires',
|
||||
($license['dhpm'] == 1 ? __('enabled') : __('disabled')),
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
$table->data[5][0] = html_print_label_input_block(
|
||||
__('Licensed to'),
|
||||
html_print_input_text(
|
||||
'licensed_to',
|
||||
$license['licensed_to'],
|
||||
'',
|
||||
64,
|
||||
255,
|
||||
true,
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
if ($license['dhpm'] == 1) {
|
||||
$table->data[5][1] = html_print_label_input_block(
|
||||
__('License encryption key').'</strong>'.ui_print_help_tip(
|
||||
__('This key is used to encrypt your Pandora FMS license when it is shared with other Pandora FMS components'),
|
||||
true
|
||||
),
|
||||
html_print_input_password(
|
||||
'license_encryption_key',
|
||||
io_safe_output($settings->license_encryption_key),
|
||||
'',
|
||||
10,
|
||||
255,
|
||||
true,
|
||||
false
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$table->data[10][0] = '<strong>'.__('Licensed to').'</strong>';
|
||||
$table->data[10][1] = html_print_input_text('licensed_to', $license['licensed_to'], '', 64, 255, true, true);
|
||||
|
||||
html_print_table($table);
|
||||
|
||||
// If DESTDIR is defined the enterprise license is expired.
|
||||
if (enterprise_installed() || defined('DESTDIR')) {
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
html_print_input_hidden('update_settings', 1);
|
||||
html_print_submit_button(__('Validate'), 'update_button', false, 'class="sub upd"');
|
||||
echo ' ';
|
||||
html_print_button(__('Request new license'), 'license', false, 'generate_request_code()', [ 'fixed_id' => 'button-', 'icon' => 'next']);
|
||||
echo '</div>';
|
||||
$buttons = html_print_input_hidden('update_settings', 1, true);
|
||||
$buttons .= html_print_submit_button(
|
||||
__('Validate'),
|
||||
'update_button',
|
||||
false,
|
||||
['icon' => 'next'],
|
||||
true
|
||||
);
|
||||
$buttons .= html_print_button(
|
||||
__('Request new license'),
|
||||
'license',
|
||||
false,
|
||||
'generate_request_code()',
|
||||
[
|
||||
'fixed_id' => 'button-',
|
||||
'icon' => 'next',
|
||||
'mode' => 'secondary',
|
||||
],
|
||||
true
|
||||
);
|
||||
|
||||
html_print_action_buttons(
|
||||
$buttons
|
||||
);
|
||||
}
|
||||
|
||||
echo '</form>';
|
||||
if (is_metaconsole()) {
|
||||
ui_require_css_file('pandora_enterprise', ENTERPRISE_DIR.'/include/styles/');
|
||||
ui_require_css_file('register', 'include/styles/');
|
||||
@ -220,7 +342,6 @@ if (is_metaconsole()) {
|
||||
}
|
||||
|
||||
if (enterprise_hook('print_activate_licence_dialog') == ENTERPRISE_NOT_HOOK) {
|
||||
echo '</form>';
|
||||
echo '<div id="code_license_dialog" class="invisible left" title="'.__('Request new license').'">';
|
||||
echo '<div id="logo">';
|
||||
html_print_image(ui_get_custom_header_logo(true));
|
||||
|
@ -27,8 +27,6 @@ global $config;
|
||||
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
if (! check_acl($config['id_user'], 0, 'UM')) {
|
||||
db_pandora_audit(
|
||||
AUDIT_LOG_ACL_VIOLATION,
|
||||
@ -437,8 +435,6 @@ if ($id_profile || $new_profile) {
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
@ -222,8 +222,6 @@ if (is_ajax() === true) {
|
||||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$tab = get_parameter('tab', 'user');
|
||||
|
||||
// Save autorefresh list.
|
||||
@ -1886,8 +1884,6 @@ html_print_action_buttons(implode('', $actionButtons), ['type' => 'form_action']
|
||||
|
||||
echo '</div>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
// This is an image generated for JS.
|
||||
$delete_image = html_print_input_image(
|
||||
'del',
|
||||
|
@ -31,8 +31,6 @@ global $config;
|
||||
|
||||
check_login();
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
require_once $config['homedir'].'/include/functions_profile.php';
|
||||
require_once $config['homedir'].'/include/functions_users.php';
|
||||
require_once $config['homedir'].'/include/functions_groups.php';
|
||||
@ -495,5 +493,3 @@ if ($is_management_allowed === true) {
|
||||
}
|
||||
|
||||
unset($table);
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
@ -132,8 +132,6 @@ if (is_ajax()) {
|
||||
}
|
||||
}
|
||||
|
||||
enterprise_hook('open_meta_frame');
|
||||
|
||||
$sortField = get_parameter('sort_field');
|
||||
$sort = get_parameter('sort', 'none');
|
||||
$tab = get_parameter('tab', 'user');
|
||||
@ -1051,8 +1049,6 @@ if ($is_management_allowed === true) {
|
||||
);
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function showGroups(id_user) {
|
||||
|
@ -132,32 +132,24 @@ class AuditLog extends HTML
|
||||
|
||||
$this->tableId = 'audit_logs';
|
||||
|
||||
// Header (only in Node).
|
||||
if (is_metaconsole() === false) {
|
||||
ui_print_standard_header(
|
||||
__('%s audit', get_product_name()).' » '.__('Review Logs'),
|
||||
'images/gm_log.png',
|
||||
false,
|
||||
'',
|
||||
false,
|
||||
[],
|
||||
ui_print_standard_header(
|
||||
__('%s audit', get_product_name()).' » '.__('Review Logs'),
|
||||
'images/gm_log.png',
|
||||
false,
|
||||
'',
|
||||
false,
|
||||
[],
|
||||
[
|
||||
[
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('Admin Tools'),
|
||||
],
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('System Audit log'),
|
||||
],
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
// Only in case of Metaconsole, format the frame.
|
||||
open_meta_frame();
|
||||
}
|
||||
'link' => '',
|
||||
'label' => __('Admin Tools'),
|
||||
],
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('System Audit log'),
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$buttons = [];
|
||||
|
||||
@ -265,11 +257,6 @@ class AuditLog extends HTML
|
||||
echo $e->getMessage();
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
// Close the frame.
|
||||
close_meta_frame();
|
||||
}
|
||||
|
||||
// Load own javascript file.
|
||||
echo $this->loadJS();
|
||||
|
||||
|
@ -583,7 +583,7 @@ function initialiceLayout(data) {
|
||||
success: function(data) {
|
||||
$("#modal-add-widget").empty();
|
||||
$("#modal-add-widget").append(data);
|
||||
$("a.pagination").click(function() {
|
||||
$("a.pandora_pagination").click(function() {
|
||||
var offset = $(this)
|
||||
.attr("href")
|
||||
.split("=")
|
||||
|
@ -28,6 +28,10 @@ ul.mn {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#menu_tab {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#menu_tab li.nomn.tab_operation img,
|
||||
#menu_tab li.nomn.tab_godmode img,
|
||||
#menu_tab li.nomn_high.tab_operation img,
|
||||
@ -111,8 +115,6 @@ h1 {
|
||||
}
|
||||
|
||||
.grid-stack-item .grid-stack-item-content .header-widget {
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
@ -138,13 +138,13 @@ div.arrow_box:before {
|
||||
#menu_tab_frame_view_bc .breadcrumbs_container {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
/*
|
||||
.breadcrumbs_container {
|
||||
padding-top: 4px;
|
||||
text-indent: 0.25em;
|
||||
padding-left: 2.5em;
|
||||
}
|
||||
|
||||
*/
|
||||
.breadcrumb_link {
|
||||
color: #848484;
|
||||
font-size: 10pt;
|
||||
|
@ -8294,7 +8294,6 @@ div.graph div.legend table {
|
||||
.report_info {
|
||||
border: 1px dashed #999;
|
||||
padding: 10px 15px;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
@ -10640,12 +10639,14 @@ table tr td:first-child {
|
||||
|
||||
input[type="color"] {
|
||||
background: transparent;
|
||||
padding: 0 10px;
|
||||
width: 50px;
|
||||
box-sizing: initial;
|
||||
border: 2px solid #14524f;
|
||||
box-shadow: 0px 3px 6px #c7c7c7;
|
||||
border-radius: 16px;
|
||||
height: 25px;
|
||||
width: 50px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
border: 0px;
|
||||
border-radius: 0px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
span.ColorPickerDivSample {
|
||||
|
@ -324,7 +324,7 @@ ui_toggle(
|
||||
'<span class="subsection_header_title">'.__('Filters').'</span>',
|
||||
'filter_form',
|
||||
'',
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
'',
|
||||
'white-box-content',
|
||||
|
@ -1052,8 +1052,6 @@ if (!empty($table->data)) {
|
||||
// Close edit_user_profiles.
|
||||
echo '</div>';
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
if (is_metaconsole() === false) {
|
||||
?>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||
*
|
||||
* ============================================================================
|
||||
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
||||
* Copyright (c) 2005-2023 Artica Soluciones Tecnologicas
|
||||
* Please see http://pandorafms.org for full contribution list
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@ -121,11 +121,11 @@ if ($aclRead === false && $aclWrite === false && $aclManage === false) {
|
||||
$options = [];
|
||||
|
||||
$options['consoles_list']['text'] = '<a href="index.php?sec=network&sec2=godmode/reporting/map_builder">'.html_print_image(
|
||||
'images/visual_console.png',
|
||||
'images/logs@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Visual consoles list'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>';
|
||||
|
||||
@ -149,29 +149,29 @@ if ($aclWrite === true || $aclManage === true) {
|
||||
$options['public_link']['text'] = '<a href="'.ui_get_full_url(
|
||||
'operation/visual_console/public_console.php?hash='.$hash.'&id_layout='.$visualConsoleId.'&refr='.$refr.'&id_user='.$config['id_user']
|
||||
).'" target="_blank">'.html_print_image(
|
||||
'images/camera_mc.png',
|
||||
'images/item-icon.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Show link to public Visual Console'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>';
|
||||
$options['public_link']['active'] = false;
|
||||
|
||||
$options['data']['text'] = '<a href="'.$baseUrl.'&tab=data&id_visual_console='.$visualConsoleId.'">'.html_print_image(
|
||||
'images/op_reporting.png',
|
||||
'images/bars-graph.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Main data'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>';
|
||||
$options['list_elements']['text'] = '<a href="'.$baseUrl.'&tab=list_elements&id_visual_console='.$visualConsoleId.'">'.html_print_image(
|
||||
'images/list.png',
|
||||
'images/edit_columns@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('List elements'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>';
|
||||
|
||||
@ -181,27 +181,27 @@ if ($aclWrite === true || $aclManage === true) {
|
||||
true,
|
||||
[
|
||||
'title' => __('Services wizard'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>';
|
||||
}
|
||||
|
||||
$options['wizard']['text'] = '<a href="'.$baseUrl.'&tab=wizard&id_visual_console='.$visualConsoleId.'">'.html_print_image(
|
||||
'images/wand.png',
|
||||
'images/wizard@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Wizard'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>';
|
||||
}
|
||||
|
||||
$options['view']['text'] = '<a href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'&refr='.$refr.'">'.html_print_image(
|
||||
'images/eye.png',
|
||||
'images/enable.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('View'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>';
|
||||
$options['view']['active'] = true;
|
||||
@ -209,11 +209,11 @@ $options['view']['active'] = true;
|
||||
if (is_metaconsole() === false) {
|
||||
if (!$config['pure']) {
|
||||
$options['pure']['text'] = '<a id ="full_screen" href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'&pure=1&refr='.$refr.'">'.html_print_image(
|
||||
'images/full_screen.png',
|
||||
'images/fullscreen@svg.svg',
|
||||
true,
|
||||
[
|
||||
'title' => __('Full screen mode'),
|
||||
'class' => 'invert_filter',
|
||||
'class' => 'main_menu_icon invert_filter',
|
||||
]
|
||||
).'</a>';
|
||||
|
||||
|
@ -29,7 +29,6 @@
|
||||
// Extras required.
|
||||
\ui_require_css_file('wizard');
|
||||
\enterprise_include_once('meta/include/functions_alerts_meta.php');
|
||||
\enterprise_hook('open_meta_frame');
|
||||
|
||||
if (\is_metaconsole() === true) {
|
||||
\alerts_meta_print_header($tabs);
|
||||
@ -142,5 +141,3 @@ HTML::printForm(
|
||||
false,
|
||||
true
|
||||
);
|
||||
|
||||
\enterprise_hook('close_meta_frame');
|
||||
|
@ -28,7 +28,6 @@
|
||||
|
||||
\ui_require_css_file('wizard');
|
||||
\enterprise_include_once('meta/include/functions_alerts_meta.php');
|
||||
\enterprise_hook('open_meta_frame');
|
||||
|
||||
if (\is_metaconsole() === true) {
|
||||
\alerts_meta_print_header($tabs);
|
||||
@ -150,5 +149,3 @@ if ((bool) check_acl($config['id_user'], 0, 'LM') === true) {
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
\enterprise_hook('close_meta_frame');
|
||||
|
@ -30,7 +30,6 @@ global $config;
|
||||
|
||||
\ui_require_css_file('wizard');
|
||||
\enterprise_include_once('meta/include/functions_alerts_meta.php');
|
||||
\enterprise_hook('open_meta_frame');
|
||||
|
||||
if (\is_metaconsole() === true) {
|
||||
\alerts_meta_print_header($tabs);
|
||||
@ -491,7 +490,6 @@ if ((bool) check_acl($config['id_user'], 0, 'LM') === true) {
|
||||
echo '<div id="modal-alert-templates" class="invisible"></div>';
|
||||
ui_require_javascript_file('pandora_alerts');
|
||||
|
||||
\enterprise_hook('close_meta_frame');
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready (function () {
|
||||
|
@ -29,7 +29,6 @@
|
||||
// Extras required.
|
||||
\ui_require_css_file('wizard');
|
||||
\enterprise_include_once('meta/include/functions_alerts_meta.php');
|
||||
\enterprise_hook('open_meta_frame');
|
||||
|
||||
if (\is_metaconsole() === true) {
|
||||
\alerts_meta_print_header($tabs);
|
||||
@ -186,7 +185,6 @@ echo '<div id="modal-alert-templates" class="invisible"></div>';
|
||||
ui_require_javascript_file('calendar');
|
||||
ui_require_javascript_file('pandora_alerts');
|
||||
|
||||
\enterprise_hook('close_meta_frame');
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready (function () {
|
||||
|
@ -49,7 +49,7 @@ if ($manageDashboards !== 0 || $writeDashboards !== 0) {
|
||||
if ((int) $cellData['id_widget'] !== 0) {
|
||||
$output .= '<a id="configure-widget-'.$cellData['id'].'" class="">';
|
||||
$output .= html_print_image(
|
||||
'images/input_cog_white.png',
|
||||
'images/configuration@svg.svg',
|
||||
true,
|
||||
[
|
||||
'width' => '16px',
|
||||
@ -61,7 +61,7 @@ if ($manageDashboards !== 0 || $writeDashboards !== 0) {
|
||||
|
||||
$output .= '<a id="delete-widget-'.$cellData['id'].'" class="">';
|
||||
$output .= html_print_image(
|
||||
'images/input_delete_white.png',
|
||||
'images/delete.svg',
|
||||
true,
|
||||
[
|
||||
'width' => '16px',
|
||||
|
@ -273,22 +273,20 @@ if (isset($config['public_dashboard']) === true
|
||||
}
|
||||
|
||||
if ($publicLink === false) {
|
||||
if ((bool) is_metaconsole() === true) {
|
||||
ui_meta_print_header(
|
||||
__('Dashboards').' » '.__('List'),
|
||||
false,
|
||||
$buttons
|
||||
);
|
||||
} else {
|
||||
ui_print_page_header(
|
||||
$dashboardName,
|
||||
'',
|
||||
false,
|
||||
'',
|
||||
false,
|
||||
$buttons
|
||||
);
|
||||
}
|
||||
ui_print_standard_header(
|
||||
$dashboardName,
|
||||
'',
|
||||
false,
|
||||
'',
|
||||
true,
|
||||
$buttons,
|
||||
[
|
||||
[
|
||||
'link' => '',
|
||||
'label' => __('Dashboard'),
|
||||
],
|
||||
]
|
||||
);
|
||||
} else {
|
||||
$output = '<div id="dashboard-controls">';
|
||||
foreach ($buttons as $key => $value) {
|
||||
|
@ -36,7 +36,10 @@ if ((int) $cellData['id_widget'] !== 0 || $widgetId !== 0) {
|
||||
'add-widget-'.$cellData['id'],
|
||||
false,
|
||||
'',
|
||||
'class="sub cog add-widget"',
|
||||
[
|
||||
'icon' => 'cog',
|
||||
'mode' => 'secondary mini',
|
||||
],
|
||||
true
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user