Vergleich inc/class_custommoderation.php - 1.4.4 - 1.4.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 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 4392 2009-07-05 21:36:50Z RyanGordon $

 */

 */

 
 
// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


/**
* Used to execute a custom moderation tool


/**
* Used to execute a custom moderation tool

Zeile 155Zeile 161
				$new_subject = str_ireplace('{subject}', $thread['subject'], $post_options['splitpostsnewsubject']);
$new_tid = $this->split_posts($pids, $tid, $post_options['splitposts'], $new_subject);
if($post_options['splitpostsclose'] == 'close') // Close new thread

				$new_subject = str_ireplace('{subject}', $thread['subject'], $post_options['splitpostsnewsubject']);
$new_tid = $this->split_posts($pids, $tid, $post_options['splitposts'], $new_subject);
if($post_options['splitpostsclose'] == 'close') // Close new thread

				{

				{

					$this->close_threads($new_tid);
}
if($post_options['splitpostsstick'] == 'stick') // Stick new thread

					$this->close_threads($new_tid);
}
if($post_options['splitpostsstick'] == 'stick') // Stick new thread

Zeile 298Zeile 304
			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'],