2017-05-22 11:24:21 +02:00
|
|
|
<?php
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// NagiosQL
|
|
|
|
//
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2019-04-17 11:40:50 +02:00
|
|
|
// (c) 2005-2018 by Martin Willisegger
|
2017-05-22 11:24:21 +02:00
|
|
|
//
|
|
|
|
// Project : NagiosQL
|
|
|
|
// Component : Admin main site
|
2019-04-17 11:40:50 +02:00
|
|
|
// Website : https://sourceforge.net/projects/nagiosql/
|
|
|
|
// Version : 3.4.0
|
|
|
|
// GIT Repo : https://gitlab.com/wizonet/NagiosQL
|
2017-05-22 11:24:21 +02:00
|
|
|
//
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2019-04-17 11:40:50 +02:00
|
|
|
// Path settings
|
|
|
|
// ===================
|
|
|
|
$preRelPath = strstr(filter_input(INPUT_SERVER, 'PHP_SELF', FILTER_SANITIZE_STRING), 'admin.php', true);
|
|
|
|
$preBasePath = strstr(filter_input(INPUT_SERVER, 'SCRIPT_FILENAME', FILTER_SANITIZE_STRING), 'admin.php', true);
|
|
|
|
//
|
2017-05-22 11:24:21 +02:00
|
|
|
// Define common variables
|
|
|
|
// =======================
|
2019-04-17 11:40:50 +02:00
|
|
|
$prePageId = 1;
|
|
|
|
$preContent = 'admin/mainpages.htm.tpl';
|
|
|
|
$preAccess = 1;
|
|
|
|
$preFieldvars = 1;
|
2017-05-22 11:24:21 +02:00
|
|
|
//
|
|
|
|
// Include preprocessing files
|
|
|
|
// ===========================
|
2019-04-17 11:40:50 +02:00
|
|
|
require $preBasePath.'functions/prepend_adm.php';
|
|
|
|
require $preBasePath.'functions/prepend_content.php';
|
2017-05-22 11:24:21 +02:00
|
|
|
//
|
|
|
|
// Include Content
|
|
|
|
// ===============
|
2019-04-17 11:40:50 +02:00
|
|
|
$conttp->setVariable('TITLE', translate('NagiosQL Administration'));
|
|
|
|
$conttp->parse('header');
|
|
|
|
$conttp->show('header');
|
|
|
|
$conttp->setVariable('DESC', translate('Welcome to NagiosQL, the administration module that can be used to easily '
|
|
|
|
. 'create, modify and delete configuration files for Nagios. The data is stored in a database '
|
|
|
|
. 'and can be written directly to the standard files at any time you want.'));
|
|
|
|
$conttp->parse('main');
|
|
|
|
$conttp->show('main');
|
2017-05-22 11:24:21 +02:00
|
|
|
//
|
|
|
|
// Include footer
|
|
|
|
// ==============
|
2019-04-17 11:40:50 +02:00
|
|
|
$maintp->setVariable('VERSION_INFO', "<a href='https://sourceforge.net/projects/nagiosql/' "
|
|
|
|
. "target='_blank'>NagiosQL</a> $setFileVersion");
|
|
|
|
$maintp->parse('footer');
|
|
|
|
$maintp->show('footer');
|