Changeset 19004
- Timestamp:
- Nov 13, 2012, 7:47:49 PM (11 years ago)
- Location:
- extensions/Mail_supervisor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/mail_send.inc.php
r13572 r19004 67 67 *************************************/ 68 68 static public function send_mail_content($content){ 69 global $myclContent; 70 $myclContent=$content ; 69 71 70 72 return $content; … … 138 140 $cvt_subject = encode_mime_header($cvt_subject); 139 141 140 if (!isset($args['content'])) { 141 $args['content'] = ''; 142 } 142 143 143 144 144 if (empty($args['content_format'])) { … … 336 336 if(count($content_type_list)>1) 337 337 $content.= $conf_mail[$cache_key]['header']; 338 339 global $myclContent; 340 if (!isset($args['content'])) { 341 $args['content'] = ''; 342 343 344 if($myclContent && $myclContent!="" ){ 345 $args['content'] = "Hello myclContent: ".$myclContent; 346 $myclContent=""; 347 $content_type=""; 348 } 349 } 338 350 339 351 // Content … … 345 357 htmlspecialchars($args['content']))). 346 358 '</p>'; 347 } 348 else if (($args['content_format'] == 'text/html') and ($content_type == 'text/plain')) 349 { 359 } else if (($args['content_format'] == 'text/html') and ($content_type == 'text/plain')) { 350 360 // convert html text to plain text 351 361 $content.= strip_tags($args['content']); … … 353 363 $content.= $args['content']; 354 364 } 355 365 356 366 // Footer 357 367 $content.= $conf_mail[$cache_key]['footer']; … … 401 411 402 412 //=========================================== 413 403 414 404 415 // Undo Compute root_path in order have complete path -
extensions/Mail_supervisor/main.inc.php
r13572 r19004 2 2 /* 3 3 Plugin Name: Mail supervisor 4 Version: auto4 Version: 1.5.8 5 5 Description: Mail supervisor surveille l'envoie des mails. 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=315 … … 59 59 include_once (MAIL_SUPERV_PATH.'include/fonctions.php'); 60 60 load_language('plugin.lang', MAIL_SUPERV_PATH); 61 61 62 62 $arg_trigg= array($mailto, $subject, $content, $headers, $args); 63 63 trigger_event('mail_supervisor_clj_mail',$arg_trigg);
Note: See TracChangeset
for help on using the changeset viewer.