Пример #1
0
    if (fma_autorise("d", $obj->FieldName)) {
        $subdirs .= "<tr class=\"lignb\" " . $linked . ">";
        $clik_url = "<a href=\"modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode(encrypt("{$base}/{$obj->FieldName}")) . "\">";
        if ($dirpres_fma[0]) {
            $subdirs .= "<td width=\"3%\">{$clik_url}{$att_icon_dir}</a></td>";
        }
        if ($dirpres_fma[1]) {
            $subdirs .= "<td nowrap=\"nowrap\" width=\"50%\">{$clik_url}" . extend_ascii($obj->FieldName) . "</a></td>";
        }
        if ($dirpres_fma[2]) {
            $subdirs .= "<td>" . $obj->FieldDate . "</td>";
        }
        if ($dirpres_fma[3]) {
            $sizeofD = $obj->FieldSize;
            $sizeofDir = $sizeofDir + $sizeofD;
            $subdirs .= "<td>" . $obj->ConvertSize($sizeofDir) . "</td>";
        }
        $subdirs .= "</td></tr>";
    }
}
// Fichiers
$fp = @file("pic-manager.txt");
// La première ligne du tableau est un commentaire
settype($fp[1], "integer");
$Max_thumb = $fp[1];
settype($fp[2], "integer");
$refresh = $fp[2];
if ($refresh == 0) {
    $refresh = 3600;
}
$rep_cache = $racine_fma . "/cache/";
Пример #2
0
 $sizeofDir = 0;
 $subdirs .= "<tr class=\"lignb\" " . $linked . ">";
 $clik_url = "<a href=\"modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . rawurlencode(encrypt("{$base}/{$obj->FieldName}")) . "{$urlext_fma}\">";
 if ($dirpres_fma[0]) {
     $subdirs .= "<td width=\"3%\" align=\"center\">" . $clik_url . $att_icon_dir . "</a></td>";
 }
 if ($dirpres_fma[1]) {
     $subdirs .= "<td nowrap=\"nowrap\">{$clik_url}" . extend_ascii($obj->FieldName) . "</a></td>";
 }
 if ($dirpres_fma[2]) {
     $subdirs .= "<td>" . $obj->FieldDate . "</td>";
 }
 if ($dirpres_fma[3]) {
     $sizeofD = $obj->FieldSize;
     $sizeofDir = $sizeofDir + $sizeofD;
     $subdirs .= "<td>" . $obj->ConvertSize($sizeofDir) . "</td>";
 } else {
     $subdirs .= "<td>#NA#</td>";
 }
 if ($dirpres_fma[4]) {
     $subdirs .= "<td>" . $obj->FieldPerms . "</td>";
 }
 // Traitements
 $obj->FieldName = rawurlencode($obj->FieldName);
 $subdirs .= "<td>";
 if ($dircmd_fma[1]) {
     $subdirs .= "<a href=\"modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . $cur_nav_encrypt . "&amp;op=renamedir&amp;att_name=" . $obj->FieldName . "\"><img src=\"modules/{$ModPath}/images/rename.png\" border=\"0\" alt=\"{$renaM}\" title=\"{$renaM}\" /></a>";
 }
 if ($dircmd_fma[2]) {
     $subdirs .= " <a href=\"modules.php?ModPath={$ModPath}&amp;ModStart={$ModStart}&amp;FmaRep={$FmaRep}&amp;browse=" . $cur_nav_encrypt . "&amp;op=removedir&amp;att_name=" . $obj->FieldName . "\"><img src=\"modules/{$ModPath}/images/delete.png\" border=\"0\" alt=\"{$suppM}\" title=\"{$suppM}\" /></a>";
 }