khanat-opennel-code/code/ryzom/tools/server/ryzom_ams/ams_lib/libinclude.php
Matthew Lagoe 09c4314a05 Merged in botanic/rc-botanic-webdev/rc-botanic-webdev (pull request #30)
removed 7z and made setup page for AMS
2013-10-23 13:39:58 -07:00

19 lines
683 B
PHP

<?php
/**
* Base include file for library functions for AMS.
* Autoload function that loads the classes in case they aren't loaded yet.
*/
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';
}
}