summaryrefslogtreecommitdiff
path: root/account.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-11-03 07:57:28 +0000
committerDries Buytaert <dries@buytaert.net>2000-11-03 07:57:28 +0000
commit7f2e4572fa1f1e6bcc14f0cc948f6fd988a7ff92 (patch)
tree4d8033ff512ecfe120e135b5bf012084af675ffe /account.php
parentfb348c6a90f15c6f64d8e0e12056a55e778843c3 (diff)
downloadbrdo-7f2e4572fa1f1e6bcc14f0cc948f6fd988a7ff92.tar.gz
brdo-7f2e4572fa1f1e6bcc14f0cc948f6fd988a7ff92.tar.bz2
- fixed bug in search.php
- fixed bug in discussion.php - theme update: comment() now takes 3 arguments: $comment - an object with comment data $link - a link to the reply form of that particular comment $thread - the subthread of that particular comment - theme 'marvin' and theme 'zaphod' are updated, theme 'unconed' is left to be done
Diffstat (limited to 'account.php')
-rw-r--r--account.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/account.php b/account.php
index 79267fa9a..b3851e6cb 100644
--- a/account.php
+++ b/account.php
@@ -201,7 +201,7 @@ function account_user($uname) {
$box1 .= " <TR><TD ALIGN=\"right\"><B>Bio:</B></TD><TD>". format_data($account->bio) ."</TD></TR>\n";
$box1 .= "</TABLE>\n";
- $result = db_query("SELECT c.cid, c.pid, c.sid, c.subject, c.timestamp, s.subject AS story FROM comments c LEFT JOIN users u ON u.id = c.author LEFT JOIN stories s ON s.id = c.sid WHERE u.userid = '$uname' AND c.timestamp > ". (time() - 1209600) ." ORDER BY cid DESC LIMIT 10");
+ $result = db_query("SELECT c.cid, c.pid, c.sid, c.subject, c.timestamp, s.subject AS story FROM comments c LEFT JOIN users u ON u.id = c.author LEFT JOIN stories s ON s.id = c.sid WHERE u.userid = '$uname' AND s.status = 2 AND s.timestamp > ". (time() - 1209600) ." ORDER BY cid DESC LIMIT 10");
while ($comment = db_fetch_object($result)) {
$box2 .= "<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\n";
$box2 .= " <TR><TD ALIGN=\"right\"><B>Comment:</B></TD><TD><A HREF=\"discussion.php?id=$comment->sid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."</A></TD></TR>\n";
@@ -418,4 +418,4 @@ switch ($op) {
account_user($user->userid);
}
-?> \ No newline at end of file
+?>