ILIAS
Release_4_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
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
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
36
$ilInit
=
new
ilInitialisation
();
37
$GLOBALS
[
'ilInit'
] =&
$ilInit
;
38
$ilInit
->initFeed();
39
40
if
(
$_GET
[
"user_id"
] !=
""
)
41
{
42
include_once(
"./Services/Feeds/classes/class.ilUserFeedWriter.php"
);
43
$writer =
new
ilUserFeedWriter
(
$_GET
[
"user_id"
],
$_GET
[
"hash"
]);
44
$writer->showFeed();
45
}
46
else
if
(
$_GET
[
"ref_id"
] !=
""
)
47
{
48
include_once(
"./Services/Feeds/classes/class.ilObjectFeedWriter.php"
);
49
$writer =
new
ilObjectFeedWriter
(
$_GET
[
"ref_id"
],
false
,
$_GET
[
"purpose"
]);
50
$writer->showFeed();
51
}
52
?>
feed.php
Generated on Wed Apr 27 2016 19:01:16 for ILIAS by
1.8.1.2 (using
Doxyfile
)