<span class="code">function get_client_ip()<br>{<br>if(getenv('HTTP_CLIENT_IP'))<br>{<br> $client_ip = getenv('HTTP_CLIENT_IP');<br>} <br>elseif(getenv ('HTTP_X_FORWARDED_FOR')) <br>{<br> $client_ip = getenv('HTTP_X_FORWARDED_FOR');<br>} <br>elseif(getenv('REMOTE_ADDR')) <br>{<br> $client_ip = getenv ('REMOTE_ADDR');<br>} <br>else <br>{<br> $client_ip = $HTTP_SERVER_VAR['REMOTE_ADDR'];<br>}<br> return $client_ip;<br>}</span> <p style="width:100%;text-align:center;margin:10px 0"> <br> <br> </p> <p style="width:100%;text-align:center;margin:10px 0"> </p> <p class="clear"></p>