Return user IP

Returns either forwarded (proxied) or default ip.

php
fork add to bundle source
function get_client_ip() { return $_SERVER['HTTP_X_FORWARDED_FOR'] ? : $_SERVER['REMOTE_ADDR']; }
create log ...inout