* * @version $Revision$ */ if (!defined('IN_LOQUACITY')) { include_once './config.php'; } if ($_SERVER['REQUEST_METHOD'] === 'POST' && $_SERVER['CONTENT_TYPE'] === 'application/x-www-form-urlencoded') { $post = null; $comment = null; if (defined('CLEANURLS')) { $url = explode('/', $_SERVER['REQUEST_URI']); $num = count($url); if ($url[$num - 3] === 'trackback') { //a comment id is included $post = stringHandler::removeMagicQuotes($url[$num - 2]); $comment = stringHandler::removeMagicQuotes($url[$num - 1]); } else { $post = stringHandler::removeMagicQuotes($url[$num - 1]); } } else { $url = array(); parse_str(substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1), $url); $post = stringHandler::removeMagicQuotes($url['tbpost']); if (isset($url['cid'])) { $comment = stringHandler::removeMagicQuotes($url['cid']); } } include_once 'includes/trackbackhandler.class.php'; $th = new trackbackhandler($loq->_adb, $post); $th->receiveTrackback($_SERVER['REMOTE_ADDR'], $_POST, $comment); }