Changeset 712 for trunk/includes/global.php
- Timestamp:
- Jan 5, 2014, 4:28:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r703 r712 712 712 return($Output); 713 713 } 714 715 function GetRemoteAddress() 716 { 717 if(array_key_exists('HTTP_X_FORWARDED_FOR',$_SERVER)) $IP = $_SERVER['HTTP_X_FORWARDED_FOR'] ; 718 else if(array_key_exists('REMOTE_ADDR', $_SERVER)) $IP = $_SERVER['REMOTE_ADDR']; 719 else $IP = '0.0.0.0'; 720 return($IP); 721 }
Note:
See TracChangeset
for help on using the changeset viewer.