Vergleich moderation.php - 1.02 - 1.04

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 963Zeile 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 1142Zeile 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 1186Zeile 1187
		updateforumcount($moveto);
updateforumcount($fid);
redirect("forumdisplay.php?fid=$moveto", $lang->redirect_inline_threadsmoved);

		updateforumcount($moveto);
updateforumcount($fid);
redirect("forumdisplay.php?fid=$moveto", $lang->redirect_inline_threadsmoved);

		break;


		break;


	// Delete posts - Inline moderation
case "multideleteposts":
addnav($lang->nav_multi_deleteposts);

	// Delete posts - Inline moderation
case "multideleteposts":
addnav($lang->nav_multi_deleteposts);

Zeile 1196Zeile 1197
			nopermission();
}
$posts = getids($tid, "thread");

			nopermission();
}
$posts = getids($tid, "thread");

		if(!is_array($posts))
{
error($lang->error_inline_nopostsselected);
}

		if(!is_array($posts))
{
error($lang->error_inline_nopostsselected);
}

		$inlineids = implode("|", $posts);
//clearinline($pid, "post");
clearinline($tid, "thread");

		$inlineids = implode("|", $posts);
//clearinline($pid, "post");
clearinline($tid, "thread");

Zeile 1210Zeile 1211
		}
eval("\$multidelete = \"".$templates->get("moderation_inline_deleteposts")."\";");
outputpage($multidelete);

		}
eval("\$multidelete = \"".$templates->get("moderation_inline_deleteposts")."\";");
outputpage($multidelete);

		break;

		break;


// Actually delete the posts in inline moderation
case "do_multideleteposts":


// Actually delete the posts in inline moderation
case "do_multideleteposts":

Zeile 1222Zeile 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 1233Zeile 1235
			deletethread($tid);
markreports($tid, "thread");
$url = "forumdisplay.php?fid=$fid";

			deletethread($tid);
markreports($tid, "thread");
$url = "forumdisplay.php?fid=$fid";

		}

		}

		else

		else

		{

		{

			updatethreadcount($tid);
markreports($plist, "posts");
$url = "showthread.php?tid=$tid";

			updatethreadcount($tid);
markreports($plist, "posts");
$url = "showthread.php?tid=$tid";

		}

		}

		$lang->deleted_selective_posts = sprintf($lang->deleted_selective_posts, $deletecount);
logmod($modlogdata, $lang->deleted_selective_posts);
updateforumcount($fid);

		$lang->deleted_selective_posts = sprintf($lang->deleted_selective_posts, $deletecount);
logmod($modlogdata, $lang->deleted_selective_posts);
updateforumcount($fid);

Zeile 1250Zeile 1252
	case "multimergeposts":
addnav($lang->nav_multi_mergeposts);
if(ismod($fid, "candeleteposts") != "yes")

	case "multimergeposts":
addnav($lang->nav_multi_mergeposts);
if(ismod($fid, "candeleteposts") != "yes")

		{
nopermission();
}
$posts = getids($tid, "thread");
if(!is_array($posts))
{
error($lang->error_inline_nopostsselected);

		{
nopermission();
}
$posts = getids($tid, "thread");
if(!is_array($posts))
{
error($lang->error_inline_nopostsselected);

		}
$inlineids = implode("|", $posts);
clearinline($tid, "thread");

		}
$inlineids = implode("|", $posts);
clearinline($tid, "thread");

Zeile 1274Zeile 1276
		$postlist = explode("|", $mybb->input['posts']);
foreach($postlist as $pid)
{

		$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 1329Zeile 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 1498Zeile 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 1560Zeile 1564
	{
if($id != "")
{

	{
if($id != "")
{

			$newids[] = $id;

			$newids[] = intval($id);

		}
}
return $newids;

		}
}
return $newids;