-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToD.php
More file actions
86 lines (80 loc) · 1.68 KB
/
Copy pathToD.php
File metadata and controls
86 lines (80 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
// get time zone
require_once("config.php");
// get hour of day
$today = getdate();
$hour = $today['hours'];
$month = $today['mon'];
// Adjust Daylight Saving start Oct to start Apr
// clocks wound forward so reduce clock hour
if ($month <= 3 || $month >= 10) {
$hour = $hour - 1;
}
// identify meridian
if ($hour == 7 || $hour == 8) {
$ToD = 'St';
}
if ($hour == 9 || $hour == 10) {
$ToD = 'Sp';
}
if ($hour == 11 || $hour == 12) {
$ToD = 'H';
}
if ($hour == 13 || $hour == 14) {
$ToD = 'SI';
}
if ($hour == 15 || $hour == 16) {
$ToD = 'B';
}
if ($hour == 17 || $hour == 18) {
$ToD = 'K';
}
if ($hour == 19 || $hour == 20) {
$ToD = 'X';
}
if ($hour == 21 || $hour == 22) {
$ToD = 'T';
}
if ($hour == 23 || $hour == 0) {
$ToD = 'GB';
}
if ($hour == 1 || $hour == 2) {
$ToD = 'Liv';
}
if ($hour == 3 || $hour == 4) {
$ToD = 'L';
}
if ($hour == 5 || $hour == 6) {
$ToD = 'LI';
}
// die($ToD);
if ($ToD == 'St') {
header('Location:reportLists.php?listId=36&type=C');
}
if ($ToD == 'Sp') {
header('Location:reportLists.php?listId=37&type=C');
}
if ($ToD == 'H') {
header('Location:reportLists.php?listId=38&type=C');
}
if ($ToD == 'SI') {
header('Location:reportLists.php?listId=39&type=C');
}
if ($ToD == 'B') {
header('Location:reportLists.php?listId=40&type=C');
}
if ($ToD == 'K') {
header('Location:reportLists.php?listId=41&type=C');
}
if ($ToD == 'X') {
header('Location:reportLists.php?listId=42&type=C');
}
if ($ToD == 'T') {
header('Location:reportLists.php?listId=43&type=C');
}
// if ($ToD == 'GB')
// if ($ToD == 'Liv')
// if ($ToD == 'L')
if ($ToD == 'LI') {
header('Location:reportLists.php?listId=53&type=C');
}