Esempio n. 1
0
tr_small($lang_usercp['row_passkey'], $CURUSER["passkey"], 1);
// CC98 ID
if ($CURUSER["cc98id"]) {
    $cc98id_str = MessageFormatter::formatMessage('', '<a href="http://www.cc98.org/dispuser.asp?name={0}">{0}</a> <a href="/cc98id.php?action=edit">[{1}]</a> <a href="/cc98id.php?action=delete">[{2}]</a>', array($CURUSER["cc98id"], $res['cc98_id_action_edit'], $res['cc98_id_action_delete']));
} else {
    $cc98id_str = MessageFormatter::formatMessage('', '<span style="color: gray">{0}</span> <a  href="/cc98id.php?action=new">[{1}]</a>', array($res['cc98_id_text_none'], $res['cc98_id_action_create']));
}
tr_small($res['cc98_id_association_title'], $cc98id_str, 1);
if ($prolinkpoint_bonus) {
    $prolinkclick = get_row_count("prolinkclicks", "WHERE userid=" . $CURUSER['id']);
    tr_small($lang_usercp['row_promotion_link'], $prolinkclick . " [<a href=\"promotionlink.php\">" . $lang_usercp['text_read_more'] . "</a>]", 1);
    //tr_small($lang_usercp['row_promotion_link'], $prolinkclick. " [<a href=\"promotionlink.php?updatekey=1\">".$lang_usercp['text_update_promotion_link']."</a>] [<a href=\"promotionlink.php\">".$lang_usercp['text_read_more']."</a>]", 1);
}
tr_small($lang_usercp['row_invitations'], $CURUSER[invites] . " [<a href=\"invite.php?id=" . $CURUSER[id] . "\" title=\"" . $lang_usercp['link_send_invitation'] . "\">" . $lang_usercp['text_send'] . "</a>]", 1);
tr_small($lang_usercp['row_karma_points'], $CURUSER['seedbonus'] . " [<a href=\"mybonus.php\" title=\"" . $lang_usercp['link_use_karma_points'] . "\">" . $lang_usercp['text_use'] . "</a>]", 1);
tr_small($lang_usercp['row_written_comments'], $commentcount . " [<a href=\"userhistory.php?action=viewcomments&id=" . $CURUSER[id] . "\" title=\"" . $lang_usercp['link_view_comments'] . "\">" . $lang_usercp['text_view'] . "</a>]", 1);
if ($forumposts) {
    tr($lang_usercp['row_forum_posts'], $forumposts . " [<a href=\"userhistory.php?action=viewposts&id=" . $CURUSER[id] . "\" title=\"" . $lang_usercp['link_view_posts'] . "\">" . $lang_usercp['text_view'] . "</a>] (" . $dayposts . $lang_usercp['text_posts_per_day'] . "; " . $percentages . $lang_usercp['text_of_total_posts'] . ")", 1);
}
?>
</table>
<table border="0" cellspacing="0" cellpadding="5" width="940">
	<?php 
print "<td align=center class=tabletitle><b>" . $lang_usercp['text_recently_read_topics'] . "</b></td>";
?>
</table>
<?php 
print "<table border=0 cellspacing=0 cellpadding=3 width=940><tr>" . "<td class=colhead align=left width=80%>" . $lang_usercp['col_topic_title'] . "</td>" . "<td class=colhead align=center><nobr>" . $lang_usercp['col_replies'] . "/" . $lang_usercp['col_views'] . "</nobr></td>" . "<td class=colhead align=center>" . $lang_usercp['col_topic_starter'] . "</td>" . "<td class=colhead align=center width=20%>" . $lang_usercp['col_last_post'] . "</td>" . "</tr>";
$res_topics = sql_query("SELECT * FROM readposts INNER JOIN topics ON topics.id = readposts.topicid WHERE readposts.userid = " . $CURUSER[id] . " ORDER BY readposts.id DESC LIMIT 5") or sqlerr();
while ($topicarr = mysql_fetch_assoc($res_topics)) {
    $topicid = $topicarr["id"];
Esempio n. 2
0
    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] !== "" ? "&nbsp;" . 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&amp;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&amp;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";
    }
} else {
    print "<tr><td align=\"left\" colspan=\"2\" class=\"text\"><font color=\"blue\">" . $lang_userdetails['text_public_access_denied'] . $user[username] . $lang_userdetails['text_user_wants_privacy'] . "</font></td></tr>\n";
}
if ($CURUSER["id"] != $user["id"]) {
    if (get_user_class() >= $staffmem_class) {
        $showpmbutton = 1;
    } elseif ($user["acceptpms"] == "yes") {
        $r = sql_query("SELECT id FROM blocks WHERE userid={$user['id']} AND blockid={$CURUSER['id']}") or sqlerr(__FILE__, __LINE__);
        $showpmbutton = mysql_num_rows($r) == 1 ? 0 : 1;
    } elseif ($user["acceptpms"] == "friends") {
        $r = sql_query("SELECT id FROM friends WHERE userid={$user['id']} AND friendid={$CURUSER['id']}") or sqlerr(__FILE__, __LINE__);