Vergleich inc/class_custommoderation.php - 1.6.3 - 1.6.4

  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 5380 2011-02-21 12:04:43Z Tomm $

 * $Id: class_custommoderation.php 5368 2011-02-17 10:37:01Z MattR $

 */

// 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