websiteWebsite
bechamail Bechamail
Bechamail est un outil de gestion des adresses email par domaine, avant tout orienté utilisateur final.

 

Browse the code

Differences between 133 and 134 on /.
Number of edited files: 6 (0 added, 0 deleted and 6 modified)
Author: zenjo
Log message: Correction probleme charset dans l'envoi d'emails + var transport et MX dans la config
Date: 2010-01-09 12:25:55

Added file(s) Deleted file(s) Modified file(s)

 

Old New Code
3 3
<entry
4 4
   kind="dir"
5 5
   path="."
6  
   revision="132">
  6
   revision="133">
7 7
<url>http://svn.codingteam.net/code/bechamail/versions/0.9.2.alpha</url>
8 8
<repository>
9 9
<root>http://svn.codingteam.net/code/bechamail</root>
13 13
<schedule>normal</schedule>
14 14
</wc-info>
15 15
<commit
16  
   revision="132">
  16
   revision="133">
17 17
<author>zenjo</author>
18  
<date>2009-12-30T12:49:34.032951Z</date>
  18
<date>2010-01-01T15:02:49.148866Z</date>
19 19
</commit>
20 20
</entry>
21 21
</info>
22 22

                                        

 

Old New Code
163 163

                                        
164 164
VERIFIEZSICELACONVIENT => "V&eacute;rifiez si cela convient",
165 165
VEUILLEZVOUSENREMETTREALADMINSYSTEME => "Veuillez vous en remettre aux instructions que vous a transmises l'administrateur syst&egrave;me",
166  
VOTRECOMPTEBECHAMAILAETEACTIVE => "Votre compte Bechamail a &eacute;t&eacute; activ&eacute;",
167  
VOTRENOUVELLEBOITEEMAILAETEACTIVEE => "Votre nouvelle boite email a &eacute;t&eacute; activ&eacute;e",
168 166
VOUSDEVEZCOCHERLACASEDECONFIRMATION => "Vous devez cocher la case de confirmation",
169 167
VOUSDEVEZREPETERLEMOTDEPASSE => "Vous devez répéter votre mot de passe, afin d'être certain que ce que vous avez écrit correspond bien à ce que vous avez voulu écrire.",
170 168
VOUSDEVEZREMPLIRLECHAMP => "Vous devez remplir le champ",
171 169

                                        

 

Old New Code
69 69
L'équipe de support.
70 70
",
71 71

                                        
  72
// V
  73
VOTRECOMPTEBECHAMAILAETEACTIVE => "Votre compte Bechamail a été activé",
  74
VOTRENOUVELLEBOITEEMAILAETEACTIVEE => "Votre nouvelle boite email a été activée",
  75

                                    
72 76
PAS_DE_VIRGULE => "Pour les distraits."
73 77

                                        
74 78
);
75 79

                                        

 

Old New Code
213 213
//$conf_alias_gen_transport = false;
214 214

                                        
215 215
// MX et transport
216  
// Un(et un seul de vos records MX 
  216
// Un (et un seul) de vos records MX 
217 217
$conf_record_mx = "mail.cassiopea.org";
218 218

                                        
219  
// Intiyule exacte de vos transports local (en general maildrop ou virtual) et remote (en general smtp)
  219
// Intitule exact de vos transports local (en general maildrop ou virtual) et remote (en general smtp)
220 220
// dans la table des transports.
221 221
$conf_transport_local = "maildrop:";
222 222
$conf_transport_remote = "smtp:";
223 223

                                        

 

Old New Code
204 204
// $conf_alias_gen_transport = false;
205 205

                                        
206 206
// MX et transport
207  
// Un(et un seul de vos records MX 
  207
// Un (et un seul) de vos records MX 
208 208
$conf_record_mx = "mail.domain.tld";
209 209

                                        
210  
// Intiyule exacte de vos transports local (en general maildrop ou virtual) et remote (en general smtp)
  210
// Intitule exact de vos transports local (en general maildrop ou virtual) et remote (en general smtp)
211 211
// dans la table des transports.
212 212
$conf_transport_local = "transport_local";
213 213
$conf_transport_remote = "transport_remote";
214 214

                                        

 

Old New Code
278 278
// string "valeur", string "poid", bool "existe", bool "local".
279 279
function retourne_mx ($hostname) {
280 280
GLOBAL $conf_demo, $conf_record_mx;
281  
   if ($conf_demo) {return "Fonction désactivée dans la démo";}
  281
   $mxarray = array("valeur" => "", "poid" => "", "existe" => false, "local" => false);
  282
   if ($conf_demo) {$mxarray["valeur"] = "Fonction désactivée dans la démo"; return $mxarray;}
282 283
   $mxhosts=array();$weight=array();$chainemx="";$poidmx="";
283  
   $mxarray = array("valeur" => "", "poid" => "", "existe" => false, "local" => false);
284 284
   if (getmxrr($hostname, $mxhosts, $weight)) {
285 285
      foreach($mxhosts as $wkey => $mxval) {
286 286
         $chainemx .= $mxval.", ";
318 318

                                        
319 319
// verifie la correspondance transport et MX (string (to return), stirng (transport), bool (MX local))
320 320
function verif_correspondance_transport_mx($trmx, $tr, $mxlocal) {
321  
GLOBAL $conf_transport_local, $conf_transport_remote;
  321
GLOBAL $conf_transport_local, $conf_transport_remote, $conf_demo;
322 322

                                        
323 323
   $ok = false;
324 324
   if ($mxlocal AND $tr == $conf_transport_local) {$ok = true;}
325 325
   if (!$mxlocal AND $tr == $conf_transport_remote) {$ok = true;}
326  
   if ($ok) {$trmx = $trmx;}
  326
   if ($ok OR $conf_demo) {$trmx = $trmx;}
327 327
      else {$trmx = "<span style='background:red;color:yellow;'>".$trmx."</span>";}
328 328
   return $trmx;
329 329
}
330 330