/helpers/autoload.php
https://github.com/MilkZoft/zan · PHP · 14 lines · 14 code · 0 blank · 0 comment · 1 complexity · 9784010b5d1891eed375a0f8ff10a470 MD5 · raw file
- <?php
- if (!defined("ACCESS")) {
- die("Error: You don't have permission to access here...");
- }
- if (!function_exists("__autoload")) {
- function __autoload($class) {
- $class = strtolower(str_replace("ZP_", "", $class));
- if (file_exists(CORE_PATH ."/classes/". strtolower($class) .".php")) {
- include CORE_PATH ."/classes/". strtolower($class) .".php";
- }
- }
- }