".$lang_userhistory['text_posts_history_for'].$subject."\n");
if ($postcount > $perpage) echo $pagertop;
//------ Print table
begin_main_frame();
begin_frame();
while ($arr = mysql_fetch_assoc($res))
{
$postid = $arr["id"];
$posterid = $arr["userid"];
$topicid = $arr["t_id"];
$topicname = $arr["subject"];
$forumid = $arr["f_id"];
$forumname = $arr["name"];
$newposts = ($arr["lastpostread"] < $arr["lastpost"]) && $CURUSER["id"] == $userid;
$added = gettime($arr["added"], true, false, false);
print("
\n");
$body = format_comment($arr["body"]);
if (is_valid_id($arr['editedby']))
{
$subres = sql_query("SELECT username FROM users WHERE id=$arr[editedby]");
if (mysql_num_rows($subres) == 1)
{
$subrow = mysql_fetch_assoc($subres);
$body .= "".$lang_userhistory['text_last_edited'].get_username($arr['editedby']).$lang_userhistory['text_at']."$arr[editdate]
\n";
}
}
print("
\n");
print("
\n");
print("