0
0
Fork 0
easterhegg-2011-website/eh_countdown.php

22 lines
399 B
PHP
Raw Normal View History

2024-01-27 15:17:09 +01:00
<?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&auml;uft bereits!';
}
elseif ( $days < -3 )
{
echo 'Das Easterhegg 2011 ist vorbei';
}
else
{
echo 'Noch '. $days .' Tage';
}
?>