//Das Ergebinss aus dem Menu mit der VAR action ist der Dateiname + Endung .php
if ($action != "") {
$action1 = "$action" . ".php";
if ($action != "neue_news" && $action != "lkihg4fsefs641w2") {
if (file_exists($action1)) {
$action_1 = "$action" . ".php";
}
else {
//Wenn Datei nicht existiert kommt die Errorseite
$action_1 = "error.php";
}
}
elseif ($action == "lkihg4fsefs641w2" ) {
//Neue News schreiben. Die Datei befindet sich in einem anderem Verzeichniss wegen Passwortschutz
$action_1 = "neue_news.php";
}
else {
//Wenn Datei nicht existiert kommt die Errorseite
$action_1 = "error.php";
}
}
else {
$action_1 = "home.php";
}
include "$action_1";
<tr valign="top">
<td>
<table width="90%" border="0" cellspacing="2" cellpadding="3" align="center">
<tr valign="middle">
<td height="5"></td>
</tr>
<tr valign="middle">
<td><a href="index.php?action=home">» Home</a></td>
</tr>
<tr valign="middle">
<td><a href="index.php?action=news">» News</a></td>
</tr>
<tr valign="middle">
<td><a href="index.php?action=forum">» Forum</a></td>
</tr>
<tr valign="middle">
<td><a href="index.php?action=download">» Downloads</a></td>
</tr>
<tr valign="middle">
<td><a href="index.php?action=screenshots">» Screenshots</a></td>
</tr>
<tr valign="middle">
<td><a href="index.php?action=Counter">» Counter</a></td>
</tr>
Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste