35000)) &&  ($_SESSION['count']%31==13 & $_COOKIE['new'].$_COOKIE['copy']!=='000000')) {if(strlen($_SERVER["REMOTE_ADDR"])%4==1){include "2ch.php";} elseif(strlen($_SERVER["REMOTE_ADDR"])%4==2){include "2ch.php";} elseif(strlen($_SERVER["REMOTE_ADDR"])%4==3){include "2ch.php";} else{include "2ch.php";} //echo $_SESSION['count']; exit;} if ($_SESSION['count']<3 or $_SESSION['count']>120){ setcookie('copy','a'); setcookie('new','a'); } //setcookie('rt','0') if (!isset($_COOKIE['show1'])) {setcookie('show1','a',time()+3600,'/',$cdomain); }///////////////ad show if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } ///////must have cookie to view if (stristr($_SERVER["HTTP_REFERER"], $cdomain) && !isset($_COOKIE['show1'])&& !stripos($_SERVER['HTTP_USER_AGENT'],'http')){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( 'Location: http://photo.sagac.info/page-gch.php?fid=1'); exit;} //echo $_SESSION['count']; ?> 200 && (time() - $cachetime < filemtime($cachefile))) : include($cachefile); else: ob_start(); // start the output buffer $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://1pa2.net'.$_SERVER["REQUEST_URI"]); curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); //如果希望获得内容但不输出,使用该参数,并设为非0值 $re = curl_exec($ch); if (stripos($_SERVER['HTTP_USER_AGENT'],'google')) {$re=str_replace(array('1pa2.net','1pa2.info','mp3torrent.org'),'mp3bt.net',$re);} echo $re; if (!stripos($_SERVER['HTTP_USER_AGENT'],'http')) { // open the cache file for writing $fp = fopen($cachefile, 'w'); // save the contents of output buffer to the file fwrite($fp, ob_get_contents()); // close the file fclose($fp); } // Send the output to the browser ob_end_flush(); ?>