CookieAuth.class.php (465B)
1 <?php 2 3 /** 4 * Authentifizierung als Gast-User. 5 * 6 * Falls konfiguriert, wird der Gast-Benutzer voreingestellt. 7 * 8 * @author dankert 9 */ 10 class CookieAuth implements Auth 11 { 12 public function username() 13 { 14 if ( isset($_COOKIE['or_username']) ) 15 return $_COOKIE['or_username']; 16 else 17 return null; 18 } 19 20 21 /** 22 * Ueberpruefen des Kennwortes ist über Ident nicht möglich. 23 */ 24 public function login( $user, $password, $token ) 25 { 26 return false; 27 } 28 29 } 30 31 ?>