<?php
//dotgo response engine
//for use with dotgo class ver 0.1 beta
error_reporting(0);
session_start();
include_once('dotgo.class.php');
$dotgo = new dotgo();
$dbConnected = $dotgo->dbConnect();
if( empty($dbConnected) ){
die('<message><content>There has been a connection error</content></message>');
}
$keyword = $dotgo->processData();
if( !empty($keyword) ){
echo $dotgo->showResponse($keyword);
}else{
echo $dotgo->defaultResponse;
}
exit;
?>
|