Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chregu committed Mar 12, 2009
0 parents commit 2e6121c
Show file tree
Hide file tree
Showing 4 changed files with 670 additions and 0 deletions.
24 changes: 24 additions & 0 deletions inc/fullmoon.php
@@ -0,0 +1,24 @@
<?php
include("moonphase.inc.php");

$date = time() ;
$fullmoon = "No";


foreach(phaselist($date - 3600 * 12 ,$date + 3600 * 12) as $d) {
if ($d > 100) {
$moondata = phase($d);
$MoonIllum = $moondata[1];
if (round($MoonIllum,2) == 1) {
$fullmoon = "Yes";
break;
}
}


};


$data['status'] = $fullmoon;


0 comments on commit 2e6121c

Please sign in to comment.