'),
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==4) { // April
$days = array(
12=>array('http://www.98fahrenheit.de','linked-day'),
13=>array('http://www.peter-rohde.de','linked-day'),
18=>array('http://www.webtodateforum.de','linked-day'),
24=>array('http://www.reiterhof-reiterferien.de','linked-day'),
25=>array('http://www.kuestenforum.de','linked-day textual','XX'),
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==5) { // Mai
$days = array(
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==6) { // Juni
$days = array(
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==7) { // Juli
$days = array(
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==8) { // August
$days = array(
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==9) { // September
$days = array(
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==10) { // Oktober
$days = array(
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==11) { // November
$days = array(
$today=>array(NULL,NULL,''.$today.''),
);
}
if ($monat ==12) { // Dezember
$days = array(
$today=>array(NULL,NULL,''.$today.''),
);
}
echo generate_calendar(date('Y', $time), date('n', $time), $days);
setlocale(LC_TIME, $oldlocale);
# PHP Calendar (version 2.3), written by Keith Devens
# http://keithdevens.com/software/php_calendar
# see example at http://keithdevens.com/weblog
# License: http://keithdevens.com/software/license
function generate_calendar($year, $month, $days = array(), $day_name_length = 2, $month_href = NULL, $first_day = 0, $pn = array()){
$first_of_month = gmmktime(0,0,0,$month,1,$year);
#remember that mktime will automatically correct if invalid dates are entered
# for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998
# this provides a built in "rounding" feature to generate_calendar()
$day_names = array(); #generate all the day names according to the current locale
for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) #January 4, 1970 was a Sunday
$day_names[$n] = ucfirst(gmstrftime('%A',$t)); #%A means full textual day name
list($month, $year, $month_name, $weekday) = explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
$weekday = ($weekday + 7 - $first_day) % 7; #adjust for $first_day
$title = htmlentities(ucfirst($month_name)).' '.$year; #note that some locales don't capitalize month and day names
#Begin calendar. Uses a real
. See http://diveintomark.org/archives/2002/07/03
@list($p, $pl) = each($pn); @list($n, $nl) = each($pn); #previous and next links, if applicable
if($p) $p = ''.($pl ? ''.$p.'' : $p).' ';
if($n) $n = ' '.($nl ? ''.$n.'' : $n).'';
$calendar = ''."\n".
'
";
if($day_name_length){ #if the day names should be shown ($day_name_length > 0)
#if day_name_length is >3, the full name of the day will be printed
foreach($day_names as $d)
$calendar .= '