]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove outdated last_update script
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 9 Mar 2019 20:41:46 +0000 (21:41 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 9 Mar 2019 20:43:53 +0000 (21:43 +0100)
No longer used by server monitoring.

CMakeLists.txt
website/last_update.php [deleted file]

index 8f9de5ec711b1a0c2d5cbf1058858d49415e9801..b02201fa46940805faabd5e749cd365c6c9e724e 100644 (file)
@@ -109,7 +109,6 @@ set(WEBSITEFILES
     509.html
     crossdomain.xml
     favicon.ico
-    last_update.php
     nominatim.xml
     robots.txt
     taginfo.json
diff --git a/website/last_update.php b/website/last_update.php
deleted file mode 100644 (file)
index a843586..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-       @define('CONST_ConnectionBucket_PageType', 'Status');
-
-       require_once(dirname(dirname(__FILE__)).'/lib/init-website.php');
-
-       function statusError($sMsg)
-       {
-               header("HTTP/1.0 500 Internal Server Error");
-               echo "ERROR: ".$sMsg;
-               exit;
-       }
-
-       $oDB =& DB::connect(CONST_Database_DSN, false);
-       if (!$oDB || PEAR::isError($oDB))
-       {
-               statusError("No database");
-       }
-
-       $sLastUpdate = $oDB->getOne("select * from import_status");
-       if (PEAR::isError($sLastUpdate))
-       {
-               statusError("Update status unknown.");
-       }
-       echo $sLastUpdate;
-       exit;
-