Indentation du browser
This commit is contained in:
		
							parent
							
								
									7bb6330129
								
							
						
					
					
						commit
						5eb7f14086
					
				|  | @ -27,7 +27,7 @@ | ||||||
|    Purpose of file: Online file Browser of AlternC |    Purpose of file: Online file Browser of AlternC | ||||||
|    TODO : Voir ??? + Déplacer / Copier  |    TODO : Voir ??? + Déplacer / Copier  | ||||||
|    ---------------------------------------------------------------------- |    ---------------------------------------------------------------------- | ||||||
| */ |  */ | ||||||
| require_once("../class/config.php"); | require_once("../class/config.php"); | ||||||
| include_once ("head.php"); | include_once ("head.php"); | ||||||
| 
 | 
 | ||||||
|  | @ -88,23 +88,23 @@ if (!empty($formu) && $formu) { | ||||||
|           } |           } | ||||||
|         } elseif (empty($cancel) && is_array($d)) { |         } elseif (empty($cancel) && is_array($d)) { | ||||||
|           include_once("head.php"); |           include_once("head.php"); | ||||||
| ?>
 |           ?>
 | ||||||
|             <h3><?php printf(_("Deleting files and/or directories")); ?> : </h3>
 |             <h3><?php printf(_("Deleting files and/or directories")); ?> : </h3>
 | ||||||
|             <form action="bro_main.php" method="post" name="main" id="main">   |             <form action="bro_main.php" method="post" name="main" id="main">   | ||||||
|             <input type="hidden" name="formu" value="2" /> |             <input type="hidden" name="formu" value="2" /> | ||||||
|             <input type="hidden" name="actdel" value="1" /> |             <input type="hidden" name="actdel" value="1" /> | ||||||
|             <input type="hidden" name="R" value="<?php echo ehe($R)?>" /> |             <input type="hidden" name="R" value="<?php echo ehe($R)?>" /> | ||||||
|             <p class="error"><?php __("WARNING: Confirm the deletion of this files"); ?></p>
 |             <p class="error"><?php __("WARNING: Confirm the deletion of this files"); ?></p>
 | ||||||
| <?php foreach($d as $editfile){ ?>
 |             <?php foreach($d as $editfile){ ?>
 | ||||||
|               <p><?php echo stripslashes($editfile); ?></p>
 |               <p><?php echo stripslashes($editfile); ?></p>
 | ||||||
|                 <input type="hidden" name="d[]" value="<?php echo htmlentities(stripslashes($editfile)); ?>" /> |                 <input type="hidden" name="d[]" value="<?php echo htmlentities(stripslashes($editfile)); ?>" /> | ||||||
| <?php } ?>
 |                 <?php } ?>
 | ||||||
|                 <blockquote> |                 <blockquote> | ||||||
|                 <input type="submit" class="inb" name="del_confirm" value="<?php __("Yes"); ?>" />   |                 <input type="submit" class="inb" name="del_confirm" value="<?php __("Yes"); ?>" />   | ||||||
|           <input type="submit" class="inb" name="cancel" value="<?php __("No"); ?>" /> |           <input type="submit" class="inb" name="cancel" value="<?php __("No"); ?>" /> | ||||||
|             </blockquote> |             </blockquote> | ||||||
|             </form> |             </form> | ||||||
| <?php |             <?php | ||||||
|             include_once("foot.php"); |             include_once("foot.php"); | ||||||
|           exit(); |           exit(); | ||||||
|         } |         } | ||||||
|  | @ -163,7 +163,7 @@ if ($c===false) $error=$err->errstr(); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| <p class="breadcrumb"> | <p class="breadcrumb"> | ||||||
|  <?php __("Path"); ?> / <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a> / <?php echo $bro->PathList($R,"bro_main.php") ?>
 | <?php __("Path"); ?> / <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a> / <?php echo $bro->PathList($R,"bro_main.php") ?>
 | ||||||
| </p> | </p> | ||||||
| 
 | 
 | ||||||
| <?php if (isset($error) && $error) echo "<p class=\"error\">$error</p>"; ?>
 | <?php if (isset($error) && $error) echo "<p class=\"error\">$error</p>"; ?>
 | ||||||
|  | @ -171,17 +171,17 @@ if ($c===false) $error=$err->errstr(); | ||||||
| <table><tr> | <table><tr> | ||||||
| <td class="formcell"> | <td class="formcell"> | ||||||
| 
 | 
 | ||||||
|      <form action="bro_main.php" enctype="multipart/form-data" method="post"> | <form action="bro_main.php" enctype="multipart/form-data" method="post"> | ||||||
|      <input type="hidden" name="R" value="<?php echo $R; ?>" /> | <input type="hidden" name="R" value="<?php echo $R; ?>" /> | ||||||
|      <input type="hidden" name="formu" value="3" /> | <input type="hidden" name="formu" value="3" /> | ||||||
| 
 | 
 | ||||||
|      <?php __("Send one file:"); ?><br />
 | <?php __("Send one file:"); ?><br />
 | ||||||
| <input class="int" name="userfile" type="file" /> | <input class="int" name="userfile" type="file" /> | ||||||
|      <input type="hidden" name="MAX_FILE_SIZE" value="10000000" /> | <input type="hidden" name="MAX_FILE_SIZE" value="10000000" /> | ||||||
| <br /> | <br /> | ||||||
|      <input type="submit" id="sendthisfile" class="ina" value="<?php __("Send this file"); ?>" /> | <input type="submit" id="sendthisfile" class="ina" value="<?php __("Send this file"); ?>" /> | ||||||
| 
 | 
 | ||||||
|      </form> | </form> | ||||||
| 
 | 
 | ||||||
| </td> | </td> | ||||||
| <td style="width: 20px"> </td> | <td style="width: 20px"> </td> | ||||||
|  | @ -264,302 +264,302 @@ if ($formu==2 && ! (empty($actperms)) && count($d)) { | ||||||
| /* We draw the file list and button bar only if there is files here ! */ | /* We draw the file list and button bar only if there is files here ! */ | ||||||
| if (count($c)) { | if (count($c)) { | ||||||
| 
 | 
 | ||||||
| ?>
 |   ?>
 | ||||||
| <form action="bro_main.php" method="post" name="main" id="main"> |     <form action="bro_main.php" method="post" name="main" id="main"> | ||||||
| <input type="hidden" name="R" value="<?php echo $R; ?>" /> |     <input type="hidden" name="R" value="<?php echo $R; ?>" /> | ||||||
| <input type="hidden" name="formu" value="2" /> |     <input type="hidden" name="formu" value="2" /> | ||||||
| 
 | 
 | ||||||
| <br /> |     <br /> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| <table width="100%" style="border: 0px"> |     <table width="100%" style="border: 0px"> | ||||||
| <tr><td class="lst2" style="padding: 4px 4px 8px 4px"> |     <tr><td class="" style="padding: 4px 4px 8px 4px"> | ||||||
| 
 | 
 | ||||||
| <input type="submit" class="ina" name="actdel" value="<?php __("Delete"); ?>" /> |     <input type="submit" class="ina" name="actdel" value="<?php __("Delete"); ?>" /> | ||||||
| <input type="submit" class="ina" name="actrename" value="<?php __("Rename"); ?>" /> |     <input type="submit" class="ina" name="actrename" value="<?php __("Rename"); ?>" /> | ||||||
| <input type="submit" class="ina" name="actperms" value="<?php __("Permissions"); ?>" />  |     <input type="submit" class="ina" name="actperms" value="<?php __("Permissions"); ?>" />  | ||||||
|   |  |       |  | ||||||
| <input type="submit" class="ina" name="actcopy" value="<?php __("Copy"); ?>" /> |   <input type="submit" class="ina" name="actcopy" value="<?php __("Copy"); ?>" /> | ||||||
| <input type="submit" class="ina" name="actmove" value="<?php __("Move"); ?>" /> |     <input type="submit" class="ina" name="actmove" value="<?php __("Move"); ?>" /> | ||||||
| <?php __("To"); ?> 
 |     <?php __("To"); ?> 
 | ||||||
| <input type="text" class="int" name="actmoveto" value="" /> |     <input type="text" class="int" name="actmoveto" value="" /> | ||||||
| <?php display_browser( "" , "main.actmoveto" ); ?>
 |     <?php display_browser( "" , "main.actmoveto" ); ?>
 | ||||||
| 
 | 
 | ||||||
| </td></tr> |     </td></tr> | ||||||
| 
 | 
 | ||||||
| </table> |     </table> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| <?php |     <?php | ||||||
|     switch ($p["listmode"]) { |     switch ($p["listmode"]) { | ||||||
| case 0: |       case 0: | ||||||
| /* AFFICHE 1 COLONNE DETAILLEE */ |         /* AFFICHE 1 COLONNE DETAILLEE */ | ||||||
| reset($c); |         reset($c); | ||||||
| echo "<table width=\"100%\" class=\"tlist\" style=\"border: 0px\" cellpadding=\"2\" cellspacing=\"0\">"; |         echo "<table width=\"100%\" class=\"tlist\" style=\"border: 0px\" cellpadding=\"2\" cellspacing=\"0\">"; | ||||||
| ?>
 |         ?>
 | ||||||
| <tr><th> |           <tr><th> | ||||||
| <script type="text/javascript"> |           <script type="text/javascript"> | ||||||
| <!-- |           <!-- | ||||||
| document.write("<input type=\"checkbox\" id=\"checkall\" value=\"1\" class=\"inb\" onclick=\"CheckAll();\" />"); |           document.write("<input type=\"checkbox\" id=\"checkall\" value=\"1\" class=\"inb\" onclick=\"CheckAll();\" />"); | ||||||
| //  -->
 |         //  -->
 | ||||||
| </script> |         </script> | ||||||
| </th> |           </th> | ||||||
| <?php if ($p["showicons"]) { ?>
 |           <?php if ($p["showicons"]) { ?>
 | ||||||
| <th></th> |             <th></th> | ||||||
|               <?php } ?>
 |               <?php } ?>
 | ||||||
| <th><?php __("Filename"); ?></th>
 |               <th><?php __("Filename"); ?></th>
 | ||||||
| <th><?php __("Size"); ?></th>
 |               <th><?php __("Size"); ?></th>
 | ||||||
| <th><?php __("Last modification"); ?></th>
 |               <th><?php __("Last modification"); ?></th>
 | ||||||
| <?php if ($p["showtype"]) { ?>
 |               <?php if ($p["showtype"]) { ?>
 | ||||||
| <th><?php __("File Type"); ?></th>
 |                 <th><?php __("File Type"); ?></th>
 | ||||||
|                   <?php } ?>
 |                   <?php } ?>
 | ||||||
| <th></th> |                   <th></th> | ||||||
| </tr> |                   </tr> | ||||||
| <?php |                   <?php | ||||||
| 
 | 
 | ||||||
| $col=1; |                   $col=1; | ||||||
| for($i=0;$i<count($c);$i++) { |         for($i=0;$i<count($c);$i++) { | ||||||
| $col=3-$col; |           $col=3-$col; | ||||||
| echo "<tr class=\"lst$col\">\n";
 |           echo "<tr class=\"lst$col\">\n";
 | ||||||
| if ($c[$i]["type"]) { |           if ($c[$i]["type"]) { | ||||||
| echo "	<td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".htmlentities($c[$i]["name"])."\" /></td>"; |             echo "  <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".htmlentities($c[$i]["name"])."\" /></td>"; | ||||||
| if ($p["showicons"]) { |             if ($p["showicons"]) { | ||||||
| echo "<td width=\"28\"><img src=\"icon/".$bro->icon($c[$i]["name"])."\" width=\"16\" height=\"16\" alt=\"\" /></td>"; |               echo "<td width=\"28\"><img src=\"icon/".$bro->icon($c[$i]["name"])."\" width=\"16\" height=\"16\" alt=\"\" /></td>"; | ||||||
| } |             } | ||||||
| echo "<td><a href=\""; |             echo "<td><a href=\""; | ||||||
| $canedit = $bro->can_edit($R,$c[$i]["name"]); |             $canedit = $bro->can_edit($R,$c[$i]["name"]); | ||||||
| if ($canedit) { |             if ($canedit) { | ||||||
|               echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); |               echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); | ||||||
| } else { |             } else { | ||||||
|               echo "bro_downloadfile.php?dir=".urlencode($R)."&file=".urlencode($c[$i]["name"]); |               echo "bro_downloadfile.php?dir=".urlencode($R)."&file=".urlencode($c[$i]["name"]); | ||||||
| } |             } | ||||||
| echo "\">"; ehe($c[$i]["name"]); echo"</a></td>\n"; |             echo "\">"; ehe($c[$i]["name"]); echo"</a></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td>"; | ||||||
| echo "<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>"; |             echo "<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>"; | ||||||
| if ($p["showtype"]) { |             if ($p["showtype"]) { | ||||||
| echo "<td>"._($bro->mime($c[$i]["name"]))."</td>"; |               echo "<td>"._($bro->mime($c[$i]["name"]))."</td>"; | ||||||
| } |             } | ||||||
| $vu=$bro->viewurl($R,$c[$i]["name"]); |             $vu=$bro->viewurl($R,$c[$i]["name"]); | ||||||
| if ($vu) { |             if ($vu) { | ||||||
| echo "<td><a href=\"$vu\">"._("View")."</a>";
 |               echo "<td><a href=\"$vu\">"._("View")."</a>";
 | ||||||
| } else { |             } else { | ||||||
| echo "<td> "; |               echo "<td> "; | ||||||
| } |             } | ||||||
| $e = $bro->is_extractable($R,$c[$i]["name"]); |             $e = $bro->is_extractable($R,$c[$i]["name"]); | ||||||
| if ($e) { |             if ($e) { | ||||||
|               echo " <a href=\"bro_main.php?actextract=1&fileextract=".urlencode($c[$i]["name"])."&R=".urlencode($R)."\">"; |               echo " <a href=\"bro_main.php?actextract=1&fileextract=".urlencode($c[$i]["name"])."&R=".urlencode($R)."\">"; | ||||||
|               echo _("Extract"); |               echo _("Extract"); | ||||||
|               echo "</a>"; |               echo "</a>"; | ||||||
| } |             } | ||||||
| 
 | 
 | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } else {           // DOSSIER :
 |           } else {           // DOSSIER :
 | ||||||
| echo "	<td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".htmlentities($c[$i]["name"])."\" /></td>"; |             echo "  <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".htmlentities($c[$i]["name"])."\" /></td>"; | ||||||
| if ($p["showicons"]) { |             if ($p["showicons"]) { | ||||||
| echo "<td width=\"28\"><img src=\"icon/folder.png\" width=\"16\" height=\"16\" alt=\"\" /></td>"; |               echo "<td width=\"28\"><img src=\"icon/folder.png\" width=\"16\" height=\"16\" alt=\"\" /></td>"; | ||||||
| } |             } | ||||||
| echo "<td><b><a href=\""; |             echo "<td><b><a href=\""; | ||||||
| echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); |             echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td>"; | ||||||
| echo "<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>"; |             echo "<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>"; | ||||||
| if ($p["showtype"]) { |             if ($p["showtype"]) { | ||||||
|               echo "<td>"._("Folder")."</td>"; |               echo "<td>"._("Folder")."</td>"; | ||||||
| } |             } | ||||||
| echo "<td> "; |             echo "<td> "; | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } |           } | ||||||
| 
 | 
 | ||||||
| echo "</tr>\n"; |           echo "</tr>\n"; | ||||||
| } |         } | ||||||
| echo "</table>"; |         echo "</table>"; | ||||||
| break; |         break; | ||||||
| case 1: |       case 1: | ||||||
| /* AFFICHE 2 COLONNES COURTES */ |         /* AFFICHE 2 COLONNES COURTES */ | ||||||
| reset($c); |         reset($c); | ||||||
| echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; |         echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; | ||||||
| echo "<tr><td valign=\"top\" width=\"50%\">"; |         echo "<tr><td valign=\"top\" width=\"50%\">"; | ||||||
| echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; |         echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; | ||||||
| $col=1; |         $col=1; | ||||||
| for($i=0;$i<round(count($c)/2);$i++) { |         for($i=0;$i<round(count($c)/2);$i++) { | ||||||
| $col=3-$col; |           $col=3-$col; | ||||||
| echo "<tr class=\"lst$col\">\n";
 |           echo "<tr class=\"lst$col\">\n";
 | ||||||
| if ($c[$i]["type"]) { |           if ($c[$i]["type"]) { | ||||||
| echo "	<td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td><td><a href=\""; |             echo "  <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td><td><a href=\""; | ||||||
| echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); |             echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| $vu=$bro->viewurl($R,$c[$i]["name"]); |             $vu=$bro->viewurl($R,$c[$i]["name"]); | ||||||
| if ($vu) { |             if ($vu) { | ||||||
| echo "<td><a href=\"$vu\">"._("V")."</a>";
 |               echo "<td><a href=\"$vu\">"._("V")."</a>";
 | ||||||
| } else { |             } else { | ||||||
| echo "<td> "; |               echo "<td> "; | ||||||
| } |             } | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } else { |           } else { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; | ||||||
| echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); |             echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| echo " "; |             echo " "; | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } |           } | ||||||
| 
 | 
 | ||||||
| echo "</tr>\n"; |           echo "</tr>\n"; | ||||||
| } |         } | ||||||
| echo "</table>"; |         echo "</table>"; | ||||||
| echo "</td><td valign=\"top\" width=\"50%\">"; |         echo "</td><td valign=\"top\" width=\"50%\">"; | ||||||
| echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; |         echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; | ||||||
| $col=1; |         $col=1; | ||||||
| for($i=round(count($c)/2);$i<count($c);$i++) { |         for($i=round(count($c)/2);$i<count($c);$i++) { | ||||||
| $col=3-$col; |           $col=3-$col; | ||||||
| echo "<tr class=\"lst$col\">\n";
 |           echo "<tr class=\"lst$col\">\n";
 | ||||||
| if ($c[$i]["type"]) { |           if ($c[$i]["type"]) { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; | ||||||
| echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); |             echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| $vu=$bro->viewurl($R,$c[$i]["name"]); |             $vu=$bro->viewurl($R,$c[$i]["name"]); | ||||||
| if ($vu) { |             if ($vu) { | ||||||
| echo "<td><a href=\"$vu\">"._("V")."</a>";
 |               echo "<td><a href=\"$vu\">"._("V")."</a>";
 | ||||||
| } else { |             } else { | ||||||
| echo "<td> "; |               echo "<td> "; | ||||||
| } |             } | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } else { |           } else { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; | ||||||
| echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); |             echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| echo " "; |             echo " "; | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } |           } | ||||||
| 
 | 
 | ||||||
| echo "</tr>\n"; |           echo "</tr>\n"; | ||||||
| } |         } | ||||||
| echo "</table>"; |         echo "</table>"; | ||||||
| echo "</td></tr>"; |         echo "</td></tr>"; | ||||||
| echo "</table>"; |         echo "</table>"; | ||||||
| break; |         break; | ||||||
| case 2: |       case 2: | ||||||
| /* AFFICHE 3 COLONNES COURTES */ |         /* AFFICHE 3 COLONNES COURTES */ | ||||||
| reset($c); |         reset($c); | ||||||
| echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; |         echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; | ||||||
| echo "<tr><td valign=\"top\" width=\"33%\">"; |         echo "<tr><td valign=\"top\" width=\"33%\">"; | ||||||
| echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; |         echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; | ||||||
| $col=1; |         $col=1; | ||||||
| for($i=0;$i<round(count($c)/3);$i++) { |         for($i=0;$i<round(count($c)/3);$i++) { | ||||||
| $col=3-$col; |           $col=3-$col; | ||||||
| echo "<tr class=\"lst$col\">\n";
 |           echo "<tr class=\"lst$col\">\n";
 | ||||||
| if ($c[$i]["type"]) { |           if ($c[$i]["type"]) { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; | ||||||
| echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); |             echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| $vu=$bro->viewurl($R,$c[$i]["name"]); |             $vu=$bro->viewurl($R,$c[$i]["name"]); | ||||||
| if ($vu) { |             if ($vu) { | ||||||
| echo "<td><a href=\"$vu\">"._("V")."</a>";
 |               echo "<td><a href=\"$vu\">"._("V")."</a>";
 | ||||||
| } else { |             } else { | ||||||
| echo "<td> "; |               echo "<td> "; | ||||||
| } |             } | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } else { |           } else { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; | ||||||
| echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); |             echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| echo " "; |             echo " "; | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } |           } | ||||||
| 
 | 
 | ||||||
| echo "</tr>\n"; |           echo "</tr>\n"; | ||||||
| } |         } | ||||||
| echo "</table>"; |         echo "</table>"; | ||||||
| echo "</td><td valign=\"top\" width=\"33%\">"; |         echo "</td><td valign=\"top\" width=\"33%\">"; | ||||||
| echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; |         echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; | ||||||
| $col=1; |         $col=1; | ||||||
| for($i=round(count($c)/3);$i<round(2*count($c)/3);$i++) { |         for($i=round(count($c)/3);$i<round(2*count($c)/3);$i++) { | ||||||
| $col=3-$col; |           $col=3-$col; | ||||||
| echo "<tr class=\"lst$col\">\n";
 |           echo "<tr class=\"lst$col\">\n";
 | ||||||
| if ($c[$i]["type"]) { |           if ($c[$i]["type"]) { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; | ||||||
| echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); |             echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| $vu=$bro->viewurl($R,$c[$i]["name"]); |             $vu=$bro->viewurl($R,$c[$i]["name"]); | ||||||
| if ($vu) { |             if ($vu) { | ||||||
| echo "<td><a href=\"$vu\">"._("V")."</a>";
 |               echo "<td><a href=\"$vu\">"._("V")."</a>";
 | ||||||
| } else { |             } else { | ||||||
| echo "<td> "; |               echo "<td> "; | ||||||
| } |             } | ||||||
| 
 | 
 | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } else { |           } else { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; | ||||||
| echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); |             echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| echo " "; |             echo " "; | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } |           } | ||||||
| 
 | 
 | ||||||
| echo "</tr>\n"; |           echo "</tr>\n"; | ||||||
| } |         } | ||||||
| echo "</table>"; |         echo "</table>"; | ||||||
| echo "</td><td valign=\"top\" width=\"33%\">"; |         echo "</td><td valign=\"top\" width=\"33%\">"; | ||||||
| echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; |         echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>"; | ||||||
| $col=1; |         $col=1; | ||||||
| for($i=round(2*count($c)/3);$i<count($c);$i++) { |         for($i=round(2*count($c)/3);$i<count($c);$i++) { | ||||||
| $col=3-$col; |           $col=3-$col; | ||||||
| echo "<tr class=\"lst$col\">\n";
 |           echo "<tr class=\"lst$col\">\n";
 | ||||||
| if ($c[$i]["type"]) { |           if ($c[$i]["type"]) { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\""; | ||||||
| echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); |             echo "bro_editor.php?editfile=".urlencode($c[$i]["name"])."&R=".urlencode($R); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."</a></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| $vu=$bro->viewurl($R,$c[$i]["name"]); |             $vu=$bro->viewurl($R,$c[$i]["name"]); | ||||||
| if ($vu) { |             if ($vu) { | ||||||
| echo "<td><a href=\"$vu\">"._("View")."</a>";
 |               echo "<td><a href=\"$vu\">"._("View")."</a>";
 | ||||||
| } else { |             } else { | ||||||
| echo "<td> "; |               echo "<td> "; | ||||||
| } |             } | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } else { |           } else { | ||||||
| echo "	<td width=\"28\"><input TYPE=checkbox class=\"inc\"  name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; |             echo "  <td width=\"28\"><input TYPE=checkbox class=\"inc\"  name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\""; | ||||||
| echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); |             echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]); | ||||||
| echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; |             echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n"; | ||||||
| echo "	<td>".format_size($c[$i]["size"])."</td><td>"; |             echo "  <td>".format_size($c[$i]["size"])."</td><td>"; | ||||||
| echo " "; |             echo " "; | ||||||
| echo "</td>\n"; |             echo "</td>\n"; | ||||||
| } |           } | ||||||
| 
 | 
 | ||||||
| echo "</tr>\n"; |           echo "</tr>\n"; | ||||||
| } |         } | ||||||
| echo "</table>"; |         echo "</table>"; | ||||||
| echo "</td></tr>"; |         echo "</td></tr>"; | ||||||
| echo "</table>"; |         echo "</table>"; | ||||||
| break; |         break; | ||||||
| } |     } | ||||||
| ?>
 |   ?>
 | ||||||
|     </form> |     </form> | ||||||
| <?php |     <?php | ||||||
| 	 } // is there any files here ?
 | } // is there any files here ?
 | ||||||
| else { | else { | ||||||
|   echo "<p class=\"error\">"._("No files in this folder")."</p>"; |   echo "<p class=\"error\">"._("No files in this folder")."</p>"; | ||||||
| } | } | ||||||
| ?>
 | ?>
 | ||||||
| 
 | 
 | ||||||
|      </td></tr> | </td></tr> | ||||||
|      <tr><td colspan="2" style=""> | <tr><td colspan="2" style=""> | ||||||
| 
 | 
 | ||||||
|      <p> </p> | <br/> | ||||||
| 
 | 
 | ||||||
| <p> | <p> | ||||||
| <span class="ina"><a href="bro_main.php?R=<?php echo $R; ?>&showdirsize=1"><?php __("Show size of directories"); ?></a></span> <?php __("(slow)"); ?>
 | <span class="ina"><a href="bro_main.php?R=<?php echo $R; ?>&showdirsize=1"><?php __("Show size of directories"); ?></a></span> <?php __("(slow)"); ?>
 | ||||||
| </p><p> </p><p> | </p><p> </p><p> | ||||||
| <span class="ina"><?php | <span class="ina"><?php | ||||||
| if ($hta->is_protected($R)) { | if ($hta->is_protected($R)) { | ||||||
| echo "<a href=\"hta_edit.php?dir=".(($R)?$R:"/")."\">"._("Edit this folder's protection")."</a>"; |   echo "<a href=\"hta_edit.php?dir=".(($R)?$R:"/")."\">"._("Edit this folder's protection")."</a>"; | ||||||
| } | } | ||||||
| else { | else { | ||||||
|   echo "<a href=\"hta_add.php?value=".(($R)?$R:"/")."\">"._("Protect this folder")."</a>"; |   echo "<a href=\"hta_add.php?value=".(($R)?$R:"/")."\">"._("Protect this folder")."</a>"; | ||||||
|  | @ -567,33 +567,33 @@ else { | ||||||
| ?></span> <?php __("with a login and a password"); ?>
 | ?></span> <?php __("with a login and a password"); ?>
 | ||||||
| </p><p> | </p><p> | ||||||
| <span class="ina"> | <span class="ina"> | ||||||
|   <a href="bro_tgzdown.php?dir=<?php echo $R; ?>"><?php __("Download this folder"); ?></a>
 | <a href="bro_tgzdown.php?dir=<?php echo $R; ?>"><?php __("Download this folder"); ?></a>
 | ||||||
| </span>    | </span>    | ||||||
|   <?php printf(_("as a %s file"),$bro->l_tgz[$p["downfmt"]]); ?>
 | <?php printf(_("as a %s file"),$bro->l_tgz[$p["downfmt"]]); ?>
 | ||||||
| </span> | </span> | ||||||
| </p>   | </p>   | ||||||
|      <?php |  | ||||||
| 
 |  | ||||||
|      if ($id=$ftp->is_ftp($R)) { |  | ||||||
| ?>
 |  | ||||||
| <span class="ina"> |  | ||||||
| 	 <a href="ftp_edit.php?id=<?php ehe($id); ?>"><?php __("Edit the ftp account"); ?></a> 
 |  | ||||||
| </span>   <?php __("that exists in this folder"); ?>
 |  | ||||||
| <?php | <?php | ||||||
|  | 
 | ||||||
|  | if ($id=$ftp->is_ftp($R)) { | ||||||
|  |   ?>
 | ||||||
|  |     <span class="ina"> | ||||||
|  |     <a href="ftp_edit.php?id=<?php ehe($id); ?>"><?php __("Edit the ftp account"); ?></a> 
 | ||||||
|  |     </span>   <?php __("that exists in this folder"); ?>
 | ||||||
|  |     <?php | ||||||
| } | } | ||||||
| else { | else { | ||||||
| ?>
 |   ?>
 | ||||||
| <span class="ina"> |     <span class="ina"> | ||||||
|     <a href="ftp_edit.php?create=1&dir=<?php ehe($R); ?>"><?php __("Create an ftp account in this folder"); ?></a>
 |     <a href="ftp_edit.php?create=1&dir=<?php ehe($R); ?>"><?php __("Create an ftp account in this folder"); ?></a>
 | ||||||
| </span>   |     </span>   | ||||||
| <?php |   <?php | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ?>
 | ?>
 | ||||||
| <p> </p> | <p> </p> | ||||||
| <p> | <p> | ||||||
| <span class="ina"> | <span class="ina"> | ||||||
|   <a href="bro_pref.php"><?php __("Configure the file editor"); ?></a>
 | <a href="bro_pref.php"><?php __("Configure the file editor"); ?></a>
 | ||||||
| </span>  | </span>  | ||||||
| </p> | </p> | ||||||
| </td></tr></table> | </td></tr></table> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Alan Garcia
						Alan Garcia