<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_66316"> <div class="blockcode"> <div id="code_hDo"><ol> <li> <?php <li>/*****************************************************</li> <li>*</li> <li>* isProxy</li> <li>* check whether client is under Proxy or not</li> <li>* $_SERVER['HTTP_X_FORWARDED_FOR'] is pivotal here</li> <li>* if client is under Proxy, returns true</li> <li>* if client is not under Proxy, returns false</li> <li>* </li> <li>*****************************************************/</li> <li> <li>function isProxy(){</li> <li> return (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) ? true : false;</li> <li>}</li> <li>?> </li> </ol></div> <em onclick="copycode($('code_hDo'));">复制代码</em> </div> <br> </td></tr></table> <div class="ptg mbm mtn"> PHP</div> <div id="comment_66316" class="cm"> </div> <div id="post_rate_div_66316"></div> <br><br>