* include_once('Auth.php'); * include_once('Auth/Controller.php'); * $_auth = new Auth('File', 'passwd'); * $authController = new Auth_Controller($_auth, 'login.php', 'index.php'); * $authController->start(); *
* include_once('Auth.php'); * include_once('Auth/Controller.php'); * $_auth = new Auth('File', 'passwd'); * $authController = new Auth_Controller($_auth, 'login.php', 'index.php'); * $authController->start(); * if( $authController->isAuthorised() ){ * $authController->redirectBack(); * } *