12345678910 |
- <?php
- define('GPAC_BASE_PATH', realpath(dirname(__FILE__)));
- spl_autoload_register(function($class) {
- $file = GPAC_BASE_PATH . DIRECTORY_SEPARATOR . str_replace("\\", DIRECTORY_SEPARATOR, strtolower($class)) . ".php";
- if (file_exists($file))
- require_once $file;
- });
|