Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: moderate.php 2223 2006-09-13 23:11:01Z Tikitiki $
| * $Id: moderate.php 3030 2007-04-26 00:19:47Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 87 | Zeile 87 |
---|
if($mybb->input['threaddelete'][$tid] == "yes") { delete_thread($tid);
|
if($mybb->input['threaddelete'][$tid] == "yes") { delete_thread($tid);
|
$update_forum_count[$thread['fid']] = 1;
| |
} else {
| } else {
|
Zeile 104 | Zeile 103 |
---|
"visible" => 1 ); $db->update_query(TABLE_PREFIX."posts", $sql_array, "tid = '".$tid."'");
|
"visible" => 1 ); $db->update_query(TABLE_PREFIX."posts", $sql_array, "tid = '".$tid."'");
|
$update_forum_count[$thread['fid']] = 1;
| |
// Update unapproved thread count
|
// Update unapproved thread count
|
$db->query("UPDATE ".TABLE_PREFIX."forums SET unapprovedthreads=unapprovedthreads-1,unapprovedposts=unapprovedposts-1 WHERE fid='{$thread['fid']}'");
| $db->query("UPDATE ".TABLE_PREFIX."forums SET unapprovedthreads=unapprovedthreads-1,unapprovedposts=unapprovedposts-1,threads=threads+1, posts=posts+1 WHERE fid='{$thread['fid']}'");
|
} } }
| } } }
|
Zeile 125 | Zeile 123 |
---|
if($mybb->input['postdelete'][$pid] == "yes") { delete_post($pid);
|
if($mybb->input['postdelete'][$pid] == "yes") { delete_post($pid);
|
$update_thread_count[$post['tid']] = 1; $update_forum_count[$thread['fid']] = 1;
| |
} else {
| } else {
|
Zeile 141 | Zeile 137 |
---|
"subject" => $subject ); $db->update_query(TABLE_PREFIX."posts", $sql_array, "pid = '".$pid."'");
|
"subject" => $subject ); $db->update_query(TABLE_PREFIX."posts", $sql_array, "pid = '".$pid."'");
|
$update_thread_count[$post['tid']] = 1; $update_forum_count[$thread['fid']] = 1;
| |
// Update unapproved thread count
|
// Update unapproved thread count
|
$db->query("UPDATE ".TABLE_PREFIX."threads SET unapprovedposts=unapprovedposts-1 WHERE tid='$post[tid]'");
| $db->query("UPDATE ".TABLE_PREFIX."threads SET unapprovedposts=unapprovedposts-1, replies=replies+1 WHERE tid='$post[tid]'"); $db->query("UPDATE ".TABLE_PREFIX."forums SET posts=posts+1 WHERE fid='$post[fid]'");
|
} }
|
} }
|
} } if(is_array($update_thread_count)) { foreach($update_thread_count as $tid => $val) { update_thread_count($tid); } } if(is_array($update_forum_count)) { foreach($update_forum_count as $fid => $val) { update_forum_count($fid);
| |
} } cpredirect("moderate.php?".SID."&action=".str_replace('do_', '', $mybb->input['action']), $lang->threadsposts_moderated);
| } } cpredirect("moderate.php?".SID."&action=".str_replace('do_', '', $mybb->input['action']), $lang->threadsposts_moderated);
|