1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

Slight mods to the usersearch function, moved to search.php

git-svn-id: file:///svn/phpbb/trunk@1224 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-10-16 14:47:27 +00:00
parent 69e8054bdc
commit fd59e88898
8 changed files with 95 additions and 100 deletions

View File

@@ -399,7 +399,27 @@ $sortby_sql = array("p.post_time", "pt.post_subject", "t.topic_title", "u.userna
//
// Begin core code
//
if( $query_keywords != "" || $query_author != "" || $search_id )
if( $mode == "searchuser" )
{
//
// This handles the simple windowed user search
// functions called from various other scripts. If a
// script allows an 'inline' user search then this is
// handled by the script itself, this is only for the
// windowed version
//
if( isset($HTTP_POST_VARS['search']) )
{
username_search($HTTP_POST_VARS['search_author'], false);
}
else
{
username_search("", false);
}
exit;
}
else if( $query_keywords != "" || $query_author != "" || $search_id )
{
if( $query_keywords != "" || $query_author != "" || $search_id == "newposts" )