-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLunar_Body.php
38 lines (32 loc) · 1.02 KB
/
Lunar_Body.php
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
<?php
include('Lunar_Calc.php');
/*
if ($current < 0.5) {
$percent = $current * 2;
} else {
$percent = (1 - $current) * 2;
}
*/
//echo round($current * 29.53059, 1) . ' days ';
//echo round($percent*100, 1) . '%';
//echo $current;
// calibrated to JK hormone cycle (2010-05-08 trough ends at day 24.6)
if ( $current > 0.83 || $current < 0.00 ) { // new
header('Location:reportLists.php?listId=97&type=C');
}
if ( $current > 0.00 && $current < 0.20 ) { // wax crescent
header('Location:reportLists.php?listId=78&type=C');
}
if ( $current > 0.20 && $current < 0.40 ) { // wax gibbous
header('Location:reportLists.php?listId=80&type=C');
}
if ( $current > 0.40 && $current < 0.50 ) { // full
header('Location:reportLists.php?listId=92&type=C');
}
if ( $current > 0.50 && $current < 0.70 ) { // wane gibbous
header('Location:reportLists.php?listId=listId&type=C');
}
if ( $current > 0.70 && $current < 0.83 ) { // wane crescent
header('Location:reportLists.php?listId=listId&type=C');
}
?>