|
|
<?php
|
|
|
|
|
|
/**
|
|
|
* @package tikiwiki
|
|
|
*/
|
|
|
|
|
|
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
|
|
|
//
|
|
|
// 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.
|
|
|
// $Id$
|
|
|
|
|
|
if (basename($_SERVER['SCRIPT_NAME']) === basename(__FILE__)) {
|
|
|
die('This script may only be included.');
|
|
|
}
|
|
|
$feed = tra("Error Message");
|
|
|
$title = tr("Tiki RSS Feed Error Message: %0", $errmsg);
|
|
|
$desc = $errmsg;
|
|
|
$id = "errorMessage";
|
|
|
$titleId = "title";
|
|
|
$descId = "description";
|
|
|
$dateId = "lastModif";
|
|
|
$authorId = "";
|
|
|
$readrepl = "";
|
|
|
$uniqueid = $feed;
|
|
|
$changes = ["data" => []];
|
|
|
$output = $rsslib->generate_feed($feed, $uniqueid, '', $changes, $readrepl, '', $id, $title, $titleId, $desc, $descId, $dateId, $authorId);
|
|
|
header("Content-type: " . $output["content-type"]);
|
|
|
print $output["data"];
|
|
|
die;
|