Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* $Id: search.php 3478 2007-11-15 04:11:36Z Tikitiki $
| * $Id: search.php 3887 2008-06-06 23:38:42Z Tikitiki $
|
*/
| */
|
Zeile 73 | Zeile 73 |
---|
case "views": $sortfield = "t.views"; break;
|
case "views": $sortfield = "t.views"; break;
|
case "dateline":
| case "subject":
|
if($search['resulttype'] == "threads") {
|
if($search['resulttype'] == "threads") {
|
$sortfield = "t.dateline";
| $sortfield = "t.subject";
|
} else {
|
} else {
|
$sortfield = "p.dateline";
| $sortfield = "p.subject";
|
} break; case "forum":
| } break; case "forum":
|
Zeile 96 | Zeile 96 |
---|
$sortfield = "p.username"; } break;
|
$sortfield = "p.username"; } break;
|
| case "lastpost":
|
default: if($search['resulttype'] == "threads") { $sortfield = "t.lastpost";
|
default: if($search['resulttype'] == "threads") { $sortfield = "t.lastpost";
|
| $sortby = 'lastpost';
|
} else { $sortfield = "p.dateline";
|
} else { $sortfield = "p.dateline";
|
| $sortby = 'dateline';
|
}
|
}
|
$sortby = 'lastpost';
| |
break; }
| break; }
|
Zeile 478 | Zeile 480 |
---|
} $post['profilelink'] = build_profile_link($post['username'], $post['uid']); $post['subject'] = $parser->parse_badwords($post['subject']);
|
} $post['profilelink'] = build_profile_link($post['username'], $post['uid']); $post['subject'] = $parser->parse_badwords($post['subject']);
|
$post['subject'] = htmlspecialchars_uni($post['subject']);
| |
$post['thread_subject'] = $parser->parse_badwords($post['thread_subject']); $post['thread_subject'] = htmlspecialchars_uni($post['thread_subject']);
| $post['thread_subject'] = $parser->parse_badwords($post['thread_subject']); $post['thread_subject'] = htmlspecialchars_uni($post['thread_subject']);
|
Zeile 582 | Zeile 583 |
---|
} if(my_strlen($post['subject']) > 50) {
|
} if(my_strlen($post['subject']) > 50) {
|
$post['subject'] = my_substr($post['subject'], 0, 50)."...";
| $post['subject'] = htmlspecialchars_uni(my_substr($post['subject'], 0, 50)."...");
|
} else {
|
} else {
|
$post['subject'] = $post['subject'];
| $post['subject'] = htmlspecialchars_uni($post['subject']);
|
} if(my_strlen($post['message']) > 200) {
|
} if(my_strlen($post['message']) > 200) {
|
$prev = htmlspecialchars_uni(my_substr($post['message'], 0, 200)."...");
| $post['message'] = htmlspecialchars_uni(my_substr($post['message'], 0, 200)."...");
|
} else {
|
} else {
|
$prev = htmlspecialchars_uni($post['message']);
| $post['message'] = htmlspecialchars_uni($post['message']);
|
}
|
}
|
| $prev = $post['message'];
|
$posted = my_date($mybb->settings['dateformat'], $post['dateline']).", ".my_date($mybb->settings['timeformat'], $post['dateline']);
$plugins->run_hooks("search_results_post");
| $posted = my_date($mybb->settings['dateformat'], $post['dateline']).", ".my_date($mybb->settings['timeformat'], $post['dateline']);
$plugins->run_hooks("search_results_post");
|