GetOne("SELECT `name` FROM `" . KU_DBPREFIX . "boards` WHERE `name` = '" . mysql_real_escape_string($_GET['board']) . "'"); if ($board_name != '') { $board_class = new Board($board_name); } else { die('Invalid board.'); } if (isset($_GET['preview'])) { require KU_ROOTDIR . 'inc/classes/parse.class.php'; $parse_class = new Parse(); if (isset($_GET['board']) && isset($_GET['parentid']) && isset($_GET['message'])) { die('' . _gettext('Post preview') . ':
' . $parse_class->ParsePost($_GET['message'], $board_class->board_dir, $board_class->board_type, $_GET['parentid']) . '
'); } die('Error'); } $results = $tc_db->GetAll('SELECT * FROM `'.KU_DBPREFIX.'posts_'.$board_class->board_dir.'` WHERE `IS_DELETED` = 0 AND `parentid` = '.mysql_real_escape_string($_GET['threadid']).' ORDER BY `id` ASC'); $output = ''; foreach($results AS $line_reply) { $output .= $board_class->BuildPost(true, $board_class->board_dir, $board_class->board_type, $line_reply); } echo $output; ?>