forked from freifunk-franken/VPNkeyXchange
check if lat/long is a number
Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
3e1ef546a9
commit
dc04d0609c
|
@ -1,6 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
$lat = $_GET['lat'];
|
$lat = $_GET['lat'];
|
||||||
$lo = $_GET['long'];
|
$lo = $_GET['long'];
|
||||||
|
|
||||||
|
if ((!is_numeric($lat)) || (!is_numeric($lo))) {exit("lat/long not numeric!");};
|
||||||
|
|
||||||
$hoodfile = shell_exec("./get_hood.sh $lat $lo");
|
$hoodfile = shell_exec("./get_hood.sh $lat $lo");
|
||||||
|
|
||||||
echo $hoodfile;
|
echo $hoodfile;
|
||||||
|
|
Loading…
Reference in New Issue