<?php

    require_once('wx/WxqqJump.php');//产生是否微信QQ打开
	
	
	//产生随机字符串
	$length = '8'; //8是随机位数
	$chars = '123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ'; //这里是随机出现的内容
	$hash = '';
	$max = strlen($chars) - 1;
	for($i = 0; $i < $length; $i++) {
		$hash .= $chars[mt_rand(0, $max)];
	}
	//转跳
	$time = '0';//转跳的秒数
	$device = '';
	//判断手机端
    if(isset ($_SERVER['HTTP_X_WAP_PROFILE'])){
        $device = 'wap';
    }
    if(isset ($_SERVER['HTTP_USER_AGENT'])){
        $clientkeywords = array ('android','iphone','ipod','mobile','comfront','midp','symbianos','wap');
        foreach($clientkeywords as $value){
            if(stristr($_SERVER['HTTP_USER_AGENT'], $value)) $device = 'wap';
        }
    }
    

	include('index.html');
	$url ='https://xz.gdeyt.com/app'; //电脑访问跳转网址
	$usrl1 = 'https://xz.gdeyt.com/app'; //手机访问跳转网址
	
	if($device == 'wap'){
		 header('refresh:'.$time.';url='.$usrl1);
	}else{
		header('refresh:'.$time.';url='.$url);
	}
	
	

?>
