heures jour/nuit modifiées
This commit is contained in:
@@ -4130,7 +4130,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
|
||||
}
|
||||
|
||||
$current_hour = date('H');
|
||||
$day_state = $current_hour >= 4 && $current_hour <= 16 ? 'jour' : 'nuit';
|
||||
$day_state = $current_hour >= 6 && $current_hour <= 18 ? 'jour' : 'nuit';
|
||||
|
||||
// The following assigns all _common_ variables that may be used at any point in a template.
|
||||
$template->assign_vars(array(
|
||||
|
||||
Reference in New Issue
Block a user