11 include_once
"Services/Context/classes/class.ilContext.php";
14 require_once(
"Services/Init/classes/class.ilInitialisation.php");
23 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
24 Header(
"HTTP/1.0 401 Unauthorized");
31 &&
$feed_set->get(
"enable_private_feed")) {
32 include_once(
"./Services/Feeds/classes/class.ilUserFeedWriter.php");
37 include_once(
"./Services/Feeds/classes/class.ilObjectFeedWriter.php");
46 Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
47 Header(
"HTTP/1.0 401 Unauthorized");
51 include_once(
"./Services/Feeds/classes/class.ilFeedItem.php");
52 include_once(
"./Services/Feeds/classes/class.ilFeedWriter.php");
56 $lng->loadLanguageModule(
"news");
58 if (
$ilSetting->get(
'short_inst_name') !=
"") {
59 $blankFeedWriter->setChannelTitle(
$ilSetting->get(
'short_inst_name'));
61 $blankFeedWriter->setChannelTitle(
"ILIAS");
67 if (!
$feed_set->get(
"enable_private_feed")) {
68 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
69 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
71 $feed_item->setTitle(
$lng->txt(
"priv_feed_no_access_title"));
74 $feed_item->setDescription(
$lng->txt(
"priv_feed_no_access_body"));
75 $feed_item->setLink(ILIAS_HTTP_PATH);
77 $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
78 $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);
80 $feed_item->setTitle(
$lng->txt(
"priv_feed_no_auth_title"));
83 $feed_item->setDescription(
$lng->txt(
"priv_feed_no_auth_body"));
84 $feed_item->setLink(ILIAS_HTTP_PATH);
86 $blankFeedWriter->addItem($feed_item);
87 $blankFeedWriter->showFeed();
static _lookupLogin($a_user_id)
lookup login
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static _getFeedPass($a_user_id)
Lookup news feed password for user.
static _lookupId($a_user_str)
Lookup id by login.
A FeedItem represents an item in a News Feed.
static initILIAS()
ilias initialisation
static init($a_type)
Init context by type.
Feed writer for personal user feeds.