From 0dd10c3fff9896ca23b884a7ec7a97002065d083 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Mon, 17 Dec 2012 00:24:58 +0000 Subject: [PATCH] Change access control to implement more of CORS. Change so OPTIONS requests don't do an actual search/reverse request --- lib/init-website.php | 8 ++++++++ lib/template/address-xml.php | 7 +++---- lib/template/search-json.php | 2 ++ lib/template/search-xml.php | 1 - osm2pgsql | 2 +- settings/settings.php | 1 + website/reverse.php | 3 ++- 7 files changed, 17 insertions(+), 7 deletions(-) diff --git a/lib/init-website.php b/lib/init-website.php index 8603e309..94dba6f4 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -1,6 +1,14 @@ ".htmlspecialchars($aPlace['langaddress']).""; - if ($bShowAddressDetails) { + if ($bShowAddressDetails) { echo ""; foreach($aAddress as $sKey => $sValue) { @@ -39,7 +38,7 @@ echo ""; } echo ""; - } + } } - + echo ""; diff --git a/lib/template/search-json.php b/lib/template/search-json.php index 45272d35..4b3b279d 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -1,4 +1,6 @@ $aPointDetails) { diff --git a/lib/template/search-xml.php b/lib/template/search-xml.php index fa6b14a3..aa029d2b 100644 --- a/lib/template/search-xml.php +++ b/lib/template/search-xml.php @@ -1,6 +1,5 @@ getRow($sSQL); +//var_dump($sSQL, $aPlace); exit; if ($bShowAddressDetails) {