++$pn; $postid = $arr["id"]; $posterid = $arr["userid"]; $added = gettime($arr["added"], true, false); //---- Get poster details $arr2 = get_user_row($posterid); $uploaded = mksize($arr2["uploaded"]); $downloaded = mksize($arr2["downloaded"]); $ratio = get_ratio($arr2['id']); if (!($forumposts = $Cache->get_value('user_' . $posterid . '_post_count'))) { $forumposts = get_row_count("posts", "WHERE userid=" . $posterid); $Cache->cache_value('user_' . $posterid . '_post_count', $forumposts, 3600); } $signature = $CURUSER["signatures"] == "yes" ? $arr2["signature"] : ""; $avatar = $CURUSER["avatars"] == "yes" ? htmlspecialchars($arr2["avatar"]) : ""; $uclass = get_user_class_image($arr2["class"]); $by = get_username($posterid, false, true, true, false, false, true); if (!$avatar) { $avatar = "pic/default_avatar.png"; } if ($pn == $pc) { print "<span id=\"last\"></span>\n"; if ($postid > $lpr) { if ($lpr == $CURUSER['last_catchup']) { // There is no record of this topic sql_query("INSERT INTO readposts(userid, topicid, lastpostread) VALUES (" . $userid . ", " . $topicid . ", " . $postid . ")") or sqlerr(__FILE__, __LINE__); } elseif ($lpr > $CURUSER['last_catchup']) { //There is record of this topic sql_query("UPDATE readposts SET lastpostread={$postid} WHERE userid={$userid} AND topicid={$topicid}") or sqlerr(__FILE__, __LINE__); } $Cache->delete_value('user_' . $CURUSER['id'] . '_last_read_post_list');
} // ===end if (get_user_class() >= UC_MODERATOR) { echo "<tr><td class=rowhead>" . $language['slot'] . "</td><td align=left>" . safeChar($user['freeslots']) . "</td></tr>\n"; } if ($user["avatar"]) { echo "<tr><td class=rowhead>" . $language['avatar'] . "</td><td align=left><a href=\"" . safeChar($user["avatar"]) . "\" rel='lightbox' title=\"" . safeChar($user["username"]) . "\" class=\"borderimage\" onMouseover=\"borderit(this,'black')\" onMouseout=\"borderit(this,'silver')\"><img src=\"" . safeChar($user["avatar"]) . "\" width=150 title=\"" . safeChar($user["username"]) . "\"></a></td></tr>\n"; } if ($user["signature"]) { echo "<tr><td class=rowhead>" . $language['sig'] . "</td><td align=left>" . format_comment($user["signature"]) . "</td></tr>\n"; } if (get_user_class() >= UC_MODERATOR) { if ($user["title"]) { echo "<tr><td class=rowhead>" . $language['class'] . "</td><td align=left><font color='#" . get_user_class_color($user['class']) . "'> " . get_user_class_name($user['class']) . " <img src=" . get_user_class_image($user["class"]) . " alt=" . get_user_class_name($user["class"]) . "> | " . safeChar($user["title"]) . "</td></tr>\n"; } else { echo "<tr><td class=rowhead>" . $language['class'] . "</td><td align=left><font color='#" . get_user_class_color($user['class']) . "'> " . get_user_class_name($user['class']) . " <img src=" . get_user_class_image($user["class"]) . " alt=" . get_user_class_name($user["class"]) . "></td></tr>\n"; } } if ($user["showfriends"] == "yes" || $CURUSER["id"] == $user["id"] || $friend || $CURUSER['class'] >= UC_MODERATOR) { $fcount = number_format(get_row_count("friends", "WHERE userid='" . $id . "' AND confirmed = 'yes'")); if ($fcount >= 1) { $fr = sql_query("SELECT f.friendid as id, u.username AS name FROM friends AS f LEFT JOIN users as u ON f.friendid = u.id WHERE userid={$id} AND f.confirmed='yes' ORDER BY name LIMIT 100") or sqlerr(__FILE__, __LINE__); $frnd = ''; while ($friend = mysql_fetch_array($fr)) { $frnd = $frnd . "<a href=" . $DEFAULTBASEURL . "/userdetails.php?id=" . $friend['id'] . ">" . $friend['name'] . "</a>, "; } tr("" . $language['fri'] . "Friends", "<a href=" . $DEFAULTBASEURL . "/userfriends.php?id={$id}>" . $fcount . " " . $language['fri'] . "Friends</a> - " . $frnd, 1); if (isset($user['comments'])) { tr("" . $language['com'] . "Comments", "<a href=" . $DEFAULTBASEURL . "/userfriends.php?id={$id}>" . $user['username'] . "" . $language['has'] . " has " . $user['comments'] . "" . $language['com'] . " Comments</a>", 1); } }
$slr = floor($user["seedtime"] / $user["leechtime"] * 1000) / 1000; $slr = "<tr><td class=\"embedded\"><strong>" . $lang_userdetails['text_seeding_leeching_time_ratio'] . "</strong>: <font color=\"" . get_ratio_color($slr) . "\">" . number_format($slr, 3) . "</font></td><td class=\"embedded\"> " . get_ratio_img($slr) . "</td></tr>"; } $slt = "<tr><td class=\"embedded\"><strong>" . $lang_userdetails['text_seeding_time'] . "</strong>: " . mkprettytime($user["seedtime"]) . "</td><td class=\"embedded\"> <strong>" . $lang_userdetails['text_leeching_time'] . "</strong>: " . mkprettytime($user["leechtime"]) . "</td></tr>"; tr_small($lang_userdetails['row_sltime'], "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">" . $slr . $slt . "</table>", 1); if ($user["download"] && $user["upload"]) { tr_small($lang_userdetails['row_internet_speed'], $download . " " . $upload . " " . $isp, 1); } tr_small($lang_userdetails['row_gender'], $gender, 1); if (($user['donated'] > 0 || $user['donated_cny'] > 0) && (get_user_class() >= $userprofile_class || $CURUSER["id"] == $user["id"])) { tr_small($lang_userdetails['row_donated'], "\$" . htmlspecialchars($user[donated]) . " " . htmlspecialchars($user[donated_cny]), 1); } if ($user["avatar"]) { tr_small($lang_userdetails['row_avatar'], return_avatar_image(htmlspecialchars(trim($user["avatar"]))), 1); } $uclass = get_user_class_image($user["class"]); tr_small($lang_userdetails['row_class'], "<img alt=\"" . get_user_class_name($user["class"], false, false, true) . "\" title=\"" . get_user_class_name($user["class"], false, false, true) . "\" src=\"" . $uclass . "\" /> " . ($user[title] !== "" ? " " . htmlspecialchars(trim($user["title"])) . "" : ""), 1); tr_small($lang_userdetails['row_torrent_comment'], $torrentcomments && ($user["id"] == $CURUSER["id"] || get_user_class() >= $viewhistory_class) ? "<a href=\"userhistory.php?action=viewcomments&id=" . $id . "\" title=\"" . $lang_userdetails['link_view_comments'] . "\">" . $torrentcomments . "</a>" : $torrentcomments, 1); tr_small($lang_userdetails['row_forum_posts'], $forumposts && ($user["id"] == $CURUSER["id"] || get_user_class() >= $viewhistory_class) ? "<a href=\"userhistory.php?action=viewposts&id=" . $id . "\" title=\"" . $lang_userdetails['link_view_posts'] . "\">" . $forumposts . "</a>" : $forumposts, 1); if ($user["id"] == $CURUSER["id"] || get_user_class() >= $viewhistory_class) { tr_small($lang_userdetails['row_karma_points'], htmlspecialchars($user[seedbonus]), 1); } if ($user["ip"] && (get_user_class() >= $torrenthistory_class || $user["id"] == $CURUSER["id"])) { tr_small($lang_userdetails['row_uploaded_torrents'], "<a href=\"javascript: getusertorrentlistajax('" . $user['id'] . "', 'uploaded', 'ka'); klappe_news('a')\"><img class=\"plus\" src=\"pic/trans.gif\" id=\"pica\" alt=\"Show/Hide\" title=\"" . $lang_userdetails['title_show_or_hide'] . "\" /> <u>" . $lang_userdetails['text_show_or_hide'] . "</u></a><div id=\"ka\" style=\"display: none;\"></div>", 1); tr_small($lang_userdetails['row_current_seeding'], "<a href=\"javascript: getusertorrentlistajax('" . $user['id'] . "', 'seeding', 'ka1'); klappe_news('a1')\"><img class=\"plus\" src=\"pic/trans.gif\" id=\"pica1\" alt=\"Show/Hide\" title=\"" . $lang_userdetails['title_show_or_hide'] . "\" /> <u>" . $lang_userdetails['text_show_or_hide'] . "</u></a><div id=\"ka1\" style=\"display: none;\"></div>", 1); tr_small($lang_userdetails['row_current_leeching'], "<a href=\"javascript: getusertorrentlistajax('" . $user['id'] . "', 'leeching', 'ka2'); klappe_news('a2')\"><img class=\"plus\" src=\"pic/trans.gif\" id=\"pica2\" alt=\"Show/Hide\" title=\"" . $lang_userdetails['title_show_or_hide'] . "\" /> <u>" . $lang_userdetails['text_show_or_hide'] . "</u></a><div id=\"ka2\" style=\"display: none;\"></div>", 1); tr_small($lang_userdetails['row_completed_torrents'], "<a href=\"javascript: getusertorrentlistajax('" . $user['id'] . "', 'completed', 'ka3'); klappe_news('a3')\"><img class=\"plus\" src=\"pic/trans.gif\" id=\"pica3\" alt=\"Show/Hide\" title=\"" . $lang_userdetails['title_show_or_hide'] . "\" /> <u>" . $lang_userdetails['text_show_or_hide'] . "</u></a><div id=\"ka3\" style=\"display: none;\"></div>", 1); tr_small($lang_userdetails['row_incomplete_torrents'], "<a href=\"javascript: getusertorrentlistajax('" . $user['id'] . "', 'incomplete', 'ka4'); klappe_news('a4')\"><img class=\"plus\" src=\"pic/trans.gif\" id=\"pica4\" alt=\"Show/Hide\" title=\"" . $lang_userdetails['title_show_or_hide'] . "\" /> <u>" . $lang_userdetails['text_show_or_hide'] . "</u></a><div id=\"ka4\" style=\"display: none;\"></div>", 1); } if ($user["info"]) { print "<tr><td align=\"left\" colspan=\"2\" class=\"text\">" . format_comment($user["info"], false) . "</td></tr>\n";
<?php $HTMLOUT .= "<tr><td class='rowhead'>{$lang['userdetails_class']}</td><td align='left'>" . get_user_class_name($user["class"]) . " <img src='" . get_user_class_image($user["class"]) . "' alt='" . get_user_class_name($user["class"]) . "' title='" . get_user_class_name($user["class"]) . "' /></td></tr>\n"; //==End // End Class // End File