Example #1
0
            $page .= $board_class->dwoo->get(KU_TEMPLATEDIR . '/txt_thread.tpl', $board_class->dwoo_data);
        }
    }
    if ($ids_found == 0) {
        $page .= _gettext('Unable to find records of any posts matching that quote syntax.');
    }
} else {
    if (!$singlepost) {
        $page .= '<br />' . "\n";
    }
    $results = $tc_db->GetAll("SELECT * FROM `" . KU_DBPREFIX . "posts` WHERE `boardid` = " . $board_class->board['id'] . " AND (" . $postidquery . ") AND `IS_DELETED` = 0 ORDER BY `id` ASC");
    if ($board_class->board['type'] == 0) {
        $embeds = $tc_db->GetAll("SELECT filetype FROM `" . KU_DBPREFIX . "embeds`");
        foreach ($embeds as $embed) {
            $board_class->board['filetypes'][] .= $embed['filetype'];
        }
        $board_class->dwoo_data->assign('filetypes', $board_class->board['filetypes']);
    }
    foreach ($results as $key => $post) {
        $results[$key] = $board_class->BuildPost($post, false);
    }
    $board_class->dwoo_data->assign('posts', $results);
    $page .= $board_class->dwoo->get(KU_TEMPLATEDIR . '/' . $board_class->board['text_readable'] . '_thread.tpl', $board_class->dwoo_data);
    if (!$singlepost) {
        $page .= '<br clear="left">' . "\n";
    }
}
if (!$singlepost) {
    $page .= '<hr />' . "\n" . $board_class->Footer($noboardlist, microtime_float() - $executiontime_start, $hide_extra);
}
$board_class->PrintPage('', $page, true);