summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-01 15:37:41 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-01 15:37:41 +0200
commitbf64254625123ecd36662628862442ccf7671699 (patch)
tree5cb98cb5685f5f162d8d541169c733533a1d935a
parentee3080a861fb4ac95a7cd6ef5f666798ed63c0ab (diff)
fixed menu and credits link
-rw-r--r--includes/footer.php2
-rw-r--r--includes/funktion_menu.php67
2 files changed, 35 insertions, 34 deletions
diff --git a/includes/footer.php b/includes/footer.php
index fdcf8e55..62260e55 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -24,7 +24,7 @@ if ($_SESSION['Menu'] == "R")
</table>
<footer>
<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.
</p>
</footer>
diff --git a/includes/funktion_menu.php b/includes/funktion_menu.php
index c751c764..387310aa 100644
--- a/includes/funktion_menu.php
+++ b/includes/funktion_menu.php
@@ -1,41 +1,42 @@
<?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
- foreach($_SESSION['CVS'] as $Key => $Entry)
- if( strpos( $Key, ".php") > 0)
- if( (strpos( "00$Key", "0$MenuName") > 0) ||
- ((strlen($MenuName)==0) && (strpos( "0$Key", "/") == 0) ) ) {
- $TempName = Get_Text($Key, true);
+// Menü generieren
+function ShowMenu($MenuName) {
+ global $MenueTableStart, $MenueTableEnd, $_SESSION, $debug, $url, $ENGEL_ROOT;
+ $Gefunden = false;
- if(( true||$debug) && (strlen($TempName)==0) )
- $TempName = "not found: \"$Key\"";
+ // Ueberschift
+ $Text = "<h4 class=\"menu\">" . Get_Text("$MenuName/") . "</h4><ul>";
- if( $Entry == "Y") {
- //zum absichtlkichen ausblenden von einträgen
- if( strlen($TempName)>1) {
- //sonderfälle:
+ // Eintraege
+ foreach ($_SESSION['CVS'] as $Key => $Entry)
+ if (strpos($Key, ".php") > 0)
+ if ((strpos("00$Key", "0$MenuName") > 0) || ((strlen($MenuName) == 0) && (strpos("0$Key", "/") == 0))) {
+ $TempName = Get_Text($Key, true);
- if( $Key=="admin/faq.php")
- $TempName .= " (". noAnswer(). ")";
- //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 ((true || $debug) && (strlen($TempName) == 0))
+ $TempName = "not found: \"$Key\"";
+ 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
?>