/*
if (Core::$config['current_language'] == 'en') {
go('/ru/');
}
*/
core::$config['http_home'] = core::$config['http_root'] . core::$config['current_language'] . '/';
if (preg_match('/^login\\/(|\\?.*)$/Uu', $url, $matches)) {
require_once 'AuthController.php';
$controller = new AuthController();
echo $controller->loginAction();
die;
}
if (preg_match('/^logout\\/(|\\?.*)$/Uu', $url, $matches)) {
require_once 'AuthController.php';
$controller = new AuthController();
echo $controller->logoutAction();
die;
}
if (preg_match('/^register\\/(|\\?.*)$/Uu', $url, $matches)) {
require_once 'AuthController.php';
$controller = new AuthController();
echo $controller->registerAction();
die;
}
if (preg_match('/^lost_password\\//Uu', $url, $matches)) {
require_once 'AuthController.php';
$controller = new AuthController();
if (preg_match('/^lost_password\\/(|\\?.*)$/Uu', $url, $matches)) {
echo $controller->lostPasswordAction();
die;
}