Décompt'Agreg
Notice: Undefined variable: year in /home/gourcuff/www/decompte_agreg.php on line 26
//Set the time and date for the event of the countdown/countup
$hour = 9;
$minute = 00;
$second = 0;
$day = 12;
$month = 4;
$year = $ar; // makes year equal to the current year
$days_until = (int)((mktime ($hour,$minute,$second,$month,$day,$ar) -
time(void))/86400);
$hours_until = (int)((mktime ($hour,$minute,$second,$month,$day,$ar) -
time(void))/3600);
$hour_offset = $hours_until;
$hours_until -= $days_until * 24;
$minutes_until = (int)((mktime ($hour,$minute,$second,$month,$day,$ar) -
time(void))/60);
$minute_offset = $minutes_until;
$minutes_until -= $hour_offset * 60;
$seconds_until = (int)((mktime ($hour,$minute,$second,$month,$day,$ar) -
time(void))/1);
$seconds_until -= $minute_offset * 60;
$before_after = "avant";
$factor = 1;
$before_since = (int)((mktime ($hour,$minute,$second,$month,$day,$ar) -
time(void))/1);
if ($before_since<0)
{
$factor = -1;
$before_after = "aprés";
}
//output the countdown
echo"
";
print ("allez les gars, ca fait " . ($days_until * $factor) . " jours, " . ($factor * $hours_until) . " heures, " . ($minutes_until * $factor) . " minutes et " . ($factor * $seconds_until) . " secondes que vous êtes en ecrits d'agreg, pensez au BARATHON!.
... allez on bosse!!! ... ");
?>
décompte Barathon B3
retour au menu