Diff for phpPlatonLib/Auth_AuthDB/AuthDB.php between version 1.17 and 1.18
| version 1.17, 2008/05/01 14:15:57 |
version 1.18, 2009/10/14 11:45:40 |
|
|
| * http://platon.sk/projects/phpPlatonLib/ |
* http://platon.sk/projects/phpPlatonLib/ |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Auth_AuthDB/AuthDB.php,v 1.16 2007-09-22 06:13:06 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Auth_AuthDB/AuthDB.php,v 1.17 2008-05-01 14:15:57 nepto Exp $ */ |
| |
|
| /* |
/* |
| * History: |
* History: |
|
|
| * authentification interface |
* authentification interface |
| * 2007-09-22 - configurable cookie name, path, domain |
* 2007-09-22 - configurable cookie name, path, domain |
| * - configurable username/password CGI form variable name |
* - configurable username/password CGI form variable name |
| |
* 2009-10-14 - disable domain in cookie if domain is "localhost" |
| */ |
*/ |
| |
|
| require_once 'DB.php'; |
require_once 'DB.php'; |
|
|
| if (! isset($this->_options['cookie']['name'])) { |
if (! isset($this->_options['cookie']['name'])) { |
| $this->_options['cookie']['name'] = AUTH_DB_COOKIE_NAME; |
$this->_options['cookie']['name'] = AUTH_DB_COOKIE_NAME; |
| } |
} |
| |
if (! strcasecmp(trim($this->_options['cookie']['domain']), 'localhost')) { |
| |
$this->_options['cookie']['domain'] = null; |
| |
} |
| } /* }}} */ |
} /* }}} */ |
| |
|
| /** |
/** |
Platon Group <platon@platon.org> http://platon.org/
|
|