session->sessionid; if (strlen($connection_id) != 32){ $GLOBALS['phpgw']->redirect($GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=2'); exit; } $connection_id .= $GLOBALS['phpgw']->session->getuser_ip(); $connection_id .= $_SERVER[ 'HTTP_USER_AGENT' ]; if (!isset($_SESSION['connection_db_info'])) { $GLOBALS['phpgw']->db->query("select sessionid, ip, browser from phpgw_access_log where account_id <> 0 and lo = 0 and sessionid='{$GLOBALS['phpgw']->session->sessionid}' limit 1",__LINE__,__FILE__); $GLOBALS['phpgw']->db->next_record( ); $_SESSION['connection_db_info']['user_auth'] = $GLOBALS['phpgw']->db->row( ); } if ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id) { echo lang("An important error has occured with your login, please contact your system administrator"); exit; } ?>