Vergleich moderation.php - 1.2.8 - 1.2.10

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

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

 * $Id: moderation.php 3167 2007-06-28 05:34:18Z chris $

 * $Id: moderation.php 3515 2007-11-24 09:05:33Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 81Zeile 81

if($fid)
{


if($fid)
{

	// Password protected forums ......... yhummmmy!
check_forum_password($fid, $forum['password']);

	// Check if this forum is password protected and we have a valid password
check_forum_password($forum['fid']);

}

if($mybb->user['uid'] != 0)

}

if($mybb->user['uid'] != 0)

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

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

		$plugins->run_hooks("moderation_do_multimergeposts");

		$plugins->run_hooks("moderation_multimergeposts");

		eval("\$multimerge = \"".$templates->get("moderation_inline_mergeposts")."\";");
output_page($multimerge);
break;

		eval("\$multimerge = \"".$templates->get("moderation_inline_mergeposts")."\";");
output_page($multimerge);
break;

Zeile 1104Zeile 1104
	// Actually merge the posts - Inline moderation
case "do_multimergeposts":
if(is_moderator($fid, "canmanagethreads") != "yes")

	// Actually merge the posts - Inline moderation
case "do_multimergeposts":
if(is_moderator($fid, "canmanagethreads") != "yes")

		{

		{

			error_no_permission();
}
$postlist = explode("|", $mybb->input['posts']);

			error_no_permission();
}
$postlist = explode("|", $mybb->input['posts']);

Zeile 1113Zeile 1113
			$pid = intval($pid);
$plist[] = $pid;
}

			$pid = intval($pid);
$plist[] = $pid;
}





		$moderation->merge_posts($plist, $tid, $mybb->input['sep']);
$plugins->run_hooks("moderation_do_multimergeposts");
mark_reports($plist, "posts");
log_moderator_action($modlogdata, $lang->merged_selective_posts);
redirect("showthread.php?tid=$tid", $lang->redirect_inline_postsmerged);

		$moderation->merge_posts($plist, $tid, $mybb->input['sep']);
$plugins->run_hooks("moderation_do_multimergeposts");
mark_reports($plist, "posts");
log_moderator_action($modlogdata, $lang->merged_selective_posts);
redirect("showthread.php?tid=$tid", $lang->redirect_inline_postsmerged);

		break;


		break;


	// Split posts - Inline moderation
case "multisplitposts":
add_breadcrumb($lang->nav_multi_splitposts);

	// Split posts - Inline moderation
case "multisplitposts":
add_breadcrumb($lang->nav_multi_splitposts);

Zeile 1139Zeile 1139
		if($numposts <= "1")
{
error($lang->error_cantsplitonepost);

		if($numposts <= "1")
{
error($lang->error_cantsplitonepost);

		}
$posts = getids($tid, "thread");
if(count($posts) < 1)
{
error($lang->error_inline_nopostsselected);

		}
$posts = getids($tid, "thread");
if(count($posts) < 1)
{
error($lang->error_inline_nopostsselected);

		}
$pidin = '';
$comma = '';
foreach($posts as $pid)

		}
$pidin = '';
$comma = '';
foreach($posts as $pid)

		{

		{

			$pid = intval($pid);
$pidin .= "$comma'$pid'";
$comma = ",";

			$pid = intval($pid);
$pidin .= "$comma'$pid'";
$comma = ",";

		}

		}

		$query = $db->simple_select(TABLE_PREFIX."posts", "*", "pid NOT IN($pidin) AND tid='$tid'");
$num = $db->num_rows($query);
if(!$num)

		$query = $db->simple_select(TABLE_PREFIX."posts", "*", "pid NOT IN($pidin) AND tid='$tid'");
$num = $db->num_rows($query);
if(!$num)

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

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

		$plugins->run_hooks("moderation_do_multisplitposts");

		$plugins->run_hooks("moderation_multisplitposts");

		$forumselect = build_forum_jump("", $fid, 1, '', 0, '', "moveto");
eval("\$splitposts = \"".$templates->get("moderation_inline_splitposts")."\";");
output_page($splitposts);

		$forumselect = build_forum_jump("", $fid, 1, '', 0, '', "moveto");
eval("\$splitposts = \"".$templates->get("moderation_inline_splitposts")."\";");
output_page($splitposts);

Zeile 1191Zeile 1191
		if($db->num_rows($query) == 0)
{
error($lang->error_invalidforum);

		if($db->num_rows($query) == 0)
{
error($lang->error_invalidforum);

		}

		}

		$newsubject = $mybb->input['newsubject'];

$newtid = $moderation->split_posts($plist, $tid, $moveto, $newsubject);

		$newsubject = $mybb->input['newsubject'];

$newtid = $moderation->split_posts($plist, $tid, $moveto, $newsubject);

Zeile 1207Zeile 1207

// Approve posts - Inline moderation
case "multiapproveposts":


// Approve posts - Inline moderation
case "multiapproveposts":

		if(is_moderator($fid, "canmanagethreads") != "yes")
{
error_no_permission();
}
$posts = getids($tid, "thread");
if(count($posts) < 1)
{
error($lang->error_inline_nopostsselected);

		if(is_moderator($fid, "canmanagethreads") != "yes")
{
error_no_permission();
}
$posts = getids($tid, "thread");
if(count($posts) < 1)
{
error($lang->error_inline_nopostsselected);

		}

$pids = array();

		}

$pids = array();

Zeile 1223Zeile 1223
			$pids[] = intval($pid);
}


			$pids[] = intval($pid);
}


		$moderation->approve_posts($pids, $tid, $fid);

		$moderation->approve_posts($pids);

		$plugins->run_hooks("moderation_do_multiapproveposts");
log_moderator_action($modlogdata, $lang->multi_approve_posts);
clearinline($tid, "thread");

		$plugins->run_hooks("moderation_do_multiapproveposts");
log_moderator_action($modlogdata, $lang->multi_approve_posts);
clearinline($tid, "thread");

Zeile 1247Zeile 1247
			$pids[] = intval($pid);
}


			$pids[] = intval($pid);
}


		$moderation->unapprove_posts($pids, $tid, $fid);

		$moderation->unapprove_posts($pids);

		$plugins->run_hooks("moderation_do_multiunapproveposts");
log_moderator_action($modlogdata, $lang->multi_unapprove_posts);
clearinline($tid, "thread");

		$plugins->run_hooks("moderation_do_multiunapproveposts");
log_moderator_action($modlogdata, $lang->multi_unapprove_posts);
clearinline($tid, "thread");

Zeile 1271Zeile 1271
		}
if($flist)
{

		}
if($flist)
{

			$flist = "AND fid IN (0$flist)";

			$flist = " AND fid IN (0$flist)";

		}
if(!is_array($mybb->input['reports']))
{

		}
if(!is_array($mybb->input['reports']))
{

Zeile 1288Zeile 1288

$sqlarray = array(
"reportstatus" => 1,


$sqlarray = array(
"reportstatus" => 1,

			);
$db->update_query(TABLE_PREFIX."reportedposts", $sqlarray, "rid IN ($rids)");

		);
$db->update_query(TABLE_PREFIX."reportedposts", $sqlarray, "rid IN ($rids){$flist}");

		$cache->updatereportedposts();
redirect("moderation.php?action=reports", $lang->redirect_reportsmarked);
break;

		$cache->updatereportedposts();
redirect("moderation.php?action=reports", $lang->redirect_reportsmarked);
break;