array ("request", "string", ""), "o" => array ("request", "array", array()), "d" => array ("request", "array", array()), "perm" => array ("post", "array", array()), "formu" => array ("post", "integer", ""), "actextract" => array ("request", "string", ""), "fileextract" => array ("request", "string", ""), "actperms" => array ("post", "string", ""), "actdel" => array ("post", "string", ""), "actcopy" => array ("post", "string", ""), "actrename" => array ("post", "string", ""), "actmove" => array ("post", "string", ""), "actmoveto" => array ("post", "string", ""), "nomfich" => array ("post", "string", ""), "del_confirm" => array ("request", "string", ""), "cancel" => array ("request", "string", ""), "showdirsize" => array ("request", "integer", "0"), "nomfich" => array ("post", "string", ""), ); ## does not intend to edit oversize files. $memory_limit=ini_get("memory_limit"); if (preg_match("#([mk])#i", $memory_limit, $out)) $memory_limit=$memory_limit*1024*($out[1]=="M"?1024:1); getFields($fields); $p=$bro->GetPrefs(); if (! isset($R)) $R=''; if (!$R && $p["golastdir"]) { $R=$p["lastdir"]; } $R=$bro->convertabsolute($R,1); // on fait ? if (!empty($formu) && $formu) { $absolute = $bro->convertabsolute($R, false); switch ($formu) { case 1: // Create the folder $R.$nomfich if ($bro->CreateDir($R,$nomfich)) { $msg->raise("INFO", "bro", _("The folder '%s' was successfully created"), $nomfich); } $p=$bro->GetPrefs(); break; case 6: // Create the file $R.$nomfich if ($bro->CreateFile($R,$nomfich)) { $msg->raise("INFO", "bro", _("The file '%s' was successfully created"), $nomfich); } $p=$bro->GetPrefs(); if ($p["createfile"]==1) { $editfile=$nomfich; include("bro_editor.php"); exit(); } break; case 2: // act vaut Supprimer Copier ou Renommer. if ($actdel) { if (!empty($del_confirm) ) { if ($bro->DeleteFile($d,$R)) { foreach ($d as $v) { if (is_dir($absolute . "/" . $v)) $msg->raise("INFO", "bro", _("The folder '%s' was successfully deleted"), $v); else $msg->raise("INFO", "bro", _("The file '%s' was successfully deleted"), $v); } } } elseif (empty($cancel) && count($d)) { include_once("head.php"); ?>

:

user["login"].$R."/"; ?>

" />   " />
CopyFile($d,$R,$actmoveto)) { if (count($d) == 1) { if (is_dir($absolute . "/" . $d[0])) $msg->raise("INFO", "bro", _("The folder '%s' was successfully copied to '%s'"), array($d[0], $actmoveto)); else $msg->raise("INFO", "bro", _("The file '%s' was successfully copied to '%s'"), array($d[0], $actmoveto)); } else $msg->raise("INFO", "bro", _("The files / folders were successfully copied")); } } if ($actmove && count($d)) { if ($bro->MoveFile($d,$R,$actmoveto)) { if (count($d) == 1) { if (is_dir($absolute . "/" . $d[0])) $msg->raise("INFO", "bro", _("The folder '%s' was successfully moved to '%s'"), array($d[0], $actmoveto)); else $msg->raise("INFO", "bro", _("The file '%s' was successfully moved to '%s'"), array($d[0], $actmoveto)); } else $msg->raise("INFO", "bro", _("The files / folders were successfully moved")); } } break; case 4: // Renommage Effectif... if ($bro->RenameFile($R,$o,$d)) { // Rename $R (directory) $o (old) $d (new) names if (count($d) == 1) { if (is_dir($absolute . "/" . $d[0])) $msg->raise("INFO", "bro", _("The folder '%s' was successfully renamed to '%s'"), array($o[0], $d[0])); else $msg->raise("INFO", "bro", _("The file '%s' was successfully renamed to '%s'"), array($o[0], $d[0])); } else $msg->raise("INFO", "bro", _("The files / folders were successfully renamed")); } break; case 3: // Upload de fichier... if ($bro->UploadFile($R)) { $msg->raise("INFO", "bro", _("The file '%s' was successfully uploaded"), $_FILES['userfile']['name']); } break; case 7: // Changement de permissions [ML] if ($bro->ChangePermissions($R, $d, $perm)) { $msg->raise("INFO", "bro", _("The permissions were successfully set")); } break; } } if (isset($actextract) && $actextract) { if ($bro->ExtractFile($R. '/' . $fileextract, $R)) { $msg->raise("INFO", "bro", _("The extraction of the file '%s' succeeded"), $fileextract); } } ?>

"; for ($i=0;$i"; echo ""; } echo ""; echo "

filelist($R, $showdirsize ); if ($c===false) { echo $msg->msg_html_all(); require_once('foot.php'); exit; } echo $msg->msg_html_all(); ?>


" /> getMaxAllowedUploadSize() ); ?> you will be able to uncompress it after.)"); ?>
 
" />
/> />
\n"; echo "
\n"; csrf_get(); echo "\n"; echo "\n"; echo "
"._("Rename")."
".ehe($d[$i],false)."
\n"; echo "
\n"; } /* [ML] Changer les permissions : */ if ($formu==2 && ! (empty($actperms)) && count($d)) { echo "
\n"; csrf_get(); echo "\n"; echo "\n"; echo "

"._("Permissions")."

"; $tmp_absdir = $bro->convertabsolute($R,0); echo ""; echo ""; echo ""; echo ""; for ($i=0;$i"; echo ""; // Owner echo ""; echo ""; } echo "
" . _("File") . ""._("Permissions")."
".ehe($d[$i],false).""; echo ""; echo " "; echo "
"; echo "

"; echo "
\n"; echo "
\n"; } /* We draw the file list and button bar only if there is files here ! */ if (count($c)) { ?>

" /> " /> " />   |  " onClick=" return actmoveto_not_empty();"/> " onClick=" return actmoveto_not_empty();"/>
"; ?> PathList($R,"bro_main.php",true); }?> \n"; if ($c[$i]["type"]) { echo " "; if ($p["showicons"]) { echo "icon($c[$i]["name"])."\" width=\"16\" height=\"16\" alt=\"\" />"; } echo "can_edit($R,$c[$i]["name"]); if ($canedit&&($c[$i]["size"]<$memory_limit)) { echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); } else { echo "bro_downloadfile.php?dir=".urlencode($R)."&file=".urlencode($c[$i]["name"]); } echo "\">"; ehe($c[$i]["name"]); echo""; if (!($c[$i]["permissions"] & 0000200)) { echo " ("._("protected").")"; } echo "\n"; echo " ".format_size($c[$i]["size"]).""; echo "".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d H:i:s",$c[$i]["date"]))."
"; if ($p["showtype"]) { echo ""._($bro->mime($c[$i]["name"])).""; } $vu=$bro->viewurl($R,$c[$i]["name"]); if ($vu) { echo ""._("View").""; } else { echo " "; } $e = $bro->is_extractable($c[$i]["name"]); if ($e) { echo " "; echo _("Extract"); echo ""; } $ez = $bro->is_sqlfile($c[$i]["name"]); if ($ez) { echo " "; echo _("Restore SQL"); echo ""; echo ""; } echo "\n"; } else { // DOSSIER : echo " "; if ($p["showicons"]) { echo "\"\""; } echo ""; ehe($c[$i]["name"]); echo "/\n"; echo " ".format_size($c[$i]["size"]).""; echo "".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d h:i:s",$c[$i]["date"]))."
"; if ($p["showtype"]) { echo ""._("Folder").""; } echo " "; echo "\n"; } echo "\n"; } echo ""; break; case 1: /* AFFICHE 2 COLONNES COURTES */ reset($c); echo ""; echo ""; echo "
"; echo ""; for($i=0;$i\n"; if ($c[$i]["type"]) { echo " "; echo "\n"; echo " \n"; } else { echo " \n"; echo " \n"; } echo "\n"; } echo "
can_edit($R,$c[$i]["name"]); if ($canedit && ($c[$i]["size"]<$memory_limit)) { echo "bro_editor.php?editfile=".eue($c[$i]["name"],false)."&R=".eue($R,false); } else { echo "bro_downloadfile.php?dir=".eue($R,false)."&file=".eue($c[$i]["name"],false); } echo "\">"; ehe($c[$i]["name"]); echo "".format_size($c[$i]["size"]).""; $vu=$bro->viewurl($R,$c[$i]["name"]); if ($vu) { echo ""._("V").""; } else { echo " "; } echo "".ehe($c[$i]["name"],false)."/".format_size($c[$i]["size"]).""; echo " "; echo "
"; echo "
"; echo ""; for($i=round(count($c)/2);$i\n"; if ($c[$i]["type"]) { echo " \n"; echo " \n"; } else { echo " \n"; echo " \n"; } echo "\n"; } echo "
can_edit($R,$c[$i]["name"]); if ($canedit && ($c[$i]["size"]<$memory_limit)) { echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); } else { echo "bro_downloadfile.php?dir=".urlencode($R)."&file=".urlencode($c[$i]["name"]); } echo "\">"; ehe($c[$i]["name"]); echo "".format_size($c[$i]["size"]).""; $vu=$bro->viewurl($R,$c[$i]["name"]); if ($vu) { echo ""._("V").""; } else { echo " "; } echo "".ehe($c[$i]["name"],false)."/".format_size($c[$i]["size"]).""; echo " "; echo "
"; echo "
"; break; case 2: /* AFFICHE 3 COLONNES COURTES */ reset($c); echo ""; echo ""; echo "
"; echo ""; for($i=0;$i\n"; if ($c[$i]["type"]) { echo " \n"; echo " \n"; } else { echo " \n"; echo " \n"; } echo "\n"; } echo "
can_edit($R,$c[$i]["name"]); if ($canedit&&($c[$i]["size"]<$memory_limit)) { echo "bro_editor.php?editfile=".eue($c[$i]["name"],false)."&R=".eue($R,false); } else { echo "bro_downloadfile.php?dir=".eue($R,false)."&file=".eue($c[$i]["name"],false); } echo "\">"; ehe($c[$i]["name"],false); echo "".format_size($c[$i]["size"]).""; $vu=$bro->viewurl($R,$c[$i]["name"]); if ($vu) { echo ""._("V").""; } else { echo " "; } echo "".ehe($c[$i]["name"],false)."/".format_size($c[$i]["size"]).""; echo " "; echo "
"; echo "
"; echo ""; for($i=round(count($c)/3);$i\n"; if ($c[$i]["type"]) { echo " \n"; echo " \n"; } else { echo " \n"; echo " \n"; } echo "\n"; } echo "
can_edit($R,$c[$i]["name"]); if ($canedit&&($c[$i]["size"]<$memory_limit)) { echo "bro_editor.php?editfile=".eue($c[$i]["name"],false)."&R=".eue($R,false); } else { echo "bro_downloadfile.php?dir=".eue($R,false)."&file=".eue($c[$i]["name"],false); } echo "\">"; ehe($c[$i]["name"],false); echo "".format_size($c[$i]["size"]).""; $vu=$bro->viewurl($R,$c[$i]["name"]); if ($vu) { echo ""._("V").""; } else { echo " "; } echo "".ehe($c[$i]["name"],false)."/".format_size($c[$i]["size"]).""; echo " "; echo "
"; echo "
"; echo ""; for($i=round(2*count($c)/3);$i\n"; if ($c[$i]["type"]) { echo " \n"; echo " \n"; } else { echo " \n"; echo " \n"; } echo "\n"; } echo "
can_edit($R,$c[$i]["name"]); if ($canedit && ($c[$i]["size"]<$memory_limit)) { echo "bro_editor.php?editfile=".eue($c[$i]["name"],false)."&R=".eue($R,false); } else { echo "bro_downloadfile.php?dir=".eue($R)."&file=".eue($c[$i]["name"]); } echo "\">"; ehe($c[$i]["name"],false); echo "".format_size($c[$i]["size"]).""; $vu=$bro->viewurl($R,$c[$i]["name"]); if ($vu) { echo ""._("View").""; } else { echo " "; } echo "".ehe($c[$i]["name"],false)."/".format_size($c[$i]["size"]).""; echo " "; echo "
"; echo "
"; break; } ?>
"._("No files in this folder")."

"; } ?>
&showdirsize=1">
 
is_protected($R)) { echo ""._("Edit this folder's protection").""; } else { echo ""._("Protect this folder").""; } ?>

">   l_tgz[$p["downfmt"]]); ?>

is_ftp($R)) { ?>