diff --git a/news_funcs.php b/news_funcs.php index b2de7e9..d786912 100644 --- a/news_funcs.php +++ b/news_funcs.php @@ -6,4 +6,18 @@ '

' . $text . '

' . ''; } + + function listMonths ( ) + { + $startyear = 2000; + $today = getdate (); + while ($startyear <= $today['year']--) + { + for ($month = $today['mon'] ; $month > 0 ; $month--) + { + echo '

' . + date ("F, Y", mktime (0,0,0,$month,0,$today['year'],0) + } + } + } ?>