Your IP : 3.21.125.193


Current Path : /home/bitrix/ext_www/dev.easy-comfort.com.ua/local/php_interface/
Upload File :
Current File : /home/bitrix/ext_www/dev.easy-comfort.com.ua/local/php_interface/autoload.php

<?
define ('NOT_CHECK_PERMISSIONS', true);
define ('NO_AGENT_CHECK', true);

if (!$_SERVER['DOCUMENT_ROOT']) {
	$_SERVER['DOCUMENT_ROOT'] = __DIR__.'/../..';
}
require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');
require_once(__DIR__.'/include/constants.php');
require_once(__DIR__.'/include/functions.php');
spl_autoload_register(function($class){
	$path = __DIR__ . '/classes/'.strtr($class, array('\\' => '/')).'.php';
	if(!file_exists($path)){
		return;
	}
	require_once($path);
});

spl_autoload_register(function($class){
	$path = __DIR__ . '/tests/'.strtr($class, array('\\' => '/')).'.php';
	if(!file_exists($path)){
		return;
	}
	require_once($path);
});