17 lines
346 B
PHP
Executable File
17 lines
346 B
PHP
Executable File
<?php
|
|
|
|
function classLoader($class)
|
|
{
|
|
$path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
|
|
$file = COMMPATH . 'third_party'. DIRECTORY_SEPARATOR. $path . '.php';
|
|
|
|
if (file_exists($file))
|
|
{
|
|
require_once $file;
|
|
}
|
|
}
|
|
|
|
spl_autoload_register('classLoader');
|
|
|
|
require_once __DIR__ . DIRECTORY_SEPARATOR. 'functions.php';
|