'.$lang_common['Pages'].' '.paginate($forum_page['num_pages'], $forum_page['page'], $url_type, $lang_common['Paging separator'], $search_id).'

'; // Get topic/forum tracking data if (!$forum_user['is_guest']) $tracked_topics = get_tracked_topics(); // Navigation links for header and page numbering for title/meta description if ($forum_page['page'] < $forum_page['num_pages']) { $forum_page['nav']['last'] = ''; $forum_page['nav']['next'] = ''; } if ($forum_page['page'] > 1) { $forum_page['nav']['prev'] = ''; $forum_page['nav']['first'] = ''; } // Setup main heading if ($forum_page['num_pages'] > 1) $forum_page['main_head_pages'] = sprintf($lang_common['Page info'], $forum_page['page'], $forum_page['num_pages']); // Setup main options header $forum_page['main_title'] = $lang_search['Search options']; ($hook = get_hook('se_results_pre_header_load')) ? eval($hook) : null; define('FORUM_PAGE', $show_as == 'topics' ? 'searchtopics' : 'searchposts'); require FORUM_ROOT.'header.php'; // START SUBST - ob_start(); ($hook = get_hook('se_results_output_start')) ? eval($hook) : null; if ($show_as == 'topics') { // Load the forum.php language file require FORUM_ROOT.'lang/'.$forum_user['language'].'/forum.php'; $forum_page['item_header'] = array(); $forum_page['item_header']['subject']['title'] = ''.$lang_forum['Topics'].''; $forum_page['item_header']['info']['forum'] = ''.$lang_forum['Forum'].''; $forum_page['item_header']['info']['replies'] = ''.$lang_forum['replies'].''; $forum_page['item_header']['info']['lastpost'] = ''.$lang_forum['last post'].''; ($hook = get_hook('se_results_topics_pre_item_header_output')) ? eval($hook) : null; ?>
'.implode(' ', $forum_page['main_head_options']).'

'; ?>

'.implode(' ', $forum_page['main_head_options']).'

'; ?>

'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).''; $forum_page['post_ident']['byline'] = ''; $forum_page['post_ident']['link'] = ''; ($hook = get_hook('se_results_posts_row_pre_item_ident_merge')) ? eval($hook) : null; // Generate the topic title $forum_page['item_subject'] = ' '.sprintf($lang_topic['Search replies'], forum_number_format($cur_set['num_replies']), ''.forum_htmlencode($cur_set['forum_name']).'').''; // Generate author identification $forum_page['user_ident'] = ($cur_set['poster_id'] > 1 && $forum_user['g_view_users'] == '1') ? ''.forum_htmlencode($cur_set['pposter']).'' : ''.forum_htmlencode($cur_set['pposter']).''; // Generate the post actions links $forum_page['post_actions'] = array(); $forum_page['post_actions']['forum'] = ''.$lang_search['Go to forum'].': '.forum_htmlencode($cur_set['forum_name']).''; if ($cur_set['pid'] != $cur_set['first_post_id']) $forum_page['post_actions']['topic'] = ''; $forum_page['post_actions']['post'] = ''; $forum_page['message'] = parse_message($cur_set['message'], $cur_set['hide_smilies']); // Give the post some class $forum_page['item_status'] = array( 'post', (($forum_page['item_count'] % 2 != 0) ? 'odd' : 'even' ) ); if ($forum_page['item_count'] == 1) $forum_page['item_status']['firstpost'] = 'firstpost'; if (($forum_page['start_from'] + $forum_page['item_count']) == $forum_page['finish_at']) $forum_page['item_status']['lastpost'] = 'lastpost'; if ($cur_set['pid'] == $cur_set['first_post_id']) $forum_page['item_status']['topicpost'] = 'topicpost'; ($hook = get_hook('se_results_posts_row_pre_display')) ? eval($hook) : null; ?>

0) { $forum_page['item_title']['posted'] = ''.$lang_forum['You posted indicator'].''; $forum_page['item_status']['posted'] = 'posted'; } if ($cur_set['sticky'] == '1') { $forum_page['item_title_status']['sticky'] = ''.$lang_forum['Sticky'].''; $forum_page['item_status']['sticky'] = 'sticky'; } if ($cur_set['closed'] != '0') { $forum_page['item_title_status']['closed'] = ''.$lang_forum['Closed'].''; $forum_page['item_status']['closed'] = 'closed'; } ($hook = get_hook('se_results_topics_row_pre_item_subject_status_merge')) ? eval($hook) : null; if (!empty($forum_page['item_title_status'])) $forum_page['item_title']['status'] = ''.sprintf($lang_forum['Item status'], implode(', ', $forum_page['item_title_status'])).''; $forum_page['item_title']['link'] = ''.forum_htmlencode($cur_set['subject']).''; ($hook = get_hook('se_results_topics_row_pre_item_title_merge')) ? eval($hook) : null; $forum_page['item_body']['subject']['title'] = '

'.forum_number_format($forum_page['start_from'] + $forum_page['item_count']).' '.implode(' ', $forum_page['item_title']).'

'; $forum_page['item_pages'] = ceil(($cur_set['num_replies'] + 1) / $forum_user['disp_posts']); if ($forum_page['item_pages'] > 1) $forum_page['item_nav']['pages'] = ''.$lang_forum['Pages'].' '.paginate($forum_page['item_pages'], -1, $forum_url['topic'], $lang_common['Page separator'], array($cur_set['tid'], sef_friendly($cur_set['subject']))); // Does this topic contain posts we haven't read? If so, tag it accordingly. if (!$forum_user['is_guest'] && $cur_set['last_post'] > $forum_user['last_visit'] && (!isset($tracked_topics['topics'][$cur_set['tid']]) || $tracked_topics['topics'][$cur_set['tid']] < $cur_set['last_post']) && (!isset($tracked_topics['forums'][$cur_set['forum_id']]) || $tracked_topics['forums'][$cur_set['forum_id']] < $cur_set['last_post'])) { $forum_page['item_nav']['new'] = ''.$lang_forum['New posts'].''; $forum_page['item_status']['new'] = 'new'; } ($hook = get_hook('se_results_topics_row_pre_item_nav_merge')) ? eval($hook) : null; $forum_page['item_subject']['starter'] = ''.sprintf($lang_forum['Topic starter'], forum_htmlencode($cur_set['poster'])).''; if (!empty($forum_page['item_nav'])) $forum_page['item_subject']['nav'] = ''.sprintf($lang_forum['Topic navigation'], implode('  ', $forum_page['item_nav'])).''; ($hook = get_hook('se_results_topics_row_pre_item_subject_merge')) ? eval($hook) : null; $forum_page['item_body']['subject']['desc'] = '

'.implode(' ', $forum_page['item_subject']).'

'; if (empty($forum_page['item_status'])) $forum_page['item_status']['normal'] = 'normal'; ($hook = get_hook('se_results_topics_pre_item_status_merge')) ? eval($hook) : null; $forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-first-item' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : ''); $forum_page['item_body']['info']['forum'] = '
  • '.$lang_search['Posted in'].''.$cur_set['forum_name'].'
  • '; $forum_page['item_body']['info']['replies'] = '
  • '.forum_number_format($cur_set['num_replies']).' '.(($cur_set['num_replies'] == 1) ? $lang_forum['Reply'] : $lang_forum['Replies']).'
  • '; $forum_page['item_body']['info']['lastpost'] = '
  • '.$lang_forum['Last post'].' '.format_time($cur_set['last_post']).' '.sprintf($lang_forum['by poster'], forum_htmlencode($cur_set['last_poster'])).'
  • '; ($hook = get_hook('se_results_topics_row_pre_display')) ? eval($hook) : null; ?>
    '.implode(' ', $forum_page['main_foot_options']).'

    '; ?>

    ', $tpl_temp, $tpl_main); ob_end_clean(); // END SUBST - require FORUM_ROOT.'footer.php'; } // // Display the search form // // Setup form information $forum_page['frm-info'] = array( 'keywords' => '
  • '.$lang_search['Keywords info'].'
  • ', 'refine' => '
  • '.$lang_search['Refine info'].'
  • ', 'wildcard' => '
  • '.$lang_search['Wildcard info'].'
  • ' ); if ($forum_config['o_search_all_forums'] == '1' || $forum_user['is_admmod']) $forum_page['frm-info']['forums'] = '
  • '.$lang_search['Forum default info'].'
  • '; else $forum_page['frm-info']['forums'] = '
  • '.$lang_search['Forum require info'].'
  • '; // Setup sort by options $forum_page['frm-sort'] = array( 'post_time' => '', 'author' => '', 'subject' => '', 'forum_name' => '' ); // Setup breadcrumbs $forum_page['crumbs'] = array( array($forum_config['o_board_title'], forum_link($forum_url['index'])), array($lang_common['Search'], forum_link($forum_url['search'])) ); // Setup form $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0; ($hook = get_hook('se_pre_header_load')) ? eval($hook) : null; define('FORUM_PAGE', 'search'); require FORUM_ROOT.'header.php'; // START SUBST - ob_start(); ($hook = get_hook('se_main_output_start')) ? eval($hook) : null; ?>
    '.implode(' ', $forum_page['main_head_options']).'

    '; ?>




    'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.redirect_url', 'FROM' => 'categories AS c', 'JOINS' => array( array( 'INNER JOIN' => 'forums AS f', 'ON' => 'c.id=f.cat_id' ), array( 'LEFT JOIN' => 'forum_perms AS fp', 'ON' => '(fp.forum_id=f.id AND fp.group_id='.$forum_user['g_id'].')' ) ), 'WHERE' => '(fp.read_forum IS NULL OR fp.read_forum=1) AND f.redirect_url IS NULL', 'ORDER BY' => 'c.disp_position, c.id, f.disp_position' ); ($hook = get_hook('se_qr_get_cats_and_forums')) ? eval($hook) : null; $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); if ($forum_db->num_rows($result) > 0) { $cur_category = 0; while ($cur_forum = $forum_db->fetch_assoc($result)) { ($hook = get_hook('se_forum_loop_start')) ? eval($hook) : null; if ($cur_forum['cid'] != $cur_category) // A new category since last iteration? { if ($cur_category) echo "\t\t\t\t\t\t\t".'
    '."\n"; echo "\t\t\t\t\t\t\t".'
    '."\n\t\t\t\t\t\t\t\t".''.forum_htmlencode($cur_forum['cat_name']).':'."\n"; $cur_category = $cur_forum['cid']; } echo "\t\t\t\t\t\t\t\t".'
    '."\n"; } echo "\t\t\t\t\t\t\t".'
    '."\n"; } ?>

    ', $tpl_temp, $tpl_main); ob_end_clean(); // END SUBST - require FORUM_ROOT.'footer.php';