Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: class_custommoderation.php 4261 2008-11-03 01:11:33Z Tikitiki $
| * $Id: class_custommoderation.php 4340 2009-04-05 17:10:22Z Tikitiki $
|
*/
/**
| */
/**
|
Zeile 298 | Zeile 298 |
---|
if(!empty($thread_options['addreply'])) // Add reply to thread { $tid_list = implode(',', $tids);
|
if(!empty($thread_options['addreply'])) // Add reply to thread { $tid_list = implode(',', $tids);
|
$query = $db->simple_select("threads", 'fid, subject, tid, firstpost', "tid IN ($tid_list)");
| $query = $db->simple_select("threads", 'fid, subject, tid, firstpost', "tid IN ($tid_list) AND closed NOT LIKE 'moved|%'");
|
require_once MYBB_ROOT."inc/datahandlers/post.php";
|
require_once MYBB_ROOT."inc/datahandlers/post.php";
|
|
|
// Loop threads adding a reply to each one while($thread = $db->fetch_array($query)) { $posthandler = new PostDataHandler("insert"); if(empty($thread_options['replysubject']))
|
// Loop threads adding a reply to each one while($thread = $db->fetch_array($query)) { $posthandler = new PostDataHandler("insert"); if(empty($thread_options['replysubject']))
|
{ $thread_options['replysubject'] = 'RE: '.$thread['subject']; } else { $thread_options['replysubject'] = str_ireplace('{username}', $mybb->user['username'], $thread_options['replysubject']); $thread_options['replysubject'] = str_ireplace('{subject}', $thread['subject'], $thread_options['replysubject']); } // Set the post data that came from the input to the $post array. $post = array( "tid" => $thread['tid'], "replyto" => $thread['firstpost'], "fid" => $thread['fid'], "subject" => $thread_options['replysubject'],
| { $new_subject = 'RE: '.$thread['subject']; } else { $new_subject = str_ireplace('{username}', $mybb->user['username'], $thread_options['replysubject']); $new_subject = str_ireplace('{subject}', $thread['subject'], $new_subject); } // Set the post data that came from the input to the $post array. $post = array( "tid" => $thread['tid'], "replyto" => $thread['firstpost'], "fid" => $thread['fid'], "subject" => $new_subject,
|
"uid" => $mybb->user['uid'], "username" => $mybb->user['username'], "message" => $thread_options['addreply'],
| "uid" => $mybb->user['uid'], "username" => $mybb->user['username'], "message" => $thread_options['addreply'],
|