Exemplo n.º 1
0
    	in both cases a further '/' won't be appended due to the following regex
    	*/
    $cookie_path .= !preg_match("/[\\/|\\\\]\$/", $cookie_path) ? "/" : "";
    if ($cookie_path == "\\") {
        $cookie_path = '/';
    }
    $cookie_domain = '';
    // Temporary Fix
    setcookie("ilClientId", $_GET["client_id"], 0, $cookie_path, $cookie_domain);
    $_COOKIE["ilClientId"] = $_GET["client_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"]);
        }
    }
}