# TODO: titel, desc
include_once('./admin/libs/global.lib.php');
if (isset($_REQUEST['q']))
{
# TODO: deze parse returnt soms rare data
$date = parse_search_input($_REQUEST['q']);
if (!$date) $date = adodb_date('Y-m-d');
} else {
$date = date('Y-m-d');
}
$datum = my_get_date($date);
$title = $datum['day_name'].' '.$datum['day'].' '.$datum['month_name'].' '.$datum['year'];
include('header.inc.php');
?>
$dayprev = adodb_mktime(0,0,0,$datum['month'],$datum['day']-1,$datum['year']);
$daynext = adodb_mktime(0,0,0,$datum['month'],$datum['day']+1,$datum['year']);
$dayprev = adodb_date('j-n-Y', $dayprev);
$daynext = adodb_date('j-n-Y', $daynext);
include('inc/datenav.php');
include('inc/basics.php');
include('inc/weather.php');
include('inc/specialdates.php');
include('inc/birthdates.php');
include('inc/deathdates.php');
include('inc/calculated_dates.php');
include('inc/facts.php');
# als de huidige bekeken datum binnen 3 jaar van nu ligt, optie:
# stel alert in voor deze dag: sms / mail 1/2/3/4/5 dagen van te voren
include('footer.inc.php');
?>