$host = strtolower(getenv("HTTP_HOST")); if (ereg(".*looksperfect.de$", $host)) { header("Location: http://www.looks-perfect.de/"); die(); } $mygoto = ""; if (strlen($goto) > 0) { setcookie("goto", "", time() - 3600); $mygoto = "?". $goto; } Require("standard.inc.php"); WriteMetaTag(); $countfile = "count.php"; if ((file_exists($countfile)) && (is_writeable($countfile))) { include($countfile); echo "\n\n"; $count++; $txt = "?\n \$count = ". $count .";\n?"; $DOCROOT = getenv("DOCUMENT_ROOT"); if (! eregi("/$", $DOCROOT)) { $DOCROOT = $DOCROOT . "/"; } $OutFile = $DOCROOT . $countfile; $pipe = @fopen($OutFile, "w"); if ($pipe) { flock($pipe, 2); fputs($pipe, "<"); fputs($pipe, $txt); fputs($pipe, ">\n"); flock($pipe, 3); fclose($pipe); } } ?>