Jump to content
php.lv forumi

Par ip


marz

Recommended Posts

$opt['usrIP']=(isset($_SERVER['REMOTE_ADDR'])?$_SERVER['REMOTE_ADDR']:'').

(isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR']!='unknown'?' fwd '.$_SERVER['HTTP_X_FORWARDED_FOR']:'').

(isset($_SERVER['HTTP_CLIENT_IP'])?' client_ip '.$_SERVER['HTTP_CLIENT_IP']:'').

(isset($_SERVER['HTTP_VIA'])?' via '.$_SERVER['HTTP_VIA']:'')."\n";

Link to comment
Share on other sites

×
×
  • Create New...