// set up chdir(".."); require_once 'config.webapp.inc.php'; ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR . $INCLUDE_PATH); require_once "init.php"; $cfg = new Config(); $db = new Database($THINKTANK_CFG); $s = new SmartyThinkTank(); $c = new Crawler(); $conn = $db->getConnection(); // instantiate data access objects $ud = new UserDAO($db); $fd = new FollowDAO($db); $td = new TweetDAO($db); $c->init(); //TODO error checking here, is tweet in db, etc $status_id = $_REQUEST['t']; $s->assign('tweet', $td->getTweet($status_id)); $s->assign('replies', $td->getPublicRepliesToTweet($status_id)); $s->assign('cfg', $cfg); # clean up $db->closeConnection($conn); echo $s->fetch('replies.public.tpl'); /* $root_path = "../uar/includes/"; include $root_path.'environment.php'; # Determine relevant paths include $root_path.'status_messages.php'; # Turn error code into message include $root_path.'validate_data.php'; # Validate application data include $root_path.'api_config.php'; # Configuring the API connection include $root_path.'database.php'; # Connection to the database