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