3 require_once(CONST_BasePath.'/lib/init-website.php');
 
   4 require_once(CONST_BasePath.'/lib/log.php');
 
   5 require_once(CONST_BasePath.'/lib/output.php');
 
   6 ini_set('memory_limit', '200M');
 
   8 $sOutputFormat = 'html';
 
  10 $oDB = new Nominatim\DB();
 
  13 $sSQL = 'select placex.place_id, country_code,';
 
  14 $sSQL .= " name->'name' as name, i.* from placex, import_polygon_delete i";
 
  15 $sSQL .= ' where placex.osm_id = i.osm_id and placex.osm_type = i.osm_type';
 
  16 $sSQL .= ' and placex.class = i.class and placex.type = i.type';
 
  17 $aPolygons = $oDB->getAll($sSQL, null, 'Could not get list of deleted OSM elements.');
 
  28     <meta charset="utf-8"/>
 
  29     <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
 
  31     <title>Nominatim Deleted Data</title>
 
  33     <meta name="description" content="List of OSM data that has been deleted" lang="en-US" />
 
  38 <style type="text/css">
 
  44     border-collapse: collapse;
 
  45     background-color: white;
 
  53     border-left-color: #ddd;
 
  54     border-right-color: #ddd;
 
  55     background-color: #eee;
 
  56     -moz-border-radius: 0px 0px 0px 0px;
 
  63     border-left-color: #ddd;
 
  64     border-right-color: #ddd;
 
  65     background-color: white;
 
  66     -moz-border-radius: 0px 0px 0px 0px;
 
  70 <p>Objects in this table have been deleted in OSM but are still in the Nominatim database.</p>
 
  75 if (!$aPolygons) exit;
 
  77 // var_dump($aPolygons[0]);
 
  78 foreach ($aPolygons[0] as $sCol => $sVal) {
 
  79     echo '<th>'.$sCol.'</th>';
 
  82 foreach ($aPolygons as $aRow) {
 
  84     foreach ($aRow as $sCol => $sVal) {
 
  87                 echo '<td>'.osmLink($aRow).'</td>';
 
  90                 echo '<td>'.detailsLink($aRow).'</td>';
 
  93                 echo '<td>'.($sVal?$sVal:' ').'</td>';