/** * Including configuration and autoloaders */ require_once ('common/inc.ini.php'); /** * @var object router */ $router = new router(); /** Initializing routing system */ $router->init(); /** Checks if site is multilanguage and, if so, looks if URL has language info */ $router->checkUrlLanguage(); /** * @var object A resource controller, extending frontController * @see frontController */ $controller = $router->getController(); user::cookieLogging(); /** Run application */ $controller->run();