Changeset 4049 for extensions/Mail_supervisor/include/fonctions.php
- Timestamp:
- Oct 16, 2009, 10:26:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/include/fonctions.php
r4045 r4049 29 29 if (!defined('MAIL_SUPERV_PATH')) define('MAIL_SUPERV_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 30 30 31 load_language('plugin.lang', MAIL_SUPERV_PATH); 31 32 32 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 33 33 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 34 34 35 35 include_once (MAIL_SUPERV_PATH.'include/function_test_send.php'); 36 37 load_language('plugin.lang', MAIL_SUPERV_PATH); 36 38 37 39 global $period_search,$period_match ; … … 79 81 80 82 `message` = "'.$mails_données['message'].'", 81 `message_test` 83 `message_test` = "'.$mails_données['message_test'].'", 82 84 `header_text` = "'.$mails_données['header_text'].'" 83 85 WHERE `id` =1 LIMIT 1 '; … … 177 179 return $data; 178 180 } 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 179 201 180 202 //================================================================================= … … 182 204 { 183 205 global $mails_options,$conf_mail,$mailto,$args; 184 $headers = preg_replace('/.*'.$Carbonne.'(.*).\n/i', $Carbonne.' : '.get_strict_email_list(implode(' , ', $args[$Carbonne]))."\n", $headers); 185 186 return $headers; 206 $headers = preg_replace('/.*'.$Carbonne.'(.*).\n/i', $Carbonne.' : '.get_strict_email_list()."\n", $headers); 207 return $headers; 187 208 188 209 … … 340 361 '.time().', 341 362 2000, 342 "1 week",363 "1 "'.l10n('Week').'", 343 364 344 365 0, 345 366 '.time().', 346 367 10, 347 "2 day",368 "2 "'.l10n('Day').'", 348 369 349 370 false, 350 371 '.time().', 351 "2 day",372 "2 "'.l10n('Day').'", 352 373 353 374 "Init.", 375 "'.l10n('supervisor').'", 354 376 "'.l10n('hello').'" 355 377 )
Note: See TracChangeset
for help on using the changeset viewer.