|
@@ -26,6 +26,7 @@
|
|
|
if (isset($current_thread['thread_id'])){
|
|
|
|
|
|
$rows=get_posts($current_thread['thread_id']);
|
|
|
+$increment=0;
|
|
|
foreach ($rows as $row) {
|
|
|
echo "<table width=\"100%\" class=\"post\" cellspacing=\"5\" border=\"0\">\n";
|
|
|
// the style depends on the status of the message: approved or not
|
|
@@ -64,7 +65,9 @@ foreach ($rows as $row) {
|
|
|
echo "<a href=\"".api_get_self()."?".api_get_cidreq()."&forum=".Security::remove_XSS($_GET['forum'])."&thread=".Security::remove_XSS($_GET['thread'])."&action=delete&content=post&id=".$row['post_id']."&origin=".$origin."\" onclick=\"javascript:if(!confirm('".addslashes(htmlentities(get_lang("DeletePost"),ENT_QUOTES,$charset))."')) return false;\">".icon('../img/delete.gif',get_lang('Delete'))."</a>\n";
|
|
|
display_visible_invisible_icon('post', $row['post_id'], $row['visible'],array('forum'=>Security::remove_XSS($_GET['forum']),'thread'=>Security::remove_XSS($_GET['thread']), 'origin'=>$origin ));
|
|
|
echo "\n";
|
|
|
- echo "<a href=\"viewthread.php?".api_get_cidreq()."&forum=".Security::remove_XSS($_GET['forum'])."&thread=".Security::remove_XSS($_GET['thread'])."&action=move&post=".$row['post_id']."&origin=".$origin."\">".icon('../img/deplacer_fichier.gif',get_lang('MovePost'))."</a>";
|
|
|
+ if ($increment>0) {
|
|
|
+ echo "<a href=\"viewthread.php?".api_get_cidreq()."&forum=".Security::remove_XSS($_GET['forum'])."&thread=".Security::remove_XSS($_GET['thread'])."&action=move&post=".$row['post_id']."&origin=".$origin."\">".icon('../img/deplacer_fichier.gif',get_lang('MovePost'))."</a>";
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$userinf=api_get_user_info($row['user_id']);
|
|
@@ -138,5 +141,6 @@ foreach ($rows as $row) {
|
|
|
unset($_SESSION['whatsnew_post_info'][$current_forum['forum_id']][$current_thread['thread_id']][$row['post_id']]);
|
|
|
unset($_SESSION['whatsnew_post_info'][$current_forum['forum_id']][$current_thread['thread_id']]);
|
|
|
echo "</table>";
|
|
|
+ $increment++;
|
|
|
}
|
|
|
}
|