6 part.txt
-------------------------
your-6-part-relationship-analysis |
(1) The-Initial-Compatibility |
(2) The-Potiential-Relationship |
(3) How-You-Feel-About-It |
(4) How-They-Feel-About-It |
(5) How-The-Relationship-Affects-You |
(6) How-The-Relationship-Affects-Them |
-------------------------
(1) The-Initial-Compatibility |
if($_GET['report']=='The-Initial-Compatibility'){
$special_aspect_section='synastry';
$data1 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id][$key1]);
$degrees_full1 = $data1['degrees_full'];
$directions1 = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
#echo "
data1:
"; print_r($data1); echo "
--
";
$data2 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id][$key2]);
$degrees_full2 = $data2['degrees_full'];
$directions2 = $data2['directions'];
$owner_array_by_planet2 = $data2['owner_of_these_planets'];
#echo "
data2:
"; print_r($data2); echo "
--
";
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array_synastry($aspects_organized,$planets_organized,$degrees_full1,$directions1,$degrees_full2,$directions2,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender1);
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'synastry');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
//echo "
"; print_r($saved_aspects);echo "
";
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
}
-------------------------
(2) The-Potiential-Relationship |
if($_GET['report']=='The-Potiential-Relationship'){
//echo "$gender,$gender2";die();
$special_aspect_section='self';
#echo "
composite - potiential: $ _SESSION[$ joint_id]['composite']
";print_r($_SESSION[$joint_id]['composite']);echo "
--
"; die();
$data1 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id]['composite']);
//if(isset($_GET['show_something'])){ echo "
composite - potiential: data1
";print_r($data1);echo "
--
"; die();}
echo "
composite - potiential: data1
";print_r($data1);echo "
--
"; die();
$degrees_full = $data1['degrees_full'];
$directions = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
foreach($owner_array_by_planet1 as $key => $value) $owner_array_by_planet1[$key]="Composite";
//echo "
owner_array_by_planet1:
";print_r($owner_array_by_planet1);echo "
--
"; die();
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array($aspects_organized,$planets_organized,$degrees_full,$directions,$array_of_special_aspects,$special_aspect_section,$gender,$owner_array_by_planet1,$owner_array_by_planet1,$gender,$gender2);
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
//if(isset($_GET['show_something'])){ echo "
composite - potiential: saved_aspects (".count($saved_aspects).")
";print_r($saved_aspects);echo "
--
"; die();}
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'composite');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//if(isset($_GET['show_something'])){ echo "
composite - potiential: aspect_boxes
";print_r($aspect_boxes);echo "
--
"; die();}
//echo "
aspect_boxes
";print_r($aspect_boxes);echo "
";die();
//echo $birthchart_summary_table."
"; //made in session_start
$forecast_str_specific_id_for_this_composite_in_session = "$joint_id-----composite";
$forecast_date = (int)date('m')."/".(int)date('d')."/".date('Y');
}
-------------------------
(3) How-You-Feel-About-It |
if($_GET['report']=='How-The-Relationship-Affects-You'){
$special_aspect_section='self';
$data4 = $_SESSION[$joint_id]['composite1'];
$summary_table_composite = $_SESSION[$joint_id]['summary_table_composite1'];
$data_1 = make_full_degrees_and_directions_arrays($data4);
//echo "
data_1
"; print_r($data_1); echo "
"; die();
$degrees_full = $data_1['degrees_full'];
$directions = $data_1['directions'];
$owner_array_by_planet1 = $data_1['owner_of_these_planets'];
foreach($owner_array_by_planet1 as $key => $value) $owner_array_by_planet1[$key]="Composite";
//echo "
owner_array_by_planet1:
";print_r($owner_array_by_planet1);echo "
--
"; die();
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array($aspects_organized,$planets_organized,$degrees_full,$directions,$array_of_special_aspects,$special_aspect_section,$gender,$owner_array_by_planet1,$owner_array_by_planet1,$gender,$gender2);
//echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; die();
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'composite');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo "
aspect_boxes
";print_r($aspect_boxes);echo "
";die();
//echo $birthchart_summary_table."
"; //made in session_start
$forecast_str_specific_id_for_this_composite_in_session = "$joint_id-----composite1";
$forecast_date = (int)date('m')."/".(int)date('d')."/".date('Y');
}
-------------------------
(4) How-They-Feel-About-It |
if($_GET['report']=='How-The-Relationship-Affects-Them'){
$special_aspect_section='self';
$data5 = $_SESSION[$joint_id]['composite2'];
$summary_table_composite = $_SESSION[$joint_id]['summary_table_composite2'];
$data1 = make_full_degrees_and_directions_arrays($data5);
$degrees_full = $data1['degrees_full'];
$directions = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
foreach($owner_array_by_planet1 as $key => $value) $owner_array_by_planet1[$key]="Composite";
//echo "
owner_array_by_planet1:
";print_r($owner_array_by_planet1);echo "
--
"; die();
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array($aspects_organized,$planets_organized,$degrees_full,$directions,$array_of_special_aspects,$special_aspect_section,$gender,$owner_array_by_planet1,$owner_array_by_planet1,$gender,$gender2);
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'composite');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
$forecast_str_specific_id_for_this_composite_in_session = "$joint_id-----composite2";
$forecast_date = (int)date('m')."/".(int)date('d')."/".date('Y');
}
-------------------------
(5) How-The-Relationship-Affects-You |
if($_GET['report']=='How-You-Feel-About-It'){
$special_aspect_section='synastry';
$data1 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id][$key1]);
$degrees_full1 = $data1['degrees_full'];
$directions1 = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
foreach($owner_array_by_planet1 as $key => $value) $owner_array_by_planet1[$key]="You";
//echo "
owner_array_by_planet1:
";print_r($owner_array_by_planet1);echo "
--
"; die();
//Change the Composite Name to Composite, so I can see it in the aspects results, for a certain planet
$tmp_name = $data3['name'];
$data3['name']="Composite";
$data2 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id]['composite']);
$degrees_full2 = $data2['degrees_full'];
$directions2 = $data2['directions'];
$owner_array_by_planet2 = $data2['owner_of_these_planets'];
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array_synastry($aspects_organized,$planets_organized,$degrees_full1,$directions1,$degrees_full2,$directions2,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender);
//echo "
composite - potiential: saved_aspects (".count($saved_aspects).")
";print_r($saved_aspects);echo "
--
"; die();
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'synastry');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
$data3['name']=$tmp_name;
}
-------------------------
(6) How-The-Relationship-Affects-Them |
if($_GET['report']=='How-They-Feel-About-It'){
$special_aspect_section='synastry';
//Change the Composite Name to Composite, so I can see it in the aspects results, for a certain planet
$tmp_name = $data3['name'];
$data3['name']="Composite";
$data1 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id][$key2]);
$degrees_full1 = $data1['degrees_full'];
$directions1 = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
$data2 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id]['composite']);
$degrees_full2 = $data2['degrees_full'];
$directions2 = $data2['directions'];
$owner_array_by_planet2 = $data2['owner_of_these_planets'];
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array_synastry($aspects_organized,$planets_organized,$degrees_full1,$directions1,$degrees_full2,$directions2,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender);
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'synastry');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
$data3['name']=$tmp_name;
}
//-------------------------------------------------
//-------------------------------------------------
$magic_divider = 170;
//self
if($_GET['report']=='Specifically-You' || $_GET['report']=='The-Potiential-Relationship' || $_GET['report']=='Your-Cosmic-Rating'){
$luck_cap = 5;
$sex_cap = 5;
$love_cap = 3;
$drama_cap = 5;
}
elseif($_GET['report']=='How-The-Relationship-Affects-You' || $_GET['report']=='How-The-Relationship-Affects-Them'){
$luck_cap = 5;
$sex_cap = 5;
$love_cap = 2;
$drama_cap = 4;
}
/*if($_GET['report']=='Specifically-You' || $_GET['report']=='The-Potiential-Relationship' || $_GET['report']=='Your-Cosmic-Rating' || $_GET['report']=='How-The-Relationship-Affects-You' || $_GET['report']=='How-The-Relationship-Affects-Them'){
$luck_cap = 6;
$sex_cap = 6;
$love_cap = 6;
$drama_cap = 7;
}*/
else{
//synastry
$luck_cap = 9;
$sex_cap = 9;
$love_cap = 9;
$drama_cap = 12;
}
In php code, how does an astrology “synastry” for loop differ from a single charts planets-for loop?. One is looping and comparing 2 birth charts planets degrees, and the other is using its own planets to compare to its other planets in a single chart. Give me the example of 2 for loops in php to see how they are different. Can you do that? There is an array of Magi Astrology's angles (0,60,120) (99, 180), and an array of Magi Astrology orbs used as well.. use best practices for Magu Astrology in the php code for loops Make sure to use efficient for loops. Create one for loop for single planets birthchart, and plan other for synastry between 2 charts. Can you do that?
Here's an example of how you can create two for loops in PHP to compare planets in a single birth chart and between two charts in a synastry analysis using Magi Astrology's angles and orbs:
These examples demonstrate how you can use for loops in PHP to compare planets in a single birth chart and between two charts in a synastry analysis. You can modify and expand the code as needed, incorporating Magi Astrology's angles and orbs to perform the desired calculations and interpretations for the aspects.
What are the magi astrology orbs per angle(0,30,60,120, 45,90,180,150) ? Using best practices in magi astrology I looked it up on magi Helena and it was all 3 degree orbs for geo charts
In Magi Astrology, the recommended orbs for the major angles are generally considered to be around 3 degrees. However, it's important to note that orbs can vary depending on the specific astrologer's interpretation and methodology. While a 3-degree orb is commonly used for the major angles, some practitioners may choose to use slightly larger or smaller orbs based on their preferences and experience.
• 0 degrees (Conjunction): Approximately 3-degree orb.
• 30 degrees (Sextile): Approximately 3-degree orb.
• 60 degrees (Trine): Approximately 3-degree orb.
• 120 degrees (Opposition): Approximately 3-degree orb.
• 45 degrees (Semi-Sextile): Approximately 2-degree orb.
• 90 degrees (Square): Approximately 3-degree orb.
• 180 degrees (Opposition): Approximately 3-degree orb.
• 150 degrees (Quincunx): Approximately 2-degree orb.
These orb values provide a general guideline for Magi Astrology, but it's important to note that different astrologers may have slight variations in their preferred orb sizes. It's always a good idea to consult the specific teachings or literature of the Magi Astrologer you are following for their recommended orbs, as they may have their own unique perspective or methodology.
Show me an example php for loop for finding matches in the declinations? Show me one for synastry And one for a single set of planets
Here are examples of PHP for loops that can be used to find matches in declinations for synastry analysis and a single set of planets:
1. Finding Matches in Declinations - Synastry:
2. Finding Matches in Declinations - Single Set of Planets:
These examples demonstrate how you can use for loops in PHP to compare declinations in synastry analysis and within a single set of planets. By calculating the difference in declinations and comparing it to a specified orb, you can identify matches and perform the desired actions or interpretations based on the results. Remember to adjust the orb value according to your specific preferences and the guidelines of Magi Astrology.
Here are the new orbs Geo Parallel 1.2° Geo Contra-parallel 1.2° Helio Parallel 0.3° Helio Contra-latitude 0.3°
Thank you for providing the new orbs for parallel and contra-parallel aspects in both geocentric and heliocentric charts. Here's an updated example of PHP for loops considering these orbs:
1. Finding Matches in Parallel and Contra-Parallel - Synastry:
2. Finding Matches in Parallel and Contra-Parallel - Single Set of Planets:
These examples incorporate the updated orbs for parallel and contra-parallel aspects in both geocentric and heliocentric charts. Adjust the orbs as needed and customize the actions or interpretations based on your specific requirements and the guidelines of Magi Astrology.
function is_within_orb($num,$orb){
//echo "num: $num - orb: $orb
";
if($num<=$orb){
//$n = $orb-$num;
return ( round($num,2) );
}
else return NULL;
}
function check_for_aspect_single_comparison($aspect_name,$your_planet,$first_planet_deg360,$one_of_the_planet_names,$second_planet_deg360,$aspect_array,$difference_degs_of_planets){
#
#echo "
orb_of - Story Step 1: ...
$your_planet-$aspect_name-$one_of_the_planet_namesaspect_name: $aspect_name ... your_planet: $your_planet ... first_planet_deg360: $first_planet_deg360 ... one_of_the_planet_names: $one_of_the_planet_names ... second_planet_deg360: $second_planet_deg360 ... the whole angles_organized array ... difference_degs_of_planets: $difference_degs_of_planets
";
//$aspect_name = $a;
$p1 = $your_planet;
$p2 = $one_of_the_planet_names;
$d1 = $first_planet_deg360; //degree of planet1
$d2 = $second_planet_deg360; //degree of planet2
#
#echo "
orb_of - Story Step 2:
p1: $p1 ... p2: $p2 ... d1: $d1 ... d2: $d2
";
//expand the numbers 360 in front and 360 behind
//to make them work every time
//the lesser difference
//$difference = get_lesser_difference_360($d1,$d2);
//
//echo " - - - lesser difference of $p1 ($d1) & $p2($d2) - diff: ".$difference."
";
//take this number and look in the aspects to see if it matches, using the orb that you end up going with
$aspect_orb = $aspect_array['aspect_orb'];
$aspect_degrees = $aspect_array['aspect_degrees'];
#
#echo "
orb_of - Story Step 3:
aspect_orb: aspects by angleName to orb - array ...
aspect_degrees: aspects by angleName to degree - array
";
//check against all the orbs
$total_orbs = count($aspect_orb);
#for($x=0;$x<=$total_orbs;$x++){
$aspect_degree = $aspect_degrees[$aspect_name];
$orb_of_aspect = $aspect_orb[$aspect_name];
$orb = get_lesser_difference_simple($difference_degs_of_planets,$aspect_degree); # orb - diff_of_aspect_deg_and_planet_diff_degs
#
#echo "
orb_of - Story Step 4
aspect_degree: $aspect_degree, orb_of_aspect: $orb_of_aspect, orb: $orb
";
//echo "($x/$total_orbs) diff_of_aspect_deg_and_planet_diff_degs: $diff_of_aspect_deg_and_planet_diff_degs - aspect_name: $aspect_name - aspect_degrees: $aspect_degree - orb_of_aspect: $orb_of_aspect
";
//echo "
aspect_degrees:
";print_r($aspect_degrees);echo "
";//die();
//echo "
aspect_orb:
";print_r($aspect_orb);echo "
";//die();
//$aspect_array['aspect_orb'] = $aspect_orb; //by ['aspect_name']
//$aspect_array['aspect_degrees'] = $aspect_degrees;
//a is the aspect name, that the arrays are set up with info for
//take higher $d (diff) and aspect_num(aspect), get the difference from them
//is_within_orb - returns the number of the actual GOOD ORB - or NULL
$within_orb = is_within_orb($orb,$orb_of_aspect);
#
#echo "
orb_of - Story Step 5
within_orb: '"; print_r($within_orb); echo "'
";
//echo "
"; print_r($within_orb); echo "
";die();
if($within_orb!=NULL) return $within_orb;
#}
//if aspect is found - return true
return NULL;
}
function put_2planets_in_order($p1,$p2,$planets_order,$owner1,$owner2){
if($planets_order[$p1]<$planets_order[$p2]) return array($p1,$p2,$owner1,$owner2); else return array($p2,$p1,$owner2,$owner1);
}
function special_aspect_power($p1,$p2,$aspect_name,$orb,$aspect_orb,$power_of_planet,$power_of_orb,$power_of_aspect){
#echo "
special_aspect_powerp1: $p1 ... p2: $p2 ... aspect_name: $aspect_name ... orb: $orb ... aspect_orb: $aspect_orb ... power_of_planet: $power_of_planet ... power_of_orb: $power_of_orb ... power_of_aspect: $power_of_aspect
";
//ORB is max distance (add wiggle_room) for 2 planets
/*//for planetary geometry only
$reality_full_strength_orb=4.625;
$reality_half_strength_orb=5.125;
$reality_quarter_strength_orb=6.125;
*/
$good_magiorb = 4.625;
if ($orb<$good_magiorb){ //give it the full strenth possible for the best orb
$power_of_orb_b4 = $power_of_orb; //not returning this value though
$power_of_orb = 2*$power_of_orb;
}
else {
$power_of_orb_b4 = $power_of_orb; //not returning this value though
$max_orb = $aspect_orb[$aspect_name];
//make the power better, the less it's away from the end... meaningful_orb
$gd=$good_magiorb;
$beg=$orb-$gd;
//echo "
"; print_r($aspect_orb); echo "
";die();
$end=$max_orb - $gd;
$r=( ($end-$beg)/$end ) +1; //1.5 if it's maxorb is 10 and orb is 7.5
$power_of_orb = $power_of_orb * $r;
}
//if novile orb was .63 and 1 is good,
//now it's 1/.63 = 1.58
//if conjunction orb was 1.5 and 10 is good
//now it's 10/1.63 = 6.13
//if conjunction orb was 1.5 and 10 is good
//now it's 10/5.38 = 1.86
$quality__orb_to_meaningful_orb_for_aspect = $this_orb/$orb;
//print_r($aspect_orb[$aspect_name]);die();
//15 - 5 ... add 2 of these
$planet1power = $power_of_planet[$p1];
$planet2power = $power_of_planet[$p2];
$planetspower = $planet1power + $planet2power;
//15 - 4
//$power_of_aspect;
//$power_of_orb
//number got pretty big, so this is to reduce the overall power numbers
$reducing_number_for_large_numbers = 10;
if($power_of_aspect<0) $power_of_aspect_to_add = $power_of_aspect * -1;
else $power_of_aspect_to_add = $power_of_aspect;
$power = ( $planetspower + $power_of_aspect_to_add ) * $power_of_orb / $reducing_number_for_large_numbers;
if($power_of_aspect<0) $power *= -1;
$power = round($power,0);
//echo $power; die();
return $power;
}
function power_of($p1,$p2,$aspect_name,$orb,$aspect_orb,$power_of_planet,$power_of_orb,$power_of_aspect){
#echo "
power_of - Story Step 1: ...
$p1-$aspect_name-$p2p1: $p1 ... p2: $p2 ... aspect_name: $aspect_name ... orb: $orb ... orbs_for_all_angles_array ... power_only_for_all_planets_array: ... power_of_orb: $power_of_orb ... power_of_aspect: $power_of_aspect
";
//ORB is max distance (add wiggle_room) for 2 planets
//if novile orb was .63 and 1 is good,
//now it's 1/.63 = 1.58
//if conjunction orb was 1.5 and 10 is good
//now it's 10/1.63 = 6.13
//if conjunction orb was 1.5 and 10 is good
//now it's 10/5.38 = 1.86
$quality__orb_to_meaningful_orb_for_aspect = $aspect_orb[$aspect_name]/$orb;
//print_r($aspect_orb[$aspect_name]);die();
//15 - 5 ... add 2 of these
$planet1power = $power_of_planet[$p1];
$planet2power = $power_of_planet[$p2];
$planetspower = $planet1power + $planet2power;
#echo "
power_of - Story Step 2:
planet1power: $planet1power, planet2power: $planet2power, planetspower: $planetspower
";
//15 - 4
//$power_of_aspect;
//$power_of_orb
//number got pretty big, so this is to reduce the overall power numbers
$reducing_number_for_large_numbers = 10;
if($power_of_aspect<0) $power_of_aspect_to_add = $power_of_aspect * -1;
else $power_of_aspect_to_add = $power_of_aspect;
#echo "
power_of - Story Step 3:
power_of_aspect_to_add: $power_of_aspect_to_add
";
$power = ( $planetspower + $power_of_aspect_to_add ) * $power_of_orb / $reducing_number_for_large_numbers;
#echo "
power_of - Story Step 4:
power: $power
";
if($power_of_aspect<0) $power *= -1;
$power = round($power,0);
#echo "
power_of - Story Step 5:
power - rounded: $power
";
/*if($power==NULL){
echo "NO POWER...: $p1-".$aspect_name."-$p2
";
echo "p1 $p1,p2 $p2,aspect_name $aspect_name,orb $orb,aspect_orb ".$aspect_orb[$aspect_name].",power_of_planet1 ".$power_of_planet[$p1].",power_of_planet2 ".$power_of_planet[$p2].",power_of_orb $power_of_orb,power_of_aspect ".$power_of_aspect[$aspect_name];
//die();
}*/
return $power;
}
function directional_affecting_power($pl1,$pl2,$direction1,$direction2,$aspect_name,$power_num){
//bidirectional------INCREASE POS/DECREASE NEG power
if( ($direction1=="retrograde" && $direction2 =="direct") || ($direction1=="direct" && $direction2 =="retrograde") ){
$bidirectional = "bidirectional";
}
else $bidirectional = "normal";
//double retrograde------INCREASE POS by 2.5/INCREASE NEG power by 2
if($direction1=="retrograde" && $direction2 =="retrograde"){
$double_retrograde = "double_retrograde";
}
else $double_retrograde = "normal";
//------------------------------------------------------------------------
if($pl1=="Saturn" || $pl2=="Saturn"){
//------------------------------------------------------------------------
//SATURN is 1 PLANET //ALWAYS A CLASH, make it negative, if quincunx
//if other angle, just intensify it, ease the negative bi-dir
//echo "SATURN: $pl1-".$aspect_name."-$pl2
";
//-------QUINCUNX------------------
//While it is considered to be an enhancement aspect, the nature of a quincunx is that it can occasionally be over-exuberant and lacking in restraint. A bi-directional or double retrograde quincunx is calmer and easier to deal with.
if($aspect_name=="Quinqunx"){
$power_num = $power_num * -1; //make negative
//quincunx and a contra-parallel are enhancement aspects except when Saturn is included in the aspect. Saturn in quincunx or contra-parallel is always a clash.
//reduce the negative a little, if these types are there
if($bidirectional == "bidirectional" || $double_retrograde == "double_retrograde") $power_num = $power_num * 0.6;
}
//------------------------------------------------------------------------
}
//------------------------------------------------------------------------
else{
//positive - bidir - a lot better / double-ret - are the Most Beneficial Type of Enhancements
if($power_of_aspect>0){
if($bidirectional == "bidirectional") $power_num = $power_num*1.8;
elseif($double_retrograde == "double_retrograde") $power_num = $power_num*2.5;
}
//negative - bidirec - easier, less bad / double-ret - the worst
else{
if($bidirectional == "bidirectional") $power_num = $power_num * 0.6;
elseif($double_retrograde == "double_retrograde") $power_num = $power_num * 2;
}
}
return array('power'=>$power_num,'bidirectional'=>$bidirectional,'double_retrograde'=>$double_retrograde);
}
function insert_aspect_into_saved_array($saved_aspects,$planet1,$aspect_name,$aspect_orb,$planet2,$orb,$aspect_degree,$planets_order,$power_of_planet,$direction1,$direction2,$aspect_power,$aspect_definition,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender,$gender2){
$p1 = $planet1;
$p2 = $planet2;
$owner1_full = explode(" ",$owner_array_by_planet1[$p1]);
$owner2_full = explode(" ",$owner_array_by_planet2[$p2]);
$owner1 = $owner1_full[0];
$owner2 = $owner2_full[0];
//echo "$p1 ($owner1) - $p2 ($owner2)
"; die();
$order = put_2planets_in_order($p1,$p2,$planets_order,$owner1,$owner2);
$pl1 = ucwords($order[0]);
$pl2 = ucwords($order[1]);
$owner1 = $order[2];
$owner2 = $order[3];
if($owner1==NULL){
//echo "no owner
";
//die();
}
//echo "order: $pl1 - $pl2
";die();
$meaningful_orb = $aspect_orb[$aspect_name];
//echo "meaningful_orb: $meaningful_orb
";
//8.5 if orb was 1.5, divided by 10, gets 8.5 = 85 ... out of 100
$power_of_orb = round((($meaningful_orb-$orb)/$meaningful_orb * 100),2);
$power_of_aspect = $aspect_power[$aspect_name];
//echo "
aspect_power:
";print_r($aspect_power);echo "
";
$power_num = power_of($pl1,$pl2,$aspect_name,$orb,$aspect_orb,$power_of_planet,$power_of_orb,$power_of_aspect);
$power_of_planets = $power_of_planet[$pl1] + $power_of_planet[$pl2];
//CHANGES POWER...
//bidirectional, double retrograde, and if saturn is involved
$affecting = directional_affecting_power($pl1,$pl2,$direction1,$direction2,$aspect_name,$power_num);
//echo "
affecting:
";print_r($affecting);echo "
"; die();
$power_num2 = $affecting['power'];
$bidirectional = $affecting['bidirectional'];
$double_retrograde = $affecting['double_retrograde'];
if($power_num2==$power_num) $power_num2=NULL; //only show it if it was changed
#echo "
power in insert_aspect_into_saved_array:power_num: $power_num ... power_of_planets: $power_of_planets ... power_num2: $power_num2 ... affecting:"; print_r($affecting);echo "
";
//echo "
aspect_orb:
";print_r($aspect_orb);echo "
";
$aspect_string = $pl1." ".$aspect_name." ".$pl2;
$genders = $gender.$gender2;
$orb_slash_meaningful = $aspect_array['orb']."/".$aspect_array['meaningful_orb'];
//if owner is not there, don't show them on the line
$owner_str = " - $p1($owner1) - $p2($owner2) - ";
if($owner1==NULL) $owner_str=NULL;
/*Super Aspect (A Winner-Powerful, Unique, Creative) (Sun-Jupiter,Uranus,Neptune,Pluto Venus-Jupiter,Uranus,Neptune,Pluto,Chiron Jupiter-Pluto,Uranus,Neptune Uranus-Pluto Pluto-Chiron)
(power: 325) (1.67/10) (Sun-Conjunct-Jupiter)
$special_aspect_array = array();
*/
/*
[0]Super Aspect (A Winner-Powerful, Unique, Creative) (Sun-Jupiter,Uranus,Neptune,Pluto Venus-Jupiter,Uranus,Neptune,Pluto,Chiron Jupiter-Pluto,Uranus,Neptune Uranus-Pluto Pluto-Chiron)
[1]Sports Champion Aspect
*/
//-------------------------------------------------------
//----------ADD IN SPECIAL ASPECT INFO-------------------
//-------------------------------------------------------
$p3 = str_replace(" ","-",$aspect_string);
$counter_categories = 0;
//extra things to check for, that are needed for certain aspects
$p4 = $p3."|gender:$gender"; //gender specific aspects
$p5 = $p3."|directions:$directions"; //Bidirectional specific quincunx aspects
$p6 = $p3."|genders:$genders"; //gender specific aspects
//echo $p3."
";
foreach($array_of_special_aspects[$special_aspect_section] as $category_name => $planets_dashes_array){
//echo $category_name."
";
foreach($planets_dashes_array as $n => $pl_dash_pl){
//echo $pl_dash_pl."
";
//echo "p3: $p3 - pl_dash_pl: $pl_dash_pl
"; die();
if($p3 == $pl_dash_pl || $p4 == $pl_dash_pl || $p5 == $pl_dash_pl){
if(stristr($category_name, '(Luck)') == TRUE) $group="Luck";
if(stristr($category_name, '(Love)') == TRUE) $group="Love";
if(stristr($category_name, '(Sex)') == TRUE) $group="Sex";
if(stristr($category_name, '(Drama)') == TRUE) $group="Drama";
$blurb[$group][$p3][$category_name] = " (power:
$power) ($orb_slash_meaningful)".$owner_str;
#echo "
when adding power - to a category: power:
$power ... orb_slash_meaningful: $orb_slash_meaningful ... owner_str: $owner_str
";
//$blurb[$group][$p3][$category_name] = " (power:
$power) ($orb_slash_meaningful)".$owner_str;
/*if(isset($group)){
$save_category_name[$group][$counter_categories] = $category_name;
//echo "group: $group ... category_name: $category_name";die();
$counter_categories++;
}*/
}
}
}
//note if it has category(s) or not
if(isset($save_category_name)) $special_aspect_yes_no = "yes";
else $special_aspect_yes_no="no";
//CREATE SPECIAL ASPECT POWER with: Moses's Info
/*
'reality_full_strength_orb_magi'=>4.625,
'reality_half_strength_orb_magi'=>5.125,
'reality_quarter_strength_orb_magi'=>6.125,
*/
if (!isset($special_aspect_power)) $special_aspect_power = 0;
if($special_aspect_yes_no == "yes"){
$special_aspect_power = special_aspect_power($p1,$p2,$aspect_name,$orb,$aspect_orb,$power_of_planet,$power_of_orb,$power_of_aspect);
}
//echo "
save_category_name: $special_aspect_yes_no
";print_r($save_category_name);echo "
";die();
//-------------------------------------------------------
//----------end: ADD IN SPECIAL ASPECT INFO-------------------
//-------------------------------------------------------
//echo "
aspect_degree:
";print_r($aspect_degree);echo "
";
$this_array = array('planet1'=>$pl1,'planet2'=>$pl2,'aspect'=>$aspect_name,'aspect_meaning'=>$aspect_definition[$aspect_name],'aspect_angle'=>$aspect_degree,'orb'=>$orb,'meaningful_orb'=>$meaningful_orb,'power_of_aspect'=>$power_of_aspect,'power_of_planets'=>$power_of_planets,'power_of_orb_max100'=>$power_of_orb,'bidirectional'=>$bidirectional,'double_retrograde'=>$double_retrograde,'power'=>$power_num,'powerb4_if_changed'=>$power_num2,'aspect_string'=>$aspect_string,$pl1=>$owner1,$pl2=>$owner2,'special_aspect'=>$special_aspect_yes_no);
#echo "
this_array'planet1'=>$pl1 ... 'planet2'=>$pl2 ... 'aspect'=>$aspect_name ... 'aspect_meaning'=>$ aspect_definition[$ aspect_name] ... 'aspect_angle'=>$aspect_degree ... 'orb'=>$orb ... 'meaningful_orb'=>$meaningful_orb ... 'power_of_aspect'=>$power_of_aspect ... 'power_of_planets'=>$power_of_planets ... 'power_of_orb_max100'=>$power_of_orb ... 'bidirectional'=>$bidirectional ... 'double_retrograde'=>$double_retrograde ... 'power'=>$power_num ... 'powerb4_if_changed'=>$power_num2 ... 'aspect_string'=>$aspect_string ... $pl1=>$owner1 ... $pl2=>$owner2 ... 'special_aspect'=>$special_aspect_yes_no ... special_aspect_power: $special_aspect_power
";
if($save_category_name!=NULL){
$this_array['special_aspect_power'] = $special_aspect_power;
$this_array['special_aspect_array'] = $save_category_name;
}
/* if(isset($saved_aspects[$pl1][$aspect_string])){
echo "- already an aspect in for - $pl1 - $aspect_string
";
echo "
saved_aspects for it:
";print_r($saved_aspects[$pl1][$aspect_string]);echo "
";
echo "
this_array:
";print_r($this_array);echo "
";die();
}*/
$saved_aspects[$pl1][$aspect_string]=$this_array;
//echo "
saved_aspects:
";print_r($saved_aspects);echo "
"; //die();
return $saved_aspects;
}
function sortArrayByField($original,$field,$descending = false){
$sortArr = array();
foreach ( $original as $key => $value ){
$sortArr[ $key ] = $value[ $field ];
}
if ( $descending ){
arsort( $sortArr );
}
else{
asort( $sortArr );
}
$resultArr = array();
foreach ( $sortArr as $key => $value ){
$resultArr[ $key ] = $original[ $key ];
}
return $resultArr;
}
//----
//BUILD HTML LISTING OF ASPECTS
//----
function html_listing_of_aspects_with_interpretations($saved_aspects,$aspect_data_folder){
//echo "
";print_r($saved_aspects);echo "
";die();
//$saved_aspects = sortArrayByField($saved_aspects,'power_sort_num', true);
foreach($saved_aspects as $first_planet => $aspects_array){
foreach($aspects_array as $aspect_full_name => $aspect_array){
$p1 = $aspect_array['planet1'];
$p2 = $aspect_array['planet2'];
$a = $aspect_array['aspect'];
$a_n = $aspect_array['aspect_angle'];
$o = $aspect_array['orb'];
$o_m = $aspect_array['meaningful_orb'];
$significance = $aspect_array['power'];
$meaning = $aspect_array['aspect_meaning'];
$bidirectional = $aspect_array['bidirectional'];
$double_retrograde = $aspect_array['double_retrograde'];
if($bidirectional!="bidirectional") $bidirectional=NULL;
else $bidirectional = " / bidirectional";
if($double_retrograde!="double_retrograde") $double_retrograde=NULL;
else $double_retrograde = " / double_retrograde";
$filename = "data/aspects/$aspect_data_folder/".strtolower($p1)."/".strtolower($p1." ".$a." ".$p2).".txt";
$interpretations = nl2br(file_get_contents($filename));
$i4 = explode("|",$interpretations);
$i=NULL;
for($z=0;$z<(count($i4)-1);$z++){
$i.= ($z+1)." ".$i4[$z];
$i.="
";
}
if($significance<0) $significance_color = "#a30d0d"; else $significance_color = "#1558ab";
$img_style = "style='vertical-align:top;padding:4px;'";
$img1 = "

";
$img2 = "

";
$aspects_list_html .= "
$img1$p1 $a $p2$img2 ($a: $a_n) (orb $o / ok-orb $o_m".$bidirectional.$double_retrograde." / significance: $significance)
Initial Meaning: $meaning
What It Means For You:
$i
";
}
}
return $aspects_list_html;
}
function keep_only_certain_planets($array){
$planets_to_keep = array("Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Chiron","Juno","Ceres","Pallas","Vesta","Eros","Amor","Lilith","Sappho","SaturnChironMidpoint");
//print_r($planets_to_keep);die();
foreach($array as $planet=> $value){
if(in_array($planet, $planets_to_keep)){
$array2[$planet] = $value;
}
}
return $array2;
}
function make_full_degrees_and_directions_arrays($data){ //add in the owner of the degree and what planet it is
$planets_to_keep = array("Sun","Moon","Mercury","Venus","Mars","Jupiter","Saturn","Uranus","Neptune","Pluto","Chiron","Juno","Ceres","Pallas","Vesta","Eros","Amor","Lilith","Sappho","SaturnChironMidpoint");
//echo "
data
";print_r($data);echo "
";die();
//-----------------------------------------------
//save whole degree info - per planet
foreach($data['planets'] as $planet => $planet_info){
if(in_array($planet,$planets_to_keep)==TRUE){
//DEGREES-FULL by planet
$degrees_full[$planet]=$planet_info['degrees_full'];
$directions[$planet]=$planet_info['direction'];
$owner_array_by_planet[$planet]=$data['name'];
}
else{
//echo "$planet not in array
";
}
}
//echo "
data['planets']
";print_r($data['planets']);echo "
";die();
//echo "
degrees_full
";print_r($degrees_full);echo "
";die();
$r=array('degrees_full'=>$degrees_full,'directions'=>$directions,'owner_of_these_planets'=>$owner_array_by_planet);
//echo "
r array
";print_r($r);echo "
";die();
return $r;
}
//organize by best aspects - make the array in final array 1st thing loop thru...
//at end re-organize aspects in each, by making the most powerful at top
//--do the same for synastry one--
function build_saved_aspects_array($aspects_organized,$planets_organized,$degrees_full,$directions,$array_of_special_aspects,$special_aspect_section,$gender_renamed,$owner_array_by_planet1,$owner_array_by_planet2,$gender,$gender2){
//echo "gender_renamed: gender_renamed / gender: $gender / gender2: $gender2"; die();
//echo "
special_aspect_section: $special_aspect_section...
";print_r($array_of_special_aspects);echo "
";die();
//--------------------------------------
//-------Single- ASPECTS arrays---------
//--------------------------------------
//ORB sizes, standard, and stretched
//http://www.skyscript.co.uk/aspectorbs.html
//USED FOR JOINT-planet ORBS
//ORB is max distance (add wiggle_room) for 2 planets
foreach($aspects_organized as $aspect => $array) $aspect_orb[$aspect] = $array['meaningful_orb'];
foreach($aspects_organized as $aspect => $array) $aspect_degrees[$aspect] = $array['degrees'];
foreach($aspects_organized as $aspect => $array) $aspect_definition[$aspect] = $array['definition'];
foreach($aspects_organized as $aspect => $array) $aspect_power[$aspect] = $array['power'];
//--------------------------------------
//-------Single- PLANET arrays----------
//--------------------------------------
$x=0;
foreach($planets_organized as $planet => $array){
$planets_order[$planet]=$array['order'];
$planets[$x]=$planet;
$x++;
}
foreach($planets_organized as $planet => $array) $orb_of_planet[$planet]=$array['planet_orb'];
foreach($planets_organized as $planet => $array) $power_of_planet[$planet]=$array['power'];
//---------------------------------------------------------------
//-----IMMEDIATE PSYCHOLOGICAL REALITY----------(not used yet)---
//---------------------------------------------------------------
//Psychologically Relevant - Aspects within 4 1/2 degrees
$orb_relevant = 4.625; //4 5/8
//When forming planetary geometry (T-Squares, Grand Trines, etc.), I'll use some higher orbs.
//Between 4 5/8 and 5 1/8 I think an aspect is at half strength.
$orb_half_strength = 5.125;
//And between 5 1/8 and 6 1/8 degrees i think an aspect is at about 1/4 strength.
$orb_quarter_strength = 6.125;
//An orb between 6 and 8 or 10 degrees seems true in a general, overall sense, but not as a very powerful psychological reality.
//http://astrologyforthesoul.com/moses/aspcturbz.html
$wiggle_room_orbs = 15;
//----------------------------------------------------------
//------------------------------------------------------------
$aspect_array['aspects'] = $aspects_organized; //'Conjunct'=>array('class','degrees','meaningful_orb','power','definition')
$aspect_array['aspect_orb'] = $aspect_orb; //by ['aspect_name']
$aspect_array['aspect_degrees'] = $aspect_degrees;
$aspect_array['aspect_definition'] = $aspect_definition;
$aspect_array['aspect_power'] = $aspect_power;
//---
$aspect_array['planets'] = $planets; //'order'=>14,'planet_orb'=>5,'power'=>5,
$aspect_array['planets_order'] = $planets_order; //by ['planet']
$aspect_array['orb_of_planet'] = $orb_of_planet;
$aspect_array['power_of_planet'] = $power_of_planet;
//---
$aspect_array['orb_relevant'] = $orb_relevant; //4.625
$aspect_array['orb_half_strength'] = $orb_half_strength; //5.125
$aspect_array['orb_quarter_strength'] = $orb_quarter_strength; //6.125
$aspect_array['wiggle_room_orbs'] = $wiggle_room_orbs; //15 - add this to find stuff
//------------------------------------------------------------
$saved_aspects = array();
$aspects_list_html = "
";
//echo $aspects_list_html;
foreach($degrees_full as $your_planet => $first_planet_deg360){
//echo "$planet (d1 $d1)
";
foreach($planets as $one_of_the_planet_names){
//don't compare the planet to itself
if($one_of_the_planet_names!=$your_planet){
$second_planet_deg360 = $degrees_full[$one_of_the_planet_names];
$direction1 = $directions[$your_planet];
$direction2 = $directions[$one_of_the_planet_names];
//echo "
aspect_degrees:
";print_r($aspect_degrees);echo "
";
$difference_degs_of_planets = get_lesser_difference_360($first_planet_deg360,$second_planet_deg360);
foreach($aspect_degrees as $aspect_name => $aspect_deg){
//$check becomes the orb number in case of an aspect found
//or it's NULL
$check = check_for_aspect_single_comparison($aspect_name,$your_planet,$first_planet_deg360,$one_of_the_planet_names,$second_planet_deg360,$aspect_array,$difference_degs_of_planets);
//echo "aspect_name: $aspect_name - aspect_deg: $aspect_deg -- planet1: $your_planet - planet2: $one_of_the_planet_names - $difference_degs_of_planets degs away - (with an orb of $check)
";
//if($one_of_the_planets == "Mercury") die();
//echo " ->$aspect_name ($aspect_deg) ... $apsect_deg degs away - (with an orb of $check)
"; //die();
if ($check != NULL){
//echo "
check:
";print_r($check);echo "
";die();
//echo "aspect_name: $aspect_name - aspect_deg: $aspect_deg -- planet1: $your_planet - planet2: $one_of_the_planet_names - $difference_degs_of_planets degs away - (with an orb of $check)
";
//remove duplicates by saving them a certain way
$saved_aspects = insert_aspect_into_saved_array($saved_aspects,$your_planet,$aspect_name,$aspect_orb,$one_of_the_planet_names,$check,$aspect_deg,$planets_order,$power_of_planet,$direction1,$direction2,$aspect_power,$aspect_definition,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
}
//if( ($d2>=$min) && ($d2<=$max) ) $echo " $planet [$d1] ($a) $p [$d2] ... min: $min ... max: $max
";
}
}
}
}
//echo "
saved_aspects
";print_r($saved_aspects);echo "
";die();
return $saved_aspects;
}
function build_saved_aspects_array_synastry($aspects_organized,$planets_organized,$degrees_full1,$directions1,$degrees_full2,$directions2,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender){
//--------------------------------------
//-------Single- ASPECTS arrays---------
//--------------------------------------
//ORB sizes, standard, and stretched
//http://www.skyscript.co.uk/aspectorbs.html
//USED FOR JOINT-planet ORBS
//ORB is max distance (add wiggle_room) for 2 planets
foreach($aspects_organized as $aspect => $array) $aspect_orb[$aspect] = $array['meaningful_orb'];
foreach($aspects_organized as $aspect => $array) $aspect_degrees[$aspect] = $array['degrees'];
foreach($aspects_organized as $aspect => $array) $aspect_definition[$aspect] = $array['definition'];
foreach($aspects_organized as $aspect => $array) $aspect_power[$aspect] = $array['power'];
//echo "
aspect_power
";print_r($aspect_power);echo "
";
//die();
/*//names
echo "LIST OF ASPECT NAMES: --
";
foreach($aspects_organized as $aspect => $array) echo "$aspect,";
//Conjunct,Opposed,Trine,Sextile,Septile,Square,Semisextile,Quintile,Semiquintile,Biquintile,Semisquare,Sesquisquare,Quincunx,Novile,
*/
//--------------------------------------
//-------Single- PLANET arrays----------
//--------------------------------------
$x=0;
foreach($planets_organized as $planet => $array){
$planets_order[$planet]=$array['order'];
$planets[$x]=$planet;
$x++;
}
foreach($planets_organized as $planet => $array) $orb_of_planet[$planet]=$array['planet_orb'];
foreach($planets_organized as $planet => $array) $power_of_planet[$planet]=$array['power'];
//---------------------------------------------------------------
//-----IMMEDIATE PSYCHOLOGICAL REALITY----------(not used yet)---
//---------------------------------------------------------------
//Psychologically Relevant - Aspects within 4 1/2 degrees
$orb_relevant = 4.625; //4 5/8
//When forming planetary geometry (T-Squares, Grand Trines, etc.), I'll use some higher orbs.
//Between 4 5/8 and 5 1/8 I think an aspect is at half strength.
$orb_half_strength = 5.125;
//And between 5 1/8 and 6 1/8 degrees i think an aspect is at about 1/4 strength.
$orb_quarter_strength = 6.125;
//An orb between 6 and 8 or 10 degrees seems true in a general, overall sense, but not as a very powerful psychological reality.
//http://astrologyforthesoul.com/moses/aspcturbz.html
$wiggle_room_orbs = 15;
//----------------------------------------------------------
//------------------------------------------------------------
$aspect_array['aspects'] = $aspects_organized; //'Conjunct'=>array('class','degrees','meaningful_orb','power','definition')
$aspect_array['aspect_orb'] = $aspect_orb; //by ['aspect_name']
$aspect_array['aspect_degrees'] = $aspect_degrees;
$aspect_array['aspect_definition'] = $aspect_definition;
$aspect_array['aspect_power'] = $aspect_power;
//---
$aspect_array['planets'] = $planets; //'order'=>14,'planet_orb'=>5,'power'=>5,
$aspect_array['planets_order'] = $planets_order; //by ['planet']
$aspect_array['orb_of_planet'] = $orb_of_planet;
$aspect_array['power_of_planet'] = $power_of_planet;
//---
$aspect_array['orb_relevant'] = $orb_relevant; //4.625
$aspect_array['orb_half_strength'] = $orb_half_strength; //5.125
$aspect_array['orb_quarter_strength'] = $orb_quarter_strength; //6.125
$aspect_array['wiggle_room_orbs'] = $wiggle_room_orbs; //15 - add this to find stuff
//------------------------------------------------------------
$saved_aspects = array();
$aspects_list_html = "
";
//echo $aspects_list_html;
//VARS: $degrees_full1,$directions1,$degrees_full2,$directions2
foreach($degrees_full1 as $your_planet => $first_planet_deg360){
//echo "$planet (d1 $d1)
";
foreach($planets as $one_of_the_planet_names){
//don't compare the planet to itself
if($one_of_the_planet_names!=$your_planet){
$second_planet_deg360 = $degrees_full2[$one_of_the_planet_names];
$direction1 = $directions1[$your_planet];
$direction2 = $directions2[$one_of_the_planet_names];
//echo "
aspect_degrees:
";print_r($aspect_degrees);echo "
";
$difference_degs_of_planets = get_lesser_difference_360($first_planet_deg360,$second_planet_deg360);
foreach($aspect_degrees as $aspect_name => $aspect_deg){
//$check becomes the orb number in case of an aspect found
//or it's NULL
$check = check_for_aspect_single_comparison($aspect_name,$your_planet,$first_planet_deg360,$one_of_the_planet_names,$second_planet_deg360,$aspect_array,$difference_degs_of_planets);
//echo "aspect_name: $aspect_name - aspect_deg: $aspect_deg -- planet1: $your_planet - planet2: $one_of_the_planet_names - $difference_degs_of_planets degs away - (with an orb of $check)
";
//if($one_of_the_planets == "Mercury") die();
//echo " ->$aspect_name ($aspect_deg) ... $apsect_deg degs away - (with an orb of $check)
"; //die();
if ($check != NULL){
//echo "
check:
";print_r($check);echo "
";die();
//echo "aspect_name: $aspect_name - aspect_deg: $aspect_deg -- planet1: $your_planet - planet2: $one_of_the_planet_names - $difference_degs_of_planets degs away - (with an orb of $check)
";
//remove duplicates by saving them a certain way
$saved_aspects = insert_aspect_into_saved_array($saved_aspects,$your_planet,$aspect_name,$aspect_orb,$one_of_the_planet_names,$check,$aspect_deg,$planets_order,$power_of_planet,$direction1,$direction2,$aspect_power,$aspect_definition,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo "
saved_aspects
";print_r($saved_aspects);echo "
";die();
}
//if( ($d2>=$min) && ($d2<=$max) ) $echo " $planet [$d1] ($a) $p [$d2] ... min: $min ... max: $max
";
}
}
}
}
return $saved_aspects;
}
function build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects){
//----
//BUILD SUMMARY OF ASPECTS
//----
$aspects_summary = NULL;
$aspects_summary_html = NULL;
foreach($saved_aspects as $planet => $aspect_array){
foreach($aspect_array as $aspect_planets => $aspect_array){
$specific_aspect = $aspect_array['aspect'];
if(!isset($counter[$specific_aspect])) $counter[$specific_aspect]=0;
else $counter[$specific_aspect]++;
$c0=$counter[$specific_aspect];
//save info to summary variable array
$aspects_summary[$specific_aspect][$c0] = $aspect_array;
//save title phrased like "Sun Conjunct Moon"
$aspects_summary[$specific_aspect][$c0]['aspect_title'] = $aspect_planets;
}
}
/*echo "
aspects_summary
";
print_r($aspects_summary);
echo "
";
*/
$aspects_summary_positive_html = NULL;
$aspects_positive_numbers = 0;
$aspects_summary_negative_html = NULL;
$aspects_positive_numbers = 0;
foreach($aspects_summary as $aspect => $num_array){
foreach($num_array as $num => $aspect_array){
$p1 = $aspect_array['planet1'];
$p2 = $aspect_array['planet2'];
$a = $aspect_array['aspect'];
$power = round($aspect_array['power'],0);
if($power>0){
if($num==0){
//add header for aspect
$aspects_summary_positive_html.="
$a";
}
$aspects_summary_positive_html.="$p1 $p2 ($power)
";
$aspects_positive_numbers += $power;
}
else{
if($num==0){
//add header for aspect
$aspects_summary_negative_html.="
$a";
}
$aspects_summary_negative_html.="$p1 $p2 ($power)
";
$aspects_negative_numbers += $power;
}
//Each Individual Aspect...
/*echo "
";
print_r($aspect_array);
echo "
";*/
}
}
$pos = $aspects_positive_numbers;
$neg = $aspects_negative_numbers;
$ratio = round($pos/($neg*-1),2);
$aspects_summary_positive_html = "Positives: $pos
".$aspects_summary_positive_html;
$aspects_summary_negative_html = "Challenges: $neg
".$aspects_summary_negative_html;
$total = $pos + $neg;
$html = "
$aspects_summary_positive_html$aspects_summary_negative_htmlRatio: $ratioTotal: $total ";
return $html;
}
function make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2){
error_reporting(1);
//echo "
owner_of_these_planets1
"; print_r($owner_array_by_planet1);echo "
";
//echo "
owner_of_these_planets2
"; print_r($owner_array_by_planet2);echo "
"; die();
//echo "
"; print_r($array_of_special_aspects);echo "
";
//echo "
saved_aspects
";print_r($saved_aspects);echo "
";die();
//foreach($array_of_special_aspects as $some){ echo "
"; print_r($some); echo "
";die(); }
$genders = $gender.$gender2;
$blurb['intro'] = "
Saved Aspect Boxes (gender: $gender | genders: $genders) - $special_aspect_section";
foreach($saved_aspects as $ordered_by_planet => $planets_aspect_array){
foreach ($planets_aspect_array as $aspect_title => $aspect_array){
$p1 = $aspect_array['planet1'];
$p2 = $aspect_array['planet2'];
$a = $aspect_array['aspect'];
$orb_slash_meaningful = $aspect_array['orb']."/".$aspect_array['meaningful_orb'];
if(!isset($aspect_array['special_aspect_power'])) $power = $aspect_array['power'];
else $power = $aspect_array['special_aspect_power'];
//echo "
aspect_array
"; print_r($aspect_array); echo "
"; die();
if($aspect_array['bidirectional']!="normal") $directions = "Bidirectional";
else $directions = NULL; //Normal or Both_retrograde or Bidirectional
$p3 = "$p1-$a-$p2";
//echo "[$p1] [$aspect_title] [$p1]";die(); //[Sun] [Sun Quincunx Venus] [Sun]
$owner1 = $aspect_array[$p1];
$owner2 = $aspect_array[$p2];
//if owner is not there, don't show them on the line
$owner_str = " - $p1($owner1) - $p2($owner2) - ";
if($owner1==NULL) $owner_str=NULL;
//extra things to check for, that are needed for certain aspects
$p4 = $p3."|gender:$gender"; //gender specific aspects
$p5 = $p3."|directions:$directions"; //Bidirectional specific quincunx aspects
$p6 = $p3."|genders:$genders"; //gender specific aspects
//echo $p3."
";
foreach($array_of_special_aspects[$special_aspect_section] as $category_name => $planets_dashes_array){
//echo $category_name."
";
foreach($planets_dashes_array as $n => $pl_dash_pl){
//echo $pl_dash_pl."
";
if($p3 == $pl_dash_pl || $p4 == $pl_dash_pl || $p5 == $pl_dash_pl || $p6 == $pl_dash_pl){
if(stristr($category_name, '(Luck)') == TRUE) $group="Luck";
if(stristr($category_name, '(Love)') == TRUE) $group="Love";
if(stristr($category_name, '(Sex)') == TRUE) $group="Sex";
if(stristr($category_name, '(Drama)') == TRUE) $group="Drama";
$blurb[$group][$p3][$category_name] = " (power:
$power) ($orb_slash_meaningful)".$owner_str;
//echo "$ blurb[$ group][$ p3][$ category_name]".$blurb[$group][$p3][$category_name]."
";die();
//if($name1==NULL){ echo "
aspect_array
"; print_r($aspect_array);echo "
"; echo "
blurb
"; print_r($blurb);echo "
"; die(); }
}
}
}
//$blurb.= "$p1 $a $p2 - $special
";
}
}
return $blurb;
}
function aspect_box_groups_html($aspect_boxes){
//----------------------------------------------
//make a bigger foreach, and re-write to save all to new html_array, under 1st's grouping
//seperate divs per group, width 250,
between entries, wordy part on left, powers on right
foreach($aspect_boxes as $group => $title_array){
foreach($title_array as $aspect_planets_title => $result_str_or_array){
//first line of the stuff, gender, name
if(!is_array($result_str_or_array)){
//$boxes .= $result_str_or_array."
";
}
else{ //planet aspect stuff
foreach($result_str_or_array as $magic_aspect_title => $result){
//set category first off
if(!isset($boxes[$group])) $boxes[$group] = "
$group";
//save the title and info and power
$boxes[$group] .= "
$magic_aspect_title
$result ($aspect_planets_title)
";
//show rest of aspects
}
//$boxes .= "
";
}
}
}
//echo "
boxes:
";print_r($boxes);echo "
";
/*
$final_html = "
Highlight Reel (of Your Aspects)
";
$final_html .= "
";
foreach($boxes as $a_box) $final_html .= "$a_box
";
$final_html .= "";
return $final_html;
*/
}
error_reporting(1);
function friend_or_romantic_buttons($gender1,$gender2){
$id=$_GET['id'];
$person2=$_GET['person2'];
$report = $_GET['report'];
$section = $_GET['section'];
if(isset($_GET['mode'])){
$mode = $_GET['mode'];
//if they make a change, remember it, save to person/friend/person2.txt (for the friend) so it will keep them that way
//check if it's different from the currently saved friend's mode
//if pref in friends/id/friend's text file-set mode
//if absent, obviously that's different
//write it in
}
else{
//it wasn't in GET, so choose it
//if pref in friends/id/friend's text file-set mode
//get it
//else-add in check on both genders
$g = get_2_genders($id,$person2);
$gender1 = $g['gender1'];
$gender2 = $g['gender2'];
if($gender1==$gender2) $mode="friends";
else $mode='romantic'; //default is romantic 4 diff sex
//echo "mode: $mode ... gender1: $gender1 - gender2: $gender2
";
}
$link="cosmic_compatibility_info.php?id=$id&person2=$person2&report=$report§ion=$section";
if($mode=='romantic'){
$mode1="
Possibly Romantic";
$mode2 = "
Just Friends";
}
else{
$mode1 = "
Just Friends";
$mode2="
Possibly Romantic";
}
$div = "
Change View: $mode1 or $mode2
";
return $div;
}
//-----------------------------------------------------------------
//-----------------------------------------------------------------
//pass genders to 'make_special_aspect_boxes'
if(isset($_GET['id']) && isset($_GET['person2'])){
$g = get_2_genders($_GET['id'],$_GET['person2']);
$gender1 = $g['gender1'];
$gender2 = $g['gender2'];
}
else {
$gender1 = $gender;
$gender2 = NULL;
}
if($_GET['report']=='The-Initial-Compatibility'){
$special_aspect_section='synastry';
# YOU
$data1 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id][$key1]);
$degrees_full1 = $data1['degrees_full'];
$directions1 = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
#echo "
data1:
"; print_r($data1); echo "
--
";
# THEM
$data2 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id][$key2]);
$degrees_full2 = $data2['degrees_full'];
$directions2 = $data2['directions'];
$owner_array_by_planet2 = $data2['owner_of_these_planets'];
#echo "
data2:
"; print_r($data2); echo "
--
";
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
# SYNASTRY
# YOU & THEM
$saved_aspects = build_saved_aspects_array_synastry($aspects_organized,$planets_organized,$degrees_full1,$directions1,$degrees_full2,$directions2,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender1);
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'synastry');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
//echo "
"; print_r($saved_aspects);echo "
";
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
}
if($_GET['report']=='The-Potiential-Relationship'){
//echo "$gender,$gender2";die();
# SELF
$special_aspect_section='self';
#echo "
composite - potiential: $ _SESSION[$ joint_id]['composite']
";print_r($_SESSION[$joint_id]['composite']);echo "
--
"; die();
# YOU/THEM - MIDPOINTS (composite)
$data1 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id]['composite']);
//if(isset($_GET['show_something'])){ echo "
composite - potiential: data1
";print_r($data1);echo "
--
"; die();}
echo "
composite - potiential: data1
";print_r($data1);echo "
--
"; die();
$degrees_full = $data1['degrees_full'];
$directions = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
foreach($owner_array_by_planet1 as $key => $value) $owner_array_by_planet1[$key]="Composite";
//echo "
owner_array_by_planet1:
";print_r($owner_array_by_planet1);echo "
--
"; die();
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array($aspects_organized,$planets_organized,$degrees_full,$directions,$array_of_special_aspects,$special_aspect_section,$gender,$owner_array_by_planet1,$owner_array_by_planet1,$gender,$gender2);
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
//if(isset($_GET['show_something'])){ echo "
composite - potiential: saved_aspects (".count($saved_aspects).")
";print_r($saved_aspects);echo "
--
"; die();}
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'composite');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//if(isset($_GET['show_something'])){ echo "
composite - potiential: aspect_boxes
";print_r($aspect_boxes);echo "
--
"; die();}
//echo "
aspect_boxes
";print_r($aspect_boxes);echo "
";die();
//echo $birthchart_summary_table."
"; //made in session_start
$forecast_str_specific_id_for_this_composite_in_session = "$joint_id-----composite";
$forecast_date = (int)date('m')."/".(int)date('d')."/".date('Y');
}
if($_GET['report']=='How-The-Relationship-Affects-You'){
# HOW the midpoints - the potiential composite - to You
# COMPOSITE (MIDPOINTS)
# SELF
# joint_id - composite1 - YOU
# COMPOSITE (MIDPOINTS)
$special_aspect_section='self';
$data4 = $_SESSION[$joint_id]['composite1'];
$summary_table_composite = $_SESSION[$joint_id]['summary_table_composite1'];
$data_1 = make_full_degrees_and_directions_arrays($data4);
//echo "
data_1
"; print_r($data_1); echo "
"; die();
# YOU
$degrees_full = $data_1['degrees_full'];
$directions = $data_1['directions'];
$owner_array_by_planet1 = $data_1['owner_of_these_planets'];
foreach($owner_array_by_planet1 as $key => $value) $owner_array_by_planet1[$key]="Composite";
//echo "
owner_array_by_planet1:
";print_r($owner_array_by_planet1);echo "
--
"; die();
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array($aspects_organized,$planets_organized,$degrees_full,$directions,$array_of_special_aspects,$special_aspect_section,$gender,$owner_array_by_planet1,$owner_array_by_planet1,$gender,$gender2);
//echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; die();
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'composite');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo "
aspect_boxes
";print_r($aspect_boxes);echo "
";die();
//echo $birthchart_summary_table."
"; //made in session_start
$forecast_str_specific_id_for_this_composite_in_session = "$joint_id-----composite1";
$forecast_date = (int)date('m')."/".(int)date('d')."/".date('Y');
}
if($_GET['report']=='How-The-Relationship-Affects-Them'){
# HOW the midpoints - the potiential composite - to Them
# SELF
$special_aspect_section='self';
# joint_id - composite2 - THEM
# COMPOSITE (MIDPOINTS)
$data5 = $_SESSION[$joint_id]['composite2'];
$summary_table_composite = $_SESSION[$joint_id]['summary_table_composite2'];
$data1 = make_full_degrees_and_directions_arrays($data5);
$degrees_full = $data1['degrees_full'];
$directions = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
foreach($owner_array_by_planet1 as $key => $value) $owner_array_by_planet1[$key]="Composite";
//echo "
owner_array_by_planet1:
";print_r($owner_array_by_planet1);echo "
--
"; die();
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
# NOT SYNASTRY - SELF
$saved_aspects = build_saved_aspects_array($aspects_organized,$planets_organized,$degrees_full,$directions,$array_of_special_aspects,$special_aspect_section,$gender,$owner_array_by_planet1,$owner_array_by_planet1,$gender,$gender2);
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'composite');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
$forecast_str_specific_id_for_this_composite_in_session = "$joint_id-----composite2";
$forecast_date = (int)date('m')."/".(int)date('d')."/".date('Y');
}
if($_GET['report']=='How-You-Feel-About-It'){
$special_aspect_section='synastry';
# YOU - joint_id - key1
$data1 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id][$key1]);
$degrees_full1 = $data1['degrees_full'];
$directions1 = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
foreach($owner_array_by_planet1 as $key => $value) $owner_array_by_planet1[$key]="You";
//echo "
owner_array_by_planet1:
";print_r($owner_array_by_planet1);echo "
--
"; die();
//Change the Composite Name to Composite, so I can see it in the aspects results, for a certain planet
$tmp_name = $data3['name'];
$data3['name']="Composite";
# IT - joint_id - composite
# MIDPOINTS FOR BOTH - COMPOSITE / POTIENTIAL RELATIONSHIP
# THE POTIENTIAL - COMPOSITE
$data2 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id]['composite']);
$degrees_full2 = $data2['degrees_full'];
$directions2 = $data2['directions'];
$owner_array_by_planet2 = $data2['owner_of_these_planets'];
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
# SYNASTRY
$saved_aspects = build_saved_aspects_array_synastry($aspects_organized,$planets_organized,$degrees_full1,$directions1,$degrees_full2,$directions2,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender);
//echo "
composite - potiential: saved_aspects (".count($saved_aspects).")
";print_r($saved_aspects);echo "
--
"; die();
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'synastry');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
$data3['name']=$tmp_name;
}
if($_GET['report']=='How-They-Feel-About-It'){
$special_aspect_section='synastry';
//Change the Composite Name to Composite, so I can see it in the aspects results, for a certain planet
$tmp_name = $data3['name'];
$data3['name']="Composite";
# THEM - joint_id - key2
$data1 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id][$key2]);
$degrees_full1 = $data1['degrees_full'];
$directions1 = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
# IT - joint_id - composite
# MIDPOINTS FOR BOTH - COMPOSITE / POTIENTIAL RELATIONSHIP
# THE POTIENTIAL - COMPOSITE
$data2 = make_full_degrees_and_directions_arrays($_SESSION[$joint_id]['composite']);
$degrees_full2 = $data2['degrees_full'];
$directions2 = $data2['directions'];
$owner_array_by_planet2 = $data2['owner_of_these_planets'];
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
# SYNASTRY
$saved_aspects = build_saved_aspects_array_synastry($aspects_organized,$planets_organized,$degrees_full1,$directions1,$degrees_full2,$directions2,$owner_array_by_planet1,$owner_array_by_planet2,$array_of_special_aspects,$special_aspect_section,$gender);
/*echo "
saved_aspects
"; print_r($saved_aspects); echo "
"; */
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'synastry');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
$data3['name']=$tmp_name;
}
//report=Your-Cosmic-Rating
if($_GET['report']=='Specifically-You' || $_GET['report']=='Your-Cosmic-Rating'){
$special_aspect_section='self';
$data1 = make_full_degrees_and_directions_arrays($data);
#
#echo "
data1
";print_r($data1);echo "
";
#die();
$degrees_full = $data1['degrees_full'];
$directions = $data1['directions'];
$owner_array_by_planet1 = $data1['owner_of_these_planets'];
echo "
data1: planets:
"; print_r($data1); echo "
--
";
/*echo "
degrees_full
"; print_r($degrees_full); echo "
--
";
echo "
directions:
";print_r($directions);echo "
--
"; */
$saved_aspects = build_saved_aspects_array($aspects_organized,$planets_organized,$degrees_full,$directions,$array_of_special_aspects,$special_aspect_section,$gender,$owner_array_by_planet1,$owner_array_by_planet1,$gender,$gender2);
//echo "
saved_aspects
"; print_r($saved_aspects); echo "
";
$aspects_summary_html = build_header_summary_html_of_aspects_with_ratio_and_total($saved_aspects);
/* echo "
aspects_summary
"; print_r($aspects_summary_html); echo "
";*/
$aspects_list_html = html_listing_of_aspects_with_interpretations($saved_aspects,'self');
//looks like we can also use ASPECTS to compare the 12 signs, not only using just the degrees.
//CONTRAST: Aries/Leo signs (Trine) ... Aries 29/Leo 1 (Square)
//different, and it may prove USEFUL? maybe...
$aspect_boxes = make_special_aspect_boxes($saved_aspects,$array_of_special_aspects,$special_aspect_section,$gender,$gender2);
//echo $birthchart_summary_table."
"; //made in session_start
}
//$aspect_boxes['Sex'][Sun-Trine-Juno][desc][power orb - pl1(owner1) - pl2(owner2)]
//
function magic_boxes($aspects){
$lines = NULL;
/*echo "
aspects -
";
print_r($aspects);
echo "
";*/
foreach($aspects as $aspect_name_w_planets => $titlearray){
/*echo "
aspects -
";
print_r($aspects);
echo "
";*/
//titlearray is Drama, Sex, Love, or Luck
//aspect_name_w_planets is Venus-Opposed-Chiron
$a3 = explode("-",$aspect_name_w_planets);
$aspect_name = $a3[1];
//aspect_name is just the aspect name
foreach($titlearray as $description=>$power_orb_owner){
//description is Reluctance to Commit (Uranus-Chiron) (Drama)
//power_orb_owner is (power: 314) (0.06/3) - Uranus(Miriam) - Chiron(Michael)
$p4 = explode(" - ",$power_orb_owner);
$pl1ex = explode("(",$p4[1]);
$planet1 = $pl1ex[0];
$name1 = str_replace(")","",$pl1ex[1]);
$pl2ex = explode("(",$p4[2]);
$planet2 = $pl2ex[0];
$name2 = str_replace(")","",$pl2ex[1]);
$power_orb = explode(") (",$p4[0]);
$power = strip_tags(str_replace(" ","",str_replace("(power: ","",$power_orb[0])));
//$orb_slash_maxorb = str_replace(")","",$power_orb[1]);
//store array with [0]...[1]... $name1,$planet1,$aspect_name,$name2,$planet2,$description,$power
if(!isset($x)) $x=0;
if(!isset($power_total)) $power_total=0;
$magic[$x] = array('name1'=>$name1,'planet1'=>$planet1,'aspect_name'=>$aspect_name,'name2'=>$name2,'planet2'=>$planet2,'description'=>$description,'power'=>$power);
//----------------------------------------------------------------
//Names and Planets are not showing up
/*if($name1==NULL){
echo "
$ magic[$ x] -
";
print_r($magic[$x]);
echo "
";die();
}*/
//----------------------------------------------------------------
//echo "DRAMA: ($x) $name1's $planet1 $aspect_name $name2's $planet2 - MEANS: $description - POWER: $power
";
//$lines .= "($name1)$planet1 $aspect_name ($name2)$planet2 - $description - $power
";
if($power<0) $power = $power*-1;
$aspect_title = "$planet1-$aspect_name-$planet2";
if(!isset($already_saved_once[$aspect_title])){
$already_saved_once[$aspect_title]=$aspect_title;
$lines[$aspect_title] = "
$aspect_title
$power
* $description - $planet1 ($name1) - $planet2 ($name2)
";
$power_total += $power;
}
else{
//add this description onto the end of prev one
$div_descr_ending = "
//remove ending, add div 4 next description ... then add ending back
$lines[$aspect_title] = str_replace($div_descr_ending,"",$lines[$aspect_title])."
if($_GET['report']=='Specifically-You' || $_GET['report']=='The-Potiential-Relationship' || $_GET['report']=='Your-Cosmic-Rating'){
elseif($_GET['report']=='How-The-Relationship-Affects-You' || $_GET['report']=='How-The-Relationship-Affects-Them'){
/*if($_GET['report']=='Specifically-You' || $_GET['report']=='The-Potiential-Relationship' || $_GET['report']=='Your-Cosmic-Rating' || $_GET['report']=='How-The-Relationship-Affects-You' || $_GET['report']=='How-The-Relationship-Affects-Them'){