mirror of
https://git.code.sf.net/p/quake/website
synced 2025-01-31 12:40:49 +00:00
Delete the duplicate news archive page, fix monthly search for
the full range of project history.
This commit is contained in:
parent
4c73904770
commit
dfabbe770f
2 changed files with 1 additions and 24 deletions
|
@ -75,7 +75,7 @@ CREATE TABLE news_main (
|
|||
<?
|
||||
if ($year == "")
|
||||
$year = date ('Y');
|
||||
for ($i = 2006; $i <= date ('Y'); $i++ ) {
|
||||
for ($i = 1999; $i <= date ('Y'); $i++ ) {
|
||||
printf ("<OPTION%s>%04d</OPTION>", $i == $year ? " selected" : "", $i);
|
||||
}
|
||||
?>
|
||||
|
|
23
news.php
23
news.php
|
@ -1,23 +0,0 @@
|
|||
<? // Preamble
|
||||
$pageName = "News Archives";
|
||||
$currPage = "news"; // Name of the page, for menu/dock
|
||||
$modules = 'news_search'; // right-side modules to display
|
||||
require "parts/preamble.php"; // Load most of document
|
||||
?>
|
||||
<DIV class="newsBox">
|
||||
<DIV class="newsTitle"><H2>News Archives</H2></DIV>
|
||||
<?
|
||||
if ($month || $year) {
|
||||
monthlyNews ($month, $year);
|
||||
} else {
|
||||
if ($string) {
|
||||
searchNews ($string);
|
||||
} else {
|
||||
newsItem ('now', 'Web Server', 'Go ahead, tough guy...use one of the forms to search the old news.');
|
||||
}
|
||||
}
|
||||
?>
|
||||
</DIV>
|
||||
<?
|
||||
require "parts/postamble.php"; // Finish this sucker up
|
||||
?>
|
Loading…
Reference in a new issue