public function xmlRouter()
 {
     $sAction = $this->httpRequest->get('action');
     $this->_xmlRouter($sAction);
     $this->sXmlType = 'sitemap';
     $this->view->current_date = DateFormat::getSitemap();
     // Date format for sitemap
     // XML router
     if (!empty($sAction)) {
         switch ($sAction) {
             case 'main':
             case 'user':
             case 'blog':
             case 'note':
             case 'forums':
             case 'forum':
             case 'forum-topic':
             case 'comment':
             case 'picture':
             case 'video':
             case 'game':
                 $this->sAction = $sAction;
                 break;
             case 'comment-profile':
             case 'comment-blog':
             case 'comment-note':
             case 'comment-picture':
             case 'comment-video':
             case 'comment-game':
                 $this->view->setCaching(false);
                 // We disable the cache since they are dynamic pages managed by the router.
                 $this->sAction = 'comment.inc';
                 break;
             default:
                 $this->displayPageNotFound(t('Not Found Site Map!'));
         }
     } else {
         $this->sAction = 'home';
     }
     $this->xmlOutput();
 }
 public function xmlRouter()
 {
     $sAction = $this->httpRequest->get('action');
     $mParam = $this->httpRequest->get('param');
     $this->_xmlRouter($sAction, $mParam);
     $this->sXmlType = 'rss';
     $this->view->current_date = DateFormat::getRss();
     // Date format for RSS feed
     // RSS router
     switch ($sAction) {
         case 'blog':
         case 'note':
         case 'forum-topic':
             $this->sAction = $sAction;
             break;
         case 'comment-profile':
         case 'comment-blog':
         case 'comment-note':
         case 'comment-picture':
         case 'comment-video':
         case 'comment-game':
             $this->view->setCaching(false);
             // We disable the cache since they are dynamic pages managed by the router.
             $this->sAction = 'comment.inc';
             break;
         case 'forum-post' && !empty($mParam) && is_numeric($mParam):
             $this->view->setCaching(false);
             // We disable the cache since they are dynamic pages managed by the router.
             $this->view->forums_messages = $this->oDataModel->getForumsMessages($mParam);
             $this->sAction = $sAction;
             break;
         default:
             $this->displayPageNotFound(t('Not Found RSS Feed!'));
     }
     $this->xmlOutput();
 }