forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.php
executable file
·35 lines (30 loc) · 918 Bytes
/
feed.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
/**
* News feed script.
*
* @author Alex Killing <[email protected]>
* @version $Id$
*/
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"] != "")
{
include_once("./Services/Feeds/classes/class.ilUserFeedWriter.php");
$writer = new ilUserFeedWriter($_GET["user_id"], $_GET["hash"]);
$writer->showFeed();
}
else if ($_GET["ref_id"] != "")
{
include_once("./Services/Feeds/classes/class.ilObjectFeedWriter.php");
$writer = new ilObjectFeedWriter($_GET["ref_id"], false, $_GET["purpose"]);
$writer->showFeed();
}
else if ($_GET["blog_id"] != "")
{
include_once("Modules/Blog/classes/class.ilObjBlog.php");
ilObjBlog::deliverRSS($_GET["blog_id"]);
}
?>