2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2019-03-04 20:02:35 +01:00
|
|
|
/**
|
|
|
|
* Extension to self monitor Pandora FMS Console
|
|
|
|
*
|
|
|
|
* @category Main page
|
|
|
|
* @package Pandora FMS
|
|
|
|
* @subpackage Introduction
|
|
|
|
* @version 1.0.0
|
|
|
|
* @license See below
|
|
|
|
*
|
|
|
|
* ______ ___ _______ _______ ________
|
2023-06-08 12:42:10 +02:00
|
|
|
* | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
|
|
|
|
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
|
2019-03-04 20:02:35 +01:00
|
|
|
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
|
|
|
*
|
|
|
|
* ============================================================================
|
2023-06-08 11:53:13 +02:00
|
|
|
* Copyright (c) 2005-2023 Pandora FMS
|
2023-06-08 13:19:01 +02:00
|
|
|
* Please see https://pandorafms.com/community/ for full contribution list
|
2019-03-04 20:02:35 +01:00
|
|
|
* 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.
|
|
|
|
* ============================================================================
|
|
|
|
*/
|
|
|
|
|
2023-09-21 17:58:18 +02:00
|
|
|
use PandoraFMS\TacticalView\GeneralTacticalView;
|
|
|
|
|
2023-10-19 16:18:36 +02:00
|
|
|
// Config functions.
|
|
|
|
require_once 'include/config.php';
|
|
|
|
|
|
|
|
// This solves problems in enterprise load.
|
|
|
|
global $config;
|
|
|
|
|
|
|
|
check_login();
|
|
|
|
// ACL Check.
|
|
|
|
if (check_acl($config['id_user'], 0, 'AR') === 0) {
|
|
|
|
db_pandora_audit(
|
|
|
|
AUDIT_LOG_ACL_VIOLATION,
|
|
|
|
'Trying to access Default view'
|
|
|
|
);
|
|
|
|
include 'general/noaccess.php';
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2023-09-21 17:58:18 +02:00
|
|
|
$tacticalView = new GeneralTacticalView();
|
|
|
|
$tacticalView->render();
|