summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatrak <>2001-07-27 13:05:45 +0000
committernatrak <>2001-07-27 13:05:45 +0000
commit26ac06413534ecfafb90b777591272da6af76a55 (patch)
treed185af1c2f7a078b304b2773f4cd337636a25424
parent428015a908e3828c098d5f7df706f558f1060fef (diff)
downloadbrdo-26ac06413534ecfafb90b777591272da6af76a55.tar.gz
brdo-26ac06413534ecfafb90b777591272da6af76a55.tar.bz2
- re-adding images that were not commited using -kb
-rw-r--r--account.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/account.php b/account.php
index 0ac0b7ab2..ddaa3b40b 100644
--- a/account.php
+++ b/account.php
@@ -217,7 +217,7 @@ function account_user($uname) {
// Display contributions:
if (user_access("access contents")) {
$result = db_query("SELECT n.nid, n.type, n.title, n.timestamp, COUNT(c.cid) AS count FROM node n LEFT JOIN comments c ON c.lid = n.nid WHERE n.status = '". node_status("posted") ."' AND n.author = '$account->id' GROUP BY n.nid DESC ORDER BY n.nid DESC LIMIT 25");
-
+
while ($node = db_fetch_object($result)) {
$nodes .= "<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\n";
$nodes .= " <TR><TD ALIGN=\"right\" VALIGN=\"top\"><B>". t("Subject") .":</B></TD><TD><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A> (". format_plural($node->count, "comment", "comments") .")</TD></TR>\n";
@@ -226,27 +226,27 @@ function account_user($uname) {
$nodes .= "</TABLE>\n";
$nodes .= "<P>\n";
}
-
+
$theme->box(strtr(t("%a's contributions"), array("%a" => $uname)), ($nodes ? $nodes : t("Not posted any nodes.")));
}
if (user_access("access comments")) {
$sresult = db_query("SELECT n.nid, n.title, COUNT(n.nid) AS count FROM comments c LEFT JOIN node n ON c.lid = n.nid WHERE c.author = '$account->id' GROUP BY n.nid DESC ORDER BY n.nid DESC LIMIT 5");
-
+
while ($node = db_fetch_object($sresult)) {
$comments .= "<LI>". format_plural($node->count, "comment", "comments") ." ". t("attached to node") ." `<A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A>`:</LI>\n";
$comments .= " <UL>\n";
-
+
$cresult = db_query("SELECT * FROM comments WHERE author = '$account->id' AND lid = '$node->nid'");
while ($comment = db_fetch_object($cresult)) {
$comments .= " <LI><A HREF=\"node.php?id=$node->nid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."</A> (". t("replies") .": ". comment_num_replies($comment->cid) .", ". t("votes") .": $comment->votes, ". t("score") .": ". comment_score($comment) .")</LI>\n";
}
$comments .= " </UL>\n";
}
-
+
$theme->box(strtr(t("%a's comments"), array("%a" => $uname)), ($comments ? $comments : t("Not posted any comments.")));
}
-
+
$theme->footer();
}
else {