");
echo (" "._MEMBER." "._CLICKTOVIEW." | ");
echo (""._VIEWJOURNAL." | ");
echo (""._MEMBERPROFILE." | ");
if (empty($username)) {
echo ""._CREATEACCOUNT2." | ";
} else {
if (is_active("Private_Messages")) {
echo ""._PRIVMSGJ." | ";
}
}
echo "
";
$sql = "SELECT j.id, j.joid, j.nop, j.ldp, j.ltp, j.micro, u.user_id, u.username FROM ".$prefix."_journal_stats j, ".$user_prefix."_users u where u.username=j.joid ORDER BY 'ldp' DESC";
$result = $db->sql_query($sql);
$dcount = 1;
while ($row = $db->sql_fetchrow($result)) {
$row['id'] = intval($row['id']);
$row['joid'] = check_html($row['joid'], "nohtml");
$row['nop'] = check_html($row['nop'], "nohtml");
$row['ldp'] = check_html($row['ldp'], "nohtml");
$row['ltp'] = check_html($row['ltp'], "nohtml");
$row['micro'] = check_html($row['micro'], "nohtml");
$row['user_id'] = check_html($row['user_id'], "nohtml");
if ($dcount >= 21) {
echo "