摘要:
//记录搜索关键字到数据库 public function AddSearchKey($SearchKey,$userinfo=''){ $cip=getip(); if($userinfo!=''){ $cus_id=$userinfo['cus_id']; }else{ $cus_id=0; } 阅读全文
摘要:
/** 获取ip */function getip() { if(getenv("HTTP_X_FORWARDED_FOR")!=''){ $cip = getenv("HTTP_X_FORWARDED_FOR"); }else{ if ($_SERVER['REMOTE_ADDR']) {//判断 阅读全文