2 @define('CONST_ConnectionBucket_PageType', 'Status');
4 require_once(dirname(dirname(__FILE__)).'/settings/settings.php');
5 require_once(CONST_BasePath.'/lib/init-website.php');
7 function statusError($sMsg)
9 header("HTTP/1.0 500 Internal Server Error");
14 $oDB =& DB::connect(CONST_Database_DSN, false);
15 if (!$oDB || PEAR::isError($oDB))
17 statusError("No database");
20 $sStandardWord = $oDB->getOne("select make_standard_name('a')");
21 if (PEAR::isError($sStandardWord))
23 statusError("Module failed");
25 if ($sStandardWord != 'a')
27 statusError("Module call failed");
30 $iWordID = $oDB->getOne("select word_id,word_token, word, class, type, country_code, operator, search_name_count from word where word_token in (' a')");
31 if (PEAR::isError($iWordID))
33 statusError("Query failed");
37 statusError("No value");