Changeset 195 for trunk/lib/Auth_SQL.inc.php
- Timestamp:
- Jul 1, 2006 11:59:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Auth_SQL.inc.php
r189 r195 101 101 102 102 $this->_ns = $namespace; 103 104 if (!isset($_SESSION['_auth_sql'][$this->_ns])) { 105 $this->clear(); 106 } 103 107 104 108 // Initialize default parameters. … … 256 260 $this->initDB(); 257 261 258 $db->query(" 259 UPDATE " . $this->_params['db_table'] . " SET 260 seconds_online = seconds_online + (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(last_access_datetime)), 261 last_login_datetime = '0000-00-00 00:00:00' 262 WHERE " . $this->_params['db_primary_key'] . " = '" . $this->get('user_id') . "' 263 "); 262 if ($this->isLoggedIn()) { 263 $db->query(" 264 UPDATE " . $this->_params['db_table'] . " SET 265 seconds_online = seconds_online + (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(last_access_datetime)), 266 last_login_datetime = '0000-00-00 00:00:00' 267 WHERE " . $this->_params['db_primary_key'] . " = '" . $this->get('user_id') . "' 268 "); 269 } 264 270 $_SESSION['_auth_sql'][$this->_ns] = array('authenticated' => false); 265 271 }
Note: See TracChangeset
for help on using the changeset viewer.