Version 1.3 ()
------------------------------------------------------------------------
- * Made trackback/pingback functionality independend from link text.
- Only the link url is relevant now. Now dupe links in entries are
- not trackbacked/pingbacked twice and images w/o ALT attribute or
- links with changed text won't be trackbacked again after resaving
- the article. (brockhaus)
+ * Trackbacks to links without a description now get properly
+ evaluated. (brockhaus)
* serendipity_plugin_comments now also supports Favatars in
combination with serendipity_event_gravatar instead of
return; // Trackbacks to HTTPS URLs can only be performed with openssl activated
}
- echo '<div>• '. sprintf(TRACKBACK_CHECKING, $loc) .'</div>';
- flush();
-
if (empty($u['port'])) {
$u['port'] = 80;
$port = '';
$parsed_loc = $u['scheme'] . '://' . $u['host'] . $port . $u['path'];
if (preg_match('@\.(jpe?g|aiff?|gif|png|pdf|doc|rtf|wave?|mp2|mp4|mpe?g3|mpe?g4|divx|xvid|bz2|mpe?g|avi|mp3|xl?|ppt|pps|xslt?|xsd|zip|tar|t?gz|swf|rm|ram?|exe|mov|qt|midi?|qcp|emf|wmf|snd|pmg|w?bmp|gcd|mms|ogg|ogm|rv|wmv|wma|jad|3g?|jar)$@i', $u['path'])) {
- echo '<div>• ' . TRACKBACK_NO_DATA . '</div>';
+ // echo '<div>• ' . TRACKBACK_NO_DATA . '</div>';
return;
}
+ echo '<div>• '. sprintf(TRACKBACK_CHECKING, $loc) .'</div>';
+ flush();
+
require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
$options = array('allowRedirects' => true, 'maxRedirects' => 5, 'method' => 'GET');
serendipity_plugin_api::hook_event('backend_http_request', $options, 'trackback_detect');
if ($debug && is_string($row)) {
echo $row . "<br />\n";
}
+
+ if (empty($names[$i])) {
+ $names[$i] = $locations[$i];
+ }
if ($row[0] > 0 && isset($saved_references[$locations[$i] . $names[$i]])) {
if ($debug) echo "Found references for $id, skipping rest<br />\n";