mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Minor fixes
This commit is contained in:
parent
022d28981d
commit
05bcbfaf79
@ -1,21 +1,36 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Update manager.
|
||||||
|
*
|
||||||
|
* @category Update Manager
|
||||||
|
* @package Pandora FMS
|
||||||
|
* @subpackage Community
|
||||||
|
* @version 1.0.0
|
||||||
|
* @license See below
|
||||||
|
*
|
||||||
|
* ______ ___ _______ _______ ________
|
||||||
|
* | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
|
||||||
|
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
|
||||||
|
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||||
|
*
|
||||||
|
* ============================================================================
|
||||||
|
* Copyright (c) 2005-2022 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.
|
||||||
|
* ============================================================================
|
||||||
|
*/
|
||||||
|
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Begin.
|
||||||
// ==================================================
|
|
||||||
// Copyright (c) 2005-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; 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.
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
check_login();
|
check_login();
|
||||||
// The ajax is in
|
// The ajax is in include/ajax/update_manager.php.
|
||||||
// include/ajax/update_manager.php
|
|
||||||
if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user'])) {
|
if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user'])) {
|
||||||
db_pandora_audit(
|
db_pandora_audit(
|
||||||
AUDIT_LOG_ACL_VIOLATION,
|
AUDIT_LOG_ACL_VIOLATION,
|
||||||
@ -36,28 +51,28 @@ if ($php_version_array[0] < 7) {
|
|||||||
$tab = get_parameter('tab', 'online');
|
$tab = get_parameter('tab', 'online');
|
||||||
|
|
||||||
$buttons['setup'] = [
|
$buttons['setup'] = [
|
||||||
'active' => ($tab == 'setup') ? true : false,
|
'active' => ($tab === 'setup') ? true : false,
|
||||||
'text' => '<a href="'.ui_get_full_url(
|
'text' => '<a href="'.ui_get_full_url(
|
||||||
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=setup'
|
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=setup'
|
||||||
).'">'.html_print_image('images/gm_setup.png', true, ['title' => __('Setup'), 'class' => 'invert_filter']).'</a>',
|
).'">'.html_print_image('images/gm_setup.png', true, ['title' => __('Setup'), 'class' => 'invert_filter']).'</a>',
|
||||||
];
|
];
|
||||||
|
|
||||||
$buttons['history'] = [
|
$buttons['history'] = [
|
||||||
'active' => ($tab == 'history') ? true : false,
|
'active' => ($tab === 'history') ? true : false,
|
||||||
'text' => '<a href="'.ui_get_full_url(
|
'text' => '<a href="'.ui_get_full_url(
|
||||||
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=histo'
|
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=histo'
|
||||||
).'ry">'.html_print_image('images/gm_db.png', true, ['title' => __('Journal'), 'class' => 'invert_filter']).'</a>',
|
).'ry">'.html_print_image('images/gm_db.png', true, ['title' => __('Journal'), 'class' => 'invert_filter']).'</a>',
|
||||||
];
|
];
|
||||||
|
|
||||||
$buttons['offline'] = [
|
$buttons['offline'] = [
|
||||||
'active' => ($tab == 'offline') ? true : false,
|
'active' => ($tab === 'offline') ? true : false,
|
||||||
'text' => '<a href="'.ui_get_full_url(
|
'text' => '<a href="'.ui_get_full_url(
|
||||||
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=offli'
|
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=offli'
|
||||||
).'ne">'.html_print_image('images/box.png', true, ['title' => __('Offline update'), 'class' => 'invert_filter']).'</a>',
|
).'ne">'.html_print_image('images/box.png', true, ['title' => __('Offline update'), 'class' => 'invert_filter']).'</a>',
|
||||||
];
|
];
|
||||||
|
|
||||||
$buttons['online'] = [
|
$buttons['online'] = [
|
||||||
'active' => ($tab == 'online') ? true : false,
|
'active' => ($tab === 'online') ? true : false,
|
||||||
'text' => '<a href="'.ui_get_full_url(
|
'text' => '<a href="'.ui_get_full_url(
|
||||||
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=onlin'
|
'index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=onlin'
|
||||||
).'e">'.html_print_image('images/op_gis.png', true, ['title' => __('Online update'), 'class' => 'invert_filter']).'</a>',
|
).'e">'.html_print_image('images/op_gis.png', true, ['title' => __('Online update'), 'class' => 'invert_filter']).'</a>',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user