$tz2 = $timezone2; } else { $tz2 = "+" . $timezone2; } $name_without_slashes = stripslashes($name1); echo "<center>"; echo "<FONT color='#0000ff' SIZE='3' FACE='Arial'><b>{$name_without_slashes}</b><br />"; echo '<b>Born ' . strftime("%A, %B %d, %Y<br>%X (time zone = GMT {$tz1} hours)</b><br />\n", mktime($hour1, $minute1, 0, $month1, $day1, $year1)); echo "<b>" . $long_deg1 . $ew1_txt . $long_min1 . ", " . $lat_deg1 . $ns1_txt . $lat_min1 . "</b><br /><br />"; $name2_without_slashes = stripslashes($name2); echo "<b>{$name2_without_slashes}</b><br />"; echo '<b>Born ' . strftime("%A, %B %d, %Y<br>%X (time zone = GMT {$tz2} hours)</b><br />\n", mktime($hour2, $minute2, 0, $month2, $day2, $year2)); echo "<b>" . $long_deg2 . $ew2_txt . $long_min2 . ", " . $lat_deg2 . $ns2_txt . $lat_min2 . "</b><br /><br />"; echo "<b>Davison Relationship Data</b><br />"; $tz3 = ($tz1 + $tz2) / 2; $relationship_date = ConvertJDtoDateandTime($jd3, $tz3); echo '<b>' . strftime('%A, %B %d, %Y at %H:%M:%S', strtotime($relationship_date)) . "<br>(time zone = GMT {$tz3} hours)</b><br />\n"; echo "<b>" . sprintf("%.3f", $my_longitude3) . ", " . sprintf("%.3f", $my_latitude3) . "</b><br /><br />"; echo "</font>"; ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post"> <select name="h_sys" size="1"> <?php echo "<option value='p' "; if ($h_sys == "p") { echo " selected"; } echo "> Placidus </option>";
function Get_when_planet_is_at_certain_degree_VOC($deg_idx, $p1_idx, $pl_name, $starting_JD, $ending_JD, $current_tz) { //aspectarian for when a planet hits a certain degree of the zodiac global $num_moon_aspects, $moon_asp_details; $degr = $deg_idx * 30; for ($x = $starting_JD; $x <= $ending_JD; $x++) { $angle = 0; $secant_results = Secant_Method_one_degree($x, $x + 1, 6.999999999999999E-5, 100, $angle, $p1_idx, $degr); $Result_JD = $secant_results[0]; $name_of_sign = Get_Name_of_Sign($secant_results[1] + 1); //add 1 to the longitude so we dont get rounding errors $rnd_off = sprintf("%.3f", $Result_JD); if ($rnd_off >= $x and $rnd_off < $x + 1) { $first_date = ConvertJDtoDateandTime($Result_JD, $current_tz); $num_moon_aspects = $num_moon_aspects + 1; $moon_asp_details[0][$num_moon_aspects] = $Result_JD; $moon_asp_details[1][$num_moon_aspects] = "t. Moon enters the sign of {$name_of_sign} at {$first_date}"; } } }