|
|
|
|
@ -79,7 +79,7 @@ foreach ($rows as $post) { |
|
|
|
|
$thread_structure.= $post_image; |
|
|
|
|
if ($_GET['post']==$post['post_id'] OR ($counter==1 AND !isset($_GET['post']))) |
|
|
|
|
{ |
|
|
|
|
$thread_structure.='<strong>'.prepare4display($post['post_title']).'</strong></div>'; |
|
|
|
|
$thread_structure.='<strong>'.prepare4display(Security::remove_XSS($post['post_title'],STUDENT)).'</strong></div>'; |
|
|
|
|
$prev_next_array[]=$post['post_id']; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
@ -93,7 +93,7 @@ foreach ($rows as $post) { |
|
|
|
|
$class=''; |
|
|
|
|
} |
|
|
|
|
$count_loop=($count==0)?'&id=1' : ''; |
|
|
|
|
$thread_structure.= "<a href=\"viewthread.php?".api_get_cidreq()."&forum=".Security::remove_XSS($_GET['forum'])."&thread=".Security::remove_XSS($_GET['thread'])."&post=".$post['post_id']."&origin=$origin$count_loop\" $class>".prepare4display($post['post_title'])."</a></div>\n"; |
|
|
|
|
$thread_structure.= "<a href=\"viewthread.php?".api_get_cidreq()."&forum=".Security::remove_XSS($_GET['forum'])."&thread=".Security::remove_XSS($_GET['thread'])."&post=".$post['post_id']."&origin=$origin$count_loop\" $class>".prepare4display(Security::remove_XSS($post['post_title'],STUDENT))."</a></div>\n"; |
|
|
|
|
$prev_next_array[]=$post['post_id']; |
|
|
|
|
} |
|
|
|
|
$count++; |
|
|
|
|
@ -276,7 +276,7 @@ if ($rows[$display_post_id]['post_notification']=='1' AND $rows[$display_post_id |
|
|
|
|
$post_image.=icon('../img/forumnotification.gif',get_lang('YouWillBeNotified')); |
|
|
|
|
} |
|
|
|
|
// The post title |
|
|
|
|
echo "\t\t<td class=\"$titleclass\">".prepare4display(Security::remove_XSS($rows[$display_post_id]['post_title']))."</td>\n"; |
|
|
|
|
echo "\t\t<td class=\"$titleclass\">".prepare4display(Security::remove_XSS($rows[$display_post_id]['post_title'], STUDENT))."</td>\n"; |
|
|
|
|
echo "\t</tr>\n"; |
|
|
|
|
|
|
|
|
|
// The post message |
|
|
|
|
|