'; echo '

A PHP Error was encountered

'; echo '

Severity: ' . $errno . '

'; echo '

Message: ' . $errstr . '

'; echo '

Filename: ' . $errfile . '

'; echo '

Line Number: ' . $errline . '

'; echo ''; } if(isset($_GET['debug'])) { $debug = $_GET['debug']; echo '[' . debug . ']
'; //set error handler set_error_handler("_showmyerror"); } //session_start(); header("Content-type:text/html;charset=utf-8"); //ob_start(); include './helper/helper.php'; include_once './config/init.php'; include_once './class/Front.php'; include_once './class/Domain.php'; include_once './class/User.php'; include_once './class/UserYumi.php'; include_once './class/Portfolio.php'; include_once './class/AdSource.php'; include_once './class/BaiduPage.php'; include_once './class/SougouPage.php'; //字符串安全性過濾 foreach ($_GET as $key => $value){ $_GET[$key] = Helper::fileterQueryString($value); } $front = new Front(); $googleid = null; $isblock = $isadult = $isneedsreview = $isfaillisted = ''; //兼容caf框架 by devin.li@20130313 if(!empty($_GET['query'])){ $searchKeyword = trim($_GET['query']); $searchKeyword = Helper::clearSearchKeyword($searchKeyword); //是否來源于輸入框搜索 from google定義 if($_GET['search'] == '1'){ $_POST['k'] = $searchKeyword; $_GET['k'] = NULL; unset($_GET['k']); }else{ $_GET['k'] = $searchKeyword; $_POST['k'] = NULL; unset($_POST['k']); } } //輸入搜索 //判斷是否輸入框搜索是參數is //by panqing 2012-09-10 if(!empty($_GET['is']) && strtolower($_GET['is']) == 'true'){ $_POST['k'] = Helper::clearSearchKeyword($_GET['k']); $_GET['k'] = NULL; unset($_GET['k']); } //過濾 if(!empty($_GET['k'])){ $_GET['k'] = Helper::clearSearchKeyword($_GET['k']); } if(!empty($_POST['k'])){ $_POST['k'] = Helper::clearSearchKeyword($_POST['k']); } $isNoscript = 0; $urlarr = null; if(isset($_REQUEST['q']) ){ $urlarr = Helper::self_unserialize( Helper::encrypt( trim( $_REQUEST['q'] ) ,'DECODE') ); if(is_array($urlarr)){ $domain = $urlarr['NE']; if($urlarr['isFromHtml'] == 1){ $domain = Helper::getarr('dm'); //兼容國外的不帶框架的頁面 by devin.li@20120313 if(empty($domain)){ $domain = $_SERVER['HTTP_HOST']; } $configarr['DL'] = $urlarr['DL'] = null; unset($configarr['DL']); } $acc = $urlarr['acc']; $pcc = $urlarr['pcc']; $referer = $urlarr['RE']; $b = $urlarr['B']; $counid = $urlarr['CID']; $adcourceid = $urlarr['SC']; $googleid = $urlarr['GID']; $isblock = $urlarr['isblock']; $isadult = $urlarr['isadult']; $isneedsreview = $urlarr['isneedsreview']; $isfaillisted = $urlarr['isfaillisted']; $session = $urlarr['session']; $isNoscript = $urlarr['isNoscript']; } } if(!is_array($urlarr)){ $domain = Helper::getarr('dm'); //兼容國外的不帶框架的頁面 by devin.li@20120313 if(empty($domain)){ $domain = $_SERVER['HTTP_HOST']; } //接收nginx配置過來的ACC if(empty($_GET['acc']) && !empty($_SERVER['URL_ACC'])){ $acc = $_GET['acc'] = trim($_SERVER['URL_ACC']); } $acc = Helper::getarr('acc'); $pcc = Helper::getarr('pcc'); //特殊用戶,2個賬號用同一IP by devin.li@20140221 from yanjue if($acc == '239046ce-2563-49e9-487e-9ceddd33d59b'){ include "./class/MemberOnlinenic.php"; $MemberOnlinenic = new MemberOnlinenic(); if($MemberOnlinenic -> isInSepcialDomainList($domain)){ $acc = $_GET['acc'] = $_SERVER['URL_ACC'] = 'b6b2bd09-9d45-f86c-10b6-d7a0d2a4e18f'; } } if( (Helper::GetWebConfig('HasFrame') == 'Yes' && !empty($_GET['ref'])) || $_GET['framerequest'] == 1 || $_GET['error_page'] == 1 ){ $referer = Helper::getarr('ref'); }else{ $referer = $_SERVER['HTTP_REFERER']; } //外接參數完善 by devin.li@20120206 $session = Helper::getarr('session'); //session token驗證 if($session == 'undefined'){ $session = ''; } if((empty($session) || mb_strlen($session,'utf-8') < 40) && Helper::GetWebConfig('HasFrame') != 'No' ){ $dir = Helper::GetWebConfig('UserBehaviorlog').'EmptySession/'; Helper::mkdirs($dir); $file = $dir.date('Y-m-d').".txt"; $content = "Session:$session"; $content .= " Date:".date('Y-m-d H:i:s'); $content .= " Url:http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\r\n"; //file_put_contents($file,$content,FILE_APPEND | LOCK_EX); } $session = Helper::getarr('session'); $isblock = Helper::getarr('isblock') == 'true' ? 1 : 0; $isadult = Helper::getarr('isadult') == 'true' ? 1 : 0; $isneedsreview = Helper::getarr('isneedsreview') == 'true' ? 1 : 0; $isfaillisted = Helper::getarr('isfaillisted') == 'true' ? 1 : 0; if($_GET['noscript'] == '1'){ $isNoscript = 1; } } if($_SERVER['SERVER_PORT'] == 443){ header('HTTP/1.1 301 Moved Permanently');//發出301頭部 header('Location: http://651.dopa.com');//跳轉到你希望的地址格式 exit; } if(in_array($domain,array('jlbsc.cuidu345.com','yhcht.ypsc345.com'))){ header('HTTP/1.1 301 Moved Permanently');//發出301頭部 header('Location: http://651.dopa.com');//跳轉到你希望的地址格式 exit; } if(Helper::Check($domain)){ $domain = Helper::GetWebConfig('DefaultDomain');//跳轉到默認頁 header('HTTP/1.1 301 Moved Permanently');//發出301頭部 header('Location: http://app.yunji.com');//跳轉到你希望的地址格式 exit; } $dopaV2SwitchTime = Helper::getDopaV2SwitchTime(); //上線切換 by devin.li@20130627 $configini = null; //if(time() >= $dopaV2SwitchTime){ $key = 'domain_yumi_config_'.md5($domain.'_'.$acc.'_'.$pcc); $configarr = null; if($memcache){ $configarr = $memcache -> get($key); $configarr = Helper::self_unserialize($configarr); } if(!is_array($configarr) || count($configarr) <= 0){ $configini = new DomainYumi($domain,$acc,$pcc); $configarr = $configini->getDomainConfig(); $configarr = $configarr['data']; $configarr['alldomain'] = $configini->getAllDomainName(); if($memcache && is_array($configarr) && count($configarr) > 0){ $arr = Helper::self_serialize($configarr); $memcache -> set($key,$arr , 0, 3600); } } //} //檢測作弊域名 此處邏輯無用,取消 by devin.li@20120330 //Helper::cheatDomain($configini->punyCode); if(empty($configarr) && !isset($configarr['NO']) && !isset($configarr['NE'])){//當配置文件為空時從$_GET獲取域名 $configini = new DomainYumi($domain,$acc,$pcc); $configarr['NO'] = $configini->domain; $configarr['NE'] = Helper::GetPunyCode($configini->domain); $configarr['alldomain'] = $configini->getAllDomainName(); } //完善參數 $configarr['isblock'] = $isblock; $configarr['isadult'] = $isadult; $configarr['isneedsreview'] = $isneedsreview; $configarr['isfaillisted'] = $isfaillisted; $configarr['session'] = $session; $configarr['isNoscript'] = $isNoscript; //完整路徑 $configarr['url'] = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if($configarr['isadult'] == 1){ //確定是成人域名,需要記錄,并同步到DB AdultDomain::addDomain($domain); $configarr['isAdult'] = 1; } $configarr['referer'] = $referer; if(isset( $urlarr['TID']) ){ //接收切換到搜狗的流量 from xie @20140107 if($_GET['partner'] == 'sogou'){ $urlarr['partnerLists'] = array(13,27); $urlarr['adSourceName'] = 's_sogou1'; $config['adsourceid'] = 13; } $configarr['DL'] = $urlarr['DL']; $configarr['TID'] = $urlarr['TID']; $configarr['b'] = $b; $configarr['CountryId'] = $counid; $configarr['adsourceid'] = $adcourceid; $configarr['adSourceName'] = $urlarr['adSourceName']; $configarr['partnerLists'] = $urlarr['partnerLists']; $configarr['searchCount'] = $urlarr['searchCount']; $configarr['historyKeywords'] = $urlarr['historyKeywords']; $configarr['referrerSearchKeyword'] = $urlarr['referrerSearchKeyword']; $configarr['referrerHost'] = $urlarr['referrerHost']; $configarr['referrerKeywordDomain'] = $urlarr['referrerKeywordDomain']; $configarr['referrerKeywordHost'] = $urlarr['referrerKeywordHost']; $configarr['adsAssemblePushKey'] = $urlarr['adsAssemblePushKey']; $configarr['CountryCode'] = $urlarr['CountryCode']; $configarr['landerAssemblePushKey'] = $urlarr['LAPK']; $configarr['isSmartLanderPush'] = $urlarr['isSmartLanderPush']; } $configarr['acc'] = isset($acc) ? $acc : '';//當域名以用戶轉發時第二次獲取域名配置時使用 $configarr['pcc'] = isset($pcc) ? $pcc : ''; $configarr['GID'] = $googleid != '' ? $googleid : $configarr['GID']; //獲取當前語言 下拉菜單提交 if(empty($_POST['ddlLanguages'])){ $ipinfo = Helper::getlanguage($configarr['DL']);//如果配置中為空則根據IP獲取 if(is_array($ipinfo)){ $configarr['DL'] = $ipinfo['LanguageId']; $configarr['CountryId'] = $ipinfo['Id']; $configarr['CountryCode'] = $ipinfo['Postfix']; }else{ if(empty( $configarr['CountryId'] ) && is_array($countryinfo = Helper::setlanguage())){ $configarr['CountryId'] = $countryinfo['Id']; } } }else{ $configarr['DL'] = $_POST['ddlLanguages']; } $configarr['CountryId'] = !empty($configarr['CountryId']) ? $configarr['CountryId'] : Helper::GetWebConfig('ChinaCountryId'); $configarr['CountryCode'] = !empty($configarr['CountryCode']) ? $configarr['CountryCode'] : 'CN'; $configarr['isInChina'] = $configarr['CountryId'] == Helper::GetWebConfig('ChinaCountryId') ? 1 : 2; //是否在中國 //域名組語言設置優化 $configarr = Helper::optimizeConfigForLanguage($configarr); //國內框架轉發的手機流量,跳出框架(為了更好的適配百度廣告) if(Helper::GetWebConfig('HasFrame') == 'Yes' && Helper::is_mobile() == true //手機端 && $configarr['isInChina'] == 1 //在中國 && empty($_REQUEST['q']) //無搜索行為 && $_REQUEST['poprequest'] != 1 //還沒有跳出框架 && $_REQUEST['noscript'] != 1 //非nojs流量 && empty($_REQUEST['partner'])&& strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') == false //沒切換廣告源 ){ //適配單獨訪問sp3.yousee.com的情況 by devin.li@20150505 //$url = $_SERVER['REQUEST_URI'].'&poprequest=1'; $url = strpos($_SERVER['REQUEST_URI'],'?') === false ? $_SERVER['REQUEST_URI'].'?poprequest=1' : $_SERVER['REQUEST_URI'].'&poprequest=1'; //$noscript = $_SERVER['REQUEST_URI'].'&noscript=1'; $noscript = strpos($_SERVER['REQUEST_URI'],'?') === false ? $_SERVER['REQUEST_URI'].'?noscript=1' : $_SERVER['REQUEST_URI'].'&noscript=1'; $content = '云南快乐十分走势图基本 <meta http-equiv="refresh" content="0;url='.$noscript.'"> 云南快乐十分前三走 '; echo $content;exit; } //屏蔽檢測 by pan@2012-07-18 if(isset($b)){ if(AdultDomain::isInList($domain)){ $configarr['isAdult'] = 1; } } //設置要渲染的頁面 if(isset( $_REQUEST['p']) && in_array($_REQUEST['p'],array('template','search'))) $front->page = $_REQUEST['p']; //處理優化關鍵字(區別點擊搜索、輸入搜索和流量及其權重) $curlang = $configarr['languageId'] = Helper::getLanguageByClientIp(); //是否允許關鍵詞優化 $allowOptimizeKey = $configarr['KOA']; if( isset( $configarr['UKEY'][$curlang] ) ){ $UserKey = $configarr['UKEY'][$curlang]; }else if($allowOptimizeKey == 'true'){ //域名設置了關鍵詞自動優化 $UserKey = $configarr['KEY'][$curlang]; }else{ $UserKey = ''; } //屏蔽關鍵詞校正 by devin.li@20120725 if($configarr['b']){ $UserKey = $configarr['KEY'][$curlang]; } //建議搜索關鍵詞 by devin.li@20120511 if($curlang == 1 || $curlang == 2){ $language = $curlang; } $opt_keys = null; if(is_array($configarr['KEY_NEW'][$curlang])){ $rand_keys = Helper::pro_rand($configarr['KEY_NEW'][$curlang],15); $stroptkeys = implode(',',$rand_keys); }else{ $stroptkeys = $configarr['KEY'][$curlang]; } $front->dispatcher( $stroptkeys , $configarr['BKEY'][$curlang] , $curlang ,$opt_keys,$configarr); $temp = $front->afdkw($configarr['UKEY'][$curlang],$configarr['KEY'][$curlang],$configarr['BKEY'][$curlang] , $curlang ,$configarr); //根據配置數據渲染模板文件 $content = $front->rander($configarr,$temp,$opt_keys); if($configarr['NE'] == 'openv.tv'){ $content = str_replace('
','',$content); } echo $content; $userid = $front->userid.'000'; if($front -> yumiUserId > 0){ $userid = $front->yumiUserId.'000'; } echo '' . $userid . ':' . date("Y-m-d H:i:s",$_SERVER["REQUEST_TIME"]) . '';