22 lines
399 B
PHP
22 lines
399 B
PHP
<?php
|
|
$eh_start_time = mktime(0,0,0,04,22,2011);
|
|
$now_time = time();
|
|
$diff = $eh_start_time - $now_time;
|
|
$days = ceil($diff/(60*60*24));
|
|
if( $days == 0 )
|
|
{
|
|
echo 'Heute beginnt das Easterhegg 2011';
|
|
}
|
|
elseif( $days >= -3 && $days < 0 )
|
|
{
|
|
echo 'Das Easterhegg 2011 läuft bereits!';
|
|
}
|
|
elseif ( $days < -3 )
|
|
{
|
|
echo 'Das Easterhegg 2011 ist vorbei';
|
|
}
|
|
else
|
|
{
|
|
echo 'Noch '. $days .' Tage';
|
|
}
|
|
?>
|