folderstructure change

This commit is contained in:
kremsy
2014-02-18 15:54:02 +01:00
committed by Steffen Schröder
parent 043c85fa97
commit 570b32fff8
109 changed files with 1 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<?php
/**
* FancyManiaLinks - Automatic ManiaLink Generator Framework
*
* @author steeffeen
* @version 1.0
*/
if (!defined('FML_PATH')) {
define('FML_PATH', __DIR__ . '/../');
}
if (!defined('FML_VERSION')) {
define('FML_VERSION', 1.0);
}
/*
* Autoload Function that loads FML Class Files on Demand
*/
spl_autoload_register(
function ($className) {
$classPath = str_replace('\\', DIRECTORY_SEPARATOR, $className);
$filePath = FML_PATH . DIRECTORY_SEPARATOR . $classPath . '.php';
if (file_exists($filePath)) {
require_once $filePath;
}
});