Changeset 19018 for extensions/Mail_supervisor
- Timestamp:
- Nov 15, 2012, 8:34:42 AM (12 years ago)
- Location:
- extensions/Mail_supervisor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/mail_send.inc.php
r19011 r19018 60 60 *************************************/ 61 61 static public function send_mail_subject($cvt_subject){ 62 62 global $cl_cvt_subject; 63 $cl_cvt_subject=$cvt_subject; 63 64 return $cvt_subject; 64 65 } … … 67 68 *************************************/ 68 69 static public function send_mail_content($content){ 69 global $myclContent ;70 global $myclContent,$cl_externe_content; 70 71 $myclContent=$content ; 71 72 $cl_externe_content=true ; 72 73 return $content; 73 74 } … … 135 136 $args['subject'] = 'Piwigo'; 136 137 } 138 139 global $cl_cvt_subject; 140 if($cl_cvt_subject) 141 $args['subject']=$cl_cvt_subject; 142 137 143 // Spring cleaning 138 144 $cvt_subject = trim(preg_replace('#[\n\r]+#s', '', $args['subject'])); … … 335 341 // Header 336 342 if(count($content_type_list)>1) 337 $content.= $conf_mail[$cache_key]['header']; 338 339 global $myclContent; 343 $content.= $conf_mail[$cache_key]['header']; 344 global $myclContent,$cl_externe_content; 340 345 if (!isset($args['content'])) { 341 $args['content'] = ''; 342 343 344 if($myclContent && $myclContent!="" ){ 346 $args['content'] = ''; 347 if($cl_externe_content && $myclContent!="" ){ 345 348 $args['content'] = $myclContent; 346 349 $myclContent=""; 347 $content_type=""; 350 if ($conf['ContactForm']['cf_mail_type'] == 'text/plain'){ 351 352 }else if ($conf['ContactForm']['cf_mail_type'] == 'text/html'){ 353 $content_type =""; 354 }; 348 355 } 349 356 } 350 357 351 358 // Content 352 359 if (($args['content_format'] == 'text/plain') and ($content_type == 'text/html')) { … … 363 370 $content.= $args['content']; 364 371 } 365 372 if(!$cl_externe_content){ 366 373 // Footer 367 374 $content.= $conf_mail[$cache_key]['footer']; 368 375 } 369 376 // Close boundary 370 377 if(count($content_type_list)>1) -
extensions/Mail_supervisor/main.inc.php
r19010 r19018 2 2 /* 3 3 Plugin Name: Mail supervisor 4 Version: 1.5. 8.a4 Version: 1.5.9 5 5 Description: Mail supervisor surveille l'envoie des mails. 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=315
Note: See TracChangeset
for help on using the changeset viewer.