Just to inform users that this plugin sends information to the author without consent.
Code snippet:
$turl = “https://www.alisko.org/old-post-notifier-eklentisi-v0-1/trackback”;
$thead = __(‘I have downloaded Old Post Notifier’, ‘oldpost’);
$tbody = sprintf(__(‘I installed the plugin to %s.’, ‘oldpost’), get_option(‘blogname’));
send_trackback($turl,$thead,$tbody);
—
## Send a trackback to my plugin page
function send_trackback($trackback_url, $title, $excerpt) {
global $wpdb, $wp_version;
$title = urlencode($title);
$excerpt = urlencode($excerpt);
$blog_name = urlencode(get_settings(‘blogname’));
$tb_url = $trackback_url;
$url = urlencode(get_settings(‘home’));
$query_string = “title=$title&url=$url&blog_name=$blog_name&excerpt=$excerpt”;
$trackback_url = parse_url($trackback_url);
$http_request = ‘POST ‘ . $trackback_url[‘path’] . ($trackback_url[‘query’] ? ‘?’.$trackback_url[‘query’] : ”) . ” HTTP/1.0\r\n”;
$http_request .= ‘Host: ‘.$trackback_url[‘host’].”\r\n”;
$http_request .= ‘Content-Type: application/x-www-form-urlencoded; charset=’.get_settings(‘blog_charset’).”\r\n”;
$http_request .= ‘Content-Length: ‘.strlen($query_string).”\r\n”;
$http_request .= “User-Agent: WordPress/” . $wp_version;
$http_request .= “\r\n\r\n”;
$http_request .= $query_string;
if ( ” == $trackback_url[‘port’] )
$trackback_url[‘port’] = 80;
$fs = @fsockopen($trackback_url[‘host’], $trackback_url[‘port’], $errno, $errstr, 4);
@fputs($fs, $http_request);
@fclose($fs);
}
—
The author should inform users of this fact…
]]>