X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/890d415e1ffd997d11ed35dee04cb01b94ca133f..3c7519444867cd9c6b3003c4c88729df21b8c265:/website/deletable.php diff --git a/website/deletable.php b/website/deletable.php index ac4294ba..81fb4f99 100644 --- a/website/deletable.php +++ b/website/deletable.php @@ -1,13 +1,15 @@ getSet('format', array('json'), 'json'); +set_exception_handler_by_format($sOutputFormat); -$oDB = new Nominatim\DB(); +$oDB = new Nominatim\DB(CONST_Database_DSN); $oDB->connect(); $sSQL = 'select placex.place_id, country_code,'; @@ -21,86 +23,6 @@ if (CONST_Debug) { exit; } -?> - - - - - - - Nominatim Deleted Data - - - - - - - - -

Objects in this table have been deleted in OSM but are still in the Nominatim database.

- - -'; -// var_dump($aPolygons[0]); -foreach ($aPolygons[0] as $sCol => $sVal) { - echo ''; +if ($sOutputFormat == 'json') { + javascript_renderData($aPolygons); } -echo ''; -foreach ($aPolygons as $aRow) { - echo ''; - foreach ($aRow as $sCol => $sVal) { - switch ($sCol) { - case 'osm_id': - echo ''; - break; - case 'place_id': - echo ''; - break; - default: - echo ''; - break; - } - } - echo ''; -} - -?> -
'.$sCol.'
'.osmLink($aRow).''.detailsLink($aRow).''.($sVal?$sVal:' ').'
- - - - -