Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for phpPlatonLib/Auth_AuthDB/AuthDB.php between version 1.16 and 1.17

version 1.16, 2007/09/22 06:13:06 version 1.17, 2008/05/01 14:15:57
Line 17 
Line 17 
  * http://platon.sk/projects/phpPlatonLib/   * http://platon.sk/projects/phpPlatonLib/
  */   */
   
 /* $Platon: phpPlatonLib/Auth_AuthDB/AuthDB.php,v 1.15 2007-09-22 06:09:11 nepto Exp $ */  /* $Platon: phpPlatonLib/Auth_AuthDB/AuthDB.php,v 1.16 2007-09-22 06:13:06 nepto Exp $ */
   
 /*  /*
  * History:   * History:
Line 259  class AuthDB
Line 259  class AuthDB
                                 /* Sending HTTP_X_FORWARDED_FOR? OK, send anything you want,                                  /* Sending HTTP_X_FORWARDED_FOR? OK, send anything you want,
                                    but it must persist for the whole session. */                                     but it must persist for the whole session. */
                                 $ret = array();                                  $ret = array();
                                 foreach (array('REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR') as $key) {                                  foreach (array('REMOTE_ADDR', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_REAL_IP') as $key) {
                                         if (isset($_SERVER[$key])) {                                          if (isset($_SERVER[$key])) {
                                                 $ret[] = $_SERVER[$key];                                                  $ret[] = $_SERVER[$key];
                                         }                                          }
                                 }                                  }
                                   $ret = array_unique($ret);
                                 $ret = join(' / ', $ret);                                  $ret = join(' / ', $ret);
                                 break;                                  break;
   

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top