root/postcomment.php

Revision 121, 250 bytes (checked in by davea, 3 years ago)

More business:
* Tweaked the comment posting interface a little
* A user can allow certain e-mail addresses to bypass moderation, this is configurable from the admin pages.
* probably a couple of other things i've forgotten about

Line 
1 <?php
2 ob_start();
3 include "blog.lib.php";
4
5 $blogid = $_POST['blog'];
6 $postid = $_POST['post'];
7 $blog = new blogs($blogid);
8
9 $ret = $blog->newComment($postid, FALSE);
10 if($ret[0]) {
11     echo "<split>OK";
12 } else {
13     echo "<split>ERROR<split>".$ret[1];
14 }
15 ?>
16
Note: See TracBrowser for help on using the browser.