summaryrefslogtreecommitdiff
path: root/search.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-06-20 07:33:17 +0000
committerDries Buytaert <dries@buytaert.net>2000-06-20 07:33:17 +0000
commit988707a61cd5d0ed3614652ad85c182f4e35a00e (patch)
tree7785ad433134714e99169848961e068ba834f781 /search.php
parent6fec4168d8a83e8192bce712dfe40526d89e91e7 (diff)
downloadbrdo-988707a61cd5d0ed3614652ad85c182f4e35a00e.tar.gz
brdo-988707a61cd5d0ed3614652ad85c182f4e35a00e.tar.bz2
Here we go again with a rather large commit:
fixed a lot of annoying bugs and boxed whatever there was left to be boxed. * user.class.php: renamed $user->update() to $user->rehash(). * user.class.php: fixed a typical quote-bug in $user->rehash(). * functions.inc: fixed bug in displayOldHeadlines(). * functions.inc: improved several functions. * account.php: fixed major bug in showUser(). * account.php: added some extra words to the human-readable password-generator(tm). * account.php: boxed ALL functions! Fieuw! * submit.php: add some general information and guidlines on how to post submissions. * config.inc: re-thought the categories to be more generic. * submission.php: minor changes * search.pph: fixed minor bug with the author's names. Woops. I have an exam within 4 hours: back to my books. ;-) -------------------------------------------------------------------- * Anyone could check sumbit.php, sumbission.php and faq.php for typoes? * Anyone could adjust calendar.class.php to fit IE? *huh*huh* * Don't be scared to hack along (see below)! I'll be working on the submissions and comments. -------------------------------------------------------------------- Status of drop v0.10: (make the system erational' and release it.) - submissions: submission queue (75% complete) submission moderation (75% complete) - comments: comment moderation ( 0% complete) comment administration ( 0% complete) fixup timestamp mess ( 0% complete) - user system: mail password ( 0% complete) user administation (50% complete) patch admin.php ( 0% complete) account confirmation ( 0% complete) e-mail confimation upon modification of e-mail address ( 0% complete) - proper handling of forms: text2html, html2text html2txt, txt2html (10% complete) bad-word filter (80% complete) automatic link detection ( 0% complete) allowed HTML-tag checker ( 0% complete) - FAQ: cleanup, disclaimer (50% complete) - theme: box everything (100% complete)
Diffstat (limited to 'search.php')
-rw-r--r--search.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/search.php b/search.php
index ca1437ae3..8d40b21c4 100644
--- a/search.php
+++ b/search.php
@@ -53,7 +53,7 @@
$output .= " <TD>";
### Compose query:
- $query = "SELECT DISTINCT s.sid, s.aid, s.subject, s.time FROM stories s, authors a WHERE s.sid != 0 ";
+ $query = "SELECT DISTINCT s.sid, s.aid, s.informant, s.subject, s.time FROM stories s, authors a WHERE s.sid != 0 ";
// Note: s.sid is a dummy clause used to enforce the WHERE-tag.
if ($terms != "") $query .= "AND (s.subject LIKE '%$terms%' OR s.abstract LIKE '%$terms%' OR s.comments LIKE '%$terms%') ";
if ($author != "") $query .= "AND s.aid = '$author' ";
@@ -66,7 +66,7 @@
### Display search results:
$output .= "<HR>";
- while (list($sid, $aid, $subject, $time) = mysql_fetch_row($result)) {
+ while (list($sid, $aid, $informant, $subject, $time) = mysql_fetch_row($result)) {
$num++;
if ($user) {
@@ -80,7 +80,7 @@
$link = "<A HREF=\"article.php?sid=$sid&mode=threaded&order=1&thold=0\">$subject</A>";
}
- $output .= "<P>$num) <B>$link</B><BR><SMALL>by <B><A HREF=\"account.php?op=userinfo&uname=$aid\">$aid</A></B>, posted on ". date("l, F d, Y - H:i A", $time) .".</SMALL></P>\n";
+ $output .= "<P>$num) <B>$link</B><BR><SMALL>by <B><A HREF=\"account.php?op=userinfo&uname=$informant\">$informant</A></B>, posted on ". date("l, F d, Y - H:i A", $time) .".</SMALL></P>\n";
}
if ($num == 0) $output .= "<P>Your search did <B>not</B> match any articles in our database: <UL><LI>Try using fewer words.</LI><LI>Try using more general keywords.</LI><LI>Try using different keywords.</LI></UL></P>";