Changeset 2388 for trunk/modules/auth
- Timestamp:
- 03/31/2008 07:31:25 AM (8 months ago)
- Files:
-
- 1 modified
-
trunk/modules/auth/controllers/auth_demo.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/auth/controllers/auth_demo.php
r2316 r2388 20 20 parent::__construct(); 21 21 22 // Load some libraries 23 foreach(array('auth', 'session') as $lib) 24 { 25 $class = ucfirst($lib); 26 $this->$lib = new $class(); 27 } 22 // Load auth library 23 $this->auth = new Auth(); 28 24 } 29 25 … … 59 55 { 60 56 // Redirect to the login page 61 url::redirect('auth /login');57 url::redirect('auth_demo/login'); 62 58 } 63 59 } … … 72 68 if ($this->auth->logged_in()) 73 69 { 74 $form = new Forge('auth /logout', 'Log Out');70 $form = new Forge('auth_demo/logout', 'Log Out'); 75 71 76 72 $form->submit('Logout Now'); … … 114 110 115 111 // Redirect back to the login page 116 url::redirect('auth /login');112 url::redirect('auth_demo/login'); 117 113 } 118 114
