Vergleich inc/class_custommoderation.php - 1.6.0 - 1.6.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: class_custommoderation.php 5138 2010-07-28 18:31:24Z RyanGordon $

 * $Id: class_custommoderation.php 5380 2011-02-21 12:04:43Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 35Zeile 35
		global $db;

// Get tool info

		global $db;

// Get tool info

		$query = $db->simple_select("modtools", 'tid, type, name, description', 'tid="'.intval($tool_id).'"');

		$query = $db->simple_select("modtools", "*", 'tid="'.intval($tool_id).'"');

		$tool = $db->fetch_array($query);
if(!$tool['tid'])
{

		$tool = $db->fetch_array($query);
if(!$tool['tid'])
{

Zeile 196Zeile 196
					}	
else
{

					}	
else
{

						$post_options['splitpostsreplysubject'] = str_ireplace('{username}', $mybb->user['username'], $thread_options['replysubject']);

						$post_options['splitpostsreplysubject'] = str_ireplace('{username}', $mybb->user['username'], $post_options['splitpostsreplysubject']);

						$post_options['splitpostsreplysubject'] = str_ireplace('{subject}', $new_subject, $post_options['splitpostsreplysubject']);
}


						$post_options['splitpostsreplysubject'] = str_ireplace('{subject}', $new_subject, $post_options['splitpostsreplysubject']);
}


Zeile 322Zeile 322
			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) AND closed NOT LIKE 'moved|%'");

				$query = $db->simple_select("threads", 'fid, subject, tid, firstpost, closed', "tid IN ($tid_list) AND closed NOT LIKE 'moved|%'");

				require_once MYBB_ROOT."inc/datahandlers/post.php";

// Loop threads adding a reply to each one

				require_once MYBB_ROOT."inc/datahandlers/post.php";

// Loop threads adding a reply to each one

Zeile 351Zeile 351
						"message" => $thread_options['addreply'],
"ipaddress" => $db->escape_string(get_ip()),
);

						"message" => $thread_options['addreply'],
"ipaddress" => $db->escape_string(get_ip()),
);

 


					// Set up the post options from the input.
$post['options'] = array(
"signature" => 1,
"emailnotify" => 0,
"disablesmilies" => 0
);

					// Set up the post options from the input.
$post['options'] = array(
"signature" => 1,
"emailnotify" => 0,
"disablesmilies" => 0
);

	








if($thread['closed'] == 1)
{
// Keep this thread closed
$post['modoptions']['closethread'] = 1;
}


					$posthandler->set_data($post);
if($posthandler->validate_post($post))
{

					$posthandler->set_data($post);
if($posthandler->validate_post($post))
{