Changeset 2910 for trunk/phpgwapi/inc/class.sessions.inc.php
- Timestamp:
- 06/09/10 11:25:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.sessions.inc.php
r2855 r2910 343 343 } 344 344 345 /* ExpressoLivre346 Necessário comentar para que o redirecionamento de uma sessão347 https para uma http funcionasse atrás de um proxy348 */349 350 /*351 if (@$GLOBALS['phpgw_info']['server']['sessions_checkip'])352 {353 if((PHP_OS != 'Windows') && (PHP_OS != 'WINNT') &&354 (!$GLOBALS['phpgw_info']['user']['session_ip'] || $GLOBALS['phpgw_info']['user']['session_ip'] != $this->getuser_ip())355 )356 {357 //echo "IP do cliente com https ----> ".$GLOBALS['phpgw_info']['user']['session_ip'];358 //echo "<BR>IP do cliente com http ----> ".$this->getuser_ip();359 if(is_object($GLOBALS['phpgw']->log))360 {361 // This needs some better wording362 $GLOBALS['phpgw']->log->message(array(363 'text' => 'W-VerifySession, IP %1 doesn\'t match IP %2 in session table',364 'p1' => $this->getuser_ip(),365 'p2' => $GLOBALS['phpgw_info']['user']['session_ip'],366 'line' => __LINE__,367 'file' => __FILE__368 ));369 $GLOBALS['phpgw']->log->commit();370 }371 return False;372 }373 }374 */375 376 345 $GLOBALS['phpgw']->acl->acl($this->account_id); 377 346 $GLOBALS['phpgw']->accounts->accounts($this->account_id);
Note: See TracChangeset
for help on using the changeset viewer.