include '../include/headers.inc.php';
//include '../include/cache.inc.php';
headers();
render_left();
echo "\t
\n";
preLay("Toernooi");
$url = "http://www.sboschaak.net/tm/pages/persoon_blanc.php". "?" .$_SERVER['QUERY_STRING'];
$file_mode="r"; $timeout_seconds = 90; $fsocket_timeout = 10;
$urlParts = parse_url($url);
$host = $urlParts['host'];
$port = (isset($urlParts['port'])) ? $urlParts['port'] : 80;
$handle = fsockopen( $host, $port, $errno, $errstr, $fsocket_timeout );
fputs( $handle, "GET $url HTTP/1.0\r\nHost:$host\r\n\r\n" );
//$handle = cached_fopen_url("http://www.toernooimanager.net/pages/persoon_blanc.php". "?" .$_SERVER['QUERY_STRING'], "r");
$data = "";
while(!feof($handle))
{
$data .= fgets($handle, 8192);
}
$sData = preg_split("/\r\n\r\n/", $data, 2);
$data = $sData[1];
$data = preg_replace("#.php5#si", ".php", $data);
echo($data);
postLay();
echo("
");
render_right();
footers();
?>