mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-23 12:42:21 +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. ??
20 lines
484 B
PHP
20 lines
484 B
PHP
<?php
|
|
$pageName = 'News Archives';
|
|
$currPage = 'news';
|
|
$modules = 'news_search'; // Modules to display
|
|
require "parts/preamble.php"; // Load most of document
|
|
|
|
need ('boxes news');
|
|
|
|
newsBoxOpen ("Search Results");
|
|
if ($month || $year) {
|
|
monthlyNews ($month, $year);
|
|
} else {
|
|
if ($string) {
|
|
searchNews ($string);
|
|
} else {
|
|
printNews (date ('d M Y'), 'Web Server', 'Go ahead, tough guy...use one of the forms to search the old news.');
|
|
}
|
|
}
|
|
newsBoxClose ();
|
|
?>
|