website/news_funcs.php

24 lines
527 B
PHP
Raw Normal View History

2000-03-20 05:41:28 +00:00
<?
function newsItem( $date, $user, $text )
{
2000-05-15 00:46:00 +00:00
if ($user == "Theoddone33") $user = "theoddone33";
echo '<TR><TD><DL><DT><FONT SIZE=-1>Posted on ' . $date . ' by ' . $user . '</FONT></DT>' .
' <DD><P>' . $text . '</DD>' .
2000-05-13 22:42:02 +00:00
'</DL></TD></TR>';
2000-03-20 05:41:28 +00:00
}
2000-05-15 17:46:34 +00:00
function listMonths ( )
{
$startyear = 2000;
$today = getdate ();
while ($startyear <= $today['year']--)
{
for ($month = $today['mon'] ; $month > 0 ; $month--)
{
echo '<P>' .
date ("F, Y", mktime (0,0,0,$month,0,$today['year'],0)
}
}
}
2000-03-20 05:41:28 +00:00
?>