You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
683 B
PHTML
20 lines
683 B
PHTML
12 years ago
|
<?php
|
||
11 years ago
|
/**
|
||
|
* Base include file for library functions for AMS.
|
||
|
* Autoload function that loads the classes in case they aren't loaded yet.
|
||
|
*/
|
||
12 years ago
|
function __autoload( $className ){
|
||
11 years ago
|
global $AMS_LIB;
|
||
|
global $SITEBASE;
|
||
11 years ago
|
//if the class exists in the lib's autload dir, load that one
|
||
11 years ago
|
if(file_exists( $AMS_LIB.'/autoload/' . strtolower ( $className ) . '.php')){
|
||
12 years ago
|
require_once 'autoload/' . strtolower ( $className ) . '.php';
|
||
|
}
|
||
11 years ago
|
//if the classname is WebUsers, use the sitebase location for the autoload dir.
|
||
11 years ago
|
if($className == "WebUsers"){
|
||
11 years ago
|
require_once $SITEBASE.'/autoload/' . strtolower ( $className ) . '.php';
|
||
12 years ago
|
}
|
||
11 years ago
|
}
|
||
|
|
||
12 years ago
|
|