diff options
Diffstat (limited to 'includes')
-rwxr-xr-x | includes/header.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/includes/header.php b/includes/header.php index 8b9810a..427ad93 100755 --- a/includes/header.php +++ b/includes/header.php | |||
@@ -24,12 +24,18 @@ require('headerproc.php'); | |||
24 | 24 | ||
25 | $headerTemp = new FITemplate('header'); | 25 | $headerTemp = new FITemplate('header'); |
26 | 26 | ||
27 | if ((date('G') >= 20) || (date('G') <= 6)) | 27 | if (!isset($_GET['emulateTime'])) |
28 | { | 28 | { |
29 | $bodyID = 'night'; | 29 | if ((date('G') >= 20) || (date('G') <= 6)) |
30 | { | ||
31 | $bodyID = 'night'; | ||
32 | } else { | ||
33 | $bodyID = 'day'; | ||
34 | } | ||
30 | } else { | 35 | } else { |
31 | $bodyID = 'day'; | 36 | $bodyID = $_GET['emulateTime']; |
32 | } | 37 | } |
38 | |||
33 | $headerTemp->add('BODYID',$bodyID); | 39 | $headerTemp->add('BODYID',$bodyID); |
34 | $headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); | 40 | $headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); |
35 | $headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); | 41 | $headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); |