Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Fetches the IP address of the current visitor
- *
- * @return string
- */
- function fetch_ip()
- {
- $ip = $_SERVER['REMOTE_ADDR'];
- if (isset($_SERVER['HTTP_CF_CONNECTING_IP']));
- {
- $ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
- }
- return $ip;
- }
Add Comment
Please, Sign In to add comment