"97.5") { $cbitxt = "EXTREME"; $cbiimg= "fdl_extreme.gif"; } elseif ($cbi >="90") { $cbitxt = "VERY HIGH"; $cbiimg= "fdl_vhigh.gif"; } elseif ($cbi >= "75") { $cbitxt = "HIGH"; $cbiimg= "fdl_high.gif"; } elseif ($cbi >= "50") { $cbitxt = "MODERATE"; $cbiimg= "fdl_moderate.gif"; } else if ($cbi < "50") { $cbitxt="LOW"; $cbiimg= "fdl_low.gif"; } $img = imagecreatefromgif($cbiimg); // additions by Saratoga-Weather.org $degree_units = (($uom == 'E')?'°F':'°C'); $color_red = imagecolorallocate($img,255,0,0); // RED $color_green = imagecolorallocate($img,0,128,0); // GREEN // If Celsius units desired, use // $ntemp = round($cTemp,1); $ntemp = (($uom == 'E')?round($ftemp,1):round($cTemp,1)); $nrh = round($rh,0); $ncbi = round($cbi,0); imagestring($img, 2, 90, 116, "$ntemp$degree_units", $color_green); imagestring($img, 2, 130, 116, "$nrh%", $color_green); imagestring($img, 2, 98, 127, "CBI: $ncbi", $color_red); // --------------------------------- header("Content-type: image/gif"); imagegif($img,NULL); imagedestroy($img); ?>