19require_once __DIR__ .
'/../artifacts/bootstrap_default.php';
32 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
33 Header(
"HTTP/1.0 401 Unauthorized");
40 &&
$feed_set->get(
"enable_private_feed")) {
41 include_once(
"../components/ILIAS/Feeds/classes/class.ilUserFeedWriter.php");
46 include_once(
"../components/ILIAS/Feeds/classes/class.ilObjectFeedWriter.php");
54 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
55 Header(
"HTTP/1.0 401 Unauthorized");
59 include_once(
"../components/ILIAS/Feeds/classes/class.ilFeedItem.php");
60 include_once(
"../components/ILIAS/Feeds/classes/class.ilFeedWriter.php");
64 $lng->loadLanguageModule(
"news");
66 if (
$ilSetting->get(
'short_inst_name') !=
"") {
67 $blankFeedWriter->setChannelTitle(
$ilSetting->get(
'short_inst_name'));
69 $blankFeedWriter->setChannelTitle(
"ILIAS");
75 if (!
$feed_set->get(
"enable_private_feed")) {
76 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
77 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
79 $feed_item->setTitle(
$lng->txt(
"priv_feed_no_access_title"));
82 $feed_item->setDescription(
$lng->txt(
"priv_feed_no_access_body"));
83 $feed_item->setLink(ILIAS_HTTP_PATH);
85 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
86 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
88 $feed_item->setTitle(
$lng->txt(
"priv_feed_no_auth_title"));
91 $feed_item->setDescription(
$lng->txt(
"priv_feed_no_auth_body"));
92 $feed_item->setLink(ILIAS_HTTP_PATH);
94 $blankFeedWriter->addItem($feed_item);
95 $blankFeedWriter->showFeed();
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static initILIAS()
ilias initialisation
static _lookupId(string|array $a_user_str)
static _getFeedPass(int $a_user_id)
static _lookupLogin(int $a_user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Feed writer for personal user feeds.
entry_point(string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...