}
if ($params->getValue("url") == "") {
    $result = errorResponse("The url parameter must be present.");
    print $result;
    trackbackLog("Sending error response: {$result}");
    trackbackLog("** End");
    die;
}
if (!$config->getValue("trackback_server_enabled")) {
    trackbackLog("Trackback server disabled by administrator");
    $result = errorResponse("Trackback feature has been disabled by the administrator.");
    die($result);
}
// for security, we will strip _ANY_ html tag from the tags
$tf = new TextFilter();
$blogName = $tf->filterAllHTML($params->getValue("blog_name"));
$excerpt = $tf->filterAllHTML($params->getValue("excerpt"));
$title = $tf->filterAllHTML($params->getValue("title"));
$articleId = $params->getValue("id");
$url = $tf->filterAllHTML($params->getValue("url"));
// try to see if the article is correct
$articles = new Articles();
$article = $articles->getBlogArticle($articleId);
if (!$article) {
    trackbackLog("ERROR: Incorrect error identifier");
    $result = errorResponse("Incorrect article identifier");
    die($result);
}
// try to load the blog info too, as we are going to need it
$blogs = new Blogs();
$blogInfo = $blogs->getBlogInfo($article->getBlog());