header($params); echo '
';
if (!$result || db_numrows($result) < 1) {
echo ''._('Error - this news item was not found').''; } else { $user = user_get_object(db_result($result,0,'submitted_by')); $group =& group_get_object($params['group']); if (!$group || !is_object($group) || $group->isError()) { exit_no_group(); } echo ' '._('Posted by').': '.$user->getRealName().''._('Date').': '. date(_('Y-m-d H:i'),db_result($result,0,'post_date')).' '._('Summary').':'. util_make_link ('/forum/forum.php?forum_id='.db_result($result,0,'forum_id').'&group_id='.$group_id, db_result($result,0,'summary')).' '._('Project').':'. util_make_link_g ($group->getUnixName(),db_result($result,0,'group_id'),$group->getPublicName()).' '; $body = db_result($result,0,'details'); $sanitizer = new TextSanitizer(); $body = $sanitizer->purify($body); if (!strstr($body,'<')) { //backwards compatibility for non html messages echo util_make_links(nl2br($body)); } else { echo util_make_links($body); } echo ' '; // display classification if ($params['group'] == $sys_news_group) { print stripslashes(trove_news_getcatlisting(db_result($result,0,'forum_id'),0,1)); } elseif ($sys_use_trove) { print stripslashes(trove_getcatlisting($params['group'],0,1)); } } echo ' | '; echo $HTML->boxTop(_('Latest News')); echo news_show_latest($params['group'],5,false); echo $HTML->boxBottom(); echo ' |
'._('By:').
$msg->getPosterRealName().
' '; $msgforum =& $msg->getForum(); $ret_val .= $am->PrintAttachLink($msg,$group_id,$msgforum->getID()) . ' '. html_image('ic/msg.png',"10","12",array("border"=>"0")) . $bold_begin. $msg->getSubject() . $bold_end .' '. ' '. date(_('Y-m-d H:i'),$msg->getPostDate()) .' |
'. $msg->getBody() .' |
';
$ret_val .= $bold_begin. $msg->getSubject(). ' [ '._("reply").' ]'. $bold_end;
$ret_val .= ' '._('By:').' '.util_make_link_u ($msg->getPosterName(),$msg->getPosterID(),$msg->getPosterRealName()); $ret_val .= ' on '.date('Y-m-d H:i',$msg->getPostDate()); $ret_val .= ' | ';
$ret_val .= '[forum:'.$msg->getID().'] '; if ($msgforum->userIsAdmin()) { $ret_val .= $fa->PrintAdminMessageOptions($msg->getID(),$group_id,$msg->getThreadID(),$msgforum->getID()); } $ret_val .= $am->PrintAttachLink($msg,$group_id,$msgforum->getID()); $ret_val .= ' |
'; if (strpos($msg->getBody(),'<') === false) { $ret_val .= nl2br($msg->getBody()); //backwards compatibility for non html messages } else { $ret_val .= $msg->getBody(); } $ret_val .= ' |
'; return $return_val; } /** * LinkAttachForm - echoes the link to the attach form * * @return The HTML output echoed */ function LinkAttachForm() { $poststarttime = time(); $posthash = md5($poststarttime . user_getid() ); echo "
"; } function showNestedMessages ( &$msg_arr, $msg_id ) { global $total_rows; $rows=count($msg_arr["$msg_id"]); $ret_val=''; if ($msg_arr["$msg_id"] && $rows > 0) { $ret_val .= 'no messages actually follow up to $msg_id"; } return $ret_val; } function showSubmessages(&$msg_arr, $msg_id, $level) { /* Recursive. Selects this message's id in this thread, then checks if any messages are nested underneath it. If there are, it calls itself, incrementing $level $level is used for indentation of the threads. */ global $total_rows,$forum_id,$current_message,$group_id; $rows=count($msg_arr["$msg_id"]); $ret_val = ""; //echo "
ShowSubmessages() $msg_id | $rows"; if ($rows > 0) { for ($i=($rows-1); $i >= 0; $i--) { /* Is this row's background shaded or not? */ $total_rows++; $ret_val .= '