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';
 
  12 $sSQL = 'select placex.place_id, country_code,';
 
  13 $sSQL .= " name->'name' as name, i.* from placex, import_polygon_delete i";
 
  14 $sSQL .= ' where placex.osm_id = i.osm_id and placex.osm_type = i.osm_type';
 
  15 $sSQL .= ' and placex.class = i.class and placex.type = i.type';
 
  16 $aPolygons = chksql($oDB->getAll($sSQL), 'Could not get list of deleted OSM elements.');
 
  27     <meta charset="utf-8"/>
 
  28     <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
 
  30     <title>Nominatim Deleted Data</title>
 
  32     <meta name="description" content="List of OSM data that has been deleted" lang="en-US" />
 
  37 <style type="text/css">
 
  43     border-collapse: collapse;
 
  44     background-color: white;
 
  52     border-left-color: #ddd;
 
  53     border-right-color: #ddd;
 
  54     background-color: #eee;
 
  55     -moz-border-radius: 0px 0px 0px 0px;
 
  62     border-left-color: #ddd;
 
  63     border-right-color: #ddd;
 
  64     background-color: white;
 
  65     -moz-border-radius: 0px 0px 0px 0px;
 
  69 <p>Objects in this table have been deleted in OSM but are still in the Nominatim database.</p>
 
  74 if (!$aPolygons) exit;
 
  76 // var_dump($aPolygons[0]);
 
  77 foreach ($aPolygons[0] as $sCol => $sVal) {
 
  78     echo '<th>'.$sCol.'</th>';
 
  81 foreach ($aPolygons as $aRow) {
 
  83     foreach ($aRow as $sCol => $sVal) {
 
  86                 echo '<td>'.osmLink($aRow).'</td>';
 
  89                 echo '<td>'.detailsLink($aRow).'</td>';
 
  92                 echo '<td>'.($sVal?$sVal:' ').'</td>';