Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //if(!function_exists('classAutoLoader')){
- function classAutoLoader($class){
- $class=strtolower($class);
- $the_path = INCLUDES_PATH . DS . "{$class}.php";
- if(file_exists($the_path) && !class_exists($class)){
- require_once($the_path);
- }else{
- die("This file name {$class}.php was not found");
- }
- }
- spl_autoload_register('classAutoLoader');
- function redirect($location){
- header ("Location: {$location}");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement