Changeset 555 for trunk/b2comments.post.php
- Timestamp:
- 11/23/2003 10:13:33 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/b2comments.post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2comments.post.php
r549 r555 94 94 $approved = 1; 95 95 } 96 $wpdb->query("INSERT INTO $tablecomments (comment_ID,comment_post_ID,comment_author,comment_author_email,comment_author_url,comment_author_IP,comment_date,comment_content,comment_karma,comment_approved) VALUES ('0', '$comment_post_ID', '$author', '$email', '$url', '$user_ip', '$now', '$comment', '0', '$approved')"); 96 $wpdb->query("INSERT INTO $tablecomments 97 (comment_ID, comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_content, comment_approved) 98 VALUES 99 ('0', '$comment_post_ID', '$author', '$email', '$url', '$user_ip', '$now', '$comment', '$approved') 100 "); 97 101 98 /*99 102 $comment_ID = $wpdb->get_var('SELECT last_insert_id()'); 100 103 101 $fp = fopen("/tmp/wpdebug.txt", "w+");102 fwrite($fp, "comment_moderation: $comment_moderation\n");103 fwrite($fp, "moderation_notify : $moderation_notify\n");104 105 104 if (($moderation_notify) && (!$approved)) { 106 105 wp_notify_moderator($comment_ID); 107 fwrite($fp, "notify moderator -> $comment_ID\n");108 106 } 109 107 110 108 if (($comment_notify) && ($approved)) { 111 wp_notify_postauthor($comment_ID); 112 fwrite($fp, "notify postauthor -> $comment_ID\n"); 109 wp_notify_postauthor($comment_ID, 'comment'); 113 110 } 114 115 fclose($fp);116 111 117 */118 112 if ($email == '') 119 113 $email = ' '; // this to make sure a cookie is set for 'no email'
Note: See TracChangeset
for help on using the changeset viewer.