Vergleich admin/modules/tools/recount_rebuild.php - 1.8.1 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 25Zeile 25
	$query = $db->simple_select("forums", "COUNT(*) as num_forums");
$num_forums = $db->fetch_field($query, 'num_forums');


	$query = $db->simple_select("forums", "COUNT(*) as num_forums");
$num_forums = $db->fetch_field($query, 'num_forums');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['forumcounters'];

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

	if($per_page <= 0)
{
$per_page = 50;

	if($per_page <= 0)
{
$per_page = 50;

Zeile 52Zeile 52
	$query = $db->simple_select("threads", "COUNT(*) as num_threads");
$num_threads = $db->fetch_field($query, 'num_threads');


	$query = $db->simple_select("threads", "COUNT(*) as num_threads");
$num_threads = $db->fetch_field($query, 'num_threads');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['threadcounters'];

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

	if($per_page <= 0)
{
$per_page = 500;

	if($per_page <= 0)
{
$per_page = 500;

Zeile 77Zeile 77
	$query = $db->simple_select("polls", "COUNT(*) as num_polls");
$num_polls = $db->fetch_field($query, 'num_polls');


	$query = $db->simple_select("polls", "COUNT(*) as num_polls");
$num_polls = $db->fetch_field($query, 'num_polls');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['pollcounters'];

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

	if($per_page <= 0)
{
$per_page = 500;

	if($per_page <= 0)
{
$per_page = 500;

Zeile 102Zeile 102
	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['userposts'];

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

	if($per_page <= 0)
{
$per_page = 500;

	if($per_page <= 0)
{
$per_page = 500;

Zeile 153Zeile 153
	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['userthreads'];

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

	if($per_page <= 0)
{
$per_page = 500;

	if($per_page <= 0)
{
$per_page = 500;

Zeile 203Zeile 203
	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['reputation'];

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

	if($per_page <= 0)
{
$per_page = 500;

	if($per_page <= 0)
{
$per_page = 500;

Zeile 235Zeile 235
	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['warning'];

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

	if($per_page <= 0)
{
$per_page = 500;

	if($per_page <= 0)
{
$per_page = 500;

Zeile 267Zeile 267
	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['privatemessages'];

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

	if($per_page <= 0)
{
$per_page = 500;

	if($per_page <= 0)
{
$per_page = 500;

Zeile 294Zeile 294
	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$query = $db->simple_select("users", "COUNT(uid) as num_users");
$num_users = $db->fetch_field($query, 'num_users');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['referral'];

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

	$start = ($page-1) * $per_page;
$end = $start + $per_page;


	$start = ($page-1) * $per_page;
$end = $start + $per_page;


Zeile 322Zeile 322
	$query = $db->simple_select("threads", "COUNT(*) as num_threads");
$num_threads = $db->fetch_field($query, 'num_threads');


	$query = $db->simple_select("threads", "COUNT(*) as num_threads");
$num_threads = $db->fetch_field($query, 'num_threads');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['threadrating'];

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

	if($per_page <= 0)
{
$per_page = 500;

	if($per_page <= 0)
{
$per_page = 500;

Zeile 354Zeile 354
	$query = $db->simple_select("attachments", "COUNT(aid) as num_attachments");
$num_attachments = $db->fetch_field($query, 'num_attachments');


	$query = $db->simple_select("attachments", "COUNT(aid) as num_attachments");
$num_attachments = $db->fetch_field($query, 'num_attachments');


	$page = $mybb->get_input('page', 1);
$per_page = (int)$mybb->input['attachmentthumbs'];

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

	if($per_page <= 0)
{
$per_page = 20;

	if($per_page <= 0)
{
$per_page = 20;

Zeile 426Zeile 426
	{
require_once MYBB_ROOT."inc/functions_rebuild.php";


	{
require_once MYBB_ROOT."inc/functions_rebuild.php";


		if(!isset($mybb->input['page']) || $mybb->get_input('page', 1) < 1)

		if(!isset($mybb->input['page']) || $mybb->get_input('page', MyBB::INPUT_INT) < 1)

		{
$mybb->input['page'] = 1;
}

		{
$mybb->input['page'] = 1;
}

Zeile 440Zeile 440
				// Log admin action
log_admin_action("forum");
}

				// Log admin action
log_admin_action("forum");
}

			if(!(int)$mybb->input['forumcounters'])

			if(!$mybb->get_input('forumcounters', MyBB::INPUT_INT))

			{
$mybb->input['forumcounters'] = 50;
}

			{
$mybb->input['forumcounters'] = 50;
}

Zeile 456Zeile 456
				// Log admin action
log_admin_action("thread");
}

				// Log admin action
log_admin_action("thread");
}

			if(!(int)$mybb->input['threadcounters'])

			if(!$mybb->get_input('threadcounters', MyBB::INPUT_INT))

			{
$mybb->input['threadcounters'] = 500;
}

			{
$mybb->input['threadcounters'] = 500;
}

Zeile 472Zeile 472
				// Log admin action
log_admin_action("userposts");
}

				// Log admin action
log_admin_action("userposts");
}

			if(!(int)$mybb->input['userposts'])

			if(!$mybb->get_input('userposts', MyBB::INPUT_INT))

			{
$mybb->input['userposts'] = 500;
}

			{
$mybb->input['userposts'] = 500;
}

Zeile 488Zeile 488
				// Log admin action
log_admin_action("userthreads");
}

				// Log admin action
log_admin_action("userthreads");
}

			if(!(int)$mybb->input['userthreads'])

			if(!$mybb->get_input('userthreads', MyBB::INPUT_INT))

			{
$mybb->input['userthreads'] = 500;
}

			{
$mybb->input['userthreads'] = 500;
}

Zeile 505Zeile 505
				log_admin_action("attachmentthumbs");
}


				log_admin_action("attachmentthumbs");
}


			if(!(int)$mybb->input['attachmentthumbs'])

			if(!$mybb->get_input('attachmentthumbs', MyBB::INPUT_INT))

			{
$mybb->input['attachmentthumbs'] = 500;
}

			{
$mybb->input['attachmentthumbs'] = 500;
}

Zeile 522Zeile 522
				log_admin_action("reputation");
}


				log_admin_action("reputation");
}


			if(!(int)$mybb->input['reputation'])

			if(!$mybb->get_input('reputation', MyBB::INPUT_INT))

			{
$mybb->input['reputation'] = 500;
}

			{
$mybb->input['reputation'] = 500;
}

Zeile 539Zeile 539
				log_admin_action("warning");
}


				log_admin_action("warning");
}


			if(!(int)$mybb->input['warning'])

			if(!$mybb->get_input('warning', MyBB::INPUT_INT))

			{
$mybb->input['warning'] = 500;
}

			{
$mybb->input['warning'] = 500;
}

Zeile 556Zeile 556
				log_admin_action("privatemessages");
}


				log_admin_action("privatemessages");
}


			if(!(int)$mybb->input['privatemessages'])

			if(!$mybb->get_input('privatemessages', MyBB::INPUT_INT))

			{
$mybb->input['privatemessages'] = 500;
}

			{
$mybb->input['privatemessages'] = 500;
}

Zeile 573Zeile 573
				log_admin_action("referral");
}


				log_admin_action("referral");
}


			if(!(int)$mybb->input['referral'])

			if(!$mybb->get_input('referral', MyBB::INPUT_INT))

			{
$mybb->input['referral'] = 500;
}

			{
$mybb->input['referral'] = 500;
}

Zeile 590Zeile 590
				log_admin_action("threadrating");
}


				log_admin_action("threadrating");
}


			if(!(int)$mybb->input['threadrating'])

			if(!$mybb->get_input('threadrating', MyBB::INPUT_INT))

			{
$mybb->input['threadrating'] = 500;
}

			{
$mybb->input['threadrating'] = 500;
}

Zeile 607Zeile 607
				log_admin_action("poll");
}


				log_admin_action("poll");
}


			if(!(int)$mybb->input['pollcounters'])

			if(!$mybb->get_input('pollcounters', MyBB::INPUT_INT))

			{
$mybb->input['pollcounters'] = 500;
}

			{
$mybb->input['pollcounters'] = 500;
}

Zeile 646Zeile 646
	$form_container->output_row_header("&nbsp;");

$form_container->output_cell("<label>{$lang->rebuild_forum_counters}</label><div class=\"description\">{$lang->rebuild_forum_counters_desc}</div>");

	$form_container->output_row_header("&nbsp;");

$form_container->output_cell("<label>{$lang->rebuild_forum_counters}</label><div class=\"description\">{$lang->rebuild_forum_counters_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("forumcounters", 50, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("forumcounters", 50, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_rebuildforumcounters")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->rebuild_thread_counters}</label><div class=\"description\">{$lang->rebuild_thread_counters_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_rebuildforumcounters")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->rebuild_thread_counters}</label><div class=\"description\">{$lang->rebuild_thread_counters_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("threadcounters", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("threadcounters", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_rebuildthreadcounters")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->rebuild_poll_counters}</label><div class=\"description\">{$lang->rebuild_poll_counters_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_rebuildthreadcounters")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->rebuild_poll_counters}</label><div class=\"description\">{$lang->rebuild_poll_counters_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("pollcounters", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("pollcounters", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_rebuildpollcounters")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_user_posts}</label><div class=\"description\">{$lang->recount_user_posts_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_rebuildpollcounters")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_user_posts}</label><div class=\"description\">{$lang->recount_user_posts_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("userposts", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("userposts", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountuserposts")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_user_threads}</label><div class=\"description\">{$lang->recount_user_threads_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountuserposts")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_user_threads}</label><div class=\"description\">{$lang->recount_user_threads_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("userthreads", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("userthreads", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountuserthreads")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->rebuild_attachment_thumbs}</label><div class=\"description\">{$lang->rebuild_attachment_thumbs_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountuserthreads")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->rebuild_attachment_thumbs}</label><div class=\"description\">{$lang->rebuild_attachment_thumbs_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("attachmentthumbs", 20, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("attachmentthumbs", 20, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_rebuildattachmentthumbs")));
$form_container->construct_row();


	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_rebuildattachmentthumbs")));
$form_container->construct_row();


Zeile 681Zeile 681
	$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_reputation}</label><div class=\"description\">{$lang->recount_reputation_desc}</div>");

	$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_reputation}</label><div class=\"description\">{$lang->recount_reputation_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("reputation", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("reputation", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountreputation")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_warning}</label><div class=\"description\">{$lang->recount_warning_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountreputation")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_warning}</label><div class=\"description\">{$lang->recount_warning_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("warning", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("warning", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountwarning")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_private_messages}</label><div class=\"description\">{$lang->recount_private_messages_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountwarning")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_private_messages}</label><div class=\"description\">{$lang->recount_private_messages_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("privatemessages", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("privatemessages", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountprivatemessages")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_referrals}</label><div class=\"description\">{$lang->recount_referrals_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountprivatemessages")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_referrals}</label><div class=\"description\">{$lang->recount_referrals_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("referral", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("referral", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountreferral")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_thread_ratings}</label><div class=\"description\">{$lang->recount_thread_ratings_desc}</div>");

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountreferral")));
$form_container->construct_row();

$form_container->output_cell("<label>{$lang->recount_thread_ratings}</label><div class=\"description\">{$lang->recount_thread_ratings_desc}</div>");

	$form_container->output_cell($form->generate_numeric_field("threadrating", 500, array('style' => 'width: 150px;')));

	$form_container->output_cell($form->generate_numeric_field("threadrating", 500, array('style' => 'width: 150px;', 'min' => 0)));

	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountthreadrating")));
$form_container->construct_row();


	$form_container->output_cell($form->generate_submit_button($lang->go, array("name" => "do_recountthreadrating")));
$form_container->construct_row();