摘要:
/** * 获得用户的真实IP地址 * * @return string */function getRealip(){ static $realip = NULL; if ($realip !== NULL) { return $realip; } if (isset($_SERVER)) { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $arr = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR'])... 阅读全文