'', 'trade' => '', 'qihoo' => '', 'threadsort' => ''); $searchid = isset($searchid) ? intval($searchid) : 0; if($srchtype == 'trade' || $srchtype == 'threadsort' || $srchtype == 'qihoo') { $checkarray[$srchtype] = 'checked'; } elseif($srchtype == 'title' || $srchtype == 'fulltext') { $checkarray['posts'] = 'checked'; } else { $srchtype = ''; $checkarray['posts'] = 'checked'; } $keyword = isset($srchtxt) ? htmlspecialchars(trim($srchtxt)) : ''; $threadsorts = ''; if($srchtype == 'threadsort') { $query = $db->query("SELECT * FROM {$tablepre}threadtypes WHERE special='1' ORDER BY displayorder"); while($type = $db->fetch_array($query)) { $threadsorts .= ''; } } $forumselect = forumselect('', '', '', TRUE); if(!empty($srchfid) && !is_numeric($srchfid)) { $forumselect = str_replace('