26 require_once
'../vendor/composer/vendor/autoload.php';
38 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
39 Header(
"HTTP/1.0 401 Unauthorized");
46 &&
$feed_set->get(
"enable_private_feed")) {
47 include_once(
"./Services/Feeds/classes/class.ilUserFeedWriter.php");
52 include_once(
"./Services/Feeds/classes/class.ilObjectFeedWriter.php");
60 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
61 Header(
"HTTP/1.0 401 Unauthorized");
65 include_once(
"./Services/Feeds/classes/class.ilFeedItem.php");
66 include_once(
"./Services/Feeds/classes/class.ilFeedWriter.php");
70 $lng->loadLanguageModule(
"news");
72 if (
$ilSetting->get(
'short_inst_name') !=
"") {
73 $blankFeedWriter->setChannelTitle(
$ilSetting->get(
'short_inst_name'));
75 $blankFeedWriter->setChannelTitle(
"ILIAS");
81 if (!
$feed_set->get(
"enable_private_feed")) {
82 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
83 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
85 $feed_item->setTitle(
$lng->txt(
"priv_feed_no_access_title"));
88 $feed_item->setDescription(
$lng->txt(
"priv_feed_no_access_body"));
89 $feed_item->setLink(ILIAS_HTTP_PATH);
91 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
92 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
94 $feed_item->setTitle(
$lng->txt(
"priv_feed_no_auth_title"));
97 $feed_item->setDescription(
$lng->txt(
"priv_feed_no_auth_body"));
98 $feed_item->setLink(ILIAS_HTTP_PATH);
100 $blankFeedWriter->addItem($feed_item);
101 $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...
static _lookupLogin(int $a_user_id)