function folders_list()
{
    $hard = new harddrive();
    $hard->BuildSizes();
    $html = "<table style='width:100%'>";
    if (is_array($hard->main_array["folders_list"])) {
        reset($hard->main_array["folders_list"]);
        while (list($num, $ligne) = each($hard->main_array["folders_list"])) {
            $id = md5($ligne);
            $html = $html . "<tr>\n\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t<td>" . Field_text($id, $ligne) . "</td>\n\t\t\t<td><input type='button' OnClick=\"javascript:SaveFolderList({$num},'{$id}');\" value='{apply}&nbsp;&raquo;'></td>\n\t\t\t<td>" . imgtootltip('x.gif', '{delete}', "DeleteFolderList({$num})") . "</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t";
        }
    }
    $html = $html . "<tr>\n\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t<td>" . Field_text('addfodler') . "</td>\n\t\t\t<td><input type='button' OnClick=\"javascript:AddFolderList();\" value='{add}&nbsp;&raquo;'></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t</tr>";
    $html = $html . "</table>";
    $html = main_tabs() . "<br><h5>{parameters}</h5><br><p class=caption>{parameters_text}</p>" . RoundedLightGrey($html);
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
function FollowHardDisks()
{
    include_once 'ressources/class.harddrive.inc';
    $hard = new harddrive();
    $hard->BuildSizes();
    $textes[] = 'title';
    $donnees[] = '';
    if (is_array($hard->main_array["folders_list"])) {
        reset($hard->main_array["folders_list"]);
    }
    while (list($num, $ligne) = each($hard->main_array["folders_list"])) {
        $tsize = $hard->main_array["folders_size"][$ligne] / 1000;
        if ($tsize > 1000) {
            $tsize = round($tsize / 1000, 2);
            $tsize = $tsize . ' Go';
        } else {
            $tsize = $tsize . ' Mb';
        }
        $textes[] = "{$ligne}: {$tsize}";
        $donnees[] = $hard->main_array["folders_size"][$ligne] / 1000;
        $array_value_text[] = $hard->main_array["folders_size"][$ligne] / 1000 . " Mb";
    }
    $total = $hard->main_array["sum"]["total"] / 1000;
    if ($total > 1000) {
        $total = round($total / 1000, 2) . " Go";
    } else {
        $total = $total . " mb";
    }
    $textes[] = "Total: " . $total;
    $donnees[] = $hard->main_array["sum"]["total"] / 1000;
    $links = array("url" => "javascript:LoadAjax('folderslist','system.harddisk.php?follow=yes',_category_)", "target" => "javascript");
    BuildPieBigChart(array($textes, $donnees), $array_value_text, $links);
}