2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* FancyManiaLinks - Automatic ManiaLink Generator Framework
|
|
|
|
*
|
|
|
|
* @author steeffeen
|
|
|
|
* @version 1.0
|
2014-04-13 18:21:40 +02:00
|
|
|
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
if (!defined('FML_PATH')) {
|
|
|
|
define('FML_PATH', __DIR__ . '/../');
|
|
|
|
}
|
2014-01-03 17:18:14 +01:00
|
|
|
if (!defined('FML_VERSION')) {
|
|
|
|
define('FML_VERSION', 1.0);
|
|
|
|
}
|
2013-11-25 00:02:07 +01:00
|
|
|
|
2014-01-21 20:30:40 +01:00
|
|
|
/*
|
|
|
|
* Autoload Function that loads FML Class Files on Demand
|
|
|
|
*/
|
2013-11-25 00:02:07 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
});
|