- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
function __autoload($class)
{
global $CONFIG;
if (in_array($class,array('CorpNews','User','Passengers'))) include $CONFIG[site_dir].'common/scripts/classes/common/'.$class.'.php';
elseif (in_array($class,array('Claims','ClaimsAviaUser','ClaimsUser'))) include $CONFIG[site_dir].'common/scripts/classes/claims/'.$class.'.php';
elseif (in_array($class,array('OperatorClaim','UsersCommon'))) include $CONFIG[site_dir].'common/scripts/classes/users/'.$class.'.php';
elseif (strpos($class, 'Avia') === 0) include $CONFIG[site_dir].'common/scripts/classes/avia/'.$class.'.php';
elseif (strpos($class, 'Railway') === 0) include $CONFIG[site_dir].'common/scripts/classes/railway/'.$class.'.php';
}
Комментарии (0) RSS
Добавить комментарий