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

  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 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 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 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 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 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 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 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 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 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 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 384Zeile 417
	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)
{