2013-01-16 05:07:38 +01:00
|
|
|
<?php
|
|
|
|
$_CPHP = true;
|
|
|
|
$_CPHP_CONFIG = "../config.json";
|
|
|
|
require("cphp/base.php");
|
|
|
|
|
|
|
|
$_APP = true;
|
|
|
|
|
2013-01-17 10:27:30 +01:00
|
|
|
require("constants.php");
|
|
|
|
|
2013-01-16 05:07:38 +01:00
|
|
|
function __autoload($class_name)
|
|
|
|
{
|
|
|
|
global $_APP;
|
|
|
|
|
|
|
|
$class_name = str_replace("\\", "/", strtolower($class_name));
|
|
|
|
require_once("classes/{$class_name}.php");
|
|
|
|
}
|