', 'position' => $val['advertising_topic']) ; } } } return $advertising ; } public function Init() { $row = array() ; $option = array() ; if(parent
$is_logged) { $option['SQL']['readJoin'] = "LEFT JOIN " . PREFIX . "_be_read_topic AS read_topic ON topic.id = read_topic.ber_topic_id AND read_topic.ber_user_id = " . parent
$member_id['user_id'] ; $option['SQL']['readColum'] = ', read_topic . *' ; $option['SQL']['feed'] = "LEFT JOIN " . PREFIX . "_be_feed AS feed ON (feed.id_topic = " . parent
$globalParam['id'] . " AND feed.id_user = " . parent
$member_id['user_id'] . ')' ; $option['SQL']['columFeed'] = ',feed.id_user' ; } $row = parent
$db->super_query("SELECT topic . * {$option['SQL']['readColum']}{$option['SQL']['columFeed']} FROM " . PREFIX . "_be_topic AS topic {$option['SQL']['readJoin']} {$option['SQL']['feed']} WHERE topic.id = " . parent
$globalParam['id'] . " LIMIT 1") ; $row['title'] = stripslashes($row['title']) ; $row['reply_count'] = (int)$row['reply_count'] ; // var_dump($row); if(parent
$config['BE']['handler_cpu'] and parent
$config['BE']['cpu']) { if(!parent
$config['BE']['is_cpu_type']) { $this->_param['topicTitleTranslite'] = totranslit($row['title'], true, true) ; if($_REQUEST['name'] != $this->_param['topicTitleTranslite']) { header("HTTP/1.0 301 Moved Permanently") ; header("Location: " . parent
$link->topicIsRedirect(parent
$globalParam['id'], $this->_param['topicTitleTranslite'])) ; die("Redirect") ; } } else { if(parent
$config['BE']['slash'] and substr($_SERVER['REQUEST_URI'], -1) != '/') { header("HTTP/1.0 301 Moved Permanently") ; header("Location: " . parent
$link->topicIsRedirect(parent
$globalParam['id'], $this->_param['topicTitleTranslite'])) ; die("Redirect") ; } } } $this->_param['topic_type'] = (int)$row['topic_type'] ; if(!$row['id_parent']) { return parent
$helper->setTplMainBlock(parent
$helper->setTplError(parent
$bullet_energy_lang['error_3'], parent
$bullet_energy_lang['error_12'])) ; } if(parent
$config['BE']['topic_view']) { parent
$db->query("UPDATE " . PREFIX . "_be_topic SET view_count = view_count + 1 where id = " . parent
$globalParam['id']) ; } if(!parent
$helper->checkTreeConfigParam('readTopic', $row['id_parent'])) { return parent
$helper->setTplMainBlock(parent
$helper->setTplError(parent
$bullet_energy_lang['error_3'], parent
$bullet_energy_lang['topic_11'])) ; } if(!$row['topic_approve']) { if(!parent
$helper->ckeckModulesConfig('be_moder_moder_view') and parent
$member_id['user_id'] != $row['autor_id']) { return parent
$helper->setTplError(parent
$bullet_energy_lang['error_3'], parent
$bullet_energy_lang['topic_38']) ; } $option['infoModeration'] = '' ; parent
$tpl->result['block_full_topic'] = '
Эти символы-священные. Поклоняйтесь им.
, , нравится это сообщение.