Esempio n. 1
0
chdir("{$racine_fma}/");
// Génération de l'interface
$inclusion = false;
if (file_exists("themes/{$Default_Theme}/html/modules/f-manager/{$theme_fma}")) {
    $inclusion = "themes/{$Default_Theme}/html/modules/f-manager/{$theme_fma}";
} elseif (file_exists("themes/default/html/modules/f-manager/{$theme_fma}")) {
    $inclusion = "themes/default/html/modules/f-manager/{$theme_fma}";
} else {
    echo "html/modules/f-manager/{$theme_fma} manquant / not find !";
}
if ($inclusion) {
    $Xcontent = join("", file($inclusion));
    $Xcontent = str_replace("_back", extend_ascii($cur_nav_href_back), $Xcontent);
    $Xcontent = str_replace("_refresh", "<a class=\"btn btn-outline-primary btn-sm\" href=\"modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode($browse) . "{$urlext_fma}\"><i class=\"fa fa-refresh fa-spin\"></i>&nbsp;" . fma_translate("Rafraichir") . "</a>", $Xcontent);
    //   if ($dirsize_fma)
    $Xcontent = str_replace("_size", $obj->ConvertSize($obj->GetDirSize($cur_nav)), $Xcontent);
    //   else $Xcontent=str_replace("_size",'-',$Xcontent);
    $Xcontent = str_replace("_nb_subdir", $obj->Count("d") - $dir_minuscptr, $Xcontent);
    $Xcontent = str_replace("_subdirs", $subdirs, $Xcontent);
    $Xcontent = str_replace("_nb_file", $obj->Count("f") - $fic_minuscptr, $Xcontent);
    $Xcontent = str_replace("_files", $files, $Xcontent);
    if (isset($cmd)) {
        $Xcontent = str_replace("_cmd", $cmd, $Xcontent);
    } else {
        $Xcontent = str_replace("_cmd", "", $Xcontent);
    }
    if ($dircmd_fma[0]) {
        $Xcontent = str_replace("_cre_dir", $create_dir, $Xcontent);
    } else {
        $Xcontent = str_replace("<div id=\"cre_dir\">", "<div id=\"cre_dir\" style=\"display: none;\">", $Xcontent);
        $Xcontent = str_replace("_cre_dir", "", $Xcontent);