* @copyright 2004 by gERD Schaufelberger * @package wombat * @subpackage admin */ /** * Authentication handler Null * * The null handler does not not login, logout or anything. It is * just to provide an authentication handler for sites, that don't need one! * * @version 1.1.0 * @package wombat * @subpackage Admin */ class wbAuth_Null { /** * constructor * * @access public */ function __construct( $config ) { // forget everything } /** * constructor wrapper for PHP4 * * @access public * @see __construct() */ function wbAuth_Wombat( $config ) { $this->__construct( $config ); } /** * there is no login! * * @access public * @param string $user user name * @param string $password user password * @return boolean $result true if user is logged in */ function login( $user, $password ) { wbDebugger::addMsg( 'wbAuth', 'Login canceled - Handler Null does not provide logins. Maybe you want to adjust your site config!', 'Null' ); return false; } /** * there is no logout * * @access public * @return boolean $result true on success */ function logoff() { wbDebugger::addMsg( 'wbAuth', 'Logout canceled - This is funny, because, there should be no user logged in!', 'Null' ); return true; } /** * there is no user id * * @access public * @return boolean $result true on success */ function getUserId() { return 0; } /** * there is no user data! * * @access public * @return boolean $result true on success */ function getUserData() { return array(); } } ?>