Added standarized headers
This commit is contained in:
parent
76628117fa
commit
e7b59ab472
|
@ -1,19 +1,35 @@
|
||||||
<?php
|
<?php
|
||||||
// Pandora FMS - http://pandorafms.com
|
/**
|
||||||
// ==================================================
|
* Custom graph containers
|
||||||
// Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
*
|
||||||
// Please see http://pandorafms.org for full contribution list
|
* @category Reporting
|
||||||
// This program is free software; you can redistribute it and/or
|
* @package Pandora FMS
|
||||||
// modify it under the terms of the GNU General Public License
|
* @subpackage Community
|
||||||
// as published by the Free Software Foundation for version 2.
|
* @version 1.0.0
|
||||||
// This program is distributed in the hope that it will be useful,
|
* @license See below
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
*
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* ______ ___ _______ _______ ________
|
||||||
// GNU General Public License for more details.
|
* | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
|
||||||
// Load global variables
|
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
|
||||||
|
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||||
|
*
|
||||||
|
* ============================================================================
|
||||||
|
* Copyright (c) 2007-2021 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
|
||||||
|
* as published by the Free Software Foundation for version 2.
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
* ============================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Begin.
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
// Check user credentials
|
// Check user credentials.
|
||||||
check_login();
|
check_login();
|
||||||
|
|
||||||
if (! check_acl($config['id_user'], 0, 'RR') || enterprise_installed() === false) {
|
if (! check_acl($config['id_user'], 0, 'RR') || enterprise_installed() === false) {
|
||||||
|
@ -87,8 +103,26 @@ $buttons['graph_container'] = [
|
||||||
]
|
]
|
||||||
).'</a>',
|
).'</a>',
|
||||||
];
|
];
|
||||||
// Header
|
|
||||||
ui_print_page_header(__('Graph container'), '', false, '', false, $buttons);
|
// Header.
|
||||||
|
ui_print_standard_header(
|
||||||
|
__('Graph container'),
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
$buttons,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Reporting'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Custom graphs'),
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
$container = folder_get_folders();
|
$container = folder_get_folders();
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ if ($is_enterprise !== ENTERPRISE_NOT_HOOK && $vconsoles_manage) {
|
||||||
|
|
||||||
if ($is_metaconsole === false) {
|
if ($is_metaconsole === false) {
|
||||||
ui_print_standard_header(
|
ui_print_standard_header(
|
||||||
__('Visual Favourite List'),
|
__('Visual Console List'),
|
||||||
'images/op_reporting.png',
|
'images/op_reporting.png',
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
|
|
|
@ -1,18 +1,32 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Pandora FMS - http://pandorafms.com
|
* Interfaces view.
|
||||||
* ==================================================
|
*
|
||||||
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
* @category Monitoring
|
||||||
* Please see http://pandorafms.org for full contribution list
|
* @package Pandora FMS
|
||||||
* This program is free software; you can redistribute it and/or
|
* @subpackage Community
|
||||||
* modify it under the terms of the GNU General Public License
|
* @version 1.0.0
|
||||||
* as published by the Free Software Foundation; version 2
|
* @license See below
|
||||||
* This program is distributed in the hope that it will be useful,
|
*
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* ______ ___ _______ _______ ________
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
|
||||||
* GNU General Public License for more details.
|
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
|
||||||
|
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||||
|
*
|
||||||
|
* ============================================================================
|
||||||
|
* Copyright (c) 2007-2021 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
|
||||||
|
* as published by the Free Software Foundation for version 2.
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
* ============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Begin.
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
check_login();
|
check_login();
|
||||||
|
@ -45,12 +59,23 @@ $sec = (string) get_parameter('sec', 'view');
|
||||||
$agent_id = (int) get_parameter('id_agente', 0);
|
$agent_id = (int) get_parameter('id_agente', 0);
|
||||||
|
|
||||||
if ($sec === 'view') {
|
if ($sec === 'view') {
|
||||||
ui_print_page_header(
|
ui_print_standard_header(
|
||||||
__('Interface view').$subpage,
|
__('Interface view').$subpage,
|
||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
true
|
true,
|
||||||
|
[],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Monitoring'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Views'),
|
||||||
|
],
|
||||||
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue