Changeset 4050 for extensions/Mail_supervisor
- Timestamp:
- Oct 16, 2009, 11:34:41 AM (15 years ago)
- Location:
- extensions/Mail_supervisor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/include/fonctions.php
r4049 r4050 180 180 } 181 181 //=============================================== 182 function not_is_empty($variable) 183 { 184 global $args; 185 186 echo $variable." ".count($args[$variable]) ; 187 if (isset($args[$variable])) 188 189 { 190 191 if ( count($args[$variable]) > 0) ; 192 { 193 echo count($args[$variable]) ; 194 $args[$variable]=array_filter($args[$variable]); 195 echo count($args[$variable]) ; 196 197 } 198 } 199 } 200 201 202 //================================================================================= 182 203 183 function corrige_header($Carbonne,$headers) 204 184 { 205 global $mails_options,$conf_mail,$mailto,$args; 206 $headers = preg_replace('/.*'.$Carbonne.'(.*).\n/i', $Carbonne.' : '.get_strict_email_list()."\n", $headers); 185 global $mails_options,$conf_mail,$mailto,$args,$infos_message; 186 187 if (!empty($args[$Carbonne])) 188 { 189 190 if ( count($args[$Carbonne]) > 0 ) 191 { 192 if ($mails_options[1] == 'on') { 193 // Correction "< >" 194 $list_mail = get_strict_email_list(implode(',', $args[$Carbonne])) ; 195 $headers = preg_replace('/.*'.$Carbonne.'(.*).\n/i', $Carbonne.' : '.$list_mail."\n", $headers); 196 } 197 } 198 } else { 199 // Raz Bcc, Cc dans headers 200 $headers = preg_replace('/.*'.$Carbonne.'(.*).\n/i', "" , $headers); 201 } 202 203 204 207 205 return $headers; 208 206 -
extensions/Mail_supervisor/language/fr_FR/plugin.lang.php
r4045 r4050 2 2 global $lang ; 3 3 /* 4 5 4 $lang['nbm_msg_error_sending_email_to'] = 'Erreur lors de l\'envoi du mail à %s [%s].'; 6 5 $lang['nbm_msg_mail_sent_to'] = 'Mail envoyé à %s [%s].'; … … 10 9 $lang['nbm_msg_n_mails_not_send'] = '%s mails n\'ont pas été envoyés.'; 11 10 $lang['nbm_no_mail_to_send'] = 'Pas de mail à envoyer.'; 12 13 11 */ 14 12 -
extensions/Mail_supervisor/main.inc.php
r4049 r4050 24 24 /* 25 25 Plugin Name: Mail supervisor 26 Version: 1.1. 126 Version: 1.1.4 27 27 Description: Mail supervisor surveille l'envoie des mails. 28 28 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=315 … … 119 119 if (!empty($args['Cc'])) 120 120 { 121 if ($mails_options[1] == 'on') { $headers= corrige_header('Cc',$headers);} 121 $headers= corrige_header('Cc',$headers); 122 122 123 } 123 124 if (!empty($args['Bcc'])) 124 125 { 125 if ($mails_options[1] == 'on') { $headers = corrige_header('Bcc',$headers);}126 $headers = corrige_header('Bcc',$headers); 126 127 } 127 128
Note: See TracChangeset
for help on using the changeset viewer.