Example #1
0
    }
    $files .= "</div>";
}
chdir("{$racine_fma}/");
// Génération de l'interface
$inclusion = false;
if (file_exists("themes/{$Default_Theme}/html/modules/f-manager/pic-manager.html")) {
    $inclusion = "themes/{$Default_Theme}/html/modules/f-manager/pic-manager.html";
} elseif (file_exists("themes/default/html/modules/f-manager/pic-manager.html")) {
    $inclusion = "themes/default/html/modules/f-manager/pic-manager.html";
} else {
    echo "html/modules/f-manager/pic-manager.html 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 href=\"modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode($browse) . "\">" . fma_translate("Rafraichir") . "</a>", $Xcontent);
    $Xcontent = str_replace("_nb_subdir", $obj->Count("d") - $dir_minuscptr, $Xcontent);
    $Xcontent = str_replace("_subdirs", $subdirs, $Xcontent);
    if ($uniq_fma) {
        $Xcontent = str_replace("_fileM", "<a href=\"modules.php?ModPath={$ModPath}&amp;ModStart=f-manager&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode($browse) . "\"><b>" . fma_translate("F-Manager") . "</b></a>", $Xcontent);
    } else {
        $Xcontent = str_replace("_fileM", "", $Xcontent);
    }
    if (isset($files)) {
        $Xcontent = str_replace("_files", $files, $Xcontent);
    } else {
        $Xcontent = str_replace("_files", "", $Xcontent);
    }
    if (!$NPDS_fma) {
        // utilisation de pages.php
Example #2
0
<?php

/************************************************************************/
/* NPDS DUNE : Net Portal Dynamic System                                */
/* ===========================                                          */
/*                                                                      */
/* This version name NPDS Copyright (c) 2001-2011 by Philippe Brunier   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
// cette variable fonctionne si $url_fma_modifier=true;
// $url_modifier permet de modifier le comportement du lien (a href ....) se trouvant sur les fichiers affichés par FMA
$repw = str_replace($basedir_fma, "", $cur_nav);
if ($repw != "") {
    if (substr($repw, 0, 1) == "/") {
        $repw = substr($repw, 1) . "/" . $obj->FieldName;
    }
} else {
    $repw = $obj->FieldName;
}
$url_modifier = "\"#\" onclick=\"javascript:window.opener.document.adminForm.durl.value='" . $repw . "'; window.opener.document.adminForm.dfilename.value='" . extend_ascii($obj->FieldName) . "';\"";
?>