Changeset 1838 in ExiteCMS for modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php
- Timestamp:
- 10/09/08 12:48:28 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php
r1736 r1838 24 24 } 25 25 require_once $webroot."includes/core_functions.php"; 26 require_once PATH_INCLUDES."forum_functions_include.php"; 26 27 27 28 // create a siteurl link from the m2f host settings … … 70 71 if ($settings['m2f_smtp_debug']) $mail->SMTPDebug = 2; 71 72 72 if (file_exists(PATH_INCLUDES."languages/phpmailer.lang-".$settings[' phpmailer_locale'].".php")) {73 $mail->SetLanguage($settings[' phpmailer_locale'], PATH_INCLUDES."language/");73 if (file_exists(PATH_INCLUDES."languages/phpmailer.lang-".$settings['PHPmailer_locale'].".php")) { 74 $mail->SetLanguage($settings['PHPmailer_locale'], PATH_INCLUDES."language/"); 74 75 } else { 75 76 $mail->SetLanguage("en", PATH_INCLUDES."language/"); … … 267 268 268 269 // initialize PHP-Mailer 269 require_once PATH_INCLUDES." phpmailer_include.php";270 require_once PATH_INCLUDES."class.phpmailer.php"; 270 271 $mail = new PHPMailer(); 271 272 mailer_init(); 272 273 273 274 // get the last polled time from the configuration 274 if (empty($settings['m2f_last_polled']) {275 if (empty($settings['m2f_last_polled'])) { 275 276 // the first time we start. Forget all old posts for now 276 277 $lastpoll = time(); … … 374 375 $HTMLbody = $postrecord['post_message']; 375 376 // if ($postrecord['post_showsig']) { $HTMLbody = $HTMLbody."\n\n<hr>".$postrecord['user_sig']; } 376 if ($postrecord['post_smileys']) { $HTMLbody = parsesmileys($HTMLbody); } 377 $HTMLbody = parseubb($HTMLbody); 378 $HTMLbody = nl2br($HTMLbody); 377 $HTMLbody = parsemessage(array(), $HTMLbody, $postrecord['post_smileys'], false); 379 378 380 379 $TEXTbody = $edit_post?($locale['m2f814']."\r\n\r\n"):"";
Note: See TracChangeset
for help on using the changeset viewer.
