Beispiel #1
0
				$root = dirname(__FILE__);
			}
		}
		return $root;
	}
}

// Make sure the class autoloader is loaded
if(defined('AKEEBAROOT')) {
	require_once AKEEBAROOT.DIRECTORY_SEPARATOR.'autoloader.php';
} else {
	require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'autoloader.php';
}

// register the autoloader
AEPlatform::register_autoloader();

// Define and register the timeout trap
function AkeebaTimeoutTrap()
{
	if( connection_status() >= 2 ) {
		AEUtilLogger::WriteLog(_AE_LOG_ERROR, 'Akeeba has timed out' );
	}
}
register_shutdown_function("AkeebaTimeoutTrap");

# = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = #
#                                          D E P R E C A T E D                                  #
# = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = # = #
/**
 * Tries to import a file from the Akeeba Joomla! back-end