\r\n" . "Reply-To: Do not reply\r\n"; mail("$email", "SoftTree Blog - Comments Added", "Comments have been added to your blog entry - $title\r\n" . "/blog/comments.php?aid=$aid", $headers); // notify the author $getauthor = "SELECT email FROM blog_user WHERE uname = '" . $_POST['name'] . "'"; if($author_result = mysql_query($getauthor)) { // send email to post author $row_author=mysql_fetch_assoc($author_result); $email2 = $row_author['email']; if ($email2 != $email) { // blog article autor is not the same as the site admin mail("$email", "SoftTree Blog - Comments Added", "Comments have been added to your blog entry $title\r\n" . "/blog/comments.php?aid=$aid", $headers); } } } //get the article $getarticle="SELECT replace(replace(a.title,'\\\\\"', '\"'), '\\\\''', '''') as title, a.name, a.categoryID, a.artid, a.date_posted, a.artchild, a.locked, replace(replace(a.comments,'\\\\\"', '\"'), '\\\\''', '''') as comments FROM blog_article a WHERE a.artid = $aid"; if(!$result = mysql_query($getarticle)) { fatal_error(mysql_error(), False); exit; } $num=mysql_num_rows($result); if($num <= 0) { fatal_error("Post not found", False); exit; } $row_article = mysql_fetch_assoc($result); $title=$row_article['title']; $comments=$row_article['comments']; $url_title=urlencode($row_article['title']); $url=urlencode("/blog/comments.php?aid=$aid"); $locked = $row_article['locked']; $cid = $row_article['categoryID']; //retrieve all comments made to this article $getcomments="SELECT replace(replace(a.title,'\\\\\"', '\"'), '\\\\''', '''') as title, a.name, a.categoryID, a.artid, a.date_posted, a.artchild, a.locked, replace(replace(a.comments,'\\\\\"', '\"'), '\\\\''', '''') as comments FROM blog_article a WHERE artchild = $aid ORDER by date_posted ASC"; $getcomments_result = mysql_query($getcomments); $comment_num=mysql_num_rows($getcomments_result); ?> SoftTree Blog - <?=htmlentities($title)?>


Home | Administration | Logout"; } else $links = "Home | Logout"; } else $links = "Home | Login"; ?>

      

 
 

Share this blog topic
Add to Digg it   Add to Twitter   Add to StumbleUpon   Add to Del.Icio.us   Add to Facebook   Add to Technorati   Add to Reddit   Add to YahooMyWeb   Add to Google bookmarks


0)) { while($row_comments=mysql_fetch_assoc($getcomments_result)) { ?>
Comments
 
said:
 

This blog article does not have any comments.


Leave a comment
 
Your Name
 
Comments
 

Enter verification code you see above this line:

(can't see? try reloading page)
 

  This blog article is locked. New comments are not accepted.
 
?>