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)) {
16 statusError("No database");
19 $sStandardWord = $oDB->getOne("select make_standard_name('a')");
20 if (PEAR::isError($sStandardWord)) {
21 statusError("Module failed");
23 if ($sStandardWord != 'a') {
24 statusError("Module call failed");
27 $iWordID = $oDB->getOne("select word_id,word_token, word, class, type, country_code, operator, search_name_count from word where word_token in (' a')");
28 if (PEAR::isError($iWordID)) {
29 statusError("Query failed");
32 statusError("No value");