Changeset 659 for trunk/Common/Global.php
- Timestamp:
- May 29, 2014, 11:59:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r655 r659 346 346 function GetRemoteAddress() 347 347 { 348 if(array_key_exists('HTTP_X_FORWARDED_FOR',$_SERVER)) $IP = $_SERVER['HTTP_X_FORWARDED_FOR'] ; 349 else if(array_key_exists('REMOTE_ADDR', $_SERVER)) $IP = $_SERVER['REMOTE_ADDR']; 348 if(array_key_exists('REMOTE_ADDR', $_SERVER)) $IP = $_SERVER['REMOTE_ADDR']; 350 349 else $IP = '0.0.0.0'; 351 350 return($IP);
Note:
See TracChangeset
for help on using the changeset viewer.