</div>
<div class="forum-post-content">
- <h3><?php echo AT_Print(htmlspecialchars($row['subject'], ENT_COMPAT, "UTF-8"), 'messages.subject'); ?></h3>
+ <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
<div>
<div class="forum-post-ctrl">
<a href="inbox/send_message.php?reply=<?php echo $_GET['view']; ?>"><?php echo _AT('reply'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
</div>
<div class="body">
- <p><?php echo AT_print(htmlspecialchars($row['body'], ENT_COMPAT, "UTF-8"), 'messages.body'); ?></p>
+ <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
</div>
</div>
</div>
<div class="forum-post-content">
- <h3><?php echo AT_Print(htmlspecialchars($row['subject'], ENT_COMPAT, "UTF-8"), 'messages.subject'); ?></h3>
+ <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
<div>
<div class="forum-post-ctrl">
<a href="inbox/send_message.php?forward=<?php echo $_GET['view']; ?>"><?php echo _AT('forward'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
</div>
<div class="body">
- <p><?php echo AT_print(htmlspecialchars($row['body'], ENT_COMPAT, "UTF-8"), 'messages.body'); ?></p>
+ <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
</div>
<div style="clear: both; font-size:0.1em"></div>
</div>
- </div>
</li>
</ul>
<?php
$_field_formatting['courses.*'] = AT_FORMAT_ALL & ~AT_FORMAT_EMOTICONS & ~AT_FORMAT_ATCODES & ~AT_FORMAT_LINKS & ~AT_FORMAT_IMAGES;
-$_field_formatting['forums.title'] = AT_FORMAT_NONE;
-$_field_formatting['forums.description'] = AT_FORMAT_ALL;
+$_field_formatting['forums.title'] = AT_FORMAT_NONE | AT_FORMAT_QUOTES;
+$_field_formatting['forums.description'] = AT_FORMAT_ALL | AT_FORMAT_QUOTES;
-$_field_formatting['forums_threads.subject'] = AT_FORMAT_ALL & ~AT_FORMAT_HTML;
-$_field_formatting['forums_threads.body'] = AT_FORMAT_ALL & ~AT_FORMAT_HTML;
+$_field_formatting['forums_threads.subject'] = AT_FORMAT_ALL & ~AT_FORMAT_HTML | AT_FORMAT_QUOTES;
+$_field_formatting['forums_threads.body'] = AT_FORMAT_ALL & ~AT_FORMAT_HTML | AT_FORMAT_QUOTES;
$_field_formatting['glossary.word'] = AT_FORMAT_NONE;
$_field_formatting['glossary.definition'] = AT_FORMAT_ALL & ~AT_FORMAT_HTML;
$_field_formatting['members.*'] = AT_FORMAT_NONE; /* wildcards are okay */
-$_field_formatting['messages.subject'] = AT_FORMAT_EMOTICONS + AT_FORMAT_IMAGES;
-$_field_formatting['messages.body'] = AT_FORMAT_EMOTICONS + AT_FORMAT_LINKS + AT_FORMAT_IMAGES + AT_FORMAT_ATCODES;
+$_field_formatting['messages.subject'] = AT_FORMAT_EMOTICONS + AT_FORMAT_IMAGES | AT_FORMAT_QUOTES;
+$_field_formatting['messages.body'] = AT_FORMAT_EMOTICONS + AT_FORMAT_LINKS + AT_FORMAT_IMAGES + AT_FORMAT_ATCODES | AT_FORMAT_QUOTES;
$_field_formatting['news.title'] = AT_FORMAT_EMOTICONS | AT_FORMAT_LINKS & ~AT_FORMAT_HTML;
$_field_formatting['news.body'] = AT_FORMAT_ALL;
if (mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_assoc($result)) {
- echo '° <a href="' . $_base_path.url_rewrite('mods/_standard/forums/forum/view.php?fid=' . $row['forum_id'] . SEP . 'pid=' . $row['post_id']) . '" title="' . $row['subject'] . ': ' . htmlspecialchars(get_display_name($row['member_id'])) . '">' . AT_print(validate_length($row['subject'], 20, VALIDATE_LENGTH_FOR_DISPLAY), 'forums_threads.subject') . '</a><br />';
+ echo '° <a href="' . $_base_path.url_rewrite('mods/_standard/forums/forum/view.php?fid=' . $row['forum_id'] . SEP . 'pid=' . $row['post_id']) . '" title="' . AT_print($row['subject'], 'forums_threads.subject') . ': ' . htmlspecialchars(get_display_name($row['member_id'])) . '">' . AT_print(validate_length($row['subject'], 20, VALIDATE_LENGTH_FOR_DISPLAY), 'forums_threads.subject') . '</a><br />';
}
} else {
echo '<strong>'._AT('none_found').'</strong>';
}
if ($row['locked'] != 1) {
- echo '<a href="'.url_rewrite('mods/_standard/forums/forum/view.php?fid='.$fid.SEP.'pid='.$row['post_id']).'" title="'.$full_subject.'">'.$row['subject'].'</a>';
+ echo '<a href="'.url_rewrite('mods/_standard/forums/forum/view.php?fid='.$fid.SEP.'pid='.$row['post_id']).'" title="'.AT_print($full_subject, 'forums_threads.subject').'">'.$row['subject'].'</a>';
if ($row['locked'] == 2) {
echo ' <i class="spacer">('._AT('post_lock').')</i>';
if ($num_pages_2 > 1) {
echo ' <small class="spacer">( Page: ';
for ($i=2; $i<=$num_pages_2; $i++) {
- echo '<a href="'.url_rewrite('mods/_standard/forums/forum/view.php?fid='.$fid.SEP.'pid='.$row['post_id'].SEP.'page='.$i).'" title="'.$full_subject.'">'.$i.'</a>';
+ echo '<a href="'.url_rewrite('mods/_standard/forums/forum/view.php?fid='.$fid.SEP.'pid='.$row['post_id'].SEP.'page='.$i).'" title="'.AT_print($full_subject, 'forums_threads.subject').'">'.$i.'</a>';
if ($i<$num_pages_2){
echo ' | ';
<?php foreach($all_forums['nonshared'] as $row): ?>\r
<tr onmousedown="document.form['f<?php echo $row['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['forum_id']; ?>">\r
<td width="10"><input type="radio" name="id" value="<?php echo $row['forum_id']; ?>" id="f<?php echo $row['forum_id']; ?>" /></td>\r
- <td><label for="f<?php echo $row['forum_id']; ?>"><?php echo AT_print(htmlentities_utf8($row['title']), 'forums.title'); ?></label></td>\r
- <td><?php echo AT_print(htmlentities_utf8($row['description']), 'forums.description'); ?></td>\r
+ <td><label for="f<?php echo $row['forum_id']; ?>"><?php echo AT_print($row['title'], 'forums.title'); ?></label></td>\r
+ <td><?php echo AT_print($row['description'], 'forums.description'); ?></td>\r
<td>\r
<?php if (!$row['mins_to_edit']): ?>\r
<?php echo _AT('no'); ?>\r
</div>
<div class="forum-post-content">
- <h3><?php echo AT_Print(htmlspecialchars($row['subject'], ENT_COMPAT, "UTF-8"), 'forums_threads.subject'); ?></h3>
+ <h3><?php echo AT_print($row['subject'], 'forums_threads.subject'); ?></h3>
<div>
<div class="forum-post-ctrl">
<?php if (authenticate(AT_PRIV_FORUMS, AT_PRIV_RETURN)): ?>
</div>
<div class="body">
- <p><?php echo AT_print(htmlspecialchars($row['body'], ENT_COMPAT, "UTF-8"), 'forums_threads.body'); ?></p>
+ <p><?php echo AT_print($row['body'], 'forums_threads.body'); ?></p>
</div>
</div>
</li>