| |
Forum |
Type |
Topics |
Posts |
Last Posts |
Moderator |
";
}
$title = stripslashes($myrow['cat_title']);
if (strcmp($title, $lasttitle) != 0)
{
echo "
| $title |
";
$lasttitle = $title;
}
if (isSet ($myrow['post_id']) && $myrow['post_id'] != "" && $myrow['post_id'] != NULL && $myrow['post_id'] != 0)
{
$val2 = $myrow['image'];
$val3 = strftime(translate("forumdatestring2"),strtotime($myrow['post_time']));
$val4 = $myrow['uname'];
$val5 = $myrow['topic_id'];
$val6 = translate("by");
$val7 = $myrow['topic_title'];
if (strlen($val7) > '30')
{
$valT = substr($val7, 0, 27);
$val8 = "$valT...";
}
else
$val8 = $val7;
if ($myrow['forum_type'] == "1")
$val8 = translate("Privates Forum");
if ($val2 != "")
$pimage = " ";
else
$pimage = " ";
$last_post = array($val2, $val3, $val4, $val5, $val6, $val8, $pimage, $myrow['forum_id']);
}
else
$last_post = "No posts";
$newtheme = stripslashes($last_post[5]);
echo " ";
$total_topics = ($myrow['totaltopics'] == "" ? 0 : $myrow['totaltopics']);
if (!is_null ($myrow['topic_time']))
$ulastposting = strtotime ($myrow['topic_time']);
else
$ulastposting = "";
if (($visit < $ulastposting) && $last_post != "No posts")
echo "  | ";
else
echo "  | ";
$name = stripslashes($myrow['forum_name']);
echo " $name \n";
$desc = stripslashes($myrow['forum_desc']);
echo " $desc | \n";
if ($myrow['forum_access']=="0" && $myrow['forum_type']=="0")
echo "  | \n";
if ($myrow['forum_type'] == "1")
echo "  | \n";
if ($myrow['forum_access']=="1" && $myrow['forum_type'] == "0")
echo "  | \n";
if ($myrow['forum_access']=="2" && $myrow['forum_type'] == "0")
echo "  | \n";
echo " $total_topics | \n";
$total_posts = ($myrow['totalposts'] == "" ? 0 : $myrow['totalposts']);
echo " $total_posts | \n";
if ($last_post == "No posts")
echo " " . translate("No posts") . " | \n";
else
echo "
| $last_post[6] |
$newtheme ($last_post[2])
|
|
$last_post[1] |
| \n";
$moderators = $myrow['modlist'];
echo " ";
$modlist = explode (",", $moderators);
$count = 0;
for ($i = 0; $i < count ($modlist); $i++)
{
if ($count > 0)
echo ", ";
echo "$modlist[$i]";
$count++;
}
echo "
|
\n";
$loop_check = $myrow['sitename'];
$loopcount++;
} while ($myrow = mysql_fetch_array($sub_result));
}
echo "
|