2         @define('CONST_ConnectionBucket_PageType', 'Status');
 
   4         require_once(dirname(dirname(__FILE__)).'/lib/init-website.php');
 
   6         function statusError($sMsg)
 
   8                 header("HTTP/1.0 500 Internal Server Error");
 
  13         $oDB =& DB::connect(CONST_Database_DSN, false);
 
  14         if (!$oDB || PEAR::isError($oDB))
 
  16                 statusError("No database");
 
  19         $sStandardWord = $oDB->getOne("select make_standard_name('a')");
 
  20         if (PEAR::isError($sStandardWord))
 
  22                 statusError("Module failed");
 
  24         if ($sStandardWord != 'a')
 
  26                 statusError("Module call failed");
 
  29         $iWordID = $oDB->getOne("select word_id,word_token, word, class, type, country_code, operator, search_name_count from word where word_token in (' a')");
 
  30         if (PEAR::isError($iWordID))
 
  32                 statusError("Query failed");
 
  36                 statusError("No value");