3 require_once(dirname(dirname(__FILE__)).'/settings/settings.php');
 
   4 require_once(CONST_BasePath.'/lib/init-website.php');
 
   5 require_once(CONST_BasePath.'/lib/log.php');
 
   6 require_once(CONST_BasePath.'/lib/output.php');
 
   7 ini_set('memory_limit', '200M');
 
   9 $sOutputFormat = 'html';
 
  13 $sSQL = "select placex.place_id, calculated_country_code as country_code, name->'name' as name, i.* from placex, import_polygon_delete i where placex.osm_id = i.osm_id and placex.osm_type = i.osm_type and placex.class = i.class and placex.type = i.type";
 
  14 $aPolygons = chksql($oDB->getAll($sSQL), "Could not get list of deleted OSM elements.");
 
  25     <meta charset="utf-8"/>
 
  26     <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
 
  28     <title>Nominatim Deleted Data</title>
 
  30     <meta name="description" content="List of OSM data that has been deleted" lang="en-US" />
 
  35 <style type="text/css">
 
  41     border-collapse: collapse;
 
  42     background-color: white;
 
  50     border-left-color: #ddd;
 
  51     border-right-color: #ddd;
 
  52     background-color: #eee;
 
  53     -moz-border-radius: 0px 0px 0px 0px;
 
  60     border-left-color: #ddd;
 
  61     border-right-color: #ddd;
 
  62     background-color: white;
 
  63     -moz-border-radius: 0px 0px 0px 0px;
 
  67 <p>Objects in this table have been deleted in OSM but are still in the Nominatim database.</p>
 
  72 if (!$aPolygons) exit;
 
  74 // var_dump($aPolygons[0]);
 
  75 foreach ($aPolygons[0] as $sCol => $sVal) {
 
  76     echo "<th>".$sCol."</th>";
 
  79 foreach ($aPolygons as $aRow) {
 
  81     foreach ($aRow as $sCol => $sVal) {
 
  84                 echo '<td>'.osmLink($aRow).'</td>';
 
  87                 echo '<td>'.detailsLink($aRow).'</td>';
 
  90                 echo "<td>".($sVal?$sVal:' ')."</td>";