mirror of https://github.com/aredn/aredn.git
Fix missing location
This commit is contained in:
parent
488247753c
commit
54589ff775
|
@ -40,6 +40,7 @@ $debug = 0;
|
||||||
|
|
||||||
BEGIN {push @INC, '/www/cgi-bin'};
|
BEGIN {push @INC, '/www/cgi-bin'};
|
||||||
use perlfunc;
|
use perlfunc;
|
||||||
|
use ucifunc;
|
||||||
|
|
||||||
%rateL = (
|
%rateL = (
|
||||||
'1.0M' => '1', # CCP LP
|
'1.0M' => '1', # CCP LP
|
||||||
|
@ -123,11 +124,11 @@ system "touch /tmp/web/automesh" if $parms{auto};
|
||||||
system "rm -f /tmp/web/automesh" if $parms{stop};
|
system "rm -f /tmp/web/automesh" if $parms{stop};
|
||||||
|
|
||||||
#get location info if available
|
#get location info if available
|
||||||
open my $rcgood, '<', '/etc/latlon';
|
$lat=&uci_get_indexed_option("aredn","location",0,"lat");
|
||||||
if ($rcgood)
|
$lon=&uci_get_indexed_option("aredn","location",0,"lon");
|
||||||
|
if($lat ne "" and $lon ne "")
|
||||||
{
|
{
|
||||||
$lat_lon = "<center><strong>Location: </strong> " . <$rcgood> . <$rcgood> . "</center>";
|
$lat_lon = "<center><strong>Location: </strong> $lat $lon</center>";
|
||||||
close $rcgood;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue