Commit 30a22ba1 authored by mbriand's avatar mbriand
Browse files

Miaou ?

parent a6f9b9df
......@@ -311,13 +311,13 @@ class affiche extends stdentity
function check_update($last){
$plages_horaires = array(1=>array(28800, 43200), 2=>array(41400, 50400), 3=>array(43200, 64800), 4=>array(64800, 21600));
$time = strtotime($last) % (60 * 60 * 24);
eval("\$time=".strftime("%H*3600+%M*60+%S;", strtotime($last) % (60 * 60 * 24)));
$last_plages = array(0);
foreach($plages_horaires as $id => $plage)
if (($time >= $plage[0]) && ($time < $plage[1]))
$last_plages[] = $id;
$time = time() % (60 * 60 * 24);
eval("\$time=".strftime("%H*3600+%M*60+%S;"));
$cur_plages = array(0);
foreach($plages_horaires as $id => $plage)
if (($time >= $plage[0]) && ($time < $plage[1]))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment