diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-10-16 14:47:27 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-10-16 14:47:27 +0000 |
commit | fd59e8889866832a291a77350ecdbfb982cd84c4 (patch) | |
tree | bc0d8a34c1a92ba973192155ae7b731b05b4975d /phpBB/search.php | |
parent | 69e8054bdcab2a52349f676ae27dd0f1114e3633 (diff) | |
download | forums-fd59e8889866832a291a77350ecdbfb982cd84c4.tar forums-fd59e8889866832a291a77350ecdbfb982cd84c4.tar.gz forums-fd59e8889866832a291a77350ecdbfb982cd84c4.tar.bz2 forums-fd59e8889866832a291a77350ecdbfb982cd84c4.tar.xz forums-fd59e8889866832a291a77350ecdbfb982cd84c4.zip |
Slight mods to the usersearch function, moved to search.php
git-svn-id: file:///svn/phpbb/trunk@1224 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 1b0f48454f..7e9dd3af4c 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -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" ) |