/home/www/amaia/lib/core/Application.php
global $_CONFIG;
// If we're in debug mode, we must access a site using its ID as a subdomain!
if (isset($_CONFIG['debug']) && $_CONFIG['debug']) {
if (ends_with($domain, '.' . AMAIA_DEBUG_DOMAIN)) {
$site = new Site(str_replace('.' . AMAIA_DEBUG_DOMAIN, '', $domain));
} else {
throw new Exception('Debug mode is active, so you must access your site using the following domain: {siteID}.' . AMAIA_DEBUG_DOMAIN);
}
}
/home/www/amaia/lib/core/Application.php
{
Logger::sql('', 'debug');
Logger::sql('----------] ' . $request->domain . $request->path . ' [----------', 'debug');
try {
// Get the site matching the request's domain
$site = $this->getSite($request->domain);
// Apply the URL rewriting rules to the request
/home/www/amaia/www_front/index.php
*/
require('../config.php');
require(AMAIA_LIB . 'functions.php');
require(AMAIA_ROOT . 'autoload.php');
$app = new Application();
$app->handle(Request::buildFromHTTP(Request::TYPE_FRONT));