- web: fix to the above

- web: fix forum search


svn path=/trunk/boinc/; revision=24063
This commit is contained in:
David Anderson 2011-08-28 21:27:52 +00:00
parent 34efc9a85e
commit 1daa9c804e
4 changed files with 20 additions and 6 deletions

View File

@ -5206,7 +5206,7 @@ David 26 Aug 2011
html/user/
forum_thread.php
David 26 Aug 2011
David 27 Aug 2011
- web: add a magic header string that supposedly will make
Recaptcha work on some IE variants. WTF??
@ -5216,3 +5216,14 @@ David 26 Aug 2011
user/
create_account_form.php
create_profile.php
David 28 Aug 2011
- web: fix to the above
- web: fix forum search
html/
inc/
util.inc
user/
forum_search.php
forum_search_action.php

View File

@ -148,15 +148,18 @@ function page_head(
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
echo "<html><head>\n";
if ($head_extra) {
echo "\n$head_extra\n";
}
if (!$title_plain) {
echo "<html><head><title>".sanitize_tags($title)."</title>\n";
echo "<title>".sanitize_tags($title)."</title>\n";
} else {
echo "<html><head><title>".sanitize_tags($title_plain)."</title>\n";
echo "<title>".sanitize_tags($title_plain)."</title>\n";
}
echo "<link rel=stylesheet type=\"text/css\" href=\"".URL_BASE."main.css\" media=\"all\" />
<link rel=stylesheet type=\"text/css\" href=\"$stylesheet\">
<link rel=alternate type=\"application/rss+xml\" title=\"$rssname\" href=\"$rsslink\">
$head_extra
</head>
";
if ($java_onload){

View File

@ -31,7 +31,7 @@ echo "<form action=\"forum_search_action.php\" method=\"post\">";
row1(tra("Search query"));
row2(tra("Search for keywords:")."<br />
<span class=\"smalltext\">".tra("Posts that contain all the specified words will be displayed")."</span>",
"<input type=\"text\" style=\"width: 290px\" name=\search_keywords\" size=\"30\" /><br />
"<input type=\"text\" style=\"width: 290px\" name=\"search_keywords\" size=\"30\" /><br />
<span class=\"smalltext\">".tra("For example: \"screensaver freeze\"")."</span>");
row2(tra("Search for author ID:")."<br />
<span class=\"smalltext\">".tra("Only posts by this author will be displayed")."</span>",

View File

@ -87,7 +87,7 @@ function search_post_content(
$search_string="%";
foreach ($keyword_list as $key => $word){
$search_string.=BoincDb::escape_string($word)."%";
$search_string .= BoincDb::escape_string($word)."%";
}
$optional_join = "";
// if looking in a single forum, need to join w/ thread table