Permalink
Browse files

Merge pull request #62 from jammin84/patch-4

Update geoimage.php
  • Loading branch information...
ysamouhos committed Dec 7, 2014
2 parents 5384fc6 + 1b6818e commit f6222cb87d2b9e37bbeda0076ffb11fe241221c6
Showing with 4 additions and 4 deletions.
  1. +4 −4 globals/classes/geoimage.php
@@ -111,9 +111,9 @@ function plotlink($width, $height, $point_a, $point_b, $antenna_a=0, $antenna_b=
imagelinethick($image, $left_pad + 0, $ant_a, $left_pad + $width - 1, $ant_b, $color_link, 1);
//FRESNEL ZONE
$freq = 0;
if (isset($_GET['frequency']))
$freq = intval($_GET['frequency']);
$freq = (isset($_GET['frequency']) && $_GET['frequency'] > 0?intval($_GET['frequency'])
:(isset($point_a->freq) && $point_a->freq > 0?intval($point_a->freq)
:2450));
if ($freq <= 0) $freq = 2450;
$ant_a_r = round($ant_a);
$ant_b_r = round($ant_b);
@@ -182,4 +182,4 @@ function imagelinethick($image, $x1, $y1, $x2, $y2, $color, $thick = 1)
return imagepolygon($image, $points, 4, $color);
}
?>
?>

0 comments on commit f6222cb

Please sign in to comment.