Changeset 4050 for extensions/Mail_supervisor/include
- Timestamp:
- Oct 16, 2009, 11:34:41 AM (15 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.