Zeile 18 | Zeile 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 45 | Zeile 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 70 | Zeile 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 95 | Zeile 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 146 | Zeile 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 196 | Zeile 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 228 | Zeile 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 260 | Zeile 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 287 | Zeile 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 315 | Zeile 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 347 | Zeile 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 384 | Zeile 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) {
|