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; } if (preg_match('/^lost_password\\/sent\\/(|\\?.*)$/Uu', $url, $matches)) { echo $controller->lostPasswordSentAction(); die; } if (preg_match('/^lost_password\\/change\\/(|\\?.*)$/Uu', $url, $matches)) { echo $controller->lostPasswordChangeAction();