25 require_once
'../vendor/composer/vendor/autoload.php';
37 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
38 Header(
"HTTP/1.0 401 Unauthorized");
45 &&
$feed_set->get(
"enable_private_feed")) {
46 include_once(
"./Services/Feeds/classes/class.ilUserFeedWriter.php");
51 include_once(
"./Services/Feeds/classes/class.ilObjectFeedWriter.php");
59 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
60 Header(
"HTTP/1.0 401 Unauthorized");
64 include_once(
"./Services/Feeds/classes/class.ilFeedItem.php");
65 include_once(
"./Services/Feeds/classes/class.ilFeedWriter.php");
69 $lng->loadLanguageModule(
"news");
71 if (
$ilSetting->get(
'short_inst_name') !=
"") {
72 $blankFeedWriter->setChannelTitle(
$ilSetting->get(
'short_inst_name'));
74 $blankFeedWriter->setChannelTitle(
"ILIAS");
80 if (!
$feed_set->get(
"enable_private_feed")) {
81 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
82 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
84 $feed_item->setTitle(
$lng->txt(
"priv_feed_no_access_title"));
87 $feed_item->setDescription(
$lng->txt(
"priv_feed_no_access_body"));
88 $feed_item->setLink(ILIAS_HTTP_PATH);
90 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
91 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
93 $feed_item->setTitle(
$lng->txt(
"priv_feed_no_auth_title"));
96 $feed_item->setDescription(
$lng->txt(
"priv_feed_no_auth_body"));
97 $feed_item->setLink(ILIAS_HTTP_PATH);
99 $blankFeedWriter->addItem($feed_item);
100 $blankFeedWriter->showFeed();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupId($a_user_str)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static initILIAS()
ilias initialisation
static _getFeedPass(int $a_user_id)
Lookup news feed password for user.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static init(string $a_type)
Init context by type.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupLogin(int $a_user_id)