コード例 #1
0
ファイル: privfeed.php プロジェクト: arlendotcn/ilias
     Header("WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
     Header("HTTP/1.0 401 Unauthorized");
     exit;
 }
 include_once "./Services/Feeds/classes/class.ilFeedItem.php";
 include_once "./Services/Feeds/classes/class.ilFeedWriter.php";
 $blankFeedWriter = new ilFeedWriter();
 $feed_item = new ilFeedItem();
 $lng->loadLanguageModule("news");
 if ($ilSetting->get('short_inst_name') != "") {
     $blankFeedWriter->setChannelTitle($ilSetting->get('short_inst_name'));
 } else {
     $blankFeedWriter->setChannelTitle("ILIAS");
 }
 if (!$feed_set->get("enable_private_feed")) {
     $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
     $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
     // title
     $feed_item->setTitle($lng->txt("priv_feed_no_access_title"));
     // description
     $feed_item->setDescription($lng->txt("priv_feed_no_access_body"));
     $feed_item->setLink(ILIAS_HTTP_PATH);
 } else {
     $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
     $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
     // title
     $feed_item->setTitle($lng->txt("priv_feed_no_auth_title"));
     // description
     $feed_item->setDescription($lng->txt("priv_feed_no_auth_body"));
     $feed_item->setLink(ILIAS_HTTP_PATH);
 }