mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-08 08:19:01 +00:00
580aa3c775
--HG-- branch : quitta-gsoc-2013
18 lines
702 B
PHP
18 lines
702 B
PHP
<?php
|
|
// ***********************************************
|
|
// Base include file for library functions for AMS
|
|
// ***********************************************
|
|
function __autoload( $className ){
|
|
global $AMS_LIB;
|
|
global $SITEBASE;
|
|
//if the class exists in the lib's autload dir, load that one
|
|
if(file_exists( $AMS_LIB.'/autoload/' . strtolower ( $className ) . '.php')){
|
|
require_once 'autoload/' . strtolower ( $className ) . '.php';
|
|
}
|
|
//if the classname is WebUsers, use the sitebase location for the autoload dir.
|
|
if($className == "WebUsers"){
|
|
require_once $SITEBASE.'/autoload/' . strtolower ( $className ) . '.php';
|
|
}
|
|
}
|
|
|
|
|