]> git.openstreetmap.org Git - nominatim.git/blob - website/status.php
disable aux tables
[nominatim.git] / website / status.php
1 <?php
2         @define('CONST_ConnectionBucket_PageType', 'Status');
3
4         require_once(dirname(dirname(__FILE__)).'/lib/init-website.php');
5
6         $oDB =& getDB();
7         if (!$oDB || PEAR::isError($oDB))
8         {
9                 echo "ERROR: No database";
10                 exit;
11         }
12
13         $iWordID = $oDB->getOne("select word_id,word_token, word, class, type, country_code, operator, search_name_count from word where word_token in (' a')");
14         if (PEAR::isError($iWordID))
15         {
16                 echo "ERROR: Query failed";
17                 exit;
18         }
19         if (!$iWordID)
20         {
21                 echo "ERROR: No value";
22                 exit;
23         }
24         echo "OK";
25         exit;
26