Vergleich admin/modules/forum/moderation_queue.php - 1.8.2 - 1.8.26

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 170Zeile 170
		$per_page = 15;
if($mybb->input['page'] > 0)
{

		$per_page = 15;
if($mybb->input['page'] > 0)
{

			$current_page = $mybb->get_input('page', 1);

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

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

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

Zeile 216Zeile 216
			$forum_name = $forum_cache[$thread['fid']]['name'];
$threaddate = my_date('relative', $thread['dateline']);


			$forum_name = $forum_cache[$thread['fid']]['name'];
$threaddate = my_date('relative', $thread['dateline']);


			if($thread['username'] == "")

			if(!$thread['uid'])

			{
if($thread['threadusername'] != "")
{

			{
if($thread['threadusername'] != "")
{

Zeile 224Zeile 224
				}
else
{

				}
else
{

					$profile_link = $lang->guest;

					$profile_link = htmlspecialchars_uni($lang->guest);

				}
}
else
{

				}
}
else
{

				$profile_link = build_profile_link($thread['username'], $thread['uid'], "_blank");

				$profile_link = build_profile_link(htmlspecialchars_uni($thread['username']), $thread['uid'], "_blank");

			}

			}





			$thread['postmessage'] = nl2br(htmlspecialchars_uni($thread['postmessage']));

$table->construct_cell("<a href=\"../{$thread['threadlink']}\" target=\"_blank\">{$thread['subject']}</a>");

			$thread['postmessage'] = nl2br(htmlspecialchars_uni($thread['postmessage']));

$table->construct_cell("<a href=\"../{$thread['threadlink']}\" target=\"_blank\">{$thread['subject']}</a>");

Zeile 248Zeile 248
			$forum = "<strong>{$lang->forum} <a href=\"../{$thread['forumlink']}\" target=\"_blank\">{$forum_name}</a></strong><br />";

$table->construct_cell("<div class=\"modqueue_message\">{$controls}<div class=\"modqueue_meta\">{$forum}</div>{$thread['postmessage']}</div>", array("colspan" => 3));

			$forum = "<strong>{$lang->forum} <a href=\"../{$thread['forumlink']}\" target=\"_blank\">{$forum_name}</a></strong><br />";

$table->construct_cell("<div class=\"modqueue_message\">{$controls}<div class=\"modqueue_meta\">{$forum}</div>{$thread['postmessage']}</div>", array("colspan" => 3));

			$table->construct_row();
}

$table->output($lang->threads_awaiting_moderation);
echo $all_options;
echo $pagination;

$buttons[] = $form->generate_submit_button($lang->perform_action);
$form->output_submit_wrapper($buttons);
$form->end();

echo '<script type="text/javascript">
$(".mass_ignore").on("click", function () {

			$table->construct_row();
}

$table->output($lang->threads_awaiting_moderation, 1, "general tfixed");
echo $all_options;
echo $pagination;

$buttons[] = $form->generate_submit_button($lang->perform_action);
$form->output_submit_wrapper($buttons);
$form->end();

echo '<script type="text/javascript">
$(".mass_ignore").on("click", function () {

				$("input.radio_ignore").each(function(e) {
$(this).prop("checked", true);
});

				$("input.radio_ignore").each(function(e) {
$(this).prop("checked", true);
});

Zeile 305Zeile 305
		$per_page = 15;
if($mybb->input['page'] > 0)
{

		$per_page = 15;
if($mybb->input['page'] > 0)
{

			$current_page = $mybb->get_input('page', 1);

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

			$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 361Zeile 361
			$forum_name = $forum_cache[$post['fid']]['name'];
$postdate = my_date('relative', $post['dateline']);


			$forum_name = $forum_cache[$post['fid']]['name'];
$postdate = my_date('relative', $post['dateline']);


			if($post['username'] == "")

			if(!$post['uid'])

			{
if($post['postusername'] != "")
{
$profile_link = $post['postusername'];

			{
if($post['postusername'] != "")
{
$profile_link = $post['postusername'];

				}

				}

				else
{
$profile_link = $lang->guest;
}

				else
{
$profile_link = $lang->guest;
}

			}

			}

			else
{

			else
{

				$profile_link = build_profile_link($post['username'], $post['uid'], "_blank");

				$profile_link = build_profile_link(htmlspecialchars_uni($post['username']), $post['uid'], "_blank");

			}

			}





			$post['message'] = nl2br(htmlspecialchars_uni($post['message']));

$table->construct_cell("<a href=\"../{$post['postlink']}#pid{$post['pid']}\" target=\"_blank\">{$post['subject']}</a>");

			$post['message'] = nl2br(htmlspecialchars_uni($post['message']));

$table->construct_cell("<a href=\"../{$post['postlink']}#pid{$post['pid']}\" target=\"_blank\">{$post['subject']}</a>");

Zeile 389Zeile 389
			$controls .= $form->generate_radio_button("posts[{$post['pid']}]", "delete",$lang->delete, array('class' => 'radio_delete', 'checked' => false))." ";
$controls .= $form->generate_radio_button("posts[{$post['pid']}]", "approve", $lang->approve, array('class' => 'radio_approve', 'checked' => false));
$controls .= "</div>";

			$controls .= $form->generate_radio_button("posts[{$post['pid']}]", "delete",$lang->delete, array('class' => 'radio_delete', 'checked' => false))." ";
$controls .= $form->generate_radio_button("posts[{$post['pid']}]", "approve", $lang->approve, array('class' => 'radio_approve', 'checked' => false));
$controls .= "</div>";





			$thread = "<strong>{$lang->thread} <a href=\"../{$post['threadlink']}\" target=\"_blank\">{$post['threadsubject']}</a></strong>";
$forum = "<strong>{$lang->forum} <a href=\"../{$post['forumlink']}\" target=\"_blank\">{$forum_name}</a></strong><br />";


			$thread = "<strong>{$lang->thread} <a href=\"../{$post['threadlink']}\" target=\"_blank\">{$post['threadsubject']}</a></strong>";
$forum = "<strong>{$lang->forum} <a href=\"../{$post['forumlink']}\" target=\"_blank\">{$forum_name}</a></strong><br />";


Zeile 397Zeile 397
			$table->construct_row();
}


			$table->construct_row();
}


		$table->output($lang->posts_awaiting_moderation);

		$table->output($lang->posts_awaiting_moderation, 1, "general tfixed");

		echo $all_options;
echo $pagination;

$buttons[] = $form->generate_submit_button($lang->perform_action);
$form->output_submit_wrapper($buttons);

		echo $all_options;
echo $pagination;

$buttons[] = $form->generate_submit_button($lang->perform_action);
$form->output_submit_wrapper($buttons);

		$form->end();

		$form->end();


echo '<script type="text/javascript">
$(".mass_ignore").on("click", function () {


echo '<script type="text/javascript">
$(".mass_ignore").on("click", function () {

Zeile 457Zeile 457
		$per_page = 15;
if($mybb->input['page'] > 0)
{

		$per_page = 15;
if($mybb->input['page'] > 0)
{

			$current_page = $mybb->get_input('page', 1);

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

			$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);

Zeile 474Zeile 474
		}

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

		}

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





		$page->add_breadcrumb_item($lang->attachments_awaiting_moderation);
$page->output_header($lang->attachments_awaiting_moderation);
$page->output_nav_tabs($sub_tabs, "attachments");

		$page->add_breadcrumb_item($lang->attachments_awaiting_moderation);
$page->output_header($lang->attachments_awaiting_moderation);
$page->output_nav_tabs($sub_tabs, "attachments");

Zeile 488Zeile 488
		$table->construct_header($lang->controls, array("class" => "align_center", "colspan" => 3));

$query = $db->query("

		$table->construct_header($lang->controls, array("class" => "align_center", "colspan" => 3));

$query = $db->query("

			SELECT a.*, p.subject AS postsubject, p.dateline, p.uid, u.username, t.tid, t.subject AS threadsubject

			SELECT a.*, p.subject AS postsubject, p.dateline, p.username AS postusername, p.uid, u.username, t.tid, t.subject AS threadsubject

			FROM  ".TABLE_PREFIX."attachments a
LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=a.pid)
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)

			FROM  ".TABLE_PREFIX."attachments a
LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=a.pid)
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)

Zeile 497Zeile 497
			ORDER BY a.dateuploaded DESC
LIMIT {$start}, {$per_page}
");

			ORDER BY a.dateuploaded DESC
LIMIT {$start}, {$per_page}
");





		while($attachment = $db->fetch_array($query))
{
if(!$attachment['dateuploaded']) $attachment['dateuploaded'] = $attachment['dateline'];

		while($attachment = $db->fetch_array($query))
{
if(!$attachment['dateuploaded']) $attachment['dateuploaded'] = $attachment['dateline'];

Zeile 510Zeile 510

$link = get_post_link($attachment['pid'], $attachment['tid']) . "#pid{$attachment['pid']}";
$thread_link = get_thread_link($attachment['tid']);


$link = get_post_link($attachment['pid'], $attachment['tid']) . "#pid{$attachment['pid']}";
$thread_link = get_thread_link($attachment['tid']);

			$profile_link = build_profile_link($attachment['username'], $attachment['uid'], "_blank");

















if(!$attachment['uid'])
{
if($attachment['postusername'] != "")
{
$profile_link = $attachment['postusername'];
}
else
{
$profile_link = htmlspecialchars_uni($lang->guest);
}
}
else
{
$profile_link = build_profile_link(htmlspecialchars_uni($attachment['username']), $attachment['uid'], "_blank");
}


$table->construct_cell("<a href=\"../attachment.php?aid={$attachment['aid']}\" target=\"_blank\">{$attachment['filename']}</a> ({$attachment['filesize']})<br /><small class=\"modqueue_meta\">{$lang->post} <a href=\"{$link}\" target=\"_blank\">{$attachment['postsubject']}</a></small>");
$table->construct_cell($profile_link, array("class" => "align_center"));


$table->construct_cell("<a href=\"../attachment.php?aid={$attachment['aid']}\" target=\"_blank\">{$attachment['filename']}</a> ({$attachment['filesize']})<br /><small class=\"modqueue_meta\">{$lang->post} <a href=\"{$link}\" target=\"_blank\">{$attachment['postsubject']}</a></small>");
$table->construct_cell($profile_link, array("class" => "align_center"));