mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-11 07:42:04 +00:00
24 lines
548 B
PHP
24 lines
548 B
PHP
<?
|
|
function newsItem( $date, $user, $text )
|
|
{
|
|
if ($user == "Theoddone33") $user = "theoddone33";
|
|
echo '<TR><TD><DL><DT><FONT SIZE=-1>Posted on ' . $date . ' by ' . $user . '</FONT></DT>' .
|
|
' <DD><P>' . $text . '</DD>' .
|
|
'</DL></TD></TR>';
|
|
}
|
|
|
|
function listMonths ( )
|
|
{
|
|
$startyear = 2000;
|
|
$today = getdate ();
|
|
while ($startyear <= $today['year'])
|
|
{
|
|
for ($month = $today['mon']+1 ; $month > 1 ; $month--)
|
|
{
|
|
echo '<P>' .
|
|
date ("F, Y", mktime (0,0,0,$month,0,$today['year'],0));
|
|
}
|
|
$today['year']--;
|
|
}
|
|
}
|
|
?>
|