Changeset 721
- Timestamp:
- 02/22/06 03:08:27 (7 years ago)
- Location:
- bureau
- Files:
-
- 2 edited
-
admin/bro_main.php (modified) (1 diff)
-
class/m_bro.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bureau/admin/bro_main.php
r398 r721 85 85 <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a> / <?php echo $bro->PathList($R,"bro_main.php") ?><br /> 86 86 <small> 87 <b>88 <?php echo format_size($bro->sizetot); ?> / <?php $s=$quota->getquota("web"); echo format_size($s["u"]*1024); ?>89 (max: <?php echo format_size($s["t"]*1024); ?>)90 </b><br /></small>91 87 <?php if ($error) echo "<font color=\"red\">$error</font>"; ?> 92 88 </td><td valign="top" align="right"> -
bureau/class/m_bro.php
r718 r721 39 39 class m_bro { 40 40 41 /** Taille totale du dossier après appel à FileList */42 var $sizetot=0;43 44 41 /** Mode d'affichage des fichiers en colonne */ 45 42 var $l_mode=array(0=>"1 column, detailed",1=>"2 columns, short",2=>"3 columns, short"); … … 113 110 * membre courant 114 111 * @return array le tableau contenant les fichiers de $dir, et 115 * $this->sizetot contient en sortie la taille totale du dossier $dir (en octets).116 112 */ 117 113 function filelist($dir="") { … … 119 115 $db->query("UPDATE browser SET lastdir='$dir' WHERE uid='$cuid';"); 120 116 $absolute=$this->convertabsolute($dir,0); 121 $this->sizetot=0;122 117 if ($dir = @opendir($absolute)) { 123 118 while (($file = readdir($dir)) !== false) { 124 119 if ($file!="." && $file!="..") { 125 $size=$this->fsize($absolute."/".$file);126 $this->sizetot+=$size;127 120 $c[]=array("name"=>$file, "size"=>$size, "date"=>filemtime($absolute."/".$file), "type"=> (!is_dir($absolute."/".$file)) ); 128 121 }
Note: See TracChangeset
for help on using the changeset viewer.
