Error: file not found \"" . $filename ."\"";return false;
}
}
else //some evil person wants to open a file not matching ([a-z]{1,8}).plt; type an errormessage
{
echo "
Error: not allowed; opening " . $filename ."
";
return false;
}
return true;
}
$stylesheet="style.css";
$head=file("head.plt");
foreach($head as $meine_datei)
{
echo $meine_datei;
}
echo "\n";
echo " \n";
echo "\n";
$heading=file("heading.plt");
foreach($heading as $meine_datei)
{
echo $meine_datei;
}
;echo "\n";
$menu=file("menu1.plt");
foreach($menu as $meine_datei)
{
echo $meine_datei;
}
echo "\n";
if (strlen($_GET[page])>0)
{
$a=getpage($_GET[page]);
}
else
{
$a=getpage(welcome);
}
echo "\n";
if ($a)
{
$endf="end.plt";
$end=file($endf);
foreach($end as $meine_datei)
{
echo $meine_datei;
}
}
echo "\n";
$shout="shout.plt";
$shoutf=file($shout);
foreach($shoutf as $meine_datei)
{
echo $meine_datei;
}
$endf="endf.plt";
$end2=file($endf);
echo "\n";
foreach($end2 as $meine_datei)
{
echo $meine_datei;
}
?>