2005-09-10 19:25:43 +02:00
|
|
|
<?PHP
|
|
|
|
|
|
|
|
function ShowMenu( $Menu )
|
|
|
|
{
|
|
|
|
if( !isset($Menu["Entry"]) ) return;
|
|
|
|
|
|
|
|
global $MenueTableStart, $MenueTableEnd, $_SESSION, $DEBUG;
|
|
|
|
|
|
|
|
echo $MenueTableStart;
|
|
|
|
echo "<h4 class=\"menu\">". $Menu["Name"]. "</h4>";
|
|
|
|
|
|
|
|
foreach( $Menu["Entry"] as $Entry )
|
|
|
|
{
|
|
|
|
//wenn File mit ../ beginnt wird "../" abgeschnitten und der Ordener weggelassen
|
|
|
|
if( strstr( $Entry["File"], "../" ) != FALSE )
|
|
|
|
$MenuFile = substr( $Entry["File"], strpos( $Entry["File"], "../" )+ 3) ;
|
|
|
|
else
|
|
|
|
$MenuFile = $Menu["Path"]. $Entry["File"];
|
|
|
|
|
|
|
|
if( $_SESSION['CVS'][$MenuFile] == "Y")
|
|
|
|
echo "\t\t\t<li><a href=\"". $Entry["File"]. "\">". $Entry["Name"]. "</a></li>\n";
|
2005-11-06 01:44:48 +01:00
|
|
|
if( isset($Entry["Line"]))
|
|
|
|
echo $Entry["Line"];
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
//DEBUG
|
|
|
|
if( $DEBUG )
|
|
|
|
{
|
|
|
|
if( !isset($_SESSION['CVS'][$MenuFile] ) )
|
|
|
|
echo "ERROR CVS: '". $MenuFile. "' not set";
|
|
|
|
|
|
|
|
if( $_SESSION['CVS'][$MenuFile] != "Y")
|
|
|
|
echo "\t\t\t<li>". $Entry["File"]. " (". $Entry["Name"]. ")</li>\n";
|
|
|
|
} // DEBUG
|
|
|
|
} //foreach
|
|
|
|
|
|
|
|
echo $MenueTableEnd;
|
|
|
|
} //function ShowMenue
|
|
|
|
|
|
|
|
|
|
|
|
?>
|