source: alternc/trunk/bureau/admin/bro_main.php @ 3182

Revision 3182, 19.0 KB checked in by squidly, 11 months ago (diff)

Bugfixes niveau panel, correction notices PHP

Line 
1<?php
2/*
3 $Id: bro_main.php,v 1.11 2004/09/06 18:14:36 anonymous Exp $
4 ----------------------------------------------------------------------
5 AlternC - Web Hosting System
6 Copyright (C) 2002 by the AlternC Development Team.
7 http://alternc.org/
8 ----------------------------------------------------------------------
9 Based on:
10 Valentin Lacambre's web hosting softwares: http://altern.org/
11 ----------------------------------------------------------------------
12 LICENSE
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License (GPL)
16 as published by the Free Software Foundation; either version 2
17 of the License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 GNU General Public License for more details.
23
24 To read the license please visit http://www.gnu.org/copyleft/gpl.html
25 ----------------------------------------------------------------------
26 Original Author of file: Benjamin Sonntag, Remi
27 Purpose of file: Online file Browser of AlternC
28 TODO : Voir ??? + Déplacer / Copier
29 ----------------------------------------------------------------------
30*/
31require_once("../class/config.php");
32include_once ("head.php");
33
34$fields = array (
35                 "R"    => array ("request", "string", ""),
36                 "formu"       => array ("request", "integer", ""),
37                 "actextract"    => array ("request", "string", ""),
38                 "fileextract"    => array ("request", "string", ""),
39                 "actdel"    => array ("request", "string", ""),
40                 "actcopy"    => array ("request", "string", ""),
41                 "actmove"    => array ("request", "string", ""),
42                 "actmoveto"    => array ("request", "string", ""),
43                 );
44getFields($fields);
45
46
47$p=$bro->GetPrefs();
48if (! isset($R)) $R='';
49if (!$R && $p["golastdir"]) {
50  $R=$p["lastdir"];
51}
52$R=$bro->convertabsolute($R,1);
53// on fait ?
54if (isset($formu) && $formu) {
55  switch ($formu) {
56  case 1:  // Créer le répertoire $R.$nomfich
57    if (!$bro->CreateDir($R,$nomfich)) {
58      $error = $err->errstr();
59    }
60    $p=$bro->GetPrefs();
61    break;
62  case 6: // Créer le fichier $R.$nomfich
63    if (!$bro->CreateFile($R,$nomfich)) {
64      $error = $err->errstr();
65    }
66    $p=$bro->GetPrefs();
67    if ($p["createfile"]==1) {
68      $editfile=$nomfich;
69      include("bro_editor.php");
70      exit();
71    }
72    break;
73  case 2:  // act vaut Supprimer Copier ou Renommer.
74    if ($actdel) {
75      if (isset($del_confirm) && $del_confirm != "") { 
76        if (!$bro->DeleteFile($d,$R)) {
77          $error = $err->errstr();
78        }
79      } elseif (!isset($cancel) && is_array($d)) {
80        include_once("head.php");
81?>
82  <h3><?php printf(_("Deleting files and/or directories")); ?> : </h3>
83  <form action="bro_main.php" method="post" name="main" id="main"> 
84    <input type="hidden" name="formu" value="2" />
85    <input type="hidden" name="actdel" value="1" />
86    <input type="hidden" name="R" value="<?php echo $R?>" />
87    <p class="error"><?php __("WARNING: Confirm the deletion of this files"); ?></p>
88<?php foreach($_REQUEST["d"] as $editfile){ ?>
89        <p><?php echo stripslashes($editfile); ?></p>
90        <input type="hidden" name="d[]" value="<?php echo htmlentities(stripslashes($editfile)); ?>" />
91<?php } ?>
92    <blockquote>
93      <input type="submit" class="inb" name="del_confirm" value="<?php __("Yes"); ?>" />&nbsp;&nbsp;
94      <input type="submit" class="inb" name="cancel" value="<?php __("No"); ?>" />
95    </blockquote>
96  </form>
97</body>
98</html>
99<?php
100        exit();
101      }
102    }
103    if ($actcopy) {
104      if (!$bro->CopyFile($d,$R,$actmoveto)) {
105        $error = $err->errstr();
106      }
107    }
108    if ($actmove) {
109      if (!$bro->MoveFile($d,$R,$actmoveto)) {
110        $error = $err->errstr();
111      }
112    }
113    break;
114  case 4:  // Renommage Effectif...
115    if (!$bro->RenameFile($R,$o,$d)) { // Rename $R (directory) $o (old) $d (new) names
116      $error = $err->errstr();
117    } 
118    break;
119  case 3:  // Upload de fichier...
120    if (!$bro->UploadFile($R)) {
121      $error = $err->errstr();
122    }
123    break;
124  case 7:  // Changement de permissions [ML]
125    if (!@$bro->ChangePermissions($R, $d, $perm)) {
126      $error = $err->errstr();
127    }
128    break;
129  }
130}
131
132if (isset($actextract) && $actextract) {
133  print _("extracting...")."<br />\n"; flush();
134  if ($bro->ExtractFile($R. '/' . $fileextract, $R)) {
135    echo "<p class=\"error\">";
136    print $err->errstr();
137    print _("failed")."<br />\n";
138    echo "</p>";
139  } else {
140    print _("done")."<br />\n";
141  }
142}
143
144/* Creation de la liste des fichiers courants */
145$c=$bro->filelist($R, isset($_REQUEST['showdirsize'])?$_REQUEST['showdirsize']:null );
146if ($c===false) $error=$err->errstr();
147
148?>
149<h3><?php __("File browser"); ?></h3>
150<table border="0" width="100%" cellspacing="0">
151<tr><td>
152
153<hr />
154
155
156<p class="breadcrumb">
157 <?php __("Path"); ?> / <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?>
158</p>
159
160<?php if (isset($error) && $error) echo "<p class=\"error\">$error</p>"; ?>
161
162<table><tr>
163<td class="formcell">
164
165     <form action="bro_main.php" enctype="multipart/form-data" method="post">
166     <input type="hidden" name="R" value="<?php echo $R; ?>" />
167     <input type="hidden" name="formu" value="3" />
168
169     <?php __("Send one file:"); ?><br />
170<input class="int" name="userfile" type="file" />
171     <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
172<br />
173     <input type="submit" id="sendthisfile" class="ina" value="<?php __("Send this file"); ?>" />
174
175     </form>
176
177</td>
178<td style="width: 20px">&nbsp;</td>
179<td class="formcell">
180
181<?php __("New file or folder:"); ?><br />
182<form action="bro_main.php" method="post" name="nn" id="nn">
183<input type="hidden" name="R" value="<?php echo $R; ?>" />
184<table><tr>
185<td><input type="text" class="int" name="nomfich" id="nomfich" size="22" maxlength="255" /></td>
186<td><input type="submit" class="ina" value="<?php __("Create"); ?>" /></td>
187</tr><tr><td>
188<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">&nbsp;<?php __("File"); ?></label>
189<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">&nbsp;<?php __("Folder"); ?></label>
190</td><td></td></tr></table>
191</form>
192</td></tr>
193</table>
194
195
196</td></tr>
197<tr><td valign="top">
198
199<?php
200/* Renommer / Copier / Déplacer les fichiers : */
201if (isset($formu) && $formu==2 && isset($actrename) && $actrename && count($d)) {
202  echo "<table cellpadding=\"6\">\n";
203  echo "<form action=\"bro_main.php\" method=\"post\">\n";
204  echo "<input type=\"hidden\" name=\"R\" value=\"$R\" />\n";
205  echo "<input type=\"hidden\" name=\"formu\" value=\"4\" />\n";
206  echo "<tr><th colspan=\"2\">"._("Rename")."</th></tr>";
207  for ($i=0;$i<count($d);$i++) {
208    $d[$i]=ssla($d[$i]);
209    echo "<tr><td><input type=\"hidden\" name=\"o[$i]\" value=\"".$d[$i]."\" />".$d[$i]."</td>";
210    echo "<td><input type=\"text\" class=\"int\" name=\"d[$i]\" value=\"".$d[$i]."\" /></td></tr>";
211  }
212  echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._("Rename")."\" /></td></tr>";
213  echo "</table></form>\n";
214  echo "<hr />\n";
215}
216
217/* [ML] Changer les permissions : */
218if (isset($formu) && $formu==2 && isset($_REQUEST['actperms']) && $_REQUEST['actperms'] && count($d)) {
219  echo "<form action=\"bro_main.php\" method=\"post\">\n";
220  echo "<input type=\"hidden\" name=\"R\" value=\"$R\" />\n";
221  echo "<input type=\"hidden\" name=\"formu\" value=\"7\" />\n";
222  echo "<p>"._("Permissions")."</p>";
223
224  $tmp_absdir = $bro->convertabsolute($R,0);
225
226  echo "<table border=\"1\" cellpadding=\"4\" cellspacing=\"0\">";
227  echo "<tr>";
228  echo "<th>" . _("File") . "</th><th>"._("Permissions")."</th>"; 
229  echo "</tr>";
230
231  for ($i=0;$i<count($d);$i++) {
232    $d[$i]=ssla($d[$i]);
233    $stats = stat($tmp_absdir . '/' . $d[$i]);
234    $modes = $stats[2];
235
236    echo "<tr>";
237    echo "<td>".$d[$i]."</td>";
238
239    // Owner
240    echo "<td>";
241    echo "<input type=\"hidden\" name=\"d[$i]\" value=\"".$d[$i]."\" />";
242    echo "<label for=\"permw$i\">"._("write")."</label> <input type=\"checkbox\" id=\"permw$i\" name=\"perm[$i][w]\" value=\"1\" ". (($modes & 0000200) ? 'checked="checked"' : '') ." />";
243    echo "</td>";
244
245    echo "</tr>";
246  }
247
248  echo "</table>";
249
250  echo "<p><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._("Change permissions")."\" /></p>";
251  echo "</form>\n";
252  echo "<hr />\n";
253}
254
255/* We draw the file list and button bar only if there is files here ! */
256if (count($c)) {
257
258?>
259<form action="bro_main.php" method="post" name="main" id="main">
260<input type="hidden" name="R" value="<?php echo $R; ?>" />
261<input type="hidden" name="formu" value="2" />
262
263<br />
264
265
266<table width="100%" style="border: 0px">
267<tr><td class="lst2" style="padding: 4px 4px 8px 4px">
268
269<input type="submit" class="ina" name="actdel" value="<?php __("Delete"); ?>" />
270<input type="submit" class="ina" name="actrename" value="<?php __("Rename"); ?>" />
271<input type="submit" class="ina" name="actperms" value="<?php __("Permissions"); ?>" />
272&nbsp; |&nbsp;
273<input type="submit" class="ina" name="actcopy" value="<?php __("Copy"); ?>" />
274<input type="submit" class="ina" name="actmove" value="<?php __("Move"); ?>" />
275<?php __("To"); ?> 
276<input type="text" class="int" name="actmoveto" value="" />
277<script type="text/javascript">
278<!--
279document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.actmoveto');\" value=\" Choisir un r&eacute;pertoire \" class=\"bff\" />");
280//  -->
281</script>
282
283</td></tr>
284
285</table>
286
287
288<?php
289     switch ($p["listmode"]) {
290case 0:
291/* AFFICHE 1 COLONNE DETAILLEE */
292reset($c);
293echo "<table width=\"100%\" style=\"border: 0px\" cellpadding=\"2\" cellspacing=\"0\">";
294?>
295<tr><th>
296<script type="text/javascript">
297<!--
298document.write("<input type=\"checkbox\" id=\"checkall\" value=\"1\" class=\"inb\" onclick=\"CheckAll();\" />");
299//  -->
300</script>
301</th>
302<?php if ($p["showicons"]) { ?>
303<th></th>
304      <?php } ?>
305<th><?php __("Filename"); ?></th>
306<th><?php __("Size"); ?></th>
307<th><?php __("Last modification"); ?></th>
308<?php if ($p["showtype"]) { ?>
309<th><?php __("File Type"); ?></th>
310                                 <?php } ?>
311<th></th>
312</tr>
313<?php
314
315$col=1;
316for($i=0;$i<count($c);$i++) {
317$col=3-$col;
318echo "<tr class=\"lst$col\">\n";
319if ($c[$i]["type"]) {
320echo "  <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td>";
321if ($p["showicons"]) {
322echo "<td width=\"28\"><img src=\"icon/".$bro->icon($c[$i]["name"])."\" width=\"16\" height=\"16\" alt=\"\" /></td>";
323}
324echo "<td><a href=\"";
325echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
326echo "\">".htmlentities($c[$i]["name"])."</a></td>\n";
327echo "  <td>".format_size($c[$i]["size"])."</td>";
328echo "<td>".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d H:i:s",$c[$i]["date"]))."<br /></td>";
329if ($p["showtype"]) {
330echo "<td>"._($bro->mime($c[$i]["name"]))."</td>";
331}
332$vu=$bro->viewurl($R,$c[$i]["name"]);
333if ($vu) {
334echo "<td><a href=\"$vu\">"._("View")."</a>";
335} else {
336echo "<td>&nbsp;";
337}
338$e = $bro->is_extractable($R,$c[$i]["name"]);
339if ($e) {
340  echo " <a href=\"bro_main.php?actextract=1&amp;fileextract=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R)."\">";
341  echo _("Extract");
342  echo "</a>";
343}
344
345echo "</td>\n";
346} else {           // DOSSIER :
347echo "  <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".htmlentities($c[$i]["name"])."\" /></td>";
348if ($p["showicons"]) {
349echo "<td width=\"28\"><img src=\"icon/folder.png\" width=\"16\" height=\"16\" alt=\"\" /></td>";
350}
351echo "<td><b><a href=\"";
352echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
353echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n";
354echo "  <td>".format_size($c[$i]["size"])."</td>";
355echo "<td>".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d h:i:s",$c[$i]["date"]))."<br /></td>";
356if ($p["showtype"]) {
357  echo "<td>"._("Folder")."</td>";
358}
359echo "<td>&nbsp;";
360echo "</td>\n";
361}
362
363echo "</tr>\n";
364}
365echo "</table>";
366break;
367case 1:
368/* AFFICHE 2 COLONNES COURTES */
369reset($c);
370echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
371echo "<tr><td valign=\"top\" width=\"50%\">";
372echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
373$col=1;
374for($i=0;$i<round(count($c)/2);$i++) {
375$col=3-$col;
376echo "<tr class=\"lst$col\">\n";
377if ($c[$i]["type"]) {
378echo "  <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td><td><a href=\"";
379echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
380echo "\">".htmlentities($c[$i]["name"])."</a></td>\n";
381echo "  <td>".format_size($c[$i]["size"])."</td><td>";
382$vu=$bro->viewurl($R,$c[$i]["name"]);
383if ($vu) {
384echo "<td><a href=\"$vu\">"._("V")."</a>";
385} else {
386echo "<td>&nbsp;";
387}
388echo "</td>\n";
389} else {
390echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
391echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
392echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n";
393echo "  <td>".format_size($c[$i]["size"])."</td><td>";
394echo "&nbsp;";
395echo "</td>\n";
396}
397
398echo "</tr>\n";
399}
400echo "</table>";
401echo "</td><td valign=\"top\" width=\"50%\">";
402echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
403$col=1;
404for($i=round(count($c)/2);$i<count($c);$i++) {
405$col=3-$col;
406echo "<tr class=\"lst$col\">\n";
407if ($c[$i]["type"]) {
408echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
409echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
410echo "\">".htmlentities($c[$i]["name"])."</a></td>\n";
411echo "  <td>".format_size($c[$i]["size"])."</td><td>";
412$vu=$bro->viewurl($R,$c[$i]["name"]);
413if ($vu) {
414echo "<td><a href=\"$vu\">"._("V")."</a>";
415} else {
416echo "<td>&nbsp;";
417}
418echo "</td>\n";
419} else {
420echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
421echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
422echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n";
423echo "  <td>".format_size($c[$i]["size"])."</td><td>";
424echo "&nbsp;";
425echo "</td>\n";
426}
427
428echo "</tr>\n";
429}
430echo "</table>";
431echo "</td></tr>";
432echo "</table>";
433break;
434case 2:
435/* AFFICHE 3 COLONNES COURTES */
436reset($c);
437echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
438echo "<tr><td valign=\"top\" width=\"33%\">";
439echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
440$col=1;
441for($i=0;$i<round(count($c)/3);$i++) {
442$col=3-$col;
443echo "<tr class=\"lst$col\">\n";
444if ($c[$i]["type"]) {
445echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
446echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
447echo "\">".htmlentities($c[$i]["name"])."</a></td>\n";
448echo "  <td>".format_size($c[$i]["size"])."</td><td>";
449$vu=$bro->viewurl($R,$c[$i]["name"]);
450if ($vu) {
451echo "<td><a href=\"$vu\">"._("V")."</a>";
452} else {
453echo "<td>&nbsp;";
454}
455echo "</td>\n";
456} else {
457echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
458echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
459echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n";
460echo "  <td>".format_size($c[$i]["size"])."</td><td>";
461echo "&nbsp;";
462echo "</td>\n";
463}
464
465echo "</tr>\n";
466}
467echo "</table>";
468echo "</td><td valign=\"top\" width=\"33%\">";
469echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
470$col=1;
471for($i=round(count($c)/3);$i<round(2*count($c)/3);$i++) {
472$col=3-$col;
473echo "<tr class=\"lst$col\">\n";
474if ($c[$i]["type"]) {
475echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
476echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
477echo "\">".htmlentities($c[$i]["name"])."</a></td>\n";
478echo "  <td>".format_size($c[$i]["size"])."</td><td>";
479$vu=$bro->viewurl($R,$c[$i]["name"]);
480if ($vu) {
481echo "<td><a href=\"$vu\">"._("V")."</a>";
482} else {
483echo "<td>&nbsp;";
484}
485
486echo "</td>\n";
487} else {
488echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
489echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
490echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n";
491echo "  <td>".format_size($c[$i]["size"])."</td><td>";
492echo "&nbsp;";
493echo "</td>\n";
494}
495
496echo "</tr>\n";
497}
498echo "</table>";
499echo "</td><td valign=\"top\" width=\"33%\">";
500echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
501$col=1;
502for($i=round(2*count($c)/3);$i<count($c);$i++) {
503$col=3-$col;
504echo "<tr class=\"lst$col\">\n";
505if ($c[$i]["type"]) {
506echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
507echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R);
508echo "\">".htmlentities($c[$i]["name"])."</a></td>\n";
509echo "  <td>".format_size($c[$i]["size"])."</td><td>";
510$vu=$bro->viewurl($R,$c[$i]["name"]);
511if ($vu) {
512echo "<td><a href=\"$vu\">"._("View")."</a>";
513} else {
514echo "<td>&nbsp;";
515}
516echo "</td>\n";
517} else {
518echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\"  name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
519echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
520echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n";
521echo "  <td>".format_size($c[$i]["size"])."</td><td>";
522echo "&nbsp;";
523echo "</td>\n";
524}
525
526echo "</tr>\n";
527}
528echo "</table>";
529echo "</td></tr>";
530echo "</table>";
531break;
532}
533?>
534     </form>
535<?php
536         } // is there any files here ?
537else {
538  echo "<p class=\"error\">"._("No files in this folder")."</p>";
539}
540?>
541
542     </td></tr>
543     <tr><td colspan="2" style="">
544
545     <p>&nbsp;</p>
546
547<p>
548<span class="ina"><a href="bro_main.php?R=<?php echo $R; ?>&showdirsize=1"><?php __("Show size of directories"); ?></a></span> <?php __("(slow)"); ?>
549</p><p>&nbsp;</p><p>
550<span class="ina"><?php
551if ($hta->is_protected($R)) {
552echo "<a href=\"hta_edit.php?dir=".(($R)?$R:"/")."\">"._("Edit this folder's protection")."</a>";
553}
554else {
555  echo "<a href=\"hta_add.php?value=".(($R)?$R:"/")."\">"._("Protect this folder")."</a>";
556}
557?></span> <?php __("with a login and a password"); ?>
558</p><p>
559<span class="ina">
560  <a href="bro_tgzdown.php?dir=<?php echo $R; ?>"><?php __("Download this folder"); ?></a>
561</span> &nbsp;
562  <?php printf(_("as a %s file"),$bro->l_tgz[$p["downfmt"]]); ?>
563</span>
564</p>   
565     <?php
566
567     if ($id=$ftp->is_ftp($R)) {
568?>
569<span class="ina">
570         <a href="ftp_edit.php?id=<?php ehe($id); ?>"><?php __("Edit the ftp account"); ?></a>
571</span> &nbsp; <?php __("that exists in this folder"); ?>
572<?php
573}
574else {
575?>
576<span class="ina">
577    <a href="ftp_add.php?dir=<?php ehe($R); ?>"><?php __("Create an ftp account in this folder"); ?></a>
578</span> &nbsp;
579<?php
580}
581
582?>
583<p>&nbsp;</p>
584<p>
585<span class="ina">
586  <a href="bro_pref.php"><?php __("Configure the file editor"); ?></a>
587</span>
588</p>
589</td></tr></table>
590<?php include_once("foot.php"); ?>
Note: See TracBrowser for help on using the repository browser.