root/ip/trunk/fetchposts.php

155170
50
		$i = 0;
50
		$i = 0;
51
		do
51
		do
52
		{
52
		{
53
			$posts[$i]['enable_bbcode'] = $row['enable_bbcode'];
54
			$posts[$i]['enable_html'] = $row['enable_html'];
53
			$posts[$i]['enable_smilies'] = $row['enable_smilies'];
55
			$posts[$i]['enable_smilies'] = $row['enable_smilies'];
56
			$posts[$i]['enable_autolinks_acronyms'] = $row['enable_autolinks_acronyms'];
54
			$posts[$i]['post_text'] = $row['post_text'];
57
			$posts[$i]['post_text'] = $row['post_text'];
55
			$posts[$i]['forum_id'] = $row['forum_id'];
58
			$posts[$i]['forum_id'] = $row['forum_id'];
56
			$posts[$i]['topic_id'] = $row['topic_id'];
59
			$posts[$i]['topic_id'] = $row['topic_id'];
...
...
65
68
66
			$message_compiled = empty($posts[$i]['post_text_compiled']) ? false : $posts[$i]['post_text_compiled'];
69
			$message_compiled = empty($posts[$i]['post_text_compiled']) ? false : $posts[$i]['post_text_compiled'];
67
70
68
			$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['allow_bbcode']);
71
			$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['enable_bbcode']) ? true : false;
69
			$bbcode->allow_html = (($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html'];
72
			$bbcode->allow_html = ((($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html']) ? true : false;
70
			if ($config['allow_smilies'] && !$lofi)
73
			$bbcode->allow_smilies = ($config['allow_smilies'] && $posts[$i]['enable_smilies'] && !$lofi) ? true : false;
71
			{
72
				$bbcode->allow_smilies = $config['allow_smilies'];
73
			}
74
			else
75
			{
76
				$bbcode->allow_smilies = false;
77
			}
78
74
79
			$clean_tags = false;
75
			$clean_tags = false;
80
			if ((strlen($posts[$i]['post_text']) > $text_length) && ($text_length > 0))
76
			if ((strlen($posts[$i]['post_text']) > $text_length) && ($text_length > 0))
...
...
190
		$i = 0;
186
		$i = 0;
191
		do
187
		do
192
		{
188
		{
189
			$posts[$i]['enable_bbcode'] = $row['enable_bbcode'];
190
			$posts[$i]['enable_html'] = $row['enable_html'];
193
			$posts[$i]['enable_smilies'] = $row['enable_smilies'];
191
			$posts[$i]['enable_smilies'] = $row['enable_smilies'];
194
			$posts[$i]['enable_autolinks_acronyms'] = $row['enable_autolinks_acronyms'];
192
			$posts[$i]['enable_autolinks_acronyms'] = $row['enable_autolinks_acronyms'];
195
			$posts[$i]['post_text'] = $row['post_text'];
193
			$posts[$i]['post_text'] = $row['post_text'];
...
...
209
207
210
			$message_compiled = empty($posts[$i]['post_text_compiled']) ? false : $posts[$i]['post_text_compiled'];
208
			$message_compiled = empty($posts[$i]['post_text_compiled']) ? false : $posts[$i]['post_text_compiled'];
211
209
212
			$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['allow_bbcode']);
210
			$bbcode->allow_bbcode = ($config['allow_bbcode'] && $userdata['user_allowbbcode'] && $posts[$i]['enable_bbcode']) ? true : false;
213
			$bbcode->allow_html = (($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html'];
211
			$bbcode->allow_html = ((($config['allow_html'] && $userdata['user_allowhtml']) || $config['allow_html_only_for_admins']) && $posts[$i]['enable_html']) ? true : false;
214
			$bbcode->allow_smilies = ($config['allow_smilies'] && !$lofi) ? $config['allow_smilies'] : false;
212
			$bbcode->allow_smilies = ($config['allow_smilies'] && $posts[$i]['enable_smilies'] && !$lofi) ? true : false;
215
213
216
			$clean_tags = false;
214
			$clean_tags = false;
217
			if ((strlen($posts[$i]['post_text']) > $text_length) && ($text_length > 0))
215
			if ((strlen($posts[$i]['post_text']) > $text_length) && ($text_length > 0))