10 require_once(CH_DIRECTORY_PATH_INC .
'db.inc.php');
11 require_once(CH_DIRECTORY_PATH_INC .
'params.inc.php');
12 require_once(CH_DIRECTORY_PATH_INC .
'design.inc.php');
13 require_once(CH_DIRECTORY_PATH_CLASSES .
'ChWsbPageView.php');
16 if (isset(
$_GET[
'action']) &&
'goto' ==
$_GET[
'action'] &&
$_GET[
'forum_id']) {
18 $GLOBALS[
'oTopMenu']->setCustomVar(
'ch_events_view_uri',
$aForum[
'forum_uri']);
20 } elseif (isset(
$_GET[
'action']) &&
'goto' ==
$_GET[
'action'] &&
$_GET[
'topic_id']) {
23 $GLOBALS[
'oTopMenu']->setCustomVar(
'ch_events_view_uri', $aTopic[
'forum_uri']);
24 $GLOBALS[
'oTopMenu']->setCustomSubHeader($aTopic[
'forum_title']);
26 $GLOBALS[
'oTopMenu']->setCustomVar(
'ch_events_view_uri',
'../');
29 if ((isset(
$_GET[
'action']) &&
'goto' ==
$_GET[
'action'] &&
$_GET[
'forum_id']) || (isset(
$_GET[
'action']) &&
'goto' ==
$_GET[
'action'] &&
$_GET[
'topic_id'])) {
32 $GLOBALS[
'oTopMenu']->setCustomSubHeaderUrl(CH_WSB_URL_ROOT . $oModuleMain->_oConfig->getBaseUri() .
'view/' .
$aForum[
'forum_uri']);
33 $GLOBALS[
'oTopMenu']->setCustomBreadcrumbs(array(
34 _t(
'_ch_events') => CH_WSB_URL_ROOT . $oModuleMain->_oConfig->getBaseUri() .
'home/',
35 $aForum[
'forum_title'] => CH_WSB_URL_ROOT . $oModuleMain->_oConfig->getBaseUri() .
'view/' .
$aForum[
'forum_uri'],
36 _t(
'_ch_events_menu_view_forum') =>
'',
44 require_once (
$aPathInfo[
'dirname'] .
'/../base/design.php');
48 if (!isset(
$_GET[
'action']) && !isset($_POST[
'action'])) {
49 $_GET[
'action'] =
'goto';
50 $_GET[
'cat_id'] =
'Events';