$string = nl2br($string); echo "<font size=2>" . $string . "</font>"; } //display planet in sign interpretation //get header first echo "<center><font size='+1' color='#0000ff'><b>SIGN POSITIONS OF PLANETS</b></font></center>"; $file = "natal_files/sign.txt"; $fh = fopen($file, "r"); $string = fread($fh, filesize($file)); fclose($fh); $string = nl2br($string); $sign_interp = $string; // loop through each planet for ($i = 0; $i <= 6; $i++) { $s_pos = floor($longitude1[$i] / 30) + 1; $deg = Reduce_below_30($longitude1[$i]); if ($ubt1 == 1 and $i == 1 and ($deg < 7.7 or $deg > 22.3)) { continue; //if the Moon is too close to the beginning or the end of a sign, then do not include it } $phrase_to_look_for = $pl_name[$i] . " in"; $file = "natal_files/sign_" . trim($s_pos) . ".txt"; $string = Find_Specific_Report_Paragraph($phrase_to_look_for, $file); $string = nl2br($string); $sign_interp .= $string; } echo "<font size=2>" . $sign_interp . "</font>"; if ($ubt1 == 0) { //display planet in house interpretation //get header first echo "<center><font size='+1' color='#0000ff'><b>HOUSE POSITIONS OF PLANETS</b></font></center>";
} //Ascendant if ($ubt1 == 0) { $s_pos = floor($longitude1[LAST_PLANET + 1] / 30) + 1; $deg = floor(Reduce_below_30($longitude1[LAST_PLANET + 1])) + 1; //add 1 to degree $phrase_to_look_for = trim($name_of_sign[$s_pos]) . " " . $deg; $file = "natal_files/sabian_" . trim($s_pos) . ".txt"; $string = Find_Specific_Report_Paragraph($phrase_to_look_for, $file); $string = nl2br($string); $sign_interp .= "Ascendant in " . $string; } //MC if ($ubt1 == 0) { $s_pos = floor($longitude1[LAST_PLANET + 10] / 30) + 1; $deg = floor(Reduce_below_30($longitude1[LAST_PLANET + 10])) + 1; //add 1 to degree $phrase_to_look_for = trim($name_of_sign[$s_pos]) . " " . $deg; $file = "natal_files/sabian_" . trim($s_pos) . ".txt"; $string = Find_Specific_Report_Paragraph($phrase_to_look_for, $file); $string = nl2br($string); $sign_interp .= "MC in " . $string; } echo "<font size=2>" . $sign_interp . "</font>"; //display closing echo "<br><center><font size='+1' color='#0000ff'><b>CLOSING COMMENTS</b></font></center>"; $file = "natal_files/closing_sabian.txt"; $fh = fopen($file, "r"); $string = fread($fh, filesize($file)); fclose($fh); $closing = nl2br($string);
// needed for placing info on chartwheel // denote that we have done at least one planet in this house (actually count the planets in this house that we have done) $planets_done++; // display the planet in the wheel $angle_to_use = deg2rad($angle_to_use); if ($flag == False) { display_planet_glyph($angle_to_use, $radius - $dist_from_diameter1, $xy); } else { display_planet_glyph($angle_to_use, $radius - $dist_from_diameter2, $xy); } imagettftext($im, 16, 0, $xy[0] + $center_pt, $xy[1] + $center_pt, $planet_color, FONTPATH . HAMBURG_TTF, chr($pl_glyph[$sort_pos[$i]])); // display degrees of longitude for each planet if (strtoupper(mid($retrograde, $sort_pos[$i] + 1, 1)) == "R") { $t = sprintf("%.1f", Reduce_below_30($sort[$i])) . " r"; } else { $t = sprintf("%.1f", Reduce_below_30($sort[$i])); } //draw line from planet to circumference if ($flag == False) { $x1 = (-$radius + $dist_from_diameter1a) * cos($angle_to_use); $y1 = ($radius - $dist_from_diameter1a) * sin($angle_to_use); $x2 = (-$radius + 6) * cos($angle_to_use); $y2 = ($radius - 6) * sin($angle_to_use); } else { $x1 = (-$radius + $dist_from_diameter2a) * cos($angle_to_use); $y1 = ($radius - $dist_from_diameter2a) * sin($angle_to_use); $x2 = (-$radius + 6) * cos($angle_to_use); $y2 = ($radius - 6) * sin($angle_to_use); } imageline($im, $x1 + $center_pt, $y1 + $center_pt, $x2 + $center_pt, $y2 + $center_pt, $black); $flag = !$flag;