ILIAS
Release_4_3_x_branch Revision 61807
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
ILIAS
Todo List
Deprecated List
Modules
Namespaces
Data Structures
Files
File List
cron
include
Modules
Services
setup
sso
webservice
calendar.php
confirmReg.php
error.php
feed.php
goto.php
ilias.php
index.php
login.php
logout.php
payment.php
privfeed.php
pwassist.php
register.php
rootindex.php
sessioncheck.php
shib_login.php
shib_logout.php
start.php
studip_referrer.php
webdav.php
Globals
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
feed.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
12
// this should bring us all session data of the desired
13
// client
14
if
(isset(
$_GET
[
"client_id"
]))
15
{
16
$cookie_domain = $_SERVER[
'SERVER_NAME'
];
17
$cookie_path = dirname( $_SERVER[
'PHP_SELF'
] );
18
19
/* if ilias is called directly within the docroot $cookie_path
20
is set to '/' expecting on servers running under windows..
21
here it is set to '\'.
22
in both cases a further '/' won't be appended due to the following regex
23
*/
24
$cookie_path .= (!preg_match(
"/[\/|\\\\]$/"
, $cookie_path)) ?
"/"
:
""
;
25
26
if
($cookie_path ==
"\\"
) $cookie_path =
'/'
;
27
28
$cookie_domain =
''
;
// Temporary Fix
29
30
setcookie(
"ilClientId"
,
$_GET
[
"client_id"
], 0, $cookie_path, $cookie_domain);
31
32
$_COOKIE
[
"ilClientId"
] =
$_GET
[
"client_id"
];
33
}
34
35
include_once
"Services/Context/classes/class.ilContext.php"
;
36
ilContext::init
(
ilContext::CONTEXT_RSS
);
37
38
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
39
ilInitialisation::initILIAS
();
40
41
if
(
$_GET
[
"user_id"
] !=
""
)
42
{
43
include_once(
"./Services/Feeds/classes/class.ilUserFeedWriter.php"
);
44
$writer =
new
ilUserFeedWriter
(
$_GET
[
"user_id"
],
$_GET
[
"hash"
]);
45
$writer->showFeed();
46
}
47
else
if
(
$_GET
[
"ref_id"
] !=
""
)
48
{
49
include_once(
"./Services/Feeds/classes/class.ilObjectFeedWriter.php"
);
50
$writer =
new
ilObjectFeedWriter
(
$_GET
[
"ref_id"
],
false
,
$_GET
[
"purpose"
]);
51
$writer->showFeed();
52
}
53
else
if
(
$_GET
[
"blog_id"
] !=
""
)
54
{
55
include_once(
"Modules/Blog/classes/class.ilObjBlog.php"
);
56
ilObjBlog::deliverRSS
(
$_GET
[
"blog_id"
]);
57
}
58
?>
feed.php
Generated on Sat Apr 23 2016 19:01:48 for ILIAS by
1.8.1.2 (using
Doxyfile
)