Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
        if ($_GET["pass"] != "pickup")
        {
                exit;
        }

        /*      1.      */
        session_start();

        /*      2.      */
        $_SESSION[INI]=parse_ini_file("mediaran.de.ini.php",true);
        $_SESSION[INI][TEMPLATE]=parse_ini_file("template.ini.php",true);
                
        /*      3.      */
        include_once("includes/listFiles.php");

        /*      4.      */
        foreach(listFiles($_SESSION[INI][systemPath],"php") as $file)
        {
                @include_once($file);
        }

        $buffer=getNavTree();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<style type="text/css">
<!--
ul {
        list-style-type: none;
        list-style-position: outside;
        padding-left: 10px;
        margin-left: 10px;
}
li {
        margin:0px;
        padding:0px;
        clear:both;
}
span
{
        background-color:#00FF00;
}
body
{
        font-family:Arial, Helvetica, sans-serif;
}
-->
</style>
</head>

<body>
<div style="width:600px;">
<?
        $query="select Father,Name,Kennung2 from directory where language= 'DE' and Kennung2 = '' and Name != ''";
        $result=mysql_query($query);
        while($zeile=mysql_fetch_assoc($result))
        {
                echo "/";
                foreach(getPath($zeile["Father"]) as $dir) { echo $dir["Name"]."/"; }
                echo $zeile["Name"];
                echo "<br />";
        }

        //showTree($buffer);
        
        function showTree($root)
        {
                foreach($root as $elem)
                {
?>
<ul><li>
<hr>
                <div style="float:left;"><?=$elem["Name"]; ?></div>
                <div style="float:right;"><?=$elem["Kennung2"]; ?></div>
<? showTree($elem["childNodes"]); ?>
</li></ul>
<?
                }
        }
?>
</body>
</html>