Index: /alternc/branches/franck-desktop/bureau/class/m_mail.php
===================================================================
--- /alternc/branches/franck-desktop/bureau/class/m_mail.php	(revision 1797)
+++ /alternc/branches/franck-desktop/bureau/class/m_mail.php	(revision 1802)
@@ -109,5 +109,5 @@
 			$letter = "";
     else
-			$letter = "%$letter";
+			$letter .= "%";
     $db->query("SELECT mail,pop,alias FROM mail_domain WHERE mail LIKE '".addslashes($letter)."@".addslashes($dom)."' AND uid='$cuid' AND type=0;");
     $res=array(); $i=0;
Index: /alternc/branches/franck-desktop/bureau/admin/mail_list.php
===================================================================
--- /alternc/branches/franck-desktop/bureau/admin/mail_list.php	(revision 1797)
+++ /alternc/branches/franck-desktop/bureau/admin/mail_list.php	(revision 1802)
@@ -44,14 +44,16 @@
 }
 
-if(!$res=$mail->enum_doms_mails($domain,1,$letter)) {
+if(!$res=$mail->enum_doms_mails($domain,1,$letter))
+{
   $error=$err->errstr();
+
 ?>
-<h3><?php printf(_("Mailbox list of the domain %s"),"http://$domain"); ?> : </h3>
+<h3><?php printf(_("Mailbox list of the domain %s"), $domain); ?></h3>
 <?php
 if ($error) {
   echo "<p class=\"error\">$error</p>";
 }
-echo "<p><a href=\"mail_add.php?domain=$domain\">".sprintf(_("Add a mailbox on <b>%s</b>"),$domain)."</a><br />";
-echo "   <a href=\"mail_add.php?many=1&amp;domain=$domain\">".sprintf(_("Add many mailboxes on <b>%s</b>"),$domain)."</a></p>";
+echo "<p><a href=\"mail_add.php?domain=" . $domain . "\">".sprintf(_("Add a mailbox on <b>%s</b>"), $domain)."</a><br />";
+echo "   <a href=\"mail_add.php?many=1&amp;domain=" . $domain . "\">".sprintf(_("Add many mailboxes on <b>%s</b>"), $domain)."</a></p>";
 
 }
@@ -60,5 +62,5 @@
 
 ?>
-<h3><?php printf(_("Mailbox list of the domain %s"),"http://$domain"); ?> : </h3>
+<h3><?php printf(_("Mailbox list of the domain %s"), $domain); ?></h3>
 <?php
 if ($error) {
@@ -66,6 +68,6 @@
 }
 
-echo "<p><a href=\"mail_add.php?domain=$domain\">".sprintf(_("Add a mailbox on <b>%s</b>"),$domain)."</a><br />";
-echo "   <a href=\"mail_add.php?many=1&amp;domain=$domain\">".sprintf(_("Add many mailboxes on <b>%s</b>"),$domain)."</a></p>";
+echo "<p><a href=\"mail_add.php?domain=" . $domain . "\">".sprintf(_("Add a mailbox on <b>%s</b>"), $domain)."</a><br />";
+echo "   <a href=\"mail_add.php?many=1&amp;domain=" . $domain . "\">".sprintf(_("Add many mailboxes on <b>%s</b>"), $domain)."</a></p>";
 
 if(!$letters=$mail->enum_doms_mails_letters($domain))
Index: /alternc/branches/franck-desktop/bureau/admin/adm_defquotas.php
===================================================================
--- /alternc/branches/franck-desktop/bureau/admin/adm_defquotas.php	(revision 1797)
+++ /alternc/branches/franck-desktop/bureau/admin/adm_defquotas.php	(revision 1802)
@@ -79,29 +79,35 @@
 <?php
 $col=1;
-$qarray=$quota->qlist();
 $qlist=$quota->getdefaults();
+$aqlist = $quota->qlist();
 reset($qlist);
-foreach($qlist as $type => $q) {
+foreach($qlist as $qname => $q)
+{
+
 ?>
-<div>
-<h4><?php echo _("Accounts of type"). " \"$type\"" ?></h4>
+<h4><?php echo _("Accounts of type"). " \"" . $qname . "\"" ?></h4>
 <table border="0" cellpadding="4" cellspacing="0">
 <tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr>
 <?php
-foreach($q as $name => $value) {
-	$key = $type . ":" . $name;
-	$col=3-$col;
+
+	foreach($aqlist as $aqtype => $aqname)
+	{
+		$key = $qname . ":" . $aqtype;
+		$col=3-$col;
+
 ?>
+<tr class="lst<?php echo $col; ?>">
+<td><label for="<?php echo $key; ?>"><?php echo $aqname; ?></label></td>
+<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $key; ?>" value="<?php echo $q[$aqtype]; ?>" /></td></tr>
+<?php
 
-<tr class="lst<?php echo $col; ?>">
-<td><label for="<?php echo $key; ?>"><?php echo $qarray[$name]; ?></label></td>
-<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $name; ?>" value="<?php echo $value; ?>" /></td></tr>
-<?php
-  }
+	}
+
 ?>
 </table>
-</div>
 <?php
+
 }
+
 ?>
 <input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" />
Index: /alternc/branches/franck-desktop/bureau/admin/bro_main.php
===================================================================
--- /alternc/branches/franck-desktop/bureau/admin/bro_main.php	(revision 1797)
+++ /alternc/branches/franck-desktop/bureau/admin/bro_main.php	(revision 1802)
@@ -41,9 +41,13 @@
   switch ($formu) {
   case 1:  // Créer le répertoire $R.$nomfich
-    $bro->CreateDir($R,$nomfich);
+    if (!$bro->CreateDir($R,$nomfich)) {
+      echo $err->errstr();
+    }
     $p=$bro->GetPrefs();
     break;
   case 6: // Créer le fichier $R.$nomfich
-    $bro->CreateFile($R,$nomfich);
+    if (!$bro->CreateFile($R,$nomfich)) {
+      echo $err->errstr();
+    }
     $p=$bro->GetPrefs();
     if ($p["createfile"]==1) {
@@ -55,16 +59,49 @@
   case 2:  // act vaut Supprimer Copier ou Renommer.
     if ($actdel) {
-      $bro->DeleteFile($d,$R);
+      if($del_confirm == _("Yes")) {
+        if (!$bro->DeleteFile($d,$R)) {
+          print $err->errstr();
+        }
+      }
+      else if (!$cancel)
+      {
+
+?>
+  <h3><?php printf(_("Deleting files and/or directories")); ?></h3>
+  <form action="bro_main.php" method="post">
+    <input type="hidden" name="formu" value="2" />
+    <input type="hidden" name="actdel" value="1" />
+    <input type="hidden" name="R" value="<?php echo $R?>" />
+    <p class="error"><?php __("WARNING : Confirm the deletion of this files"); ?></p>
+<?php foreach($d as $file){ ?>
+	<p><?php echo stripslashes($file); ?></p>
+        <input type="hidden" name="d[]" value="<?php echo htmlentities(stripslashes($file)); ?>" />
+<?php } ?>
+    <blockquote>
+      <input type="submit" class="inb" name="del_confirm" value="<?php __("Yes"); ?>" />&nbsp;&nbsp;
+      <input type="submit" class="inb" name="cancel" value="<?php __("No"); ?>" />
+    </blockquote>
+  </form>
+<?php
+				include_once("foot.php");
+        die();
+      }
     }
     if ($actmove) {
-      $bro->MoveFile($d,$R,$actmoveto);
+      if (!$bro->MoveFile($d,$R,$actmoveto)) {
+        echo $err->errstr();
+      }
     }
     break;
   case 4:  // Renommage Effectif...
-    $bro->RenameFile($R,$o,$d); // Rename $R (directory) $o (old) $d (new) names
+    if (!$bro->RenameFile($R,$o,$d)) { // Rename $R (directory) $o (old) $d (new) names
+      echo $err->errstr();
+    }
     break;
   case 3:  // Upload de fichier...
-    $bro->UploadFile($R);
-    break;
+    if (!$bro->UploadFile($R)) {
+      echo $err->errstr();
+    }
+		break;
   }
 }
