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