"; $end = "\"thread"; $blank = "\"thread"; $vert = "\"thread"; $loc_emoticons=$sbs.'/emoticons'; // topic emoticons $topic_emoticons=array(); $topic_emoticons[0]=$sbs.'/emoticons/default.gif'; $topic_emoticons[1]=$sbs.'/emoticons/exclam.gif'; $topic_emoticons[2]=$sbs.'/emoticons/question.gif'; $topic_emoticons[3]=$sbs.'/emoticons/arrow.gif'; $topic_emoticons[4]=$sbs.'/emoticons/love.gif'; $topic_emoticons[5]=$sbs.'/emoticons/grin.gif'; $topic_emoticons[6]=$sbs.'/emoticons/shock.gif'; $topic_emoticons[7]=$sbs.'/emoticons/smile.gif'; $c=0; function thread_flat(&$tree,&$leaves,$branchid=0,$level=0) { global $c; foreach($leaves[$branchid] as $leaf) { $leaf->level=$level; $tree[]=$leaf; $c++; if (is_array($leaves[$leaf->id])) thread_flat($tree,$leaves,$leaf->id,$level+1); } return $tree; } $tree=thread_flat($tree,$messages); ?> id !=0){echo '';}?>  ';} ?> name=htmlspecialchars($leaf->name); $leaf->subject=htmlspecialchars($leaf->subject); $leaf->email=htmlspecialchars($leaf->email); //get all html out of the subject & email & name before posting: ?> id !=0 && ! $leaf->moved ){ if (($prevCheck<($leaf->time)) && (sizeof($read_topics) == 0) || !in_array($leaf->thread, $read_topics)) { //new post echo ''; }else{ //not new posts echo ''; } } else { echo ''; }?> id==$id?" class=\"sectiontableentry2\"":"";?>>
    
'; echo $sbIcons['unreadmessage'] ? ''._GEN_UNREAD.'' : $sbConfig['newChar']; echo ''; echo $sbIcons['readmessage'] ? ''._GEN_NOUNREAD.'' : $sbConfig['newChar']; echo ' id==$id?" class=\"sectiontableentry2\">":">"; if ($leaf->ordering==0) { if($leaf->locked==0) { echo " "; } else { echo $sbIcons['topiclocked'] ? ''._GEN_LOCKED_TOPIC.'' : ''._GEN_LOCKED_TOPIC.''; $topicLocked=1; } } else { echo $sbIcons['topicsticky'] ? ''._GEN_ISSTICKY.'' : ''._GEN_ISSTICKY.''; $topicSticky=1; } ?> id==$id?" class=\"sectiontableentry2\"":"";?>>topic_emoticon==0?"\"thread":"topic_emoticon]."\" alt=\"emo\" />";?>
id==$id?" class=\"sectiontableentry2\"":"";?>>level + 1] = count($messages[$leaf->id]); $array[$leaf->level]--; for ($i = 0; $i < $leaf->level; $i++) { if ($array[$i] > 0) echo($vert); elseif ($array[$i] == 0) echo($blank); } if ($array[$leaf->level] > 0) echo($join); elseif ($array[$leaf->level] == 0 && $leaf->parent != 0) echo($end); //else echo($blank); ?> moved) { $database->setQuery("SELECT `message` FROM #__sb_messages_text WHERE `mesid`='".$leaf->id."'"); $newURL.=$database->loadResult(); } else $newURL.='id='.$leaf->id.$viewstr.'&catid='.$catid; $newURL=sefRelToAbs($newURL); //sefRelToAbs('index.php?option=com_simpleboard&Itemid='.$Itemid.'&func=view&id='.$leaf->id.$viewstr.'&catid='.$catid); ?> id==$id?" class=\"sectiontableentry2\"":"";?>>subject);?>
id==$id?' class="sectiontableentry2"':'';?>>email!=""&&$my_id>0&&$sbConfig['showemail']=='1'?''.stripslashes($leaf->name).'':stripslashes($leaf->name);?> id==$id?' class="sectiontableentry2"':'';?>>moved ? date(_DATETIME , $leaf->time) :date(_DATETIME , $leaf->time);?>