Changeset 319 for tags/2.0.2
- Timestamp:
- Mar 17, 2008 11:58:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/2.0.2/lib/Auth_SQL.inc.php
r266 r319 76 76 // An array of IP blocks that are bypass the remote_ip comparison check. Useful for dynamic IPs or those behind proxy servers. 77 77 'trusted_networks' => array(), 78 79 // Match the user's current remote IP against the one they logged in with. 80 'match_remote_ip' => true, 78 81 79 82 // Allow user accounts to be blocked? Requires the user table to have the columns 'blocked' and 'blocked_reason' … … 507 510 && strtotime($_SESSION[$this->_sess]['login_datetime']) > time() - $this->_params['login_timeout'] 508 511 && strtotime($_SESSION[$this->_sess]['last_access_datetime']) > time() - $this->_params['idle_timeout'] 509 && ( $_SESSION[$this->_sess]['remote_ip'] == getRemoteAddr() || $user_in_trusted_network)512 && (!$this->_params['match_remote_ip'] || $_SESSION[$this->_sess]['remote_ip'] == getRemoteAddr() || $user_in_trusted_network) 510 513 ) { 511 514 // User is authenticated!
Note: See TracChangeset
for help on using the changeset viewer.