35 setcookie(
"ilClientId",
$_GET[
"client_id"]);
39 require_once(
"Services/Init/classes/class.ilInitialisation.php");
50 if (!isset($_SERVER[
'PHP_AUTH_PW']) || !isset($_SERVER[
'PHP_AUTH_USER']))
52 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
53 Header(
"HTTP/1.0 401 Unauthorized");
64 include_once(
"./Services/Feeds/classes/class.ilUserFeedWriter.php");
72 include_once(
"./Services/Feeds/classes/class.ilObjectFeedWriter.php");
78 include_once(
"./Services/Feeds/classes/class.ilFeedItem.php");
79 include_once(
"./Services/Feeds/classes/class.ilFeedWriter.php");
83 $lng->loadLanguageModule(
"news");
85 if ($ilSetting->get(
'short_inst_name') !=
"")
87 $blankFeedWriter->setChannelTitle($ilSetting->get(
'short_inst_name'));
91 $blankFeedWriter->setChannelTitle(
"ILIAS");
97 if (!
$feed_set->get(
"enable_private_feed"))
99 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
100 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
102 $feed_item->setTitle($lng->txt(
"priv_feed_no_access_title"));
105 $feed_item->setDescription($lng->txt(
"priv_feed_no_access_body"));
106 $feed_item->setLink(ILIAS_HTTP_PATH);
110 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
111 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
113 $feed_item->setTitle($lng->txt(
"priv_feed_no_auth_title"));
116 $feed_item->setDescription($lng->txt(
"priv_feed_no_auth_body"));
117 $feed_item->setLink(ILIAS_HTTP_PATH);
119 $blankFeedWriter->addItem($feed_item);
120 $blankFeedWriter->showFeed();