public function pingback_ping($from_url, $to_url) { # Come on, buddy! Don't make me waste time with this kind of silliness... if (!(filter_var($from_url, FILTER_VALIDATE_URL) && preg_match('!^https?://!', $from_url))) { throw new Exception(__('No valid source URL provided? Try again!'), 0); } if (!(filter_var($to_url, FILTER_VALIDATE_URL) && preg_match('!^https?://!', $to_url))) { throw new Exception(__('No valid target URL provided? Try again!'), 0); } if (html::sanitizeURL(urldecode($from_url)) == html::sanitizeURL(urldecode($to_url))) { throw new Exception(__('LOL!'), 0); } # Time to get things done... $this->setBlog(true); $tb = new dcTrackback($this->core); return $tb->receive_pb($from_url, $to_url); }