Vergleich admin/modules/forum/moderation_queue.php - 1.8.27 - 1.8.34

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 45Zeile 45
	require_once MYBB_ROOT."inc/class_moderation.php";
$moderation = new Moderation;


	require_once MYBB_ROOT."inc/class_moderation.php";
$moderation = new Moderation;


	if(is_array($mybb->get_input('threads')))

	if($mybb->get_input('threads', MyBB::INPUT_ARRAY))

	{
$threads_to_approve = $threads_to_delete = array();
// Fetch threads

	{
$threads_to_approve = $threads_to_delete = array();
// Fetch threads

Zeile 83Zeile 83
		flash_message($lang->success_threads, 'success');
admin_redirect("index.php?module=forum-moderation_queue&type=threads");
}

		flash_message($lang->success_threads, 'success');
admin_redirect("index.php?module=forum-moderation_queue&type=threads");
}

	else if(is_array($mybb->input['posts']))

	else if($mybb->get_input('posts', MyBB::INPUT_ARRAY))

	{
$posts_to_approve = $posts_to_delete = array();
// Fetch posts

	{
$posts_to_approve = $posts_to_delete = array();
// Fetch posts

Zeile 127Zeile 127
		admin_redirect("index.php?module=forum-moderation_queue&type=posts");

}

		admin_redirect("index.php?module=forum-moderation_queue&type=posts");

}

	else if(is_array($mybb->input['attachments']))

	else if($mybb->get_input('attachments', MyBB::INPUT_ARRAY))

	{
$query = $db->simple_select("attachments", "aid, pid", "aid IN (".implode(",", array_map("intval", array_keys($mybb->input['attachments']))).")");
while($attachment = $db->fetch_array($query))

	{
$query = $db->simple_select("attachments", "aid, pid", "aid IN (".implode(",", array_map("intval", array_keys($mybb->input['attachments']))).")");
while($attachment = $db->fetch_array($query))

Zeile 309Zeile 309
	{
// Figure out if we need to display multiple pages.
$per_page = 15;

	{
// Figure out if we need to display multiple pages.
$per_page = 15;

		if($mybb->get_input('page') > 0)
{
$current_page = $mybb->get_input('page', MyBB::INPUT_INT);


		$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);
if($mybb->input['page'] > 0)
{
$current_page = $mybb->input['page'];

			$start = ($current_page-1)*$per_page;
$pages = $unapproved_posts / $per_page;
$pages = ceil($pages);

			$start = ($current_page-1)*$per_page;
$pages = $unapproved_posts / $per_page;
$pages = ceil($pages);

Zeile 320Zeile 321
				$start = 0;
$current_page = 1;
}

				$start = 0;
$current_page = 1;
}

		}

		}

		else
{
$start = 0;
$current_page = 1;

		else
{
$start = 0;
$current_page = 1;

		}

$pagination = draw_admin_pagination($current_page, $per_page, $unapproved_posts, "index.php?module=forum-moderation_queue&type=posts&page={page}");



		}

$pagination = draw_admin_pagination($current_page, $per_page, $unapproved_posts, "index.php?module=forum-moderation_queue&type=posts&page={page}");



		$page->add_breadcrumb_item($lang->posts_awaiting_moderation);
$page->output_header($lang->posts_awaiting_moderation);
$page->output_nav_tabs($sub_tabs, "posts");

		$page->add_breadcrumb_item($lang->posts_awaiting_moderation);
$page->output_header($lang->posts_awaiting_moderation);
$page->output_nav_tabs($sub_tabs, "posts");

Zeile 461Zeile 462
	{
// Figure out if we need to display multiple pages.
$per_page = 15;

	{
// Figure out if we need to display multiple pages.
$per_page = 15;

 
		$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);

		if($mybb->input['page'] > 0)
{

		if($mybb->input['page'] > 0)
{

			$current_page = $mybb->get_input('page', MyBB::INPUT_INT);

			$current_page = $mybb->input['page'];

			$start = ($current_page-1)*$per_page;
$pages = $unapproved_attachments / $per_page;
$pages = ceil($pages);

			$start = ($current_page-1)*$per_page;
$pages = $unapproved_attachments / $per_page;
$pages = ceil($pages);