New upstream version 3.5.0
This commit is contained in:
81
admin.php
81
admin.php
@@ -1,39 +1,42 @@
|
||||
<?php
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// NagiosQL
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// (c) 2005-2018 by Martin Willisegger
|
||||
//
|
||||
// Project : NagiosQL
|
||||
// Component : Admin main site
|
||||
// Website : https://sourceforge.net/projects/nagiosql/
|
||||
// Version : 3.4.0
|
||||
// GIT Repo : https://gitlab.com/wizonet/NagiosQL
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// 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);
|
||||
//
|
||||
// Define common variables
|
||||
// =======================
|
||||
$prePageId = 1;
|
||||
$preContent = 'admin/mainpages.htm.tpl';
|
||||
$preAccess = 1;
|
||||
/* ----------------------------------------------------------------------------
|
||||
NagiosQL
|
||||
-------------------------------------------------------------------------------
|
||||
(c) 2005-2022 by Martin Willisegger
|
||||
|
||||
Project : NagiosQL
|
||||
Component : Admin main site
|
||||
Website : https://sourceforge.net/projects/nagiosql/
|
||||
Version : 3.5.0
|
||||
GIT Repo : https://gitlab.com/wizonet/NagiosQL
|
||||
-----------------------------------------------------------------------------*/
|
||||
/**
|
||||
* Class and variable includes
|
||||
* @var HTML_Template_IT $conttp
|
||||
* @var HTML_Template_IT $maintp
|
||||
* @var string $setFileVersion from prepend_adm.php -> Application version string
|
||||
* @var string $setGITVersion from prepend_adm.php -> Application GIT subversion string
|
||||
*/
|
||||
/*
|
||||
Path settings
|
||||
*/
|
||||
$preRelPath = strstr(filter_input(INPUT_SERVER, 'PHP_SELF'), 'admin.php', true);
|
||||
$preBasePath = strstr(filter_input(INPUT_SERVER, 'SCRIPT_FILENAME'), 'admin.php', true);
|
||||
/*
|
||||
Define common variables
|
||||
*/
|
||||
$prePageId = 1;
|
||||
$preContent = 'admin/mainpages.htm.tpl';
|
||||
$preAccess = 1;
|
||||
$preFieldvars = 1;
|
||||
//
|
||||
// Include preprocessing files
|
||||
// ===========================
|
||||
require $preBasePath.'functions/prepend_adm.php';
|
||||
require $preBasePath.'functions/prepend_content.php';
|
||||
//
|
||||
// Include Content
|
||||
// ===============
|
||||
/*
|
||||
Include preprocessing files
|
||||
*/
|
||||
require $preBasePath . 'functions/prepend_adm.php';
|
||||
require $preBasePath . 'functions/prepend_content.php';
|
||||
/*
|
||||
Include Content
|
||||
*/
|
||||
$conttp->setVariable('TITLE', translate('NagiosQL Administration'));
|
||||
$conttp->parse('header');
|
||||
$conttp->show('header');
|
||||
@@ -42,10 +45,10 @@ $conttp->setVariable('DESC', translate('Welcome to NagiosQL, the administration
|
||||
. 'and can be written directly to the standard files at any time you want.'));
|
||||
$conttp->parse('main');
|
||||
$conttp->show('main');
|
||||
//
|
||||
// Include footer
|
||||
// ==============
|
||||
/*
|
||||
Include footer
|
||||
*/
|
||||
$maintp->setVariable('VERSION_INFO', "<a href='https://sourceforge.net/projects/nagiosql/' "
|
||||
. "target='_blank'>NagiosQL</a> $setFileVersion");
|
||||
. "target='_blank'>NagiosQL</a> $setFileVersion - GIT Version: $setGITVersion");
|
||||
$maintp->parse('footer');
|
||||
$maintp->show('footer');
|
||||
$maintp->show('footer');
|
||||
Reference in New Issue
Block a user