30 require_once(
"../class/config.php");
31 include_once (
"head.php");
34 "R" => array (
"request",
"string",
""),
35 "o" => array (
"request",
"array", array()),
36 "d" => array (
"request",
"array", array()),
37 "perm" => array (
"post",
"array", array()),
38 "formu" => array (
"post",
"integer",
""),
39 "actextract" => array (
"request",
"string",
""),
40 "fileextract" => array (
"request",
"string",
""),
41 "actperms" => array (
"post",
"string",
""),
42 "actdel" => array (
"post",
"string",
""),
43 "actcopy" => array (
"post",
"string",
""),
44 "actrename" => array (
"post",
"string",
""),
45 "actmove" => array (
"post",
"string",
""),
46 "actmoveto" => array (
"post",
"string",
""),
47 "nomfich" => array (
"post",
"string",
""),
48 "del_confirm" => array (
"request",
"string",
""),
49 "cancel" => array (
"request",
"string",
""),
50 "showdirsize" => array (
"request",
"integer",
"0"),
51 "nomfich" => array (
"post",
"string",
""),
54 ## does not intend to edit oversize files.
62 if (! isset(
$R))
$R=
'';
63 if (!
$R &&
$p[
"golastdir"]) {
68 if (!empty($formu) && $formu) {
69 $absolute =
$bro->convertabsolute(
$R,
false);
72 if (
$bro->CreateDir(
$R,$nomfich)) {
73 $msg->raise(
"INFO",
"bro", _(
"The folder '%s' was successfully created"), $nomfich);
78 if (
$bro->CreateFile(
$R,$nomfich)) {
79 $msg->raise(
"INFO",
"bro", _(
"The file '%s' was successfully created"), $nomfich);
82 if (
$p[
"createfile"]==1) {
84 include(
"bro_editor.php");
90 if (!empty($del_confirm) ) {
93 if (is_dir($absolute .
"/" . $v))
94 $msg->raise(
"INFO",
"bro", _(
"The folder '%s' was successfully deleted"), $v);
96 $msg->raise(
"INFO",
"bro", _(
"The file '%s' was successfully deleted"), $v);
99 }
elseif (empty($cancel) && count(
$d)) {
100 include_once(
"head.php");
102 <h3><?php printf(_(
"Deleting files and/or directories")); ?> : </h3>
103 <form action=
"bro_main.php" method=
"post" name=
"main" id=
"main">
105 <input type=
"hidden" name=
"formu" value=
"2" />
106 <input type=
"hidden" name=
"actdel" value=
"1" />
107 <input type=
"hidden" name=
"R" value=
"<?php ehe($R)?>" />
108 <p
class=
"alert alert-warning"><?php
__(
"WARNING: Confirm the deletion of this files"); ?></p>
109 <h2><?php echo
$mem->user[
"login"].$R.
"/"; ?></h2>
113 <input type=
"hidden" name=
"d[]" value=
"<?php ehe($editfile); ?>" />
117 <input type=
"submit" class=
"inb ok" name=
"del_confirm" value=
"<?php __("Yes,
delete those files/folders
"); ?>" />
118 <input type=
"submit" class=
"inb cancel" name=
"cancel" value=
"<?php __("No, don
't delete those files/folders"); ?>" />
122 include_once("foot.php");
126 if ($actcopy && count($d)) {
127 if ($bro->CopyFile($d,$R,$actmoveto)) {
128 if (count($d) == 1) {
129 if (is_dir($absolute . "/" . $d[0]))
130 $msg->raise("INFO", "bro", _("The folder '%s
' was successfully copied to '%s
'"), array($d[0], $actmoveto));
132 $msg->raise("INFO", "bro", _("The file '%s
' was successfully copied to '%s
'"), array($d[0], $actmoveto));
134 $msg->raise("INFO", "bro", _("The files / folders were successfully copied"));
137 if ($actmove && count($d)) {
138 if ($bro->MoveFile($d,$R,$actmoveto)) {
139 if (count($d) == 1) {
140 if (is_dir($absolute . "/" . $d[0]))
141 $msg->raise("INFO", "bro", _("The folder '%s
' was successfully moved to '%s
'"), array($d[0], $actmoveto));
143 $msg->raise("INFO", "bro", _("The file '%s
' was successfully moved to '%s
'"), array($d[0], $actmoveto));
145 $msg->raise("INFO", "bro", _("The files / folders were successfully moved"));
149 case 4: // Renommage Effectif...
150 if ($bro->RenameFile($R,$o,$d)) { // Rename $R (directory) $o (old) $d (new) names
151 if (count($d) == 1) {
152 if (is_dir($absolute . "/" . $d[0]))
153 $msg->raise("INFO", "bro", _("The folder '%s
' was successfully renamed to '%s
'"), array($o[0], $d[0]));
155 $msg->raise("INFO", "bro", _("The file '%s
' was successfully renamed to '%s
'"), array($o[0], $d[0]));
157 $msg->raise("INFO", "bro", _("The files / folders were successfully renamed"));
160 case 3: // Upload de fichier...
161 if ($bro->UploadFile($R)) {
162 $msg->raise("INFO", "bro", _("The file '%s
' was successfully uploaded"), $_FILES['userfile
']['name
']);
165 case 7: // Changement de permissions [ML]
166 if ($bro->ChangePermissions($R, $d, $perm)) {
167 $msg->raise("INFO", "bro", _("The permissions were successfully set"));
173 if (isset($actextract) && $actextract) {
174 if ($bro->ExtractFile($R. '/
' . $fileextract, $R)) {
175 $msg->raise("INFO", "bro", _("The extraction of the file '%s
' succeeded"), $fileextract);
180 <h3><?php __("File browser"); ?></h3>
181 <table border="0" width="100%" cellspacing="0">
186 <p class="breadcrumb">
187 <?php __("Path"); ?> / <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a> / <?php echo $bro->PathList($R,"bro_main.php") ?>
191 /* Creation de la liste des fichiers courants */
192 $c=$bro->filelist($R, $showdirsize );
194 echo $msg->msg_html_all();
195 require_once('foot.php
');
199 echo $msg->msg_html_all();
203 <td class="formcell">
205 <form action="bro_main.php" enctype="multipart/form-data" method="post">
207 <input type="hidden" name="R" value="<?php ehe($R); ?>" />
208 <input type="hidden" name="formu" value="3" />
210 <?php __("Send one file:"); ?><br />
211 <input class="int" name="userfile" type="file" />
213 <input type="submit" id="sendthisfile" class="ina" value="<?php __("Send this file"); ?>" />
214 <?php echo sprintf(_("Warning: max size: %s"),$bro->getMaxAllowedUploadSize() ); ?>
215 <?php __("(If you upload a compressed file, <br />you will be able to uncompress it after.)"); ?></form>
218 <td style="width: 20px"> </td>
219 <td class="formcell">
221 <?php __("New file or folder:"); ?><br />
222 <form action="bro_main.php" method="post" name="nn" id="nn">
224 <input type="hidden" name="R" value="<?php ehe($R); ?>" />
226 <td><input type="text" class="int" name="nomfich" id="nomfich" size="22" maxlength="255" /></td>
227 <td><input type="submit" class="ina" value="<?php __("Create"); ?>" /></td>
229 <input type="radio" class="inc" id="nfile" onclick="document.nn.nomfich.focus();" name="formu" value="6" <?php if (!$p["crff"]) echo "checked=\"checked\""; ?> /><label for="nfile"> <?php __("File"); ?></label>
230 <input type="radio" class="inc" id="nfold" onclick="document.nn.nomfich.focus();" name="formu" value="1" <?php if ($p["crff"]) echo "checked=\"checked\""; ?> /><label for="nfold"> <?php __("Folder"); ?></label>
231 </td><td></td></tr></table>
238 <tr><td valign="top">
243 if (isset($formu) && $formu==2 && isset($actrename) && $actrename && count(
$d)) {
244 echo
"<table cellpadding=\"6\">\n";
245 echo
"<form action=\"bro_main.php\" method=\"post\">\n";
247 echo
"<input type=\"hidden\" name=\"R\" value=\"".ehe(
$R,
false).
"\" />\n";
248 echo
"<input type=\"hidden\" name=\"formu\" value=\"4\" />\n";
249 echo
"<tr><th colspan=\"2\">"._(
"Rename").
"</th></tr>";
252 echo
"<tr><td><input type=\"hidden\" name=\"o[$i]\" value=\"".ehe(
$d[
$i],
false).
"\" />".
ehe(
$d[
$i],
false).
"</td>";
253 echo
"<td><input type=\"text\" class=\"int\" name=\"d[$i]\" value=\"".ehe(
$d[
$i],
false).
"\" /></td></tr>";
255 echo
"<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._(
"Rename").
"\" /></td></tr>";
256 echo
"</table></form>\n";
261 if ($formu==2 && ! (empty($actperms)) && count(
$d)) {
262 echo
"<form action=\"bro_main.php\" method=\"post\">\n";
264 echo
"<input type=\"hidden\" name=\"R\" value=\"".ehe(
$R,
false).
"\" />\n";
265 echo
"<input type=\"hidden\" name=\"formu\" value=\"7\" />\n";
266 echo
"<p>"._(
"Permissions").
"</p>";
268 $tmp_absdir =
$bro->convertabsolute(
$R,0);
270 echo
"<table border=\"1\" cellpadding=\"4\" cellspacing=\"0\">";
272 echo
"<th>" . _(
"File") .
"</th><th>"._(
"Permissions").
"</th>";
277 $stats = stat($tmp_absdir .
'/' .
$d[
$i]);
281 echo
"<td>".ehe(
$d[
$i],
false).
"</td>";
285 echo
"<input type=\"hidden\" name=\"d[$i]\" value=\"".ehe(
$d[
$i],
false).
"\" />";
286 echo
"<label for=\"permw$i\">"._(
"write").
"</label> <input type=\"checkbox\" id=\"permw$i\" name=\"perm[$i][w]\" value=\"1\" ". (($modes & 0000200) ?
'checked="checked"' :
'') .
" />";
294 echo
"<p><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._(
"Change permissions").
"\" /></p>";
303 <form action=
"bro_main.php" method=
"post" name=
"main" id=
"main">
305 <input type=
"hidden" name=
"R" value=
"<?php ehe($R); ?>" />
306 <input type=
"hidden" name=
"formu" value=
"2" />
311 <table width=
"100%" style=
"border: 0px">
312 <tr><td
class=
"" style=
"padding: 4px 4px 8px 4px">
314 <input type=
"submit" class=
"ina" name=
"actdel" value=
"<?php __("Delete
"); ?>" />
315 <input type=
"submit" class=
"ina" name=
"actrename" value=
"<?php __("Rename
"); ?>" />
316 <input type=
"submit" class=
"ina" name=
"actperms" value=
"<?php __("Permissions
"); ?>" />
318 <input type=
"submit" class=
"ina" name=
"actcopy" value=
"<?php __("Copy
"); ?>" onClick=
" return actmoveto_not_empty();"/>
319 <input type=
"submit" class=
"ina" name=
"actmove" value=
"<?php __("Move
"); ?>" onClick=
" return actmoveto_not_empty();"/>
321 <input type=
"text" class=
"int" id=
"actmoveto" name=
"actmoveto" value=
"" />
328 <script type=
"text/javascript">
329 function actmoveto_not_empty() {
330 if ( $(
'#actmoveto').val() ==
'' ) {
331 alert(
"<?php __("Please select a destination folder
");?>");
341 switch (
$p[
"listmode"]) {
345 echo
"<table width=\"100%\" id='tab_files_w_details' class=\"tlist\" style=\"border: 0px\" cellpadding=\"2\" cellspacing=\"0\"><thead>";
348 <input type=
"checkbox" id=
"checkall" value=
"1" class=
"inb" onclick=
"CheckAll();" />
350 <?php
if (
$p[
"showicons"]) { ?>
351 <th style=
"text-align: center;"><?php
if (!empty(
$R)) { echo
$bro->PathList(
$R,
"bro_main.php",
true); }?></th>
353 <th><?php
__(
"Filename"); ?></th>
354 <th><?php
__(
"Size"); ?></th>
355 <th><?php
__(
"Last modification"); ?></th>
356 <?php
if (
$p[
"showtype"]) { ?>
357 <th><?php
__(
"File Type"); ?></th>
364 echo
"<tr class=\"lst\">\n";
365 if (
$c[
$i][
"type"]) {
366 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\" /></td>";
367 if (
$p[
"showicons"]) {
368 echo
"<td style='text-align: center;' width=\"28\"><img src=\"icon/".$bro->icon(
$c[
$i][
"name"]).
"\" width=\"16\" height=\"16\" alt=\"\" /></td>";
370 echo
"<td><a href=\"";
373 echo
"bro_editor.php?editfile=".urlencode(
$c[
$i][
"name"]).
"&R=".urlencode(
$R);
375 echo
"bro_downloadfile.php?dir=".urlencode(
$R).
"&file=".urlencode(
$c[
$i][
"name"]);
377 echo
"\">";
ehe(
$c[
$i][
"name"]);
379 if (!(
$c[
$i][
"permissions"] & 0000200)) {
380 echo
" (<a href=\"bro_main.php?actperms=Permissions&R=".urlencode(
$R).
"&formu=2&d[]=".urlencode(
$c[
$i][
"name"]).
"\">"._(
"protected").
"</a>)";
383 echo
" <td data-sort-value=\"".$c[
$i][
"size"].
"\">".
format_size(
$c[
$i][
"size"]).
"</td>";
384 echo
"<td data-sort-value=\"".$c[
$i][
"date"].
"\">".
format_date(_(
'%3$d-%2$d-%1$d %4$d:%5$d'),date(
"Y-m-d H:i:s",
$c[
$i][
"date"])).
"<br /></td>";
385 if (
$p[
"showtype"]) {
386 echo
"<td>"._(
$bro->mime(
$c[
$i][
"name"])).
"</td>";
390 echo
"<td><a href=\"$vu\">"._(
"View").
"</a>";
394 $e =
$bro->is_extractable(
$c[
$i][
"name"]);
396 echo
" <a href=\"bro_main.php?actextract=1&fileextract=".urlencode(
$c[
$i][
"name"]).
"&R=".urlencode(
$R).
"\">";
400 $ez =
$bro->is_sqlfile(
$c[
$i][
"name"]);
402 echo
" <a href=\"javascript:;\" onClick=\"$('#rest_db_$i').toggle();\">";
403 echo _(
"Restore SQL");
405 echo
"<div id='rest_db_$i' style='display:none;'><fieldset><legend>"._(
"Restore SQL").
"</legend>"._(
"In which database to you want to restore this dump?");
407 echo
"<input type='hidden' name ='filename' value='".ehe(
$R.
"/".
$c[
$i][
"name"],
false).
"' />";
408 $dbl=array();
foreach ($mysql->get_dblist() as $v) { $dbl[]=$v[
'db'];}
409 echo
"<select id='db_name_$i'>";
eoption($dbl,
'',
true); echo
"</select>" ;
410 echo
"<a href='javascript:;' onClick='window.location=\"sql_restore.php?filename=".eue(
$R.
"/".
$c[
$i][
"name"],
false).
"&id=\"+encodeURIComponent($(\"#db_name_$i\").val()) ;'>"._(
"Restore it").
"</a>";
411 echo
"</fieldset></div>";
416 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\" /></td>";
417 if (
$p[
"showicons"]) {
418 echo
"<td width=\"28\" style='text-align: center;'><img src=\"icon/folder.png\" width=\"16\" height=\"16\" alt=\"\" /></td>";
420 echo
"<td><b><a href=\"";
421 echo
"bro_main.php?R=".eue(
$R.
"/".
$c[
$i][
"name"],
false);
422 echo
"\">";
ehe(
$c[
$i][
"name"]); echo
"/</a></b></td>\n";
423 echo
" <td data-sort-value=\"".$c[
$i][
"size"].
"\">".
format_size(
$c[
$i][
"size"]).
"</td>";
424 echo
"<td data-sort-value=\"".$c[
$i][
"date"].
"\">".
format_date(_(
'%3$d-%2$d-%1$d %4$d:%5$d'),date(
"Y-m-d h:i:s",
$c[
$i][
"date"])).
"<br /></td>";
425 if (
$p[
"showtype"]) {
426 echo
"<td>"._(
"Folder").
"</td>";
434 echo
"</tbody></table>";
439 echo
"<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
440 echo
"<tr><td valign=\"top\" width=\"50%\">";
441 echo
"<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
442 for(
$i=0;
$i<round(count(
$c)/2);
$i++) {
443 echo
"<tr class=\"lst\">\n";
444 if (
$c[
$i][
"type"]) {
445 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\" /></td>";
446 echo
"<td><a href=\"";
449 echo
"bro_editor.php?editfile=".eue(
$c[
$i][
"name"],
false).
"&R=".
eue(
$R,
false);
451 echo
"bro_downloadfile.php?dir=".eue(
$R,
false).
"&file=".
eue(
$c[
$i][
"name"],
false);
453 echo
"\">";
ehe(
$c[
$i][
"name"]);
455 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
458 echo
"<td><a href=\"$vu\">"._(
"V").
"</a>";
464 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><b><a href=\"";
465 echo
"bro_main.php?R=".eue(
$R.
"/".
$c[
$i][
"name"],
false);
466 echo
"\">".ehe(
$c[
$i][
"name"],
false).
"/</a></b></td>\n";
467 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
475 echo
"</td><td valign=\"top\" width=\"50%\">";
476 echo
"<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
477 for(
$i=round(count(
$c)/2);
$i<count(
$c);
$i++) {
478 echo
"<tr class=\"lst\">\n";
479 if (
$c[
$i][
"type"]) {
480 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><a href=\"";
483 echo
"bro_editor.php?editfile=".urlencode(
$c[
$i][
"name"]).
"&R=".urlencode(
$R);
485 echo
"bro_downloadfile.php?dir=".urlencode(
$R).
"&file=".urlencode(
$c[
$i][
"name"]);
487 echo
"\">";
ehe(
$c[
$i][
"name"]);
489 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
492 echo
"<td><a href=\"$vu\">"._(
"V").
"</a>";
498 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><b><a href=\"";
499 echo
"bro_main.php?R=".eue(
$R.
"/".
$c[
$i][
"name"],
false);
500 echo
"\">".ehe(
$c[
$i][
"name"],
false).
"/</a></b></td>\n";
501 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
515 echo
"<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
516 echo
"<tr><td valign=\"top\" width=\"33%\">";
517 echo
"<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
518 for(
$i=0;
$i<round(count(
$c)/3);
$i++) {
519 echo
"<tr class=\"lst\">\n";
520 if (
$c[
$i][
"type"]) {
521 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><a href=\"";
524 echo
"bro_editor.php?editfile=".eue(
$c[
$i][
"name"],
false).
"&R=".
eue(
$R,
false);
526 echo
"bro_downloadfile.php?dir=".eue(
$R,
false).
"&file=".
eue(
$c[
$i][
"name"],
false);
528 echo
"\">";
ehe(
$c[
$i][
"name"],
false);
530 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
533 echo
"<td><a href=\"$vu\">"._(
"V").
"</a>";
539 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><b><a href=\"";
540 echo
"bro_main.php?R=".eue(
$R.
"/".
$c[
$i][
"name"],
false);
541 echo
"\">".ehe(
$c[
$i][
"name"],
false).
"/</a></b></td>\n";
542 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
550 echo
"</td><td valign=\"top\" width=\"33%\">";
551 echo
"<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
552 for(
$i=round(count(
$c)/3);
$i<round(2*count(
$c)/3);
$i++) {
553 echo
"<tr class=\"lst\">\n";
554 if (
$c[
$i][
"type"]) {
555 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><a href=\"";
558 echo
"bro_editor.php?editfile=".eue(
$c[
$i][
"name"],
false).
"&R=".
eue(
$R,
false);
560 echo
"bro_downloadfile.php?dir=".eue(
$R,
false).
"&file=".
eue(
$c[
$i][
"name"],
false);
562 echo
"\">";
ehe(
$c[
$i][
"name"],
false);
564 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
567 echo
"<td><a href=\"$vu\">"._(
"V").
"</a>";
574 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><b><a href=\"";
575 echo
"bro_main.php?R=".eue(
$R.
"/".
$c[
$i][
"name"],
false);
576 echo
"\">".ehe(
$c[
$i][
"name"],
false).
"/</a></b></td>\n";
577 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
585 echo
"</td><td valign=\"top\" width=\"33%\">";
586 echo
"<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
587 for(
$i=round(2*count(
$c)/3);
$i<count(
$c);
$i++) {
588 echo
"<tr class=\"lst\">\n";
589 if (
$c[
$i][
"type"]) {
590 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><a href=\"";
593 echo
"bro_editor.php?editfile=".eue(
$c[
$i][
"name"],
false).
"&R=".
eue(
$R,
false);
595 echo
"bro_downloadfile.php?dir=".eue(
$R).
"&file=".
eue(
$c[
$i][
"name"]);
597 echo
"\">";
ehe(
$c[
$i][
"name"],
false);
599 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
602 echo
"<td><a href=\"$vu\">"._(
"View").
"</a>";
608 echo
" <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".ehe(
$c[
$i][
"name"],
false).
"\"></td><td><b><a href=\"";
609 echo
"bro_main.php?R=".eue(
$R.
"/".
$c[
$i][
"name"],
false);
610 echo
"\">".ehe(
$c[
$i][
"name"],
false).
"/</a></b></td>\n";
611 echo
" <td>".format_size(
$c[
$i][
"size"]).
"</td><td>";
628 echo
"<p class=\"alert alert-info\">"._(
"No files in this folder").
"</p>";
633 <tr><td colspan=
"2" style=
"">
637 <div
class=
"showdirsize_button">
638 <span
class=
"ina"><a href=
"bro_main.php?R=<?php eue(($R)?$R:"/
",false); ?>&showdirsize=1"><?php
__(
"Show size of directories"); ?></a></span> <?php
__(
"(slow)"); ?><br /> <br />
640 <span
class=
"ina"><?php
641 if ($hta->is_protected(
$R)) {
642 echo
"<a href=\"hta_edit.php?dir=".eue((
$R)?
$R:
"/",
false).
"\">"._(
"Edit this folder's protection").
"</a>";
645 echo
"<a href=\"hta_add.php?dir=".eue((
$R)?
$R:
"/",
false).
"\">"._(
"Protect this folder").
"</a>";
647 ?></span> <?php
__(
"with a login and a password"); ?>
650 <a href=
"bro_tgzdown.php?dir=<?php eue(($R)?$R:"/
"); ?>"><?php
__(
"Download this folder"); ?></a>
652 <?php printf(_(
"as a %s file"),
$bro->l_tgz[
$p[
"downfmt"]]); ?>
656 if (
$id=$ftp->is_ftp(
$R)) {
659 <a href=
"ftp_edit.php?id=<?php ehe($id); ?>"><?php
__(
"Edit the ftp account"); ?></a>
660 </span> <?php
__(
"that exists in this folder"); ?>
666 <a href=
"ftp_edit.php?create=1&dir=<?php ehe($R); ?>"><?php
__(
"Create an ftp account in this folder"); ?></a>
675 <a href=
"bro_pref.php"><?php
__(
"Configure the file editor"); ?></a>
680 <script type=
"text/javascript">
681 $(document).ready(
function() {
682 $(
"#tab_files_w_details").tablesorter({
683 textExtraction:
function(node) {
684 var attr = $(node).attr(
'data-sort-value');
685 if (typeof attr !==
'undefined' && attr !==
false) {
688 return $(node).text();
694 <?php include_once(
"foot.php"); ?>
if(! $R && $p["golastdir"]) $R
$fields
A file browser / manager for AlternC Warning: complex spaghetti-style code below.
eoption($values, $cur, $onedim=false)
select_values($arr,$cur) echo des <option> du tableau $values ou de la table sql $values selectionne ...
ehe($str, $display=TRUE)
Echo the HTMLSpecialChars version of a value.
format_date($format, $date)
ssla($str)
Strip slashes if needed :
format_size($size, $html=0)
eue($str, $display=TRUE)
Echo the URLENCODED version of a value.
display_browser($dir="", $caller="main.dir", $width=350, $height=450)
Show a button to select a folder on the server.
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
if(empty($site_name)) elseif($piwik->site_add( $site_name, $site_urls))
if(!isset($is_include)) if(! $key &&! $crt) $id