/** * Sends an error formatted as an rss file and then exits * * @package core_rss * @category rss * * @param string $error the error type, default is rsserror * @param string $filename the name of the file to create (NOT USED) * @param int $lifetime UNSURE (NOT USED) * @uses exit */ function rss_error($error = 'rsserror', $filename = 'rss.xml', $lifetime = 0) { send_file(rss_geterrorxmlfile($error), $filename, $lifetime, false, true); exit; }
function rss_not_found() { /// error, send some XML with error message global $lifetime, $filename; send_file(rss_geterrorxmlfile(), $filename, $lifetime, false, true); }
/** * Sends an error formatted as an rss file and then exits * * @package core_rss * @category rss * * @param string $error the error type, default is rsserror * @param string $filename the name of the file to created * @param int $unused * @param string $statuscode http 1.1 statuscode indicicating the error * @uses exit */ function rss_error($error = 'rsserror', $filename = 'rss.xml', $unused = 0, $statuscode = '404 Not Found') { header("HTTP/1.1 {$statuscode}"); header('Content-Disposition: inline; filename="' . $filename . '"'); header('Content-Type: application/xml'); echo rss_geterrorxmlfile($error); exit; }