addCss ("modules/boonex/forum/layout/{$gConf['skin']}/css/|main.css"); $GLOBALS['oSysTemplate']->addJs (array( $gConf['url']['js'] . 'util.js', $gConf['url']['js'] . 'BxError.js', $gConf['url']['js'] . 'BxXmlRequest.js', $gConf['url']['js'] . 'BxXslTransform.js', $gConf['url']['js'] . 'BxForum.js', $gConf['url']['js'] . 'BxHistory.js', $gConf['url']['js'] . 'BxLogin.js', $gConf['url']['js'] . 'BxAdmin.js', )); if (isset($_page['extra_js'])) $_page['extra_js'] .= $GLOBALS['oSysTemplate']->addJs ('tiny_mce_gzip.js', true); else $_page['extra_js'] = $GLOBALS['oSysTemplate']->addJs ('tiny_mce_gzip.js', true); $GLOBALS['BxDolTemplateInjections']['page_'.$_ni]['injection_body'][] = array('type' => 'text', 'data' => 'id="body" onload="if(!document.body) { document.body = document.getElementById(\'body\'); }; h = new BxHistory(); document.h = h; return h.init(\'h\'); "'); ob_start(); PageCode(); $sDolphinDesign = ob_get_clean(); $iPos = strpos($sDolphinDesign, '-=++=-'); $glHeader = substr ($sDolphinDesign, 0, $iPos); $glFooter = substr ($sDolphinDesign, $iPos + 6 - strlen($sDolphinDesign)); // ******************* include dolphin header/footer [ end ] class BxDolOrcaForumsIndex extends BxDolPageView { var $sMarker = '-=++=-'; function BxDolOrcaForumsIndex() { parent::BxDolPageView('forums_index'); } function getBlockCode_FullIndex() { return $this->sMarker; } } class BxDolOrcaForumsHome extends BxDolPageView { var $sMarker = '-=++=-'; function BxDolOrcaForumsHome() { parent::BxDolPageView('forums_home'); } function getBlockCode_ShortIndex() { global $gConf; $s = '
'; $ac = $GLOBALS['f']->fdb->getCategs(); foreach ($ac as $c) { $s .= '
'. $c['cat_name'] .'
'; $af = $GLOBALS['f']->fdb->getForumsByCatUri (filter_to_db($c['cat_uri'])); foreach ($af as $ff) $s .= '
' . $ff['forum_title'] . '
'; } $s .= '
'; return $s; } function getBlockCode_RecentTopics() { return $this->sMarker; } } ?>