"; // the style depends on the status of the message: approved or not //echo 'dd'.$row['status']; if ($row['visible']=='0') { $titleclass='forum_message_post_title_2_be_approved'; $messageclass='forum_message_post_text_2_be_approved'; $leftclass='forum_message_left_2_be_approved'; } else { $titleclass='forum_message_post_title'; $messageclass='forum_message_post_text'; $leftclass='forum_message_left'; } echo ""; echo ""; // The post title echo ""; echo ""; // The post message echo ""; echo ""; echo ""; // The check if there is an attachment $attachment_list=get_attachment($row['post_id']); if (!empty($attachment_list)) { echo ''; } // The post has been displayed => it can be removed from the what's new array unset($whatsnew_post_info[$current_forum['forum_id']][$current_thread['thread_id']][$row['post_id']]); unset($whatsnew_post_info[$current_forum['forum_id']][$current_thread['thread_id']]); 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 "
"; echo '
'. api_convert_and_format_date($row['post_date'], DATE_TIME_FORMAT_LONG).'
'; if (api_is_allowed_to_edit(null,true)) { echo $url_post; } echo "
".prepare4display($row['post_title'])."
".prepare4display($row['post_text'])."
'; $realname=$attachment_list['path']; $user_filename=$attachment_list['filename']; echo Display::return_icon('attachment.gif',get_lang('Attachment')); echo ' '.$user_filename.' '; echo ''.$attachment_list['comment'].'
'; echo '
"; $counter++; } } $userid = (int)$_GET['user_id']; $userinf=api_get_user_info($userid); $current_thread = get_thread_information($_GET['thread']); $threadid = $current_thread['thread_id']; $qualify = (int)$_POST['idtextqualify']; //return Max qualify thread $max_qualify=show_qualify('2', $userid,$threadid); $current_qualify_thread=show_qualify('1',$userid,$threadid); if (isset($_POST['idtextqualify'])) { store_theme_qualify($userid,$threadid,$qualify,$_SESSION['_user']['user_id'],date('Y-m-d H:i:s'),''); } $result = get_statistical_information($current_thread['thread_id'], $_GET['user_id'], $_GET['cidReq']); if ($userinf['status']!='1') { echo '
'; require_once 'forumbody.inc.php'; echo '
'; }