fixed menu and credits link

main
Philip Häusler 14 years ago
parent ee3080a861
commit bf64254625

@ -24,7 +24,7 @@ if ($_SESSION['Menu'] == "R")
</table> </table>
<footer> <footer>
<p> <p>
&copy; copyleft | <a href="mailto:erzengel@lists.ccc.de">Kontakt</a> | <a href="credits.php">Credits</a><br /> &copy; copyleft | <a href="mailto:erzengel@lists.ccc.de">Kontakt</a> | <a href="<?php echo $ENGEL_ROOT; ?>credits.php">Credits</a><br />
This is hell. Temporarily. This is hell. Temporarily.
</p> </p>
</footer> </footer>

@ -1,41 +1,42 @@
<?php <?php
function ShowMenu( $MenuName) {
global $MenueTableStart, $MenueTableEnd, $_SESSION, $debug, $url, $ENGEL_ROOT;
$Gefunden = false;
// Ueberschift
$Text = "<h4 class=\"menu\">". Get_Text("$MenuName/"). "</h4><ul>";
// Eintraege // Menü generieren
foreach($_SESSION['CVS'] as $Key => $Entry) function ShowMenu($MenuName) {
if( strpos( $Key, ".php") > 0) global $MenueTableStart, $MenueTableEnd, $_SESSION, $debug, $url, $ENGEL_ROOT;
if( (strpos( "00$Key", "0$MenuName") > 0) || $Gefunden = false;
((strlen($MenuName)==0) && (strpos( "0$Key", "/") == 0) ) ) {
$TempName = Get_Text($Key, true);
if(( true||$debug) && (strlen($TempName)==0) ) // Ueberschift
$TempName = "not found: \"$Key\""; $Text = "<h4 class=\"menu\">" . Get_Text("$MenuName/") . "</h4><ul>";
if( $Entry == "Y") { // Eintraege
//zum absichtlkichen ausblenden von einträgen foreach ($_SESSION['CVS'] as $Key => $Entry)
if( strlen($TempName)>1) { if (strpos($Key, ".php") > 0)
//sonderfälle: if ((strpos("00$Key", "0$MenuName") > 0) || ((strlen($MenuName) == 0) && (strpos("0$Key", "/") == 0))) {
$TempName = Get_Text($Key, true);
if( $Key=="admin/faq.php") if ((true || $debug) && (strlen($TempName) == 0))
$TempName .= " (". noAnswer(). ")"; $TempName = "not found: \"$Key\"";
//ausgabe
$Text .= "\t\t\t<li><a href=\"". $url. $ENGEL_ROOT. $Key. "\">$TempName</a></li>\n";
$Gefunden = true;
}
}
elseif( $debug )
{
$Gefunden = true;
$Text .= "\t\t\t<li>$TempName ($Key)</li>\n";
}
}
if( $Gefunden)
echo $MenueTableStart.$Text.$MenueTableEnd;
}//function ShowMenue
if ($Entry == "Y") {
//zum absichtlkichen ausblenden von einträgen
if (strlen($TempName) > 1) {
//sonderfälle:
if ($Key == "admin/faq.php")
$TempName .= " (" . noAnswer() . ")";
elseif ($Key == "credits.php") continue;
//ausgabe
$Text .= "\t\t\t<li><a href=\"" . $url . $ENGEL_ROOT . $Key . "\">$TempName</a></li>\n";
$Gefunden = true;
}
}
elseif ($debug) {
$Gefunden = true;
$Text .= "\t\t\t<li>$TempName ($Key)</li>\n";
}
}
if ($Gefunden)
echo $MenueTableStart . $Text . $MenueTableEnd;
} //function ShowMenue
?> ?>

Loading…
Cancel
Save