Code: Alles auswählen
<?php
/*
This file is available in each module per symbolic link.
******************************** ATTENTION: ***********************************
* FOR DEVELOPMENT YOU HAVE TO COPY THIS FILE IN EVERY MODULE *
* AND CHANGE THE PATH TO YOUR SYSTEM ENVIROMENT BECAUSE WE DON'T WANT *
* SYMBOLIC LINKS IN CVS. *
*******************************************************************************
*/
//include this files with constant definitions and therefor make them available in
//every file where autoload.php is included
require_once('../../../lib/customize.php'); //for development change this path to your environment
require_once('../../../lib/common.php'); //for development change this path to your environment
function __autoload($class_name)
{
/*
$config = array();
if (file_exists($config_file = str_replace('autoload.php','server.conf',__FILE__))) {
$config = parse_ini_file($config_file, TRUE);
}
*/
$file_name = ROOT_PATH.strtolower(str_replace('_','/',$class_name)).'.php';
require_once($file_name);
}
?>