<?PHP
 
	FUNCTION CLIENT_IP()
	{
		RETURN EMPTY($_SERVER['HTTP_CLIENT_IP']) ? 
			EMPTY($_SERVER['HTTP_X_FORWARDED_FOR']) ? 
				$_SERVER['REMOTE_ADDR'] 
				: $_SERVER['HTTP_X_FORWARDED_FOR'] 
		: $_SERVER['HTTP_CLIENT_IP'];
	}