Пример #1
0
<?php

require 'config.php';
require KU_ROOTDIR . 'inc/functions.php';
echo getBlotter(true);
Пример #2
0
 /**
  * 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['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;
 }