%' ORDER BY comment_date"; $resultc = mysql_query($queryc); if ($resultc) { ?>

Trackbacks

The URL to TrackBack this entry is:

    comment_ID); ?>
  1. Tracked on on @

  2. No trackbacks yet.
Go back
get_var("SELECT ping_status FROM $tableposts WHERE ID = $tb_id"); if ('closed' == $pingstatus) die('Sorry, trackbacks are closed for this item.'); $url = addslashes($url); $title = strip_tags($title); $title = (strlen($title) > 255) ? substr($title, 0, 252).'...' : $title; $excerpt = strip_tags($excerpt); $excerpt = (strlen($excerpt) > 255) ? substr($excerpt, 0, 252).'...' : $excerpt; $blog_name = htmlspecialchars($blog_name); $blog_name = (strlen($blog_name) > 255) ? substr($blog_name, 0, 252).'...' : $blog_name; $comment = ''; $comment .= "$title
$excerpt"; $author = addslashes($blog_name); $email = ''; $original_comment = $comment; $comment_post_ID = $tb_id; $autobr = 1; $user_ip = $HTTP_SERVER_VARS['REMOTE_ADDR']; $user_domain = gethostbyaddr($user_ip); $time_difference = get_settings('time_difference'); $now = date('Y-m-d H:i:s',(time() + ($time_difference * 3600))); $comment = convert_chars($comment); $comment = format_to_post($comment); $comment_author = $author; $comment_author_email = $email; $comment_author_url = $url; $author = addslashes($author); $query = "INSERT INTO $tablecomments VALUES ('0','$comment_post_ID','$author','$email','$url','$user_ip','$now','$comment','0')"; $result = $wpdb->query($query); if (!$result) { die ("There is an error with the database, it can't store your comment...
Contact the webmaster"); } else { if ($comments_notify) { $notify_message = "New trackback on your post #$comment_post_ID.\r\n\r\n"; $notify_message .= "website: $comment_author (IP: $user_ip , $user_domain)\r\n"; $notify_message .= "url : $comment_author_url\r\n"; $notify_message .= "excerpt: \n".stripslashes($original_comment)."\r\n\r\n"; $notify_message .= "You can see all trackbacks on this post there: \r\n"; $notify_message .= "$siteurl/$blogfilename?p=$comment_post_ID&tb=1\r\n\r\n"; $postdata = get_postdata($comment_post_ID); $authordata = get_userdata($postdata["Author_ID"]); $recipient = $authordata["user_email"]; $subject = "trackback on post #$comment_post_ID \"".$postdata["Title"]."\""; @mail($recipient, $subject, $notify_message, "From: wordpress@".$HTTP_SERVER_VARS['SERVER_NAME']."\r\n"."X-Mailer: WordPress $b2_version - PHP/" . phpversion()); } trackback_response(0); } }/* elseif (empty($HTTP_GET_VARS['__mode'])) { header('Content-type: application/xml'); echo "\n\n1\n"; echo "Tell me a lie. \nOr just a __mode or url parameter ?\n"; echo ""; }*/ } ?>