Changeset 149 for trunk/lib/Auth_SQL.inc.php
- Timestamp:
- Jun 5, 2006 2:34:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Auth_SQL.inc.php
r148 r149 252 252 * @access public 253 253 */ 254 function clear Auth()254 function clear() 255 255 { 256 256 $db =& DB::getInstance(); … … 274 274 * @param mixed $val Value to set variable to. 275 275 */ 276 function set Val($key, $val)276 function set($key, $val) 277 277 { 278 278 if (!isset($_SESSION[$this->_ns]['user_data'])) { … … 365 365 $this->initDB(); 366 366 367 $this->clear Auth();367 $this->clear(); 368 368 369 369 if (!$user_data = $this->authenticate($username, $password)) { … … 402 402 403 403 // No login: user is blocked! 404 $this->clear Auth();404 $this->clear(); 405 405 return false; 406 406 } … … 437 437 $db->query("DELETE FROM " . $this->_params['db_login_table'] . " WHERE " . $this->_params['db_primary_key'] . " = '" . $this->get('user_id') . "'"); 438 438 // No login: reset password because of account abuse! 439 $this->clear Auth();439 $this->clear(); 440 440 return false; 441 441 } … … 569 569 570 570 // User is not authenticated. 571 $this->clear Auth();571 $this->clear(); 572 572 return false; 573 573 }
Note: See TracChangeset
for help on using the changeset viewer.