PHP-Code:
<?php
session_start();
ob_start();
$thePage = $_SERVER['QUERY_STRING'];
$links = Array(
Array("name" => "Home", "page" => "home"),
Array("name" => "Beschreibungen", "page" => "Bericht_index"),
Array("name" => "Gästebuch", "page" => "../gaestebuch"),
Array("name" => "Impressum", "page" => "impressum")
);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Mein Hobby Eisenbahn.exe" />
<meta name="keywords" content="PC-Modelleisenbahn, hauptsächlich Schaltungen" />
<title>Bahnhofsuhr</title>
<style media="screen" title="mein Hobby" type="text/css">
<!--
* {
margin: 0px;
padding:inherit;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: bold;
color: #000000;
background-image: url(pic/exptextb.jpg);
width: 1000px;
margin: 10px;
position: relative;
left: 200px;
top: 10px;
right: auto;
bottom: 10px;
height: auto;
}
#content {
width: auto;
position: relative;
height: auto;
}
#head {
border: thin dotted #33FF00;
right: auto;
position: relative;
width: auto;
}
#head .clock {
float: left;
height: 160px;
width: 160px;
clear: right;
}
#head .hobby {
float: right;
width: 825px;
}
#content .trennen {
float: none;
height: 20px;
width: auto;
position: relative;
clear: both;
visibility: hidden;
}
#bereich_text {
height: auto;
width: auto;
position: relative;
}
.auswahl {
border: none;
height: 50px;
}
#navi {
font-size: 75%;
width: 145px;
float: left;
}
ul {
list-style-image: none;
list-style-type: none;
list-style-position: inside;
text-indent: 1.5em;
border:none;
height: 50px;
}
li {
list-style-type: none;
list-style-position: outside;
height: 50px;
vertical-align: bottom;
border: 0 0 0 0;
}
.auswahl a {
background-image: url(apages/Signal_Butt.gif);
height: 25px;
background-repeat: no-repeat;
text-decoration: none;
display: block;
text-indent: 3em;
background-position: 0px -100px;
padding-top: 2.3em;
border: none;
}
a:link {
background-position: 0px -100px;
border:none;
}
a:visited {
background-position: 0px -50px;
}
a:hover {
background-position: 0px -50px;
border:none;
}
a:active {
background-position: 0px 00px;
border:none;
}
#text {
position: relative;
height: 650px;
width: 825px;
float: right;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: 3px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: groove;
border-left-color: #FFFFFF;
padding-left: 10px;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<!-- Hier beginnt die Page-->
<div id="content">
<!-- Kopfteil -->
<div id="head">
<!-- Die Uhr -->
<div class="clock">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','150','height','150','id','Bahnhofsuhr','align','middle','src','apages/Bahnhofsuhr','quality','high','salign','lt','bgcolor','#FFFFFF','name','Bahnhofsuhr','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','apages/Bahnhofsuhr' ); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="150" height="150" id="Bahnhofsuhr" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="apages/Bahnhofsuhr.swf" />
<param name="quality" value="high" />
<param name="salign" value="lt" />
<param name="BGCOLOR" value="#FFFFFF">
<embed src="apages/Bahnhofsuhr.swf" width="150" height="150" align="middle" quality="high" salign="lt" bgcolor="#FFFFFF" name="Bahnhofsuhr" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
<!-- Ende der Uhr -->
</div>
<!-- Darstellung meines Hobbys -->
<div class="hobby">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','825','height','150','title','mein Hobby','src','apages/Hobby','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','apages/Hobby' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="825" height="150" title="mein Hobby">
<param name="movie" value="apages/Hobby.swf" />
<param name="quality" value="high" />
<embed src="apages/Hobby.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="825" height="150"></embed>
</object>
</noscript>
<!-- ende Hobby-->
</div>
<!-- ende Head-->
</div>
<div class="trennen">
<!-- Trennung von Kopf und Navi/Inhalt - Unsichtbar -->
Raum fuer den Inhalt von class trennen</div>
<div id="bereich_text">
<div id="navi">
<?php
$i = 0;
while ($i < count($links)){
echo '<div class="auswahl">' . "\n";
echo '<li >' . "\n";
echo '<a href="'.$_SERVER['PHP_SELF'].'?id='.$i.'">' .$links[$i]['name'] . "\n";
echo "</a></li></div>" . "\n"; // ende Auswahl
$i++;
}
echo '</div>'; // ende Navileiste ?>
<!--Includierung der jeweiligen Page
Zur Sicherheit mit Prüfung, ob eine Nummer für id übergeben wurde, wenn nicht wird eine 404 angezeigtis_numeric($_GET['id'])-->
</div>
<!-- Hier komm der Text -->
<div id="text">
<?php
if(isset($_GET['id']))
{
$aaa = $_SERVER['REQUEST_URI'] ;
$bbb = substr ( $aaa, -1 );
if( $bbb==2)
{
echo "<p>Ihr könnt mir natürlich eine e-Mail senden (siehe Impressum).<br />
</p>";
echo"<p>Über ein Gästebuch-Eintrag würde mich freuen.<br />
</p>";
echo "<p> </p>";
echo "<link href='gaestebuch/template/default.css' rel='stylesheet' type='text/css' />";
}
include("apages/".$links[$_GET['id']]['page'].".php");
}
elseif (isset($_GET['id']))
{
include("apages/notfound.php");
}
else
{
include("apages/home.php");
}
?>
</div>
<!-- Ende Text -->
</div>
<!-- Ende Content -->
</div>
<!-- Ende der Page-->
</body>
</html>
Nun, ich hoffe auf einen Hinweis wo ich suchen sollte, um die Datenbank mit dem Modulpfad zu betreiben. Ist das möglich?? Modulpfad habe ich wieder eingeschaltet. Meine Adresse: