Vergleich admin/modules/tools/recount_rebuild.php - 1.6.9 - 1.6.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 28Zeile 28
	
$page = intval($mybb->input['page']);
$per_page = intval($mybb->input['forumcounters']);

	
$page = intval($mybb->input['page']);
$per_page = intval($mybb->input['forumcounters']);

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

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


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


Zeile 51Zeile 55
	
$page = intval($mybb->input['page']);
$per_page = intval($mybb->input['threadcounters']);

	
$page = intval($mybb->input['page']);
$per_page = intval($mybb->input['threadcounters']);

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

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


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


Zeile 61Zeile 69
	}

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

}


}


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

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

	

	

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

$page = intval($mybb->input['page']);
$per_page = intval($mybb->input['userposts']);

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

$page = intval($mybb->input['page']);
$per_page = intval($mybb->input['userposts']);

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

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


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


Zeile 119Zeile 131
	
$page = intval($mybb->input['page']);
$per_page = intval($mybb->input['attachmentthumbs']);

	
$page = intval($mybb->input['page']);
$per_page = intval($mybb->input['attachmentthumbs']);

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

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


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