Vergleich inc/class_moderation.php - 1.2.1 - 1.2.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id: class_moderation.php 2228 2006-09-17 19:49:10Z Tikitiki $

 * $Id: class_moderation.php 2385 2006-11-06 23:40:55Z Tikitiki $

 */

class Moderation

 */

class Moderation

Zeile 359Zeile 359
		$pidin = implode(",", $pids);
$first = 1;
// Get the messages to be merged

		$pidin = implode(",", $pids);
$first = 1;
// Get the messages to be merged

		$query = $db->simple_select(TABLE_PREFIX."posts", "*", "tid='$tid' AND pid IN($pidin)", array('order_by' => 'dateline'));







		$query = $db->query("
SELECT p.pid, p.uid, p.fid, p.tid, p.visible, p.message, f.usepostcounts
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=p.fid)
WHERE p.tid='$tid' AND p.pid IN($pidin)
ORDER BY dateline ASC
");

		$num_unapproved_posts = 0;
$message = '';
while($post = $db->fetch_array($query))

		$num_unapproved_posts = 0;
$message = '';
while($post = $db->fetch_array($query))

Zeile 380Zeile 386
				{
$message .= "[hr]{$post['message']}";
}

				{
$message .= "[hr]{$post['message']}";
}

				$db->query("UPDATE ".TABLE_PREFIX."users SET postnum=postnum-1 WHERE uid='{$post['uid']}'");






				
if($post['usepostcounts'] != "no")
{
// Update post count of the user of the merged posts
$db->query("UPDATE ".TABLE_PREFIX."users SET postnum=postnum-1 WHERE uid='{$post['uid']}'");
}

			}
}


			}
}


Zeile 450Zeile 461
					"closed" => "moved|$tid",
"sticky" => $thread['sticky'],
"visible" => $thread['visible'],

					"closed" => "moved|$tid",
"sticky" => $thread['sticky'],
"visible" => $thread['visible'],

 
					"notes" => ''

				);
$db->insert_query(TABLE_PREFIX."threads", $threadarray);
if($redirect_expire)

				);
$db->insert_query(TABLE_PREFIX."threads", $threadarray);
if($redirect_expire)

Zeile 476Zeile 488
					"sticky" => $thread['sticky'],
"visible" => $thread['visible'],
"unapprovedposts" => $thread['unapprovedposts'],

					"sticky" => $thread['sticky'],
"visible" => $thread['visible'],
"unapprovedposts" => $thread['unapprovedposts'],

 
					"notes" => ''

				);
$plugins->run_hooks("moderation_do_move_copy");
$db->insert_query(TABLE_PREFIX."threads", $threadarray);

				);
$plugins->run_hooks("moderation_do_move_copy");
$db->insert_query(TABLE_PREFIX."threads", $threadarray);

Zeile 665Zeile 678
			"lastposter" => $thread['lastposter'],
"replies" => count($pids)-1,
"visible" => "1",

			"lastposter" => $thread['lastposter'],
"replies" => count($pids)-1,
"visible" => "1",

 
			"notes" => ''

		);
$db->insert_query(TABLE_PREFIX."threads", $query);
$newtid = $db->insert_id();

		);
$db->insert_query(TABLE_PREFIX."threads", $query);
$newtid = $db->insert_id();