nagiosql/install/functions/prepend_install.php

35 lines
1.1 KiB
PHP
Raw Normal View History

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 : Installer preprocessing script
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
//
///////////////////////////////////////////////////////////////////////////////
error_reporting(E_ALL);
//
// Define common variables
// =======================
2019-04-17 11:40:50 +02:00
$strErrorMessage = ''; // All error messages (red)
$strInfoMessage = ''; // All information messages (green)
2017-05-22 11:24:21 +02:00
//
// Start PHP session
// =================
2017-10-20 15:00:08 +02:00
session_start([ 'name' => 'nagiosql_install']);
2017-05-22 11:24:21 +02:00
//
// Include external function/class files
// =====================================
2019-04-17 11:40:50 +02:00
require $preBasePath.'functions/Autoloader.php';
functions\Autoloader::register($preBasePath);
2017-05-22 11:24:21 +02:00
//
// Initialize class
// ================
2019-04-17 11:40:50 +02:00
$myInstClass = new install\functions\NagInstallClass($_SESSION);