Changeset 1802
- Timestamp:
- 04/19/07 11:12:58 (2 years ago)
- Files:
-
- alternc/branches/franck-desktop/bureau/admin/adm_defquotas.php (modified) (1 diff)
- alternc/branches/franck-desktop/bureau/admin/bro_main.php (modified) (2 diffs)
- alternc/branches/franck-desktop/bureau/admin/mail_list.php (modified) (3 diffs)
- alternc/branches/franck-desktop/bureau/class/m_mail.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/branches/franck-desktop/bureau/admin/adm_defquotas.php
r1797 r1802 79 79 <?php 80 80 $col=1; 81 $qarray=$quota->qlist();82 81 $qlist=$quota->getdefaults(); 82 $aqlist = $quota->qlist(); 83 83 reset($qlist); 84 foreach($qlist as $type => $q) { 84 foreach($qlist as $qname => $q) 85 { 86 85 87 ?> 86 <div> 87 <h4><?php echo _("Accounts of type"). " \"$type\"" ?></h4> 88 <h4><?php echo _("Accounts of type"). " \"" . $qname . "\"" ?></h4> 88 89 <table border="0" cellpadding="4" cellspacing="0"> 89 90 <tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr> 90 91 <?php 91 foreach($q as $name => $value) { 92 $key = $type . ":" . $name; 93 $col=3-$col; 92 93 foreach($aqlist as $aqtype => $aqname) 94 { 95 $key = $qname . ":" . $aqtype; 96 $col=3-$col; 97 94 98 ?> 99 <tr class="lst<?php echo $col; ?>"> 100 <td><label for="<?php echo $key; ?>"><?php echo $aqname; ?></label></td> 101 <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> 102 <?php 95 103 96 <tr class="lst<?php echo $col; ?>"> 97 <td><label for="<?php echo $key; ?>"><?php echo $qarray[$name]; ?></label></td> 98 <td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $name; ?>" value="<?php echo $value; ?>" /></td></tr> 99 <?php 100 } 104 } 105 101 106 ?> 102 107 </table> 103 </div>104 108 <?php 109 105 110 } 111 106 112 ?> 107 113 <input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" /> alternc/branches/franck-desktop/bureau/admin/bro_main.php
r1797 r1802 41 41 switch ($formu) { 42 42 case 1: // Créer le répertoire $R.$nomfich 43 $bro->CreateDir($R,$nomfich); 43 if (!$bro->CreateDir($R,$nomfich)) { 44 echo $err->errstr(); 45 } 44 46 $p=$bro->GetPrefs(); 45 47 break; 46 48 case 6: // Créer le fichier $R.$nomfich 47 $bro->CreateFile($R,$nomfich); 49 if (!$bro->CreateFile($R,$nomfich)) { 50 echo $err->errstr(); 51 } 48 52 $p=$bro->GetPrefs(); 49 53 if ($p["createfile"]==1) { … … 55 59 case 2: // act vaut Supprimer Copier ou Renommer. 56 60 if ($actdel) { 57 $bro->DeleteFile($d,$R); 61 if($del_confirm == _("Yes")) { 62 if (!$bro->DeleteFile($d,$R)) { 63 print $err->errstr(); 64 } 65 } 66 else if (!$cancel) 67 { 68 69 ?> 70 <h3><?php printf(_("Deleting files and/or directories")); ?></h3> 71 <form action="bro_main.php" method="post"> 72 <input type="hidden" name="formu" value="2" /> 73 <input type="hidden" name="actdel" value="1" /> 74 <input type="hidden" name="R" value="<?php echo $R?>" /> 75 <p class="error"><?php __("WARNING : Confirm the deletion of this files"); ?></p> 76 <?php foreach($d as $file){ ?> 77 <p><?php echo stripslashes($file); ?></p> 78 <input type="hidden" name="d[]" value="<?php echo htmlentities(stripslashes($file)); ?>" /> 79 <?php } ?> 80 <blockquote> 81 <input type="submit" class="inb" name="del_confirm" value="<?php __("Yes"); ?>" /> 82 <input type="submit" class="inb" name="cancel" value="<?php __("No"); ?>" /> 83 </blockquote> 84 </form> 85 <?php 86 include_once("foot.php"); 87 die(); 88 } 58 89 } 59 90 if ($actmove) { 60 $bro->MoveFile($d,$R,$actmoveto); 91 if (!$bro->MoveFile($d,$R,$actmoveto)) { 92 echo $err->errstr(); 93 } 61 94 } 62 95 break; 63 96 case 4: // Renommage Effectif... 64 $bro->RenameFile($R,$o,$d); // Rename $R (directory) $o (old) $d (new) names 97 if (!$bro->RenameFile($R,$o,$d)) { // Rename $R (directory) $o (old) $d (new) names 98 echo $err->errstr(); 99 } 65 100 break; 66 101 case 3: // Upload de fichier... 67 $bro->UploadFile($R); 68 break; 102 if (!$bro->UploadFile($R)) { 103 echo $err->errstr(); 104 } 105 break; 69 106 } 70 107 } alternc/branches/franck-desktop/bureau/admin/mail_list.php
r1797 r1802 44 44 } 45 45 46 if(!$res=$mail->enum_doms_mails($domain,1,$letter)) { 46 if(!$res=$mail->enum_doms_mails($domain,1,$letter)) 47 { 47 48 $error=$err->errstr(); 49 48 50 ?> 49 <h3><?php printf(_("Mailbox list of the domain %s"), "http://$domain"); ?> :</h3>51 <h3><?php printf(_("Mailbox list of the domain %s"), $domain); ?></h3> 50 52 <?php 51 53 if ($error) { 52 54 echo "<p class=\"error\">$error</p>"; 53 55 } 54 echo "<p><a href=\"mail_add.php?domain= $domain\">".sprintf(_("Add a mailbox on <b>%s</b>"),$domain)."</a><br />";55 echo " <a href=\"mail_add.php?many=1&domain= $domain\">".sprintf(_("Add many mailboxes on <b>%s</b>"),$domain)."</a></p>";56 echo "<p><a href=\"mail_add.php?domain=" . $domain . "\">".sprintf(_("Add a mailbox on <b>%s</b>"), $domain)."</a><br />"; 57 echo " <a href=\"mail_add.php?many=1&domain=" . $domain . "\">".sprintf(_("Add many mailboxes on <b>%s</b>"), $domain)."</a></p>"; 56 58 57 59 } … … 60 62 61 63 ?> 62 <h3><?php printf(_("Mailbox list of the domain %s"), "http://$domain"); ?> :</h3>64 <h3><?php printf(_("Mailbox list of the domain %s"), $domain); ?></h3> 63 65 <?php 64 66 if ($error) { … … 66 68 } 67 69 68 echo "<p><a href=\"mail_add.php?domain= $domain\">".sprintf(_("Add a mailbox on <b>%s</b>"),$domain)."</a><br />";69 echo " <a href=\"mail_add.php?many=1&domain= $domain\">".sprintf(_("Add many mailboxes on <b>%s</b>"),$domain)."</a></p>";70 echo "<p><a href=\"mail_add.php?domain=" . $domain . "\">".sprintf(_("Add a mailbox on <b>%s</b>"), $domain)."</a><br />"; 71 echo " <a href=\"mail_add.php?many=1&domain=" . $domain . "\">".sprintf(_("Add many mailboxes on <b>%s</b>"), $domain)."</a></p>"; 70 72 71 73 if(!$letters=$mail->enum_doms_mails_letters($domain)) alternc/branches/franck-desktop/bureau/class/m_mail.php
r1797 r1802 109 109 $letter = ""; 110 110 else 111 $letter = "%$letter";111 $letter .= "%"; 112 112 $db->query("SELECT mail,pop,alias FROM mail_domain WHERE mail LIKE '".addslashes($letter)."@".addslashes($dom)."' AND uid='$cuid' AND type=0;"); 113 113 $res=array(); $i=0;
