forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.php
More file actions
executable file
·24 lines (20 loc) · 714 Bytes
/
feed.php
File metadata and controls
executable file
·24 lines (20 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
/**
* News feed script.
*
* @author Alex Killing <alex.killing@gmx.de>
*/
include_once "Services/Context/classes/class.ilContext.php";
ilContext::init(ilContext::CONTEXT_RSS);
require_once("Services/Init/classes/class.ilInitialisation.php");
ilInitialisation::initILIAS();
if ($_GET["user_id"] != "") {
$writer = new ilUserFeedWriter($_GET["user_id"], $_GET["hash"]);
$writer->showFeed();
} elseif ($_GET["ref_id"] != "") {
$writer = new ilObjectFeedWriter($_GET["ref_id"], false, $_GET["purpose"]);
$writer->showFeed();
} elseif ($_GET["blog_id"] != "") {
ilObjBlog::deliverRSS($_GET["blog_id"]);
}