header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modifieed: ". gmdate("D, d M Y H:i:s"). " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: post-check=0,pre-check=0");
header("Cache-Control: max-age=0");
header("Pragma: no-cache");
if(substr($_GET['url'], 0, 1) == "/")
{
//$_GET['url'] = "http://www.rockstarwatch.net" . $_GET['url'];
$_GET['url'] = "http://localhost" . $_GET['url'];
}
$html = file_get_contents($_GET['url']);
$t1='
';
$t2='';
$between = substr($html, strpos($html, $t1), strpos($html, $t2) - strpos($html, $t1));
$title = $between;
if($_GET['a'] == "news"){
$word1='';
$word2='';
}else{
$word1='';
$word2='';
}
if($_GET['title'] != ""){
$_GET['title'] = "" . $_GET['title'] . "
";
}else{
$_GET['title'] = "";
}
$text = substr($html, strpos($html, $word1), strpos($html, $word2) - strpos($html, $word1));
$toprint = $_GET['title'] . $text;
?>
=$title?>
=$toprint?>
Copyright © 2006-2008 RockstarWatch.net. All rights reserved.