Example #1
0
		
</head>
<body class="index">
<header>
	<div class="overlay">
		<p class="logo"></p>
		<div style="clear:both"></div>
	</div>
</header>
<?php 
if (!empty($message)) {
    echo $message;
} else {
    if ($tree) {
        completeID($tree);
        draw_tree($tree);
        # burn access ?
        burned($id);
    }
}
?>
	
	<footer>
	<?php 
echo $feeds_div;
?>
		<a href="http://warriordudimanche.net" class="wdd" >&nbsp;</a><span>Bozon v<?php 
echo VERSION;
?>
 </span> <a href="https://github.com/broncowdd/BoZoN" class="github" title="<?php 
e('fork me on github');
Example #2
0
                unset($_SESSION['selected']);
            }
            if (isset($_SESSION['action'])) {
                unset($_SESSION['action']);
            }
            break;
        default:
            die("Invalid action specified");
            break;
    }
}
switch ($event) {
    case 'view':
        draw_header();
        draw_location();
        draw_tree();
        draw_files();
        draw_footer();
        break;
    case 'upload':
        upload_file();
        break;
    case 'mkdir':
        make_directory();
        break;
    case 'download':
        download_file();
        break;
    case 'passwd':
        change_passwd();
        break;
Example #3
0
function draw_tree($au, $indent, $propindent)
{
    global $tree, $tree_array;
    $tree .= "<tr height='25' valign='center'>\n\t\t\t\t\t{$indent}<td width='100%' class='tab_d_ohne' colspan='10'>" . $tree_array[$au]['text'] . "</td>\n\t\t\t\t</tr>";
    $max = 0;
    foreach ($tree_array[$au]['childs'] as $child) {
        if ($tree_array[$child]['mode'] == "exp" || $tree_array[$child]['roles']) {
            $max++;
        }
    }
    #echo "<br>max $max ->";
    ${$au} = 1;
    foreach ($tree_array[$au]['childs'] as $childau) {
        if ($tree_array[$childau]['mode'] == "exp" || $tree_array[$childau]['roles']) {
            #echo " ${$au} |";
            if ($indent == "") {
                if ($max == ${$au}) {
                    $newindent = "<td width='5%' class='tab_d_ohne' align='center'><img src='pics/ecke.gif' width='30' height='25' border='0' alt=''></td>";
                    $newpropindent = "<td width='5%' class='tab_d_ohne' align='center'><img src='pics/blank.gif' width='30' height='25' border='0' alt=''></td>";
                } else {
                    $newindent = "<td width='5%' class='tab_d_ohne' align='center'><img src='pics/tee.gif' width='30' height='25' border='0' alt=''></td>";
                    $newpropindent = "<td width='5%' class='tab_d_ohne' align='center'><img src='pics/linie.gif' width='30' height='25' border='0' alt=''></td>";
                }
            } else {
                if ($max == ${$au}) {
                    $newindent = $propindent . "<td width='5%' class='tab_d_ohne' align='center'><img src='pics/ecke.gif' width='30' height='25' border='0' alt=''></td>";
                    $newpropindent = $propindent . "<td width='5%' class='tab_d_ohne' align='center'><img src='pics/blank.gif' width='30' height='25' border='0' alt=''></td>";
                } else {
                    $newindent = $propindent . "<td width='5%' class='tab_d_ohne' align='center'><img src='pics/tee.gif' width='30' height='25' border='0' alt=''></td>";
                    $newpropindent = $propindent . "<td width='5%' class='tab_d_ohne' align='center'><img src='pics/linie.gif' width='30' height='25' border='0' alt=''></td>";
                }
            }
            draw_tree($childau, $newindent, $newpropindent);
            ${$au}++;
        }
    }
}