keyex #1

Open
rohammer wants to merge 5 commits from rohammer/VPNkeyXchange-vxlan-test:keyex into master
1 changed files with 19 additions and 0 deletions
Showing only changes of commit c3100899bf - Show all commits

19
index.php Normal file
View File

@ -0,0 +1,19 @@
<?php
$lat = $_GET['lat'] ?? null;
$lo = $_GET['long'] ?? null;
$hoodid = $_GET['hoodid'] ?? null;
if (empty($hoodid)) {
if (preg_match("/^[0-9.]*$/", $lat) and preg_match("/^[0-9.]*$/", $lo)) {
$hoodfile = shell_exec("./get_hood.sh $lat $lo");
}
else {
echo "coordinates not numeric! ";
}
}
else {
if ((!is_numeric($hoodid))) {exit("hoodid not numeric!");};
$hoodfile = shell_exec("./get_hoodid.sh $hoodid");
}
echo $hoodfile;
?>