';
$l_gif='
';
$p_gif='
';
$m_gif='
';
$c_gif='
';
$i_gif='
';
$n_gif='
';
$space_gif='
';
$trans_gif='
';
function echo_data($image, $topic, $row_color){
GLOBAL $TableWidth,$TableHeaderColor,$TableHeaderFontColor;
GLOBAL $TableBodyColor1,$TableBodyFontColor1,$TableBodyColor2,$TableBodyFontColor2;
GLOBAL $read_page,$ext,$collapse,$id,$UseCookies;
GLOBAL $space_gif,$num,$old_message,$haveread;
$thread_total="";
GLOBAL $lNew, $GetVars;
if(($row_color%2)==0){
$bgcolor=$TableBodyColor1;
$font_color=$TableBodyFontColor1;
}
else{
$bgcolor=$TableBodyColor2;
$font_color=$TableBodyFontColor2;
}
$subject ="
\n";
$subject.="\n| ";
$subject.=$space_gif;
$subject.=$image." | \n ";
if($id==$topic["id"] && $read=true){
$subject .= "".$topic["subject"]."";
$author = "".$topic["author"]."";
$datestamp = "".date_format($topic["datestamp"])."";
}
else{
$subject.="".$topic["subject"]."";
$author = $topic["author"];
$datestamp = date_format($topic["datestamp"]);
}
$subject.=" ";
if(isset($haveread[0])){
$temp=$haveread[0];
}
else{
$temp=0;
}
if($temp<$topic["id"] && !IsSet($haveread[$topic["id"]]) && $UseCookies){
$subject.="".$lNew."";
}
$subject.=" | \n
\n
";
?>
| > |
nowrap> |
nowrap> |
1){
$image.=$p_gif;
}
else{
$image.=$n_gif;
}
}
}
echo_data($image, $messages[$seed], $row_color_cnt);
}//end of: if($seed!="0")
if(isset($messages[$seed]["replies"])){
$count=count($messages[$seed]["replies"]);
for($x=1;$x<=$count;$x++){
$key=key($messages[$seed]["replies"]);
thread($key);
next($messages[$seed]["replies"]);
}
}
}
$row=$msg_list->firstrow();
if(is_array($row)){
if(!$read){
$rec=$thread_list->firstrow();
while(is_array($rec)){
$thd=$rec["thread"];
if(!isset($rec["tcount"])) $rec["tcount"]=0;
$tcount=$rec["tcount"];
$threadtotal[$thd]=$tcount;
$rec=$thread_list->getrow();
}
}
else{
$threadtotal[$thread]=$msg_list->numrows();
}
$topics["max"]="0";
$topics["min"]="0";
While(is_array($row)){
$x="".$row["id"]."";
$p="".$row["parent"]."";
$messages["$x"]=$row;
$messages["$p"]["replies"]["$x"]="$x";
$messages["$p"]["max"]=$row["id"];
if(!isset($messages["max"])) $messages["max"]=0;
if(!isset($messages["min"])) $messages["min"]=0;
if($messages["max"]<$row["thread"]) $messages["max"]=$row["thread"];
if($messages["min"]>$row["thread"]) $messages["min"]=$row["thread"];
$row=$msg_list->getrow();
}
}
?>
| > |
NOWRAP WIDTH=150> |
NOWRAP WIDTH=100> |