<?php
//
// +---------------------------------------------------------------------------+
// | Nitro :: Base :: Configuration |
// +---------------------------------------------------------------------------+
// | Copyright (c) 2006 June Systems BV |
// +---------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or modify it |
// | under the terms of the GNU Lesser General Public License as published by |
// | the Free Software Foundation; either version 2.1 of the License, or (at |
// | your option) any later version. |
// | |
// | This library 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 Lesser |
// | General Public License for more details. |
// | |
// | You should have received a copy of the GNU Lesser General Public License |
// | along with this library; if not, write to the Free Software Foundation, |
// | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
// +---------------------------------------------------------------------------+
// | Authors: Siggi Oskarsson <hide@address.com> |
// | Jesper Avot <hide@address.com |
// +---------------------------------------------------------------------------+
//
// $Id: NitroBaseConfig.inc.php 229 2008-04-17 09:20:31Z oli $
//
// Nitro's base config initialization script
//
/**
* This script is used to initialize the Nitro environment for all files
* that are used on the website (index.php, xml.php, GetObject.php)
* This file is essential, so do not remove!!
*/
/**
* Block direct access
**/
if( strpos( $_SERVER['REQUEST_URI'], basename( __FILE__ ) ) )
{
die( "Direct file access is not allowed for this file." );
}
/**
* Nitro Error_Reporting
*/
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors', 'On');
/**
* Nitro Root and Path define
*/
define('NITRO_ROOT', str_replace(DIRECTORY_SEPARATOR.'html'.DIRECTORY_SEPARATOR.'BackOffice', '', dirname(__FILE__)) . DIRECTORY_SEPARATOR);
define('NITRO_PATH', NITRO_ROOT.'Nitro'.DIRECTORY_SEPARATOR);
/**
* Nitro Config Path define
*/
define("NITRO_CONFIG", NITRO_ROOT."BackOffice.ini");
/**
* Nitro Template Path define
*/
define('TEMPLATE_PATH', NITRO_PATH.'Defaults'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR);
/**
* Set Nitro include Path
*/
set_include_path(NITRO_ROOT);
/**
* Include Nitro Base class
*/
include_once "Nitro/Base.inc.php";
?>