Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Generate the postbox area
- *
- * @param integer $replythread The ID of the thread being replied to. 0 if not replying
- * @param string $postboxnotice The postbox notice
- * @return string The generated postbox
- */
- function Postbox($replythread = 0) {
- global $tc_db;
- if (KU_BLOTTER && $this->board['type'] != 1) {
- $this->dwoo_data->assign('blotter', getBlotter());
- $this->dwoo_data->assign('blotter_updated', getBlotterLastUpdated());
- }
- $postbox = '';
- if ($this->board['type'] == 2 && $replythread > 0) {
- $oekposts = $tc_db->GetAll("SELECT `id` FROM `" . KU_DBPREFIX."posts` WHERE `boardid` = " . $this->board['id']." AND (`id` = ".$replythread." OR `parentid` = ".$replythread.") AND `file` != '' AND `file` != 'removed' AND `file_type` IN ('jpg', 'gif', 'png') AND `IS_DELETED` = 0 ORDER BY `parentid` ASC, `timestamp` ASC");
- $this->dwoo_data->assign('oekposts', $oekposts);
- }
- if ($this->board['enablecaptcha'] == 1 && $replythread == 0) {
- require_once(KU_ROOTDIR.'recaptchalib.php');
- $publickey = "--hide--";
- $this->dwoo_data->assign('recaptcha', recaptcha_get_html($publickey));
- }
- if(($this->board['type'] == 1 && $replythread == 0) || $this->board['type'] != 1) {
- $postbox .= $this->dwoo->get(KU_TEMPLATEDIR . '/' . $this->board['text_readable'] . '_post_box.tpl', $this->dwoo_data);
- }
- return $postbox;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement