欢迎您来到我要一起发!
当前身份:游客 [ 登录 | 注册 ]
当前位置:首页>>站点列表>>网站信息>>168tcw.cn的模拟结果

抓取结果

getRow("SELECT * FROM `{$db_mymps}city` WHERE cityid = '$cityid'")){ redirectmsg('当前分站不存在,请前往选择您的分站!',$uri['changecity']); exit; }elseif(empty($mod)){ msetcookie('fcityid',$cityid); } }elseif($city == 'all'){ msetcookie('cityid',0); msetcookie('fcityid',0); write_msg('',$mymps_global['SiteUrl']); exit; }elseif(!$fcityid && !$cityid && !is_robot() && $city!='all'&& empty($mod) && in_array($mymps_global['cfg_redirectpage'],array('nchome','ncchangecity'))){ $ip = GetIP(); if(!defined('WAP') && is_array($fromcity = getGaodeIpToArea($gaodeKey,$ip))){ @header("location:".$fromcity['domain'],TRUE,301); exit; }elseif($mymps_global['cfg_redirectpage'] == 'ncchangecity') { $loc = get_location('index'); $page_title = $loc['page_title']; $seo = get_seoset(); $seo['seo_keywords'] = str_replace('{city}','',$seo['seo_keywords']); $seo['seo_description'] = str_replace('{city}','',$seo['seo_description']); $mymps_global = array_merge($mymps_global,$seo); $lastupdate=$db->getOne("SELECT begintime FROM `{$db_mymps}information` ORDER BY id DESC LIMIT 0,1"); globalassign(); $city=get_city_caches(0); $mayimobile = array(); $mayimobile['mobileuri']=$city['mdomain']; if($ifmobile){ write_msg("",$mayimobile['mobileuri']); exit; } include mayi_tpl('changecity'); exit; } } if($ifmobile){ define('CURSCRIPT','wap'); $mayimobile = get_mobile_settings(); $mayimobile['mobiledomain'] = $mayimobile['mobiledomain']?$mayimobile['mobiledomain']:$mymps_global['SiteUrl'].'/m'; if($mayimobile['allowmobile'] != 1){ exit('本站手机版暂停访问!'); } if($invite && $mymps_global['partner_open']==1){ $invite = intval($invite); msetcookie('invite',$invite,3600*24); } if($mayimobile['post']!=1 && $mod == 'post'){ redirectmsg('本站暂不支持手机发布请使用电脑端或手机浏览器切换pc模式',$mayimobile['mobiledomain']); exit; } !in_array($mod,array('category','index','information','member','login','register','forgetpass','post','search','member','history','news','goods','corp','person','space','store','changecity','aboutus','javascript','sendsms','randcode','telbook','comments','xmlmap','select_where','tianqi','xuequ','map','resume')) && $mod = 'index'; if(in_array($mymps_global['cfg_redirectpage'],array('changecity')) && $mayi != 1 && !$cityid && $city != 'all' && $mod =='index'){ $loc = get_location_m('index'); $page_title = $loc['page_title']; $seo = get_seoset(); $seo['seo_keywords'] = str_replace('{city}','',$seo['seo_keywords']); $seo['seo_description'] = str_replace('{city}','',$seo['seo_description']); $mymps_global = array_merge($mymps_global,$seo); include mayi_tpl('changecity'); exit; } $s_uid = $iflogin = NULL; include MYMPS_INC.'/member.class.php'; $returnurl = GetUrl(); $returnurl = urlencode($returnurl); msetcookie('returnurl',$returnurl); $iflogin = !$member_log->chk_in() ? 0 : 1; if($id && in_array($mod,array('information','news','goods'))){ }else{ $cityid = $cityid ? $cityid : 0; $city = get_city_caches($cityid,$areaid); if(!defined('WAP')){ $city['mdomain']=$city['domain']; $city['gmdomain']=$city['gdomain']; } $city_limit = empty($city['cityid']) ? "": " AND cityid = '$city[cityid]'"; $city_limit_a = empty($city['cityid']) ? "": " AND a.cityid = '$city[cityid]'"; $city_limit .= empty($areaid) ? "": " AND areaid = '$areaid'"; $city_limit_a .= empty($areaid) ? "": " AND a.areaid = '$areaid'"; } /*wxshare*/ if(is_weixin() && !in_array($mod,array('javascript','sendsms','randcode','comments','member'))){ $wx = read_static_cache('wxlogin'); if(!$iflogin && $wx['appid'] && $wx['appsecret'] && $mod!='member' && $mod!='login' && $wx['callback']==1){ //如果在微信里访问并且没有登录,自动进入微信登录 write_msg('',$mymps_global['SiteUrl'].'/include/wxlogin/wxlogin.php?returnurl='.GetUrl()); exit; } require MYMPS_ROOT."/m/include/jssdk.php"; if($action=='wxCallback' && strstr($mymps_global['SiteUrl'],'qingbao')){ $jssdk = new JSSDK($wx['appid'],$wx['appsecret']); $signPackage = $jssdk->httpGet('https://api.weixin.qq.com/sns/oauth2/access_token?appid='.$wx['appid'].'&secret='.$wx['secret'].'&code='.$code.'&grant_type=authorization_code'); $openid=$signPackage->openid; $userInfo=$signPackage->getUserInfo($openid); if($userInfo['subscribe']==1){ write_msg('',$mymps_global['SiteUrl'].'/fabu/?openid='.$openid); }else{ write_msg('',$mymps_global['SiteUrl'].'/m/index.php?mod=login'); } }elseif($openid && !$iflogin && strstr($mymps_global['SiteUrl'],'qingbao')){ if($u = $db->getRow("SELECT * FROM `{$db_mymps}member` WHERE openid_wx = '$openid'")){ $userid = $u['userid']; $userpwd = $u['userpwd']; $db -> query("UPDATE `{$db_mymps}member` SET logintime='$timestamp' WHERE userid = '$userid' "); $member_log -> in($userid,$userpwd,'on','noredirect'); $iflogin=1; }else{ require_once MYMPS_ROOT.'/member/include/common.fun.php'; $email = random().'@qq.com'; $userid="青报用户".random(5); $userid=reusername($userid)?$userid.random(3):$userid; $userpwd = md5(random()); member_reg($userid,$userpwd,'','','','','',1,$openid,$logo,$prelogo,$invite); $db -> query("UPDATE `{$db_mymps}member` SET logintime='$timestamp' WHERE userid = '$userid' "); $member_log -> in($userid,$userpwd,'on','noredirect'); $iflogin=1; } }/*elseif(!$openid && $mod=='post' && strstr($mymps_global['SiteUrl'],'qingbao')){ //触发页面,构造获取openid的URL,回调回来,需要是服务号,需要设置业务回调域名 $REDIRECT_URI=$mymps_global['SiteUrl'].'/index.php?mod=post&action=wxCallback'; $scope='snsapi_base';//$scope='snsapi_userinfo';//需要授权 $state='mayicms'; $url='https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$wx['appid'].'&redirect_uri='.urlencode($REDIRECT_URI).'&response_type=code&scope='.$scope.'&state='.$state.'#wechat_redirect'; header("Location:".$url); exit; }*/ $jssdk = new JSSDK($wx['appid'],$wx['appsecret']); $signPackage = $jssdk->GetSignPackage(); $shareIcon = $mayimobile['mobiledomain'].'/mayicms.gif'; $checkSubscribeCookie=mgetcookie('checkSubscribeCookie'); if($checkSubscribeCookie!=1 && $iflogin==1){ $openid_wx=$db->getOne("SELECT openid_wx FROM `{$db_mymps}member` WHERE userid = '$s_uid'"); $checkSubscribe=$jssdk->checkSubscribe($openid_wx); if($checkSubscribe==1) msetcookie($checkSubscribeCookie,1,1800);//半小时内不重复检测是否关注 } } /**/ include MYMPS_ROOT.'/m/include/'.$mod.'.inc.php'; }else{ $mod = in_array($mod,array('randcode','javascript','select_where','post','changecity','search','index','category','deal','information','news','goods','corp','space','store','coupon','group','aboutus','announce','friendlink','xmlmap','sendsms','tianqi','xuequ','resume'))?$mod:'index'; require MYMPS_ROOT.'/pc/'.$mod.'.inc.php'; } is_object($db) && $db -> Close(); function reusername($userid){ global $db,$db_mymps; $ifreuser = $db->getOne("SELECT COUNT(id) FROM `{$db_mymps}member` WHERE userid = '$userid'"); if($ifreuser > 0) { return true; }else{ return false; } } function matchname($chars,$encoding='utf8') { $chars=trim($chars); $pattern =($encoding=='utf8')?'/[\x{4e00}-\x{9fa5}a-zA-Z0-9]/u':'/[\x80-\xFF]/'; preg_match_all($pattern,$chars,$result); $temp =join('',$result[0]); return $temp; } function gaodeIpToArea($api_key,$user_ip){ if (!$api_key || !$user_ip) { return ''; } $api = 'https://restapi.amap.com/v3/ip?key=' . $api_key . '&output=json&ip=' . $user_ip; $json = file_get_contents($api); $arr = (array) json_decode($json, true); if (empty($arr['province'])) { $dizhi = "未知地区"; } else { $dizhi = $arr['city']; } return $dizhi; } function getGaodeIpToArea($api_key,$ip){ global $db,$db_mymps; if (!$api_key || !$ip) { return ''; } $area = gaodeIpToArea($api_key,$ip); $area = str_replace('市','',$area); if(is_array($all_cities = get_allcities())){ foreach($all_cities as $k => $v){ if(@strstr($area,$v['cityname'])){ return $v; } } } } ?>

网站标题

168同城—招聘、租房、二手、交友全覆盖,赶快来体验吧!

关键词

招聘,租房,二手交易,分类信息,信息发布平台

站点描述

168同城 — 您身边的同城分类信息发布平台。免费发布招聘求职、租房买房、二手交易、相亲交友等分类信息,覆盖衣食住行全方位。一站式服务让生活更简单,同城人都在用,立即注册体验同城生活便捷!