tiki-rss_error.php 897 Bytes
Newer Older
1
<?php
changi67's avatar
changi67 committed
2 3 4
/**
 * @package tikiwiki
 */
5
// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project
rjsmelo's avatar
rjsmelo committed
6
//
changi67's avatar
changi67 committed
7 8
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
changi67's avatar
changi67 committed
9
// $Id$
changi67's avatar
changi67 committed
10

11 12 13
if (basename($_SERVER['SCRIPT_NAME']) === basename(__FILE__)) {
	die('This script may only be included.');
}
14
$feed = tra("Error Message");
15
$title = tr("Tiki RSS Feed Error Message: %0", $errmsg);
16
$desc = $errmsg;
17
$id = "errorMessage";
18 19 20 21 22
$titleId = "title";
$descId = "description";
$dateId = "lastModif";
$authorId = "";
$readrepl = "";
changi67's avatar
changi67 committed
23
$uniqueid = $feed;
rjsmelo's avatar
rjsmelo committed
24
$changes = ["data" => []];
25
$output = $rsslib->generate_feed($feed, $uniqueid, '', $changes, $readrepl, '', $id, $title, $titleId, $desc, $descId, $dateId, $authorId);
changi67's avatar
changi67 committed
26
header("Content-type: " . $output["content-type"]);
27
print $output["data"];
28
die;