assign('helpTopicId', 'user.home'); // If the site specifies that we should redirect to a specific conference // by default, do it. $siteDao = &DAORegistry::getDAO('SiteDAO'); $site = &$siteDao->getSite(); $conference = $conferenceDao->getConference($site->getConferenceRedirect()); if ($site->getConferenceRedirect() && $conference) { Request::redirect($conference->getPath()); } // Otherwise, show a list of hosted conferences. $templateMgr->assign('intro', $site->getIntro()); $conferences = &$conferenceDao->getEnabledConferences(); $templateMgr->assign_by_ref('conferences', $conferences); $templateMgr->display('index/site.tpl'); } } } ?>