Vergleich moderation.php - 1.2.0 - 1.2.4

  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: moderation.php 2164 2006-08-30 06:17:49Z chris $

 * $Id: moderation.php 2475 2006-12-01 04:58:21Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 67Zeile 67
	// Make navigation
build_forum_breadcrumb($fid);
}

	// Make navigation
build_forum_breadcrumb($fid);
}

 

$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));


if($tid)
{


if($tid)
{

	add_breadcrumb($parser->parse_badwords($thread['subject']), "showthread.php?tid=$thread[tid]");

	add_breadcrumb($thread['subject'], "showthread.php?tid={$thread['tid']}");

	$modlogdata['tid'] = $tid;
}


	$modlogdata['tid'] = $tid;
}


Zeile 98Zeile 100
	// Open or close a thread
case "openclosethread":
if(is_moderator($fid, "canopenclosethreads") != "yes")

	// Open or close a thread
case "openclosethread":
if(is_moderator($fid, "canopenclosethreads") != "yes")

		{
error_no_permission();
}


		{
error_no_permission();
}


		$plugins->run_hooks("moderation_openclosethread");

if($thread['closed'] == "yes")

		$plugins->run_hooks("moderation_openclosethread");

if($thread['closed'] == "yes")

Zeile 109Zeile 111
			$openclose = $lang->opened;
$redirect = $lang->redirect_openthread;
$moderation->open_threads($tid);

			$openclose = $lang->opened;
$redirect = $lang->redirect_openthread;
$moderation->open_threads($tid);

		}
else
{

		}
else
{

			$openclose = $lang->closed;
$redirect = $lang->redirect_closethread;
$moderation->close_threads($tid);

			$openclose = $lang->closed;
$redirect = $lang->redirect_closethread;
$moderation->close_threads($tid);

		}

$lang->mod_process = sprintf($lang->mod_process, $openclose);

log_moderator_action($modlogdata, $lang->mod_process);

redirect("showthread.php?tid=$tid", $redirect);
break;

		}

$lang->mod_process = sprintf($lang->mod_process, $openclose);

log_moderator_action($modlogdata, $lang->mod_process);

redirect("showthread.php?tid=$tid", $redirect);
break;


// Stick or unstick that post to the top bab!
case "stick";


// Stick or unstick that post to the top bab!
case "stick";

		if(is_moderator($fid, "canmanagethreads") != "yes")
{
error_no_permission();
}

$plugins->run_hooks("moderation_stick");

if($thread['sticky'] == 1)

		if(is_moderator($fid, "canmanagethreads") != "yes")
{
error_no_permission();
}

$plugins->run_hooks("moderation_stick");

if($thread['sticky'] == 1)

		{
$stuckunstuck = $lang->unstuck;
$redirect = $lang->redirect_unstickthread;

		{
$stuckunstuck = $lang->unstuck;
$redirect = $lang->redirect_unstickthread;

Zeile 144Zeile 146
			$stuckunstuck = $lang->stuck;
$redirect = $lang->redirect_stickthread;
$moderation->stick_threads($tid);

			$stuckunstuck = $lang->stuck;
$redirect = $lang->redirect_stickthread;
$moderation->stick_threads($tid);

		}

		}


$lang->mod_process = sprintf($lang->mod_process, $stuckunstuck);


$lang->mod_process = sprintf($lang->mod_process, $stuckunstuck);





		log_moderator_action($modlogdata, $lang->mod_process);

		log_moderator_action($modlogdata, $lang->mod_process);





		redirect("showthread.php?tid=$tid", $redirect);
break;

		redirect("showthread.php?tid=$tid", $redirect);
break;





	// Remove redirects to a specific thread
case "removeredirects":

	// Remove redirects to a specific thread
case "removeredirects":

		if(is_moderator($fid, "canmanagethreads") != "yes")
{
error_no_permission();
}

$plugins->run_hooks("moderation_removeredirects");

$moderation->remove_redirects($tid);

		if(is_moderator($fid, "canmanagethreads") != "yes")
{
error_no_permission();
}

$plugins->run_hooks("moderation_removeredirects");

$moderation->remove_redirects($tid);


log_moderator_action($modlogdata, $lang->redirects_removed);
redirect("showthread.php?tid=$tid", $lang->redirect_redirectsremoved);


log_moderator_action($modlogdata, $lang->redirects_removed);
redirect("showthread.php?tid=$tid", $lang->redirect_redirectsremoved);

Zeile 171Zeile 173
	// Delete thread confirmation page
case "deletethread":
add_breadcrumb($lang->nav_deletethread);

	// Delete thread confirmation page
case "deletethread":
add_breadcrumb($lang->nav_deletethread);


if(is_moderator($fid, "candeleteposts") != "yes")
{


if(is_moderator($fid, "candeleteposts") != "yes")
{

			if($permissions['candeletethreads'] != "yes" || $mybb->user['uid'] != $thread['uid'])
{
error_no_permission();
}
}

			if($permissions['candeletethreads'] != "yes" || $mybb->user['uid'] != $thread['uid'])
{
error_no_permission();
}
}

 
		
$thread['subject'] = htmlspecialchars_uni($thread['subject']);


$plugins->run_hooks("moderation_deletethread");

eval("\$deletethread = \"".$templates->get("moderation_deletethread")."\";");
output_page($deletethread);


$plugins->run_hooks("moderation_deletethread");

eval("\$deletethread = \"".$templates->get("moderation_deletethread")."\";");
output_page($deletethread);

		break;

		break;


// Delete the actual thread here
case "do_deletethread":


// Delete the actual thread here
case "do_deletethread":

Zeile 214Zeile 218
	// Delete the poll from a thread confirmation page
case "deletepoll":
add_breadcrumb($lang->nav_deletepoll);

	// Delete the poll from a thread confirmation page
case "deletepoll":
add_breadcrumb($lang->nav_deletepoll);


if(is_moderator($fid, "candeleteposts") != "yes")
{
if($permissions['candeletethreads'] != "yes" || $mybb->user['uid'] != $thread['uid'])
{
error_no_permission();


if(is_moderator($fid, "candeleteposts") != "yes")
{
if($permissions['candeletethreads'] != "yes" || $mybb->user['uid'] != $thread['uid'])
{
error_no_permission();

			}
}


			}
}


Zeile 240Zeile 244
	case "do_deletepoll":
if(!$mybb->input['delete'])
{

	case "do_deletepoll":
if(!$mybb->input['delete'])
{

			redirect("showthread.php?tid=$tid", $lang->redirect_pollnotdeleted);

			error($lang->redirect_pollnotdeleted);

		}
if(is_moderator($fid, "candeleteposts") != "yes")
{

		}
if(is_moderator($fid, "candeleteposts") != "yes")
{

Zeile 254Zeile 258
		if(!$poll['pid'])
{
error($lang->error_invalidpoll);

		if(!$poll['pid'])
{
error($lang->error_invalidpoll);

		}


		}


		$plugins->run_hooks("moderation_do_deletepoll");

$lang->poll_deleted = sprintf($lang->poll_deleted, $thread['subject']);

		$plugins->run_hooks("moderation_do_deletepoll");

$lang->poll_deleted = sprintf($lang->poll_deleted, $thread['subject']);

Zeile 279Zeile 283

$lang->thread_approved = sprintf($lang->thread_approved, $thread['subject']);
log_moderator_action($modlogdata, $lang->thread_approved);


$lang->thread_approved = sprintf($lang->thread_approved, $thread['subject']);
log_moderator_action($modlogdata, $lang->thread_approved);





		$moderation->approve_threads($tid, $fid);

redirect("showthread.php?tid=$tid", $lang->redirect_threadapproved);

		$moderation->approve_threads($tid, $fid);

redirect("showthread.php?tid=$tid", $lang->redirect_threadapproved);

Zeile 302Zeile 306
		$moderation->unapprove_threads($tid, $fid);

redirect("showthread.php?tid=$tid", $lang->redirect_threadunapproved);

		$moderation->unapprove_threads($tid, $fid);

redirect("showthread.php?tid=$tid", $lang->redirect_threadunapproved);

		break;

		break;


// Delete selective posts in a thread
case "deleteposts":


// Delete selective posts in a thread
case "deleteposts":

Zeile 349Zeile 353

// Lets delete those selected posts!
case "do_deleteposts":


// Lets delete those selected posts!
case "do_deleteposts":

		if(is_moderator($fid, "candeleteposts") != "yes")

		if(is_moderator($fid, "candeleteposts") != "yes")

		{
error_no_permission();
}

		{
error_no_permission();
}

Zeile 365Zeile 369
			{
$moderation->delete_post($post['pid']);
$deletecount++;

			{
$moderation->delete_post($post['pid']);
$deletecount++;

				$plist[] = $post['pid'];

				$plist[] = intval($post['pid']);

			}
else
{

			}
else
{

Zeile 626Zeile 630
	// Merge threads
case "merge":
add_breadcrumb($lang->nav_merge);

	// Merge threads
case "merge":
add_breadcrumb($lang->nav_merge);

		if(is_moderator($fid, "canmanagethreads") != "yes")
{
error_no_permission();
}

$plugins->run_hooks("moderation_merge");

		if(is_moderator($fid, "canmanagethreads") != "yes")
{
error_no_permission();
}

$plugins->run_hooks("moderation_merge");


eval("\$merge = \"".$templates->get("moderation_merge")."\";");
output_page($merge);


eval("\$merge = \"".$templates->get("moderation_merge")."\";");
output_page($merge);

Zeile 801Zeile 805
		add_breadcrumb($lang->nav_multi_deletethreads);
if(is_moderator($fid, "candeleteposts") != "yes")
{

		add_breadcrumb($lang->nav_multi_deletethreads);
if(is_moderator($fid, "candeleteposts") != "yes")
{

			if($permissions['candeletethreads'] != "yes" || $mybb->user['uid'] != $thread['uid'])
{
error_no_permission();
}

			error_no_permission();




		}
$threads = getids($fid, "forum");
if(count($threads) < 1)

		}
$threads = getids($fid, "forum");
if(count($threads) < 1)

		{

		{

			error($lang->error_inline_nothreadsselected);
}
$inlineids = implode("|", $threads);

			error($lang->error_inline_nothreadsselected);
}
$inlineids = implode("|", $threads);

Zeile 821Zeile 822
	case "do_multideletethreads":
if(is_moderator($fid, "candeleteposts") != "yes")
{

	case "do_multideletethreads":
if(is_moderator($fid, "candeleteposts") != "yes")
{

			if($permissions['candeletethreads'] != "yes" || $mybb->user['uid'] != $thread['uid'])
{
error_no_permission();
}

			error_no_permission();




		}
$threadlist = explode("|", $mybb->input['threads']);
foreach($threadlist as $tid)

		}
$threadlist = explode("|", $mybb->input['threads']);
foreach($threadlist as $tid)

Zeile 1361Zeile 1359
			$trow = alt_trow();
$reportdate = my_date($mybb->settings['dateformat'], $report['dateline']);
$reporttime = my_date($mybb->settings['timeformat'], $report['dateline']);

			$trow = alt_trow();
$reportdate = my_date($mybb->settings['dateformat'], $report['dateline']);
$reporttime = my_date($mybb->settings['timeformat'], $report['dateline']);

 
			$report['threadsubject'] = htmlspecialchars_uni($parser->parse_badwords($report['threadsubject']));

			eval("\$reports .= \"".$templates->get("moderation_reports_report")."\";");
}
if(!$reports)

			eval("\$reports .= \"".$templates->get("moderation_reports_report")."\";");
}
if(!$reports)

Zeile 1453Zeile 1452
		{
$reportdate = my_date($mybb->settings['dateformat'], $report['dateline']);
$reporttime = my_date($mybb->settings['timeformat'], $report['dateline']);

		{
$reportdate = my_date($mybb->settings['dateformat'], $report['dateline']);
$reporttime = my_date($mybb->settings['timeformat'], $report['dateline']);

 
			$report['threadsubject'] = htmlspecialchars_uni($parser->parse_badwords($report['threadsubject']));

			if($report['reportstatus'] == 0)
{
$trow = "trow_shaded";

			if($report['reportstatus'] == 0)
{
$trow = "trow_shaded";