RequireClass.inc.php 16.1 KB
<?php
/**
 * @file	RequireClass.inc.php
 * @category freeSN
 * @mailto	code [at] netz.coop
 * @version 0.4.200901
 * @link http://netz.coop
 * 
 *  @copyright Copyright by netz.coop e.G. 2015
 *  
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *   This program 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 General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
$GLOBALS['class'] = array(


/**
 * SimpleTesting old (../SimpleTest)
 */
	'TestOfController'				=> $_LOSPDIR . "include/System/php/DevTools/SimpleTest/class_SimpleTestController.inc.php",
	'MANAGEGenTestData'				=> $_LOSPDIR . "include/System/php/DevTools/SimpleTest/class_MANAGEGenTestData.inc.php",
	'TestOfBrowsingLosp'			=> $_LOSPDIR . "include/System/php/DevTools/SimpleTest/class_BrowserTest.inc.php",
	'TestSuite'						=> $_LOSPDIR . "include/System/php/DevTools/SimpleTest/class_TestSuite.inc.php",
	'TestOfController'				=> $_LOSPDIR . "include/System/php/DevTools/SimpleTest/class_SimpleTestController.inc.php",

/**
 * SimpleTest NEW (../ST)
 */
//	'STBrowser'						=> $_LOSPDIR . "include/System/php/DevTools/ST/class_STBrowser.inc.php",
	'STAll'							=> $_LOSPDIR . "include/System/php/DevTools/ST/class_STAll.inc.php",
//	'STLayout'						=> $_LOSPDIR . "include/System/php/DevTools/ST/class_STLayout.inc.php",
	'STMANAGEData'					=> $_LOSPDIR . "include/System/php/DevTools/ST/class_STMANAGEData.inc.php",
	'STRunRecursive'				=> $_LOSPDIR . "include/System/php/DevTools/ST/class_STRunRecursive.inc.php",
	'STDB'							=> $_LOSPDIR . "include/System/php/DevTools/ST/class_STDB.inc.php",
	'STTree'						=> $_LOSPDIR . "include/System/php/DevTools/ST/class_STTree.inc.php",
	'config_ST'						=> $_LOSPDIR . "include/System/php/DevTools/ST/config_ST.php",

/**
 * SimpleTest ../ST/Helpers
 */
	'STAssertHelper'				=> $_LOSPDIR . "include/System/php/DevTools/ST/Helpers/class_STAssertHelper.inc.php",
	'DataFromDBHelper'				=> $_LOSPDIR . "include/System/php/DevTools/ST/Helpers/class_DataFromDBHelper.inc.php",
	'RegExpHelper'					=> $_LOSPDIR . "include/System/php/DevTools/ST/Helpers/class_RegExpHelper.inc.php",
	'STTREEHelpers'					=> $_LOSPDIR . "include/System/php/DevTools/ST/Helpers/class_STTREEHelpers.inc.php",
	'CreateHelper'					=> $_LOSPDIR . "include/System/php/DevTools/ST/Helpers/class_CreateHelper.inc.php",
 	'CheckHelper'					=> $_LOSPDIR . "include/System/php/DevTools/ST/Helpers/class_CheckHelper.inc.php",
/**
 * SimpleTest ../ST/Tools
 */
	'CheckDBTablesTools'			=> $_LOSPDIR . "include/System/php/DevTools/ST/Tools/class_CheckDBTablesTools.inc.php",
	'cURLTools'						=> $_LOSPDIR . "include/System/php/DevTools/ST/Tools/class_cURLTools.inc.php",
	'LoggingTools'					=> $_LOSPDIR . "include/System/php/DevTools/ST/Tools/class_LoggingTools.php",
	'RegExpTools'					=> $_LOSPDIR . "include/System/php/DevTools/ST/Tools/class_RegExpTools.inc.php",
	'SendReceiveTools'				=> $_LOSPDIR . "include/System/php/DevTools/ST/Tools/class_SendReceiveTools.inc.php",
	'TimeTools'						=> $_LOSPDIR . "include/System/php/DevTools/ST/Tools/class_TimeTools.inc.php",
	'FileTools'						=> $_LOSPDIR . "include/System/php/DevTools/ST/Tools/class_FileTools.inc.php",

/**
 * SimpleTest install
 */
	'TestSuite' => $_SIMPLE_TEST_DIR. 'test_case.php',
	'FieldExpectation'=>  $_SIMPLE_TEST_DIR.'web_tester.php',
	'HttpHeaderExpectation'=>  $_SIMPLE_TEST_DIR.'web_tester.php',
	'NoHttpHeaderExpectation'=>  $_SIMPLE_TEST_DIR.'web_tester.php',
	'TextExpectation'=>  $_SIMPLE_TEST_DIR.'web_tester.php',
	'NoTextExpectation'=>  $_SIMPLE_TEST_DIR.'web_tester.php',
	'WebTestCase'=>  $_SIMPLE_TEST_DIR.'web_tester.php',
	'HtmlReporter' => $_SIMPLE_TEST_DIR. 'reporter.php',
	'TextReporter' => $_SIMPLE_TEST_DIR. 'reporter.php',
	'TextReporter' => $_SIMPLE_TEST_DIR. 'reporter.php',
	'TextReporter' => $_SIMPLE_TEST_DIR. 'reporter.php',
	'NoSkipsReporter' => $_SIMPLE_TEST_DIR. 'reporter.php',
	'UnitTestCase' => $_SIMPLE_TEST_DIR. 'unit_tester.php',
	'SimpleBrowserHistory' => $_SIMPLE_TEST_DIR. 'browser.php',
	'SimpleBrowser' => $_SIMPLE_TEST_DIR. 'browser.php',

/*
 * ############
 * include/System
 * ############
 */

/**
 * System
 */
	'Treepart'				=> $_LOSPDIR . 'include/System/php/class_Treepart.inc.php',
	'Form'					=> $_LOSPDIR . 'include/System/php/class_Form.inc.php',
	'Account'				=> $_LOSPDIR . 'include/System/php/class_Account.inc.php',
	'CONSTKindOf'			=> $_LOSPDIR . 'include/System/php/class_CONSTKindOf.inc.php',
	'Controller'			=> $_LOSPDIR . 'include/System/php/class_Controller.inc.php',
	'PostController'		=> $_LOSPDIR . 'include/System/php/class_PostController.inc.php',
	'LospService'			=> $_LOSPDIR . 'include/System/php/class_LospService.inc.php',
	'ContainerClass'		=> $_LOSPDIR . 'include/System/php/class_ContainerClass.inc.php',
	'Secure'				=> $_LOSPDIR . 'include/System/php/class_Secure.inc.php',
	'LospAuth'				=> $_LOSPDIR . 'include/System/php/class_LospAuth.inc.php',

	'Converter'				=> $_LOSPDIR . 'include/System/php/class_Converter.inc.php',
//	'Error'					=> $_LOSPDIR . 'include/System/php/class_Error.inc.php',
	'DOMElementHelper'		=> $_LOSPDIR . 'include/System/php/class_DOMElementHelper.inc.php',
	'XSLPHPLinkGenerator'	=> $_LOSPDIR . 'include/System/php/class_XSLPHPLinkGenerator.inc.php',
	'XSLPHPFunction'		=> $_LOSPDIR . 'include/System/php/class_XSLPHPFunction.inc.php',
	'ListCondition'			=> $_LOSPDIR . 'include/System/php/class_ListCondition.inc.php',
	'GlobalData'			=> $_LOSPDIR . 'include/System/php/class_GlobalData.inc.php',
/**	System/Install @old */
	'Install'				=> $_LOSPDIR . 'include/System/php/class_Install.inc.php',
	'LinkGenerator'			=> $_LOSPDIR . 'include/System/php/class_LinkGenerator.inc.php',

/**
 * DevTools
 */
	'D'                                     => $_LOSPDIR . "include/System/php/DevTools/class_D.inc.php",
	'Dump'					=> $_LOSPDIR . "include/System/php/DevTools/class_Dump.inc.php",
	'MySqlHelper'                           => $_LOSPDIR . "include/System/php/DevTools/class_MySqlHelper.inc.php",
	'ErrorEvent'                            => $_LOSPDIR . 'include/System/php/DevTools/ErrorHandling/class_ErrorEvent.inc.php',
	'ManipulateFiles'   			=> $_LOSPDIR . 'include/System/php/DevTools/class_ManipulateFiles.inc.php',
        'Error'					=> $_LOSPDIR . 'include/System/php/class_Error.inc.php',
	'Message'				=> $_LOSPDIR . 'include/System/php/class_Message.inc.php',

/**
 *	TreeManipulator
 */
	 'TreeManipulator'		=> $_LOSPDIR . 'include/System/php/TreeManipulator/class_TreeManipulator.inc.php',
	 'CatchAddToLinkListTMC'=> $_LOSPDIR . 'include/System/php/TreeManipulator/CallbackFunction/class_CatchAddToLinkListTMC.inc.php',

/**
 * Interface / Abstract Class
 */
	'iLosp'					=> $_LOSPDIR . 'include/System/php/Interfaces/if_LospInterfaces.inc.php',
	'aLosp'					=> $_LOSPDIR . 'include/System/php/Interfaces/class_aLosp.inc.php',
	'iBasisElement'			=> $_LOSPDIR . 'include/System/php/Interfaces/if_LospInterfaces.inc.php',
	'iBasisElementAddon'	=> $_LOSPDIR . 'include/System/php/Interfaces/if_LospInterfaces.inc.php',
	'aBasisElementAddon'	=> $_LOSPDIR . 'include/System/php/Interfaces/if_LospInterfaces.inc.php',
	'iBasisDesign'			=> $_LOSPDIR . 'include/System/php/Interfaces/if_LospInterfaces.inc.php',
	'iProfileCollection'	=> $_LOSPDIR . 'include/System/php/Interfaces/if_LospInterfaces.inc.php',
	'iStorable'				=> $_LOSPDIR . 'include/System/php/Interfaces/if_iStorable.inc.php',
	'aStorable'				=> $_LOSPDIR . 'include/System/php/Interfaces/if_iStorable.inc.php',
	'aServiceStorable'		=> $_LOSPDIR . 'include/System/php/Interfaces/if_iStorable.inc.php',
	'iBasicSql'				=> $_LOSPDIR . 'include/System/php/Interfaces/if_iBasicSql.inc.php',
//	'DataBaseInterface' 	=> $_LOSPDIR . 'include/System/php/Interfaces/if_DataBaseInterface.inc.php',
	'iBasisElementAddonDataBase' 	=> $_LOSPDIR . 'include/System/php/Interfaces/if_iBasisElementAddonDataBase.inc.php',
	'aBasisElementAddonDataBase' 	=> $_LOSPDIR . 'include/System/php/Interfaces/if_iBasisElementAddonDataBase.inc.php',
	'iTreeManipulatorCallback' 	=> $_LOSPDIR . 'include/System/php/Interfaces/if_iTreeManipulatorCallback.inc.php',
	'aTreeManipulatorCallback' 	=> $_LOSPDIR . 'include/System/php/Interfaces/if_iTreeManipulatorCallback.inc.php',


/**
 * Basis
 */

	'CloakObject'		=> $_LOSPDIR . 'include/System/php/class_CloakObject.inc.php',
	'CountryCode'		=> $_LOSPDIR . 'include/System/php/class_CountryCode.inc.php',
/**
 * Basis/Clipboard
 */
		'BasisClipboard'		=> $_LOSPDIR . 'include/System/php/Basis/Clipboard/class_BasisClipboard.inc.php',
		'AspirantWriteRight'	=> $_LOSPDIR . 'include/System/php/Basis/Clipboard/class_AspirantWriteRightBC.inc.php',
		'LinkList'				=> $_LOSPDIR . 'include/System/php/Basis/Clipboard/class_LinkListBC.inc.php',
/**
 * Basis/Design
 */
		'BasisDesign'			=> $_LOSPDIR . 'include/System/php/Basis/Design/class_BasisDesign.inc.php',
//	'AbstractBasisDesign'	=> $_LOSPDIR . 'include/Basis/php/Basis/Design/class_AbstractBasisDesign.inc.php',
		'BasisElementDesign'	=> $_LOSPDIR . 'include/System/php/Basis/Design/class_BasisElementDesign.inc.php',
/**
 * Basis/Element
 */
		'BasisElement'			=> $_LOSPDIR . 'include/System/php/Basis/Element/class_BasisElement.inc.php',
		'MultimediaText'		=> $_LOSPDIR . 'include/System/php/Basis/Element/class_MultimediaText.inc.php',

		'RightManagement'       => $_LOSPDIR . 'include/System/php/Basis/Element/RightManagement/class_RightManagement.inc.php',
		'RMProfileCollection'   => $_LOSPDIR . 'include/System/php/Basis/Element/RightManagement/class_RMProfileCollection.inc.php',

		'RightManagementBC'		=> $_LOSPDIR . 'include/System/php/Basis/Element/RightManagement/class_RightManagementBC.inc.php',
        'Authorisation'			=> $_LOSPDIR . 'include/System/php/Basis/Element/RightManagement/class_Authorisation.inc.php',
		'ReadAuthorisation'		=> $_LOSPDIR . 'include/System/php/Basis/Element/RightManagement/class_Authorisation.inc.php',
		'WriteAuthorisation'	=> $_LOSPDIR . 'include/System/php/Basis/Element/RightManagement/class_Authorisation.inc.php',
		'AuthorisationList'		=> $_LOSPDIR . 'include/System/php/Basis/Element/RightManagement/class_AuthorisationList.inc.php',
/**
 * Basis/Element/Addons
 */
		'AddonManager'=> $_LOSPDIR . 'include/System/php/class_AddonManager.inc.php',


/**
 * DataBase
 */
	'StorableFactory'		=> $_LOSPDIR . 'include/System/php/DataBase/class_StorableFactory.inc.php',
	'PDOLevel'				=> $_LOSPDIR . 'include/System/php/DataBase/class_PDOLevel.inc.php',
	'DataTransformator'		=> $_LOSPDIR . 'include/System/php/DataBase/class_DataTransformator.inc.php',
/**
 * DataBase/MySql
 */
		'BasicMySql'			=> $_LOSPDIR . 'include/System/php/DataBase/MySql/class_BasicMySql.inc.php',
		'PDOFunction'			=> $_LOSPDIR . 'include/System/php/DataBase/class_PDOFunction.inc.php',
		'PDOProtected'			=> $_LOSPDIR . 'include/System/php/DataBase/class_PDOProtected.inc.php',
		'MySql'					=> $_LOSPDIR . 'include/System/php/DataBase/MySql/class_MySql.inc.php',
		'PDOSRequest'			=> $_LOSPDIR . 'include/System/php/DataBase/class_PDOSRequest.inc.php',

		'PDORightManagement'	=> $_LOSPDIR . 'include/System/php/DataBase/class_PDORightManagement.inc.php',

/** Modules/ProfileManagement */
	'Profile'					=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_ProfileMT.inc.php',
	'SubProfileManagement'		=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_SubProfileManagement.inc.php',
	'ProfileBC'					=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_ProfileBC.inc.php',
	'ProfilePreferenceManager'	=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_ProfilePreferenceManager.inc.php',
	'PostingManager'			=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_PostingManager.inc.php',
	'HomepageManager'			=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_HomepageManager.inc.php',
	'ResourceManager'			=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_ResourceManager.inc.php',
	'NetworkManager'			=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_NetworkManager.inc.php',
	'OfficeManager'				=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_OfficeManager.inc.php',

	'GroupProfileBE'					=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_GroupProfileBE.inc.php',
	'GroupProfileBC'					=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_GroupProfileBC.inc.php',
	'MemberProfileBC'					=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_MemberProfileBC.inc.php',
	'AspirantBC'					=> $_LOSPDIR . 'include/System/php/Modules/Profile/class_AspirantBC.inc.php',


/**	Modules/FriendModule */
	'FriendList'			=> $_LOSPDIR . 'include/System/php/Modules/FriendModule/class_FriendListBC.inc.php',
//	'FriendModule'			=> $_LOSPDIR . 'include/System/php/ProfileManagement/FriendModule/class_FriendModuleMT.inc.php',
/**	Modules/PostOffice */
	'PostBox'				=> $_LOSPDIR . 'include/System/php/Modules/PostOffice/class_PostBox.inc.php',
	'InBox'					=> $_LOSPDIR . 'include/System/php/Modules/PostOffice/class_InBox.inc.php',
	'OutBox'				=> $_LOSPDIR . 'include/System/php/Modules/PostOffice/class_OutBox.inc.php',
//	'DraftBox'				=> $_LOSPDIR . 'include/System/php/Modules/PostOffice/class_DraftBoxBC.inc.php',
	'PostOffice'			=> $_LOSPDIR . 'include/System/php/Modules/PostOffice/class_PostOffice.inc.php',

/**	Services */
	'Ics'			=> $_LOSPDIR . 'include/System/php/Services/class_Ics.inc.php',
/**
 * external librarys
 */
/** PEAR Unit Test */
	'PHPUnit_Framework_TestCase'=> $_PEARDIR.'/PHPUnit/Framework.php',
	'AllTests'				 	=>	$_PEARDIR.'/PHPUnit/Tests/AllTests.php',
	'PHPUnit_Extensions_Database_TestCase' => $_PEARDIR.'/PHPUnit/Extensions/Database/TestCase.php',
	'SIMPLE_TEST'				=> $_PEARDIR.'simpletest',
	'XML_RSS'					=> $_PEARDIR.'/XML/RSS.php',


/**
 * 	Tree Configuration
 */
	'CONFIG'				=> $_LOSPDIR . 'include/System/php/class_CONFIG.inc.php',
	'Language'				=> $_LOSPDIR . 'include/System/php/class_Language.inc.php',

);
if(isset($_TREE) && $_TREE) {
	$GLOBALS['class']['TreeCONFIG']			= $_LOSPDIR . 'include/Forest/'.$_TREE.'/php/class_CONFIG.'.$_TREE.'.inc.php';
	$GLOBALS['class']['TreeLanguage']		= $_LOSPDIR . 'include/Forest/'.$_TREE.'/php/class_Language.'.$_TREE.'.inc.php';
	require_once($_LOSPDIR. 'include/Forest/'.$_TREE.'/php/TreeRequireClass.'.$_TREE.'.inc.php');
}
else if($_PAGEDIR){
	$GLOBALS['class']['TreeCONFIG']			= $_PAGEDIR.'/include/php/class_CONFIG.'.$_PAGE_NAME.'.inc.php';
	$GLOBALS['class']['TreeLanguage']		= $_PAGEDIR.'/include/php/class_Language.'.$_PAGE_NAME.'.inc.php';
	require_once($_PAGEDIR.'/include/php/TreeRequireClass.'.$_PAGE_NAME.'.inc.php');
}
require_once($_LOSPDIR. 'include/Lib/BasisElementAddons/Lib.BEA.RequireClass.inc.php');
require_once($_LOSPDIR. 'include/Lib/Modules/Lib.Modules.RequireClass.inc.php');

require_once ($_LOSPDIR . 'include/System/php/DevTools/ErrorHandling/class_ErrorEvent.inc.php');
require_once ($_LOSPDIR . 'include/System/php/class_Error.inc.php');
//$_LOSP_MODULES = scandir($_LOSPDIR . 'include/Lib/Modules/',1);

function __autoload($klasse) {
	if (isset($GLOBALS['class'][$klasse])) {
		require_once $GLOBALS['class'][$klasse];
	} else {
		//		if(class_exists('D')) {
		//			D::backtrace("Klasse die nicht gefunden wurde: ".$klasse);
		//		} else {
		//			echo "$_LOSP_SERVERNAME ::: Klasse die nicht gefunden wurde: ".$klasse."</br>";
		//		}
	}
}

date_default_timezone_set(CONFIG::getConfig('timezone_set'));


if($CONFIG_LOSP_ErrorHandler) {
	require_once $_LOSPDIR.'include/System/php/DevTools/ErrorHandling/fnc_ErrorHandler.inc.php';
	set_error_handler('ErrorHandler');
}

if($_LOSP_DEV) {
	error_reporting(E_ALL);

	$var_message = '['.date('d. m. Y  G:i').'] DEVMODE: logfile wurde zurvor geloescht';

	unlink ( $_E_LOGFILE_WARNINGNOTICE );
	$var_file = fopen($_E_LOGFILE_WARNINGNOTICE, 'w+');
	fputs($var_file, $var_message);
	fclose(@$var_file);

	unlink ($_E_LOGFILE_ERROR );
	@$var_file = fopen($_E_LOGFILE_ERROR, 'w');
	fputs($var_file, $var_message);
	@fclose(@$var_file);

	$time_index = D::start();
}
?>