web/wp-content/plugins/caldera-forms/processors/functions.php
/**
 * Get User IP
 *
 * Returns the IP address of the current visitor
 *
 * @since 1.3.5.3
 *
 * @return string $ip User's IP address
 */
Get User IP
Returns the IP address of the current visitor



@return string $ip User's IP address
Get User IP Returns the IP address of the current visitor @return string $ip User ' s IP address
function caldera_forms_get_ip() {
	$ip = '127.0.0.1';
	if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) {
		$ip = $_SERVER['HTTP_CLIENT_IP'];
	} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
		$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
	} elseif ( ! empty( $_SERVER['REMOTE_ADDR'] ) ) {
		$ip = $_SERVER['REMOTE_ADDR'];
	}
	return $ip;
}
function caldera_forms_get_ip ( ) { $ ip = '127.0.0.1' ; if ( ! empty ( $ _SERVER [ 'HTTP_CLIENT_IP' ] ) ) { $ ip = $ _SERVER [ 'HTTP_CLIENT_IP' ] ; } elseif ( ! empty ( $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ) ) { $ ip = $ _SERVER [ 'HTTP_X_FORWARDED_FOR' ] ; } elseif ( ! empty ( $ _SERVER [ 'REMOTE_ADDR' ] ) ) { $ ip = $ _SERVER [ 'REMOTE_ADDR' ] ; } return $ ip ; }
Get User IP
 Returns the IP address of the current visitor
Get User IP Returns the IP address of the current visitor
//check ip from share internet //to check ip is pass from proxy