Beispiel #1
0
                 $title .= $owner_fullname;
             }
             unset($owner_user_item);
             unset($current_portal_item);
         }
         header('WWW-Authenticate: Basic realm="' . $translator->getMessage('RSS_TITLE', $title) . '"');
         header('HTTP/1.0 401 Unauthorized');
         die($translator->getMessage('RSS_NOT_ALLOWED'));
     }
 }
 if ($validated and isset($user) and !empty($user)) {
     $user_item = $context_item->getUserByUserID($user, $authsourceid);
 } elseif ($validated and isset($_GET['hid']) and !empty($_GET['hid'])) {
     $user_item = $context_item->getUserByRSSHash($_GET['hid']);
 }
 $item_manager = $environment->getItemManager();
 $item_manager->setIntervalLimit(1);
 $item_manager->setDeleteLimit(true);
 $mod_date = $item_manager->_performQuery();
 $date = date('r', strtotime($mod_date['0']['modification_date']));
 if ($context_item->isPrivateRoom()) {
     $maintitle = '';
     $current_portal_item = $environment->getCurrentPortalItem();
     if (isset($current_portal_item)) {
         $maintitle .= $current_portal_item->getTitle();
     }
     $owner_user_item = $context_item->getOwnerUserItem();
     $owner_fullname = $owner_user_item->getFullName();
     if (!empty($owner_fullname)) {
         if (!empty($maintitle)) {
             $maintitle .= ': ';