root/ip/trunk/mail_digests.php

157170
398
				$this_msg = preg_replace('/\\n/', '<br />', $this_msg);
398
				$this_msg = preg_replace('/\\n/', '<br />', $this_msg);
399
				$msg .= $this_msg . $line_break;
399
				$msg .= $this_msg . $line_break;
400
				*/
400
				*/
401
				$bbcode->allow_html = ($config['allow_html'] ? $config['allow_html'] : false);
401
				if (empty($bbcode) && class_exists('bbcode'))
402
				$bbcode->allow_bbcode = ($config['allow_bbcode'] ? $config['allow_bbcode'] : true);
402
				{
403
				$bbcode->allow_smilies = ($config['allow_smilies'] ? $config['allow_smilies'] : true);
403
					unset($bbcode);
404
					$bbcode = new bbcode();
405
				}
406
				$bbcode->allow_html = (isset($config['allow_html']) ? $config['allow_html'] : false);
407
				$bbcode->allow_bbcode = (isset($config['allow_bbcode']) ? $config['allow_bbcode'] : true);
408
				$bbcode->allow_smilies = (isset($config['allow_smilies']) ? $config['allow_smilies'] : true);
404
				$post_text = $bbcode->parse($post_text);
409
				$post_text = $bbcode->parse($post_text);
405
				$this_msg = '<td class="row1"><div class="post-text">' . $post_text . '</div></td>';
410
				$this_msg = '<td class="row1"><div class="post-text">' . $post_text . '</div></td>';
406
				if ($bbcode->allow_bbcode == false)
411
				if (empty($bbcode->allow_bbcode))
407
				{
412
				{
408
					$this_msg = str_replace("\n", "<br />", preg_replace("/\r\n/", "\n", $this_msg));
413
					$this_msg = str_replace("\n", "<br />", preg_replace("/\r\n/", "\n", $this_msg));
409
				}
414
				}