Ignore:
Timestamp:
Dec 13, 2005 7:43:12 AM (18 years ago)
Author:
scdev
Message:

Fixed mime_content_type bug in Upload.inc.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Auth_SQL.inc.php

    r34 r35  
    468468        // Tesing login should occur once. This is the first time. Set flag.
    469469        $this->_authentication_tested = true;
    470        
     470
    471471        // Some users will access from networks with a changing IP number (i.e. behind a proxy server). These users must be allowed entry by adding their IP to the list of trusted_networks.
    472472        if ($trusted_net = ipInRange(getRemoteAddr(), $this->_params['trusted_networks'])) {
     
    513513        } else if (isset($_SESSION[$this->_sess]) && true === $_SESSION[$this->_sess]['authenticated']) {
    514514            // User is authenticated, but login has expired.
    515             App::raiseMsg(sprintf(_("Your %s session has closed. You need to log-in again."), strtolower($this->_auth)), MSG_NOTICE, __FILE__, __LINE__);
     515            if (strtotime($_SESSION[$this->_sess]['last_access_datetime']) > time() - 43200) {
     516                // Only raise message if last session is less than 12 hours old.
     517                App::raiseMsg(sprintf(_("Your %s session has closed. You need to log-in again."), strtolower($this->_auth)), MSG_NOTICE, __FILE__, __LINE__);
     518            }
    516519           
    517520            // Log the reason for login expiration.
Note: See TracChangeset for help on using the changeset viewer.