<?php

/**
 *
 * @copyright  2010-2014 izend.org
 * @version    5
 * @link       http://www.izend.org
 */

function client_ip_address() {
	return isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : (php_sapi_name() == 'cli' ? '127.0.0.1' : false);	// DON'T TRUST $_SERVER['HTTP_X_FORWARDED_FOR']
}

