摘要:
function RefreshHit($parameter,$ip){ session_start(); $allowTime = 1800; $allowT = md5($ip.$parameter); if(!isset($_SESSION[$allowT])){ $refresh = true; $_SESSION[$allowT] = time(); }elseif(time() - $_SESSION[$allowT]>$allowTime){ ... 阅读全文
摘要:
function getIP(){ global $ip; if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP"); else if(getenv("HTTP_X_FORWARDED_FOR")) $ip = getenv("HTTP_X_FORWARDED_FOR"); else if(getenv("REMOTE_ADDR")) $ip = getenv("REMOTE_ADDR"); ... 阅读全文