mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-26 22:20:54 +00:00
9e6f75ccbd
PHP 7 doesn't like the old short tags we were using (it's possible to re-enable them, but won't be for version 8, so we might as well switch now), and the old MySQL APIs are now gone entirely, replaced with something different. This should make everything work at least as well as it used to. Also, one file used to be checked in with CRLF line endings. ??
21 lines
562 B
PHP
21 lines
562 B
PHP
<?php
|
|
define ('siteHome', "/home/project-web/quake/htdocs");
|
|
require siteHome . "/parts/library.inc"; // Load function library
|
|
|
|
header ("Content-Type: text/xml");
|
|
echo('<?xml version="1.0" encoding="utf-8"?>' . "\n");
|
|
?>
|
|
<rss version="2.0">
|
|
<channel>
|
|
<title>QuakeForge News</title>
|
|
<description>Latest QuakeForge Project news</description>
|
|
<link>http://www.quakeforge.net/rss.php</link>
|
|
<copyright>Copyright 1999-2011 Contributors of the QuakeForge Project</copyright>
|
|
<?php
|
|
$newsFormat = "RSS";
|
|
|
|
need ('news');
|
|
printLatestNews (5);
|
|
?>
|
|
</channel>
|
|
</rss>
|