Example #1
0
 /**
  * Generate an XML sitemap for webcrawlers
  */
 function index()
 {
     if (Request::getRequestedConferencePath() == 'index') {
         $doc = SitemapHandler::createSitemapIndex();
         header("Content-Type: application/xml");
         header("Cache-Control: private");
         header("Content-Disposition: inline; filename=\"sitemap_index.xml\"");
         XMLCustomWriter::printXML($doc);
     } else {
         if (Request::getRequestedSchedConfPath() == 'index') {
             // At conference level
             $doc = SitemapHandler::createConfSitemap();
             header("Content-Type: application/xml");
             header("Cache-Control: private");
             header("Content-Disposition: inline; filename=\"sitemap.xml\"");
             XMLCustomWriter::printXML($doc);
         } else {
             // At scheduled conference level
             $doc = SitemapHandler::createSchedConfSitemap();
             header("Content-Type: application/xml");
             header("Cache-Control: private");
             header("Content-Disposition: inline; filename=\"sitemap.xml\"");
             XMLCustomWriter::printXML($doc);
         }
     }
 }
Example #2
0
 /**
  * Display conference management index page.
  */
 function index()
 {
     // Manager requests should come to the Conference context, not Sched Conf
     if (Request::getRequestedSchedConfPath() != 'index') {
         Request::redirect(null, 'index', 'manager');
     }
     $this->validate();
     $this->setupTemplate();
     $conference =& Request::getConference();
     $templateMgr =& TemplateManager::getManager();
     $schedConfDao =& DAORegistry::getDAO('SchedConfDAO');
     $schedConfs =& $schedConfDao->getSchedConfs(false, $conference->getId());
     $templateMgr->assign_by_ref('schedConfs', $schedConfs);
     $templateMgr->assign('announcementsEnabled', $conference->getSetting('enableAnnouncements'));
     $templateMgr->assign('helpTopicId', 'conference.index');
     $templateMgr->display(ROLE_PATH_CONFERENCE_MANAGER . '/index.tpl');
 }
Example #3
0
 /**
  * Assigns values to e-mail parameters.
  * @param $paramArray array
  * @return void
  */
 function assignParams($paramArray = array())
 {
     // Add commonly-used variables to the list
     $conference =& Request::getConference();
     $schedConf =& Request::getSchedConf();
     if ($schedConf) {
         $paramArray['principalContactSignature'] = $schedConf->getSetting('contactName');
     } elseif ($conference) {
         $paramArray['principalContactSignature'] = $conference->getSetting('contactName');
     } else {
         $site =& Request::getSite();
         $paramArray['principalContactSignature'] = $site->getLocalizedContactName();
     }
     if (isset($conference)) {
         // FIXME Include affiliation, title, etc. in signature?
         $paramArray['conferenceName'] = $conference->getConferenceTitle();
     }
     if (!isset($paramArray['conferenceUrl'])) {
         $paramArray['conferenceUrl'] = Request::url(Request::getRequestedConferencePath(), Request::getRequestedSchedConfPath());
     }
     return parent::assignParams($paramArray);
 }