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 3902 2008-06-11 02:21:37Z Tikitiki $
| * $Id: class_custommoderation.php 4340 2009-04-05 17:10:22Z Tikitiki $
|
*/
/**
| */
/**
|
Zeile 280 | Zeile 280 |
---|
if($thread_options['openthread'] == 'open') // Open thread {
|
if($thread_options['openthread'] == 'open') // Open thread {
|
echo "opening";
| |
$this->open_threads($tids); } elseif($thread_options['openthread'] == 'close') // Close thread
| $this->open_threads($tids); } elseif($thread_options['openthread'] == 'close') // Close thread
|
Zeile 299 | 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'],
|
Zeile 331 | Zeile 331 |
---|
$post['options'] = array( "signature" => 1, "emailnotify" => 0,
|
$post['options'] = array( "signature" => 1, "emailnotify" => 0,
|
"disablesmilies" => 1
| "disablesmilies" => 0
|
); $posthandler->set_data($post);
| ); $posthandler->set_data($post);
|