Vergleich admin/modules/tools/recount_rebuild.php - 1.8.0 - 1.8.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 18Zeile 18

$plugins->run_hooks("admin_tools_recount_rebuild");



$plugins->run_hooks("admin_tools_recount_rebuild");


 
/**
* Rebuild forum counters
*/

function acp_rebuild_forum_counters()
{
global $db, $mybb, $lang;

function acp_rebuild_forum_counters()
{
global $db, $mybb, $lang;

Zeile 25Zeile 28
	$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 45Zeile 48
	check_proceed($num_forums, $end, ++$page, $per_page, "forumcounters", "do_rebuildforumcounters", $lang->success_rebuilt_forum_counters);
}


	check_proceed($num_forums, $end, ++$page, $per_page, "forumcounters", "do_rebuildforumcounters", $lang->success_rebuilt_forum_counters);
}


 
/**
* Rebuild thread counters
*/

function acp_rebuild_thread_counters()
{
global $db, $mybb, $lang;

function acp_rebuild_thread_counters()
{
global $db, $mybb, $lang;

Zeile 52Zeile 58
	$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 70Zeile 76
	check_proceed($num_threads, $end, ++$page, $per_page, "threadcounters", "do_rebuildthreadcounters", $lang->success_rebuilt_thread_counters);
}


	check_proceed($num_threads, $end, ++$page, $per_page, "threadcounters", "do_rebuildthreadcounters", $lang->success_rebuilt_thread_counters);
}


 
/**
* Rebuild poll counters
*/

function acp_rebuild_poll_counters()
{
global $db, $mybb, $lang;

function acp_rebuild_poll_counters()
{
global $db, $mybb, $lang;

Zeile 77Zeile 86
	$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 95Zeile 104
	check_proceed($num_polls, $end, ++$page, $per_page, "pollcounters", "do_rebuildpollcounters", $lang->success_rebuilt_poll_counters);
}


	check_proceed($num_polls, $end, ++$page, $per_page, "pollcounters", "do_rebuildpollcounters", $lang->success_rebuilt_poll_counters);
}


 
/**
* Recount user posts
*/

function acp_recount_user_posts()
{
global $db, $mybb, $lang;

function acp_recount_user_posts()
{
global $db, $mybb, $lang;

Zeile 102Zeile 114
	$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 146Zeile 158
	check_proceed($num_users, $end, ++$page, $per_page, "userposts", "do_recountuserposts", $lang->success_rebuilt_user_post_counters);
}


	check_proceed($num_users, $end, ++$page, $per_page, "userposts", "do_recountuserposts", $lang->success_rebuilt_user_post_counters);
}


 
/**
* Recount user threads
*/

function acp_recount_user_threads()
{
global $db, $mybb, $lang;

function acp_recount_user_threads()
{
global $db, $mybb, $lang;

Zeile 153Zeile 168
	$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 186Zeile 201
		$query2 = $db->query("
SELECT COUNT(t.tid) AS thread_count
FROM ".TABLE_PREFIX."threads t

		$query2 = $db->query("
SELECT COUNT(t.tid) AS thread_count
FROM ".TABLE_PREFIX."threads t

			WHERE t.uid='{$user['uid']}' AND t.visible > 0{$fids}

			WHERE t.uid='{$user['uid']}' AND t.visible > 0 AND t.closed NOT LIKE 'moved|%'{$fids}

		");
$num_threads = $db->fetch_field($query2, "thread_count");


		");
$num_threads = $db->fetch_field($query2, "thread_count");


Zeile 196Zeile 211
	check_proceed($num_users, $end, ++$page, $per_page, "userthreads", "do_recountuserthreads", $lang->success_rebuilt_user_thread_counters);
}


	check_proceed($num_users, $end, ++$page, $per_page, "userthreads", "do_recountuserthreads", $lang->success_rebuilt_user_thread_counters);
}


 
/**
* Recount reputation values
*/

function acp_recount_reputation()
{
global $db, $mybb, $lang;

function acp_recount_reputation()
{
global $db, $mybb, $lang;

Zeile 203Zeile 221
	$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 228Zeile 246
	check_proceed($num_users, $end, ++$page, $per_page, "reputation", "do_recountreputation", $lang->success_rebuilt_reputation);
}


	check_proceed($num_users, $end, ++$page, $per_page, "reputation", "do_recountreputation", $lang->success_rebuilt_reputation);
}


 
/**
* Recount warnings for users
*/

function acp_recount_warning()
{
global $db, $mybb, $lang;

function acp_recount_warning()
{
global $db, $mybb, $lang;

Zeile 235Zeile 256
	$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 260Zeile 281
	check_proceed($num_users, $end, ++$page, $per_page, "warning", "do_recountwarning", $lang->success_rebuilt_warning);
}


	check_proceed($num_users, $end, ++$page, $per_page, "warning", "do_recountwarning", $lang->success_rebuilt_warning);
}


 
/**
* Recount private messages (total and unread) for users
*/

function acp_recount_private_messages()
{
global $db, $mybb, $lang;

function acp_recount_private_messages()
{
global $db, $mybb, $lang;

Zeile 267Zeile 291
	$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 287Zeile 311
	check_proceed($num_users, $end, ++$page, $per_page, "privatemessages", "do_recountprivatemessages", $lang->success_rebuilt_private_messages);
}


	check_proceed($num_users, $end, ++$page, $per_page, "privatemessages", "do_recountprivatemessages", $lang->success_rebuilt_private_messages);
}


 
/**
* Recount referrals for users
*/

function acp_recount_referrals()
{
global $db, $mybb, $lang;

function acp_recount_referrals()
{
global $db, $mybb, $lang;

Zeile 294Zeile 321
	$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 315Zeile 342
	check_proceed($num_users, $end, ++$page, $per_page, "referral", "do_recountreferral", $lang->success_rebuilt_referral);
}


	check_proceed($num_users, $end, ++$page, $per_page, "referral", "do_recountreferral", $lang->success_rebuilt_referral);
}


 
/**
* Recount thread ratings
*/

function acp_recount_thread_ratings()
{
global $db, $mybb, $lang;

function acp_recount_thread_ratings()
{
global $db, $mybb, $lang;

Zeile 322Zeile 352
	$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 347Zeile 377
	check_proceed($num_threads, $end, ++$page, $per_page, "threadrating", "do_recountthreadrating", $lang->success_rebuilt_thread_ratings);
}


	check_proceed($num_threads, $end, ++$page, $per_page, "threadrating", "do_recountthreadrating", $lang->success_rebuilt_thread_ratings);
}


 
/**
* Rebuild thumbnails for attachments
*/

function acp_rebuild_attachment_thumbnails()
{
global $db, $mybb, $lang;

function acp_rebuild_attachment_thumbnails()
{
global $db, $mybb, $lang;

Zeile 354Zeile 387
	$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;
}
$start = ($page-1) * $per_page;
$end = $start + $per_page;

	if($per_page <= 0)
{
$per_page = 20;
}
$start = ($page-1) * $per_page;
$end = $start + $per_page;

 

$uploadspath = $mybb->settings['uploadspath'];
if(my_substr($uploadspath, 0, 1) == '.')
{
$uploadspath = MYBB_ROOT . $mybb->settings['uploadspath'];
}


require_once MYBB_ROOT."inc/functions_image.php";



require_once MYBB_ROOT."inc/functions_image.php";


Zeile 372Zeile 411
		if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe")
{
$thumbname = str_replace(".attach", "_thumb.$ext", $attachment['attachname']);

		if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe")
{
$thumbname = str_replace(".attach", "_thumb.$ext", $attachment['attachname']);

			$thumbnail = generate_thumbnail(MYBB_ROOT."uploads/".$attachment['attachname'], MYBB_ROOT."uploads/", $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);

			$thumbnail = generate_thumbnail($uploadspath."/".$attachment['attachname'], $uploadspath, $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);

			if($thumbnail['code'] == 4)
{
$thumbnail['filename'] = "SMALL";

			if($thumbnail['code'] == 4)
{
$thumbnail['filename'] = "SMALL";

Zeile 384Zeile 423
	check_proceed($num_attachments, $end, ++$page, $per_page, "attachmentthumbs", "do_rebuildattachmentthumbs", $lang->success_rebuilt_attachment_thumbnails);
}


	check_proceed($num_attachments, $end, ++$page, $per_page, "attachmentthumbs", "do_rebuildattachmentthumbs", $lang->success_rebuilt_attachment_thumbnails);
}


 
/**
* @param int $current
* @param int $finish
* @param int $next_page
* @param int $per_page
* @param string $name
* @param string $name2
* @param string $message
*/

function check_proceed($current, $finish, $next_page, $per_page, $name, $name2, $message)
{

function check_proceed($current, $finish, $next_page, $per_page, $name, $name2, $message)
{

	global $page, $lang, $plugins;

	global $page, $lang;


if($finish >= $current)
{


if($finish >= $current)
{

Zeile 425Zeile 473
	if($mybb->request_method == "post")
{
require_once MYBB_ROOT."inc/functions_rebuild.php";

	if($mybb->request_method == "post")
{
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 488
				// 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 504
				// 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 520
				// 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 536
				// 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 553
				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 520Zeile 568
			{
// Log admin action
log_admin_action("reputation");

			{
// Log admin action
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 533Zeile 581
		{
$plugins->run_hooks("admin_tools_recount_recount_warning");


		{
$plugins->run_hooks("admin_tools_recount_recount_warning");


			if($mybb->input['page'] == 1)
{
// Log admin action
log_admin_action("warning");
}

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

			if($mybb->input['page'] == 1)
{
// Log admin action
log_admin_action("warning");
}

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

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

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





			acp_recount_warning();
}
elseif(isset($mybb->input['do_recountprivatemessages']))

			acp_recount_warning();
}
elseif(isset($mybb->input['do_recountprivatemessages']))

Zeile 554Zeile 602
			{
// Log admin action
log_admin_action("privatemessages");

			{
// Log admin action
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 566Zeile 614
		elseif(isset($mybb->input['do_recountreferral']))
{
$plugins->run_hooks("admin_tools_recount_recount_referral");

		elseif(isset($mybb->input['do_recountreferral']))
{
$plugins->run_hooks("admin_tools_recount_recount_referral");


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


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

				// Log admin action
log_admin_action("referral");

				// Log admin action
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 584Zeile 632
		{
$plugins->run_hooks("admin_tools_recount_recount_thread_ratings");


		{
$plugins->run_hooks("admin_tools_recount_recount_thread_ratings");


			if($mybb->input['page'] == 1)
{
// Log admin action
log_admin_action("threadrating");
}

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

			if($mybb->input['page'] == 1)
{
// Log admin action
log_admin_action("threadrating");
}

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

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

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

Zeile 602Zeile 650
			$plugins->run_hooks("admin_tools_recount_rebuild_poll_counters");

if($mybb->input['page'] == 1)

			$plugins->run_hooks("admin_tools_recount_rebuild_poll_counters");

if($mybb->input['page'] == 1)

			{

			{

				// Log admin action
log_admin_action("poll");

				// Log admin action
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;
}





			acp_rebuild_poll_counters();
}
else
{

			acp_rebuild_poll_counters();
}
else
{

			$cache->update_stats();


 
			$plugins->run_hooks("admin_tools_recount_rebuild_stats");

			$plugins->run_hooks("admin_tools_recount_rebuild_stats");

 

$cache->update_stats();


// Log admin action
log_admin_action("stats");


// Log admin action
log_admin_action("stats");

Zeile 646Zeile 694
	$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_text_box("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_text_box("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_text_box("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_text_box("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_text_box("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_text_box("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 729
	$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_text_box("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_text_box("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_text_box("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_text_box("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_text_box("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();