Changeset 1469
- Timestamp:
- 09/30/09 14:55:52 (15 years ago)
- Location:
- branches/2.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/header.session.inc.php
r1161 r1469 4 4 5 5 $sess = $_SESSION[ 'phpgw_session' ]; 6 $connection_id = "{$sess['session_id']}{$sess['session_ip']}{$_SERVER[ 'HTTP_USER_AGENT' ]}"; 6 $connection_id = "{$sess['session_id']}{$sess['session_ip']}".substr($_SERVER[ 'HTTP_USER_AGENT' ],0,199); 7 7 8 8 9 if ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id) -
branches/2.0/phpgwapi/inc/class.sessions.inc.php
r1387 r1469 652 652 $GLOBALS['phpgw']->db->query('INSERT INTO phpgw_access_log(sessionid,loginid,ip,li,lo,account_id,browser)' 653 653 . " VALUES ('" . $sessionid . "','" . $this->db->db_addslashes($login). "','" 654 . $this->db->db_addslashes($user_ip) . "',$now,0," . (int)$account_id .",'".$this->db->db_addslashes( $_SERVER[ 'HTTP_USER_AGENT' ])."')",__LINE__,__FILE__);654 . $this->db->db_addslashes($user_ip) . "',$now,0," . (int)$account_id .",'".$this->db->db_addslashes(substr($_SERVER[ 'HTTP_USER_AGENT' ],0,199))."')",__LINE__,__FILE__); 655 655 } 656 656 else if($sessionid != 'bad login or password')
Note: See TracChangeset
for help on using the changeset viewer.