<?php
require("cms_include.php"); 
?>
<html>
<head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" 
    "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Title" CONTENT="<?php echo $metatitel; ?>">
<META NAME="Author" CONTENT="<?php echo $metaautor; ?>">
<META NAME="Publisher" CONTENT="<?php echo $metapublisher; ?>">
<META NAME="Copyright" CONTENT="<?php echo $metacopyright; ?>">
<META NAME="Keywords" CONTENT="<?php echo $metakeywords; ?>">
<META NAME="Description" CONTENT="<?php echo $metadescription; ?>">
<META NAME="Robots" CONTENT="<?php echo $robots; ?>">
<meta http-equiv="pragma" content="no-cache">
<title><?php echo $homepagetitel; ?></title>
<!-- <?php echo $version; ?> -->
<link href="print.css" rel="stylesheet" type="text/css">
<link href="font.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="window.print()">
<p></p>
<table width="550" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td align="right"><strong><?php echo "$homepagetitel"; ?>&nbsp;</strong></td>
  </tr>
  <tr>
    <td>
<?php
require("cms_include.php"); 
$page = $_GET[page];
if(stristr($page, 'http://') or stristr($page, 'https://') or stristr($page, 'ftp://') or empty($page))
{echo "Fehlerhafter Seitenaufruf!";
}
else
{
$daten = @file($pages);
while (list ($line_num, $line) = @each ($daten)) 
{   
$z = explode("&&",$line);
if($page == $z[1])
{
if($z[3] == "1") {$p = ".htm";}
if($z[3] == "2") {$p = ".php";}

@include("$z[1]$p");
$f = 1;
}	
}
if($page == "sitemap") {include("sitemap.php"); $f = "1";}
if($page == "tellafriend") {include("tellafriend.php"); $f = "1";}
if(!isset($f))
{
include("home.htm");
}
}	   
?>
    </td>
  </tr>
</table>


</body>
</html>
