New upstream version 3.5.0
This commit is contained in:
@@ -1,64 +1,65 @@
|
||||
<?php
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// NagiosQL
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// (c) 2005-2018 by Martin Willisegger
|
||||
//
|
||||
// Project : NagiosQL
|
||||
// Component : Admin timeperiod definitions
|
||||
// Website : https://sourceforge.net/projects/nagiosql/
|
||||
// Date : $LastChangedDate: 2018-04-10 10:48:30 +0200 (Tue, 10 Apr 2018) $
|
||||
// Author : $LastChangedBy: martin $
|
||||
// Version : 3.4.0
|
||||
// GIT Repo : https://gitlab.com/wizonet/NagiosQL
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Path settings
|
||||
// ===================
|
||||
/* ----------------------------------------------------------------------------
|
||||
NagiosQL
|
||||
-------------------------------------------------------------------------------
|
||||
(c) 2005-2023 by Martin Willisegger
|
||||
|
||||
Project : NagiosQL
|
||||
Component : Mutation dialog
|
||||
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 Content template
|
||||
* @var array $arrDescription from fieldvars.php -> Translated common strings
|
||||
* @var int $intVersion from prepend_adm.php -> Nagios version
|
||||
*/
|
||||
/*
|
||||
Path settings
|
||||
*/
|
||||
$strPattern = '(admin/[^/]*.php)';
|
||||
$preRelPath = preg_replace($strPattern, '', filter_input(INPUT_SERVER, 'PHP_SELF', FILTER_SANITIZE_STRING));
|
||||
$preBasePath = preg_replace($strPattern, '', filter_input(INPUT_SERVER, 'SCRIPT_FILENAME', FILTER_SANITIZE_STRING));
|
||||
//
|
||||
// Define common variables
|
||||
// =======================
|
||||
$preContent = 'admin/mutdialog.htm.tpl';
|
||||
//
|
||||
// Process post parameters
|
||||
// =======================
|
||||
$preRelPath = preg_replace($strPattern, '', filter_input(INPUT_SERVER, 'PHP_SELF'));
|
||||
$preBasePath = preg_replace($strPattern, '', filter_input(INPUT_SERVER, 'SCRIPT_FILENAME'));
|
||||
/*
|
||||
Define common variables
|
||||
*/
|
||||
$preContent = 'admin/mutdialog.htm.tpl';
|
||||
/*
|
||||
Process post parameters
|
||||
*/
|
||||
$intExclude = filter_input(INPUT_GET, 'exclude', FILTER_VALIDATE_INT, array('options' => array('default' => 0)));
|
||||
$chkObject = filter_input(INPUT_GET, 'object', FILTER_SANITIZE_STRING);
|
||||
//
|
||||
// Include preprocessing file
|
||||
// ==========================
|
||||
$preAccess = 1;
|
||||
$chkObject = filter_input(INPUT_GET, 'object');
|
||||
/*
|
||||
Include preprocessing file
|
||||
*/
|
||||
$preAccess = 1;
|
||||
$preFieldvars = 1;
|
||||
$preNoMain = 1;
|
||||
require $preBasePath.'functions/prepend_adm.php';
|
||||
//
|
||||
// Include content
|
||||
// ===============
|
||||
$preNoMain = 1;
|
||||
require $preBasePath . 'functions/prepend_adm.php';
|
||||
/*
|
||||
Include content
|
||||
*/
|
||||
$conttp->setVariable('BASE_PATH', $_SESSION['SETS']['path']['base_url']);
|
||||
$conttp->setVariable('OPENER_FIELD', $chkObject);
|
||||
$conttp->parse('header');
|
||||
$conttp->show('header');
|
||||
//
|
||||
// Form
|
||||
// ====
|
||||
/*
|
||||
Form
|
||||
*/
|
||||
foreach ($arrDescription as $elem) {
|
||||
$conttp->setVariable($elem['name'], $elem['string']);
|
||||
}
|
||||
$conttp->setVariable('OPENER_FIELD', $chkObject);
|
||||
$conttp->setVariable('ACTION_INSERT', filter_input(INPUT_SERVER, 'PHP_SELF', FILTER_SANITIZE_STRING));
|
||||
$conttp->setVariable('IMAGE_PATH', $_SESSION['SETS']['path']['base_url']. 'images/');
|
||||
$conttp->setVariable('ACTION_INSERT', filter_input(INPUT_SERVER, 'PHP_SELF'));
|
||||
$conttp->setVariable('IMAGE_PATH', $_SESSION['SETS']['path']['base_url'] . 'images/');
|
||||
$conttp->setVariable('AVAILABLE', translate('Available'));
|
||||
$conttp->setVariable('SELECTED', translate('Selected'));
|
||||
if (($intExclude == 1) || ($intVersion < 3)) {
|
||||
if (($intExclude === 1) || ($intVersion < 3)) {
|
||||
$conttp->setVariable('DISABLE_HTML_BEGIN', '<!--');
|
||||
$conttp->setVariable('DISABLE_HTML_END', '-->');
|
||||
}
|
||||
$conttp->parse('datainsert');
|
||||
$conttp->show('datainsert');
|
||||
$conttp->show('datainsert');
|
||||
Reference in New Issue
Block a user