summaryrefslogtreecommitdiff
path: root/includes/funktion_menu.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/funktion_menu.php')
-rw-r--r--[-rwxr-xr-x]includes/funktion_menu.php75
1 files changed, 36 insertions, 39 deletions
diff --git a/includes/funktion_menu.php b/includes/funktion_menu.php
index 87196ede..c751c764 100755..100644
--- a/includes/funktion_menu.php
+++ b/includes/funktion_menu.php
@@ -1,44 +1,41 @@
-<?PHP
+<?php
+ function ShowMenu( $MenuName) {
+ global $MenueTableStart, $MenueTableEnd, $_SESSION, $debug, $url, $ENGEL_ROOT;
+ $Gefunden = false;
-function ShowMenu( $MenuName)
-{
- global $MenueTableStart, $MenueTableEnd, $_SESSION, $DEBUG, $url, $ENGEL_ROOT;
- $Gefunden=FALSE;
+ // Ueberschift
+ $Text = "<h4 class=\"menu\">". Get_Text("$MenuName/"). "</h4><ul>";
- //Überschift
- $Text = "<h4 class=\"menu\">". Get_Text("$MenuName/"). "</h4>";
-
- //einträge
- 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(( 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(). ")";
- //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;
+ // 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(( 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(). ")";
+ //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
?>