Zeile 6 | Zeile 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$
| * $Id: moderation.php 920 2005-12-05 03:28:01Z chris $
|
*/
define("KILL_GLOBALS", 1);
| */
define("KILL_GLOBALS", 1);
|
Zeile 963 | Zeile 963 |
---|
$threadlist = explode("|", $mybb->input['threads']); foreach($threadlist as $tid) {
|
$threadlist = explode("|", $mybb->input['threads']); foreach($threadlist as $tid) {
|
| $tid = intval($tid);
|
deletethread($tid); $tlist[] = $tid; }
| deletethread($tid); $tlist[] = $tid; }
|
Zeile 1142 | Zeile 1143 |
---|
$threadlist = explode("|", $mybb->input['threads']); foreach($threadlist as $tid) {
|
$threadlist = explode("|", $mybb->input['threads']); foreach($threadlist as $tid) {
|
$q .= " OR tid='$tid'";
| $q .= " OR tid='".intval($tid)."'";
|
} if(ismod($moveto, "canmanagethreads") != "yes") {
| } if(ismod($moveto, "canmanagethreads") != "yes") {
|
Zeile 1222 | Zeile 1223 |
---|
$deletecount = 0; foreach($postlist as $pid) {
|
$deletecount = 0; foreach($postlist as $pid) {
|
| $pid = intval($pid);
|
deletepost($pid); $plist[] = $pid; $deletecount++;
| deletepost($pid); $plist[] = $pid; $deletecount++;
|
Zeile 1260 | Zeile 1262 |
---|
} $inlineids = implode("|", $posts); clearinline($tid, "thread");
|
} $inlineids = implode("|", $posts); clearinline($tid, "thread");
|
|
|
eval("\$multimerge = \"".$templates->get("moderation_inline_mergeposts")."\";"); outputpage($multimerge); break;
| eval("\$multimerge = \"".$templates->get("moderation_inline_mergeposts")."\";"); outputpage($multimerge); break;
|
Zeile 1268 | Zeile 1270 |
---|
// Actually merge the posts - Inline moderation case "do_multimergeposts": if(ismod($fid, "canmanagethreads") != "yes")
|
// Actually merge the posts - Inline moderation case "do_multimergeposts": if(ismod($fid, "canmanagethreads") != "yes")
|
{
| {
|
nopermission(); } $postlist = explode("|", $mybb->input['posts']); foreach($postlist as $pid) {
|
nopermission(); } $postlist = explode("|", $mybb->input['posts']); foreach($postlist as $pid) {
|
$pidin .= "$comma'$pid'"; $comma = ","; $plist[] = $pid;
| $pid = intval($pid); $pidin .= "$comma'$pid'"; $comma = ","; $plist[] = $pid;
|
} $first = 1; $query = $db->query("SELECT pid, message FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND pid IN($pidin) ORDER BY dateline ASC LIMIT 0, 1");
| } $first = 1; $query = $db->query("SELECT pid, message FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND pid IN($pidin) ORDER BY dateline ASC LIMIT 0, 1");
|
Zeile 1329 | Zeile 1332 |
---|
} foreach($posts as $pid) {
|
} foreach($posts as $pid) {
|
$pidin .= "$comma'$pid'"; $comma = ",";
| $pid = intval($pid); $pidin .= "$comma'$pid'"; $comma = ",";
|
} $query = $db->query("SELECT * FROM ".TABLE_PREFIX."posts WHERE pid NOT IN($pidin) AND tid='$tid'"); $num = $db->num_rows($query);
| } $query = $db->query("SELECT * FROM ".TABLE_PREFIX."posts WHERE pid NOT IN($pidin) AND tid='$tid'"); $num = $db->num_rows($query);
|
Zeile 1498 | Zeile 1502 |
---|
error($lang->error_noselected_reports); } $rids = implode($mybb->input['reports'], "','");
|
error($lang->error_noselected_reports); } $rids = implode($mybb->input['reports'], "','");
|
$rids = "'0','$rids'";
| $rids = addslashes("'0','$rids'");
|
$plugins->run_hooks("moderation_do_reports");
| $plugins->run_hooks("moderation_do_reports");
|
Zeile 1560 | Zeile 1564 |
---|
{ if($id != "") {
|
{ if($id != "") {
|
$newids[] = $id;
| $newids[] = intval($id);
|
} } return $newids;
| } } return $newids;
|