The major change was the complete replacement of the function getMoonInfo() and the rewrite of the code around the moon display in the table to use $mooninfo->xxx calls instead of invoking getMoonInfo() over and over again. <tr>
<td class="data2" style="text-align: center; font-size: 12px;">
<?php echo '<br/>';
$mooninfo = getMoonInfo();
if($DebugMode) { print "<!-- mooninfo \n".print_r($mooninfo,true)." -->\n";}
?>
<span class="ajax" id="ajaxmoonphase"><?php langtrans($mooninfo->phase); ?></span>
</td>
</tr>
<tr>
<td style="text-align: center;"><span id="ajaxmoonimg"><?php
echo '<img src="' . $imagesDir . 'moon/w/' . $moonHemisphere . '-moon' . str_pad($mooninfo->pic, 2, "0", STR_PAD_LEFT) . '.gif"
alt ="' . $mooninfo->phase . ', ' . $mooninfo->age . ' in cycle"
title="' . $mooninfo->phase . ', ' . $mooninfo->age . ' in cycle"
width="60" height="60" style="border: 0;" />'; ?></span>
</td>
</tr>
<tr>
<td class="data2" style="text-align: center; font-size: 12px;" >
<span class="ajax" id="ajaxmoonpct"><?php echo $mooninfo->ill . "%"; ?></span><br/>
<?php langtrans(' Illuminated'); ?>
</td>
</tr>
and the functions function getMoonAge() {
$mooninfo = getMoonInfo();
return $mooninfo->age;
}
function getMoonPic() {
$mooninfo = getMoonInfo();
return $mooninfo->pic;
}
function getMoonIll() {
$mooninfo = getMoonInfo();
return $mooninfo->ill;
}
function getMoonPhase() {
$mooninfo = getMoonInfo();
return $mooninfo->phase;
}
were no longer needed, so deleted from 6.95c dashboard.
The ajaxWDwx3.js just had the JavaScript version of the moon info routine updated.