Vergleich inc/class_custommoderation.php - 1.6.2 - 1.6.11

  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 5828 2012-05-08 16:06:16Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 84Zeile 84
		// If the tool type is a post tool, then execute the post moderation
if($tool['type'] == 'p')
{

		// If the tool type is a post tool, then execute the post moderation
if($tool['type'] == 'p')
{

			$this->execute_post_moderation($post_options, $pids, $tids);

			$deleted_thread = $this->execute_post_moderation($post_options, $pids, $tids);

		}
// Always execute thead moderation
$this->execute_thread_moderation($thread_options, $tids);

// If the thread is deleted, indicate to the calling script to redirect to the forum, and not the nonexistant thread

		}
// Always execute thead moderation
$this->execute_thread_moderation($thread_options, $tids);

// If the thread is deleted, indicate to the calling script to redirect to the forum, and not the nonexistant thread

		if($thread_options['deletethread'] == 1)

		if($thread_options['deletethread'] == 1 || $deleted_thread === 1)

		{
return 'forum';
}

		{
return 'forum';
}

Zeile 125Zeile 125
			foreach($pids as $pid)
{
$this->delete_post($pid);

			foreach($pids as $pid)
{
$this->delete_post($pid);

 
			}

$delete_tids = array();
$imploded_pids = implode(",", array_map("intval", $pids));
$query = $db->simple_select("threads", "tid", "firstpost IN ({$imploded_pids})");
while($threadid = $db->fetch_field($query, "tid"))
{
$delete_tids[] = $threadid;
}
if(!empty($delete_tids))
{
foreach($delete_tids as $delete_tid)
{
$this->delete_thread($delete_tid);
mark_reports($delete_tid, "thread");
}
// return 1 here so the code in execute() above knows to redirect to the forum
return 1;

			}
}
else

			}
}
else

Zeile 169Zeile 187
				if(empty($post_options['splitpostsnewsubject']))
{
// Enter in a subject if a predefined one does not exist.

				if(empty($post_options['splitpostsnewsubject']))
{
// Enter in a subject if a predefined one does not exist.

					$post_options['splitpostsnewsubject'] = '[split] '.$thread['subject'];

					$post_options['splitpostsnewsubject'] = "{$lang->split_thread_subject} {$thread['subject']}";

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

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