@define('CONST_ConnectionBucket_Cost_Reverse', 1);
@define('CONST_ConnectionBucket_Cost_Search', 2);
@define('CONST_ConnectionBucket_Cost_Details', 3);
+ @define('CONST_ConnectionBucket_Cost_Status', 1);
// Override this function to add an adjustment factor to the cost
// based on server load. e.g. getBlockingProcesses
@symlink(CONST_BasePath.'/website/search.php', $sTargetDir.'/index.php');
@symlink(CONST_BasePath.'/website/deletable.php', $sTargetDir.'/deletable.php');
@symlink(CONST_BasePath.'/website/polygons.php', $sTargetDir.'/polygons.php');
+ @symlink(CONST_BasePath.'/website/status.php', $sTargetDir.'/status.php');
@symlink(CONST_BasePath.'/website/images', $sTargetDir.'/images');
@symlink(CONST_BasePath.'/website/js', $sTargetDir.'/js');
@symlink(CONST_BasePath.'/website/css', $sTargetDir.'/css');
--- /dev/null
+<?php
+ @define('CONST_ConnectionBucket_PageType', 'Status');
+
+ require_once(dirname(dirname(__FILE__)).'/lib/init-website.php');
+
+ $oDB =& getDB();
+ if (!$oDB || PEAR::isError($oDB))
+ {
+ echo "ERROR: No database";
+ exit;
+ }
+
+ $iWordID = $oDB->getOne("select word_id,word_token, word, class, type, location, country_code, operator, search_name_count from word where word_token in (' a')");
+ if (PEAR::isError($iWordID))
+ {
+ echo "ERROR: Query failed";
+ exit;
+ }
+ if (!$iWordID)
+ {
+ echo "ERROR: No value";
+ exit;
+ }
+ echo "OK";
+ exit;
+