<?php
header("content-type: image/jpg");
if(isset($_GET[timestamp]))
	{
	$maand = strtoupper(date("M",$_GET[timestamp]));
	$dag = date("j",$_GET[timestamp]);
	}
	else
	{
	$maand = strtoupper(date("M"));
	$dag = date("j");
	}
$fontmaand = 'HelveticaBold.ttf';
$fontdag = 'LucidaBold.ttf';
$image = ImageCreateFromJpeg("iCalicon.jpg");
$wit = ImageColorAllocate($image,255,255, 255);
$zwart = ImageColorAllocate($image,75,75, 75);
imagettftext($image, 9, 11, 12, 31, $wit, $fontmaand, $maand);
if(strlen($dag) == 2)
	{
	imagettftext($image, 25, 11, 20, 60, $zwart, $fontdag, $dag);
	}
	else
	{
	imagettftext($image, 25, 11, 30, 60, $zwart, $fontdag, $dag);
	}

ImageJpeg($image);
ImageDestroy($image);
?>