$_G['group']['grouptitle']), array('login' => 1)); } $_G['setting']['search']['forum']['searchctrl'] = intval($_G['setting']['search']['forum']['searchctrl']); require_once libfile('function/forumlist'); require_once libfile('function/forum'); require_once libfile('function/post'); loadcache(array('forums', 'posttable_info')); $posttableselect = ''; if(!empty($_G['cache']['posttable_info']) && is_array($_G['cache']['posttable_info'])) { $posttableselect = ''; } $srchmod = 2; $cachelife_time = 300; // Life span for cache of searching in specified range of time $cachelife_text = 3600; // Life span for cache of text searching $srchtype = empty($_GET['srchtype']) ? '' : trim($_GET['srchtype']); $searchid = isset($_GET['searchid']) ? intval($_GET['searchid']) : 0; $seltableid = intval(getgpc('seltableid')); if($srchtype != 'title' && $srchtype != 'fulltext') { $srchtype = ''; } $srchtxt = trim(getgpc('srchtxt')); $srchuid = intval(getgpc('srchuid')); $srchuname = isset($_GET['srchuname']) ? trim(str_replace('|', '', $_GET['srchuname'])) : '';; $srchfrom = intval(getgpc('srchfrom')); $before = intval(getgpc('before')); $srchfid = getgpc('srchfid'); $srhfid = intval($_GET['srhfid']); $keyword = isset($srchtxt) ? dhtmlspecialchars(trim($srchtxt)) : ''; $forumselect = forumselect(); if(!empty($srchfid) && !is_numeric($srchfid)) { $forumselect = str_replace('