"._20ACTIVE."
"); echo (""); echo (""); echo (""); echo (""); echo (""); if (empty($username)) { echo ""; } else { if (is_active("Private_Messages")) { echo ""; } } 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 "
 "._MEMBER." "._CLICKTOVIEW.""._VIEWJOURNAL.""._MEMBERPROFILE.""._CREATEACCOUNT2.""._PRIVMSGJ."
"; CloseTable(); journalfoot(); die(); } else { $dcount = $dcount + 1; print (""); printf ("  %s", $row['joid'], $row['joid']); printf ("
\""._VIEWJOURNAL2."\"", $row['joid'], $row['joid']); printf ("\""._USERPROFILE2."\"", $row['joid'], $row['joid'], $row['joid']); if (empty($username)) { print ("\""._CREATEACCOUNT."\""); } else { if (is_active("Private_Messages")) { printf (""._PRIVMSGJ2."", $row['joid'], $row['joid']); } } echo ""; } } echo ""; CloseTable(); } function all($bgcolor1, $bgcolor2, $bgcolor3, $sitename, $username) { global $prefix, $user_prefix, $db, $module_name; OpenTable(); echo ("
"._ALPHABETICAL."

"); echo (""); echo (""); echo (""); echo (""); echo (""); if (empty($username)) { echo (""); } else { echo (""); } echo (""); $sql = "SELECT j.id, j.joid, j.nop, j.ldp, j.ltp, j.micro, u.user_id FROM ".$prefix."_journal_stats j, ".$user_prefix."_users u where u.username=j.joid ORDER BY 'joid'"; $result = $db->sql_query($sql); 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"); print (""); printf ("", $row['joid'], $row['joid']); printf ("", $row['joid'], $row['joid']); printf ("", $row['joid'], $row['joid'], $row['joid']); if (empty($username)) { print (""); } elseif (!empty($username) AND is_active("Private_Messages")) { print (""); } echo ""; } echo "
 "._MEMBER." "._CLICKTOVIEW.""._VIEWJOURNAL.""._MEMBERPROFILE.""._CREATEACCOUNT2.""._PRIVMSGJ."
  %s
\""._VIEWJOURNAL2."\"
\""._USERPROFILE2."\"\""._CREATEACCOUNT."\""._PRIVMSGJ2."
"; CloseTable(); } echo "
"; OpenTable(); echo ("
[ "._20AUTHORS." | "._LISTALLJOURNALS." | "._SEARCHMEMBER." ]
"); CloseTable(); echo "
"; switch($op) { case "last": last20($bgcolor1, $bgcolor2, $bgcolor3, $username); break; case "all": all($bgcolor1, $bgcolor2, $bgcolor3, $sitename, $username); break; default: last20($bgcolor1, $bgcolor2, $bgcolor3, $username); break; } journalfoot(); ?>