| version 1.6, 2007/03/19 06:49:12 |
version 1.7, 2007/03/19 07:00:54 |
|
|
| * http://platon.sk/projects/phpPlatonLib/ |
* http://platon.sk/projects/phpPlatonLib/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/lib/Auth/AuthDB.php,v 1.5 2007-02-24 23:07:42 nepto Exp $ */ |
/* $Platon: Metafox/lib/Auth/AuthDB.php,v 1.6 2007-03-19 06:49:12 nepto Exp $ */ |
| |
|
| /* |
/* |
| * History: |
* History: |
|
|
| authentificated via another cooperative authentification interface. |
authentificated via another cooperative authentification interface. |
| In this case only LOGGED_IN and FAILED are returned. |
In this case only LOGGED_IN and FAILED are returned. |
| Other statuses purpously force login function again. */ |
Other statuses purpously force login function again. */ |
| |
global $ezin_cfg; |
| if ($status != AUTH_DB_UNDEFINED && ($this->_logged_fnc == null |
if ($status != AUTH_DB_UNDEFINED && ($this->_logged_fnc == null |
| || $status == AUTH_DB_FAILED |
|| $status == AUTH_DB_FAILED |
| || $status == AUTH_DB_LOGGED_IN)) { |
|| $status == AUTH_DB_LOGGED_IN)) { |
| if ($status != AUTH_DB_LOGGED_IN) { |
if ($status != AUTH_DB_LOGGED_IN) { |
| global $ezin_cfg; |
echo $ezin_cfg['url']; |
| setcookie(AUTH_DB_COOKIE_NAME, '', time() - 100000, $ezin_cfg['url']); |
setcookie(AUTH_DB_COOKIE_NAME, '', time() - 100000, $ezin_cfg['url']); |
| } |
} |
| return $status; |
return $status; |
|
|
| if ($status == AUTH_DB_LOGGED_IN) { |
if ($status == AUTH_DB_LOGGED_IN) { |
| $this->_DBinsert(); |
$this->_DBinsert(); |
| setcookie(AUTH_DB_COOKIE_NAME, |
setcookie(AUTH_DB_COOKIE_NAME, |
| $this->_getProperty('session_id'), 0, '', '', false); |
$this->_getProperty('session_id'), 0, $ezin_cfg['url'], '', false); |
| } elseif ($status == AUTH_DB_FAILED) { |
} elseif ($status == AUTH_DB_FAILED) { |
| $this->_DBlog(); |
$this->_DBlog(); |
| } |
} |