Vergleich admin/modules/user/group_promotions.php - 1.8.16 - 1.8.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 634Zeile 634
if($mybb->input['action'] == "logs")
{
$plugins->run_hooks("admin_user_group_promotions_logs");

if($mybb->input['action'] == "logs")
{
$plugins->run_hooks("admin_user_group_promotions_logs");

 

$query = $db->simple_select("promotionlogs", "COUNT(plid) as promotionlogs");
$total_rows = $db->fetch_field($query, "promotionlogs");


if($mybb->get_input('page', MyBB::INPUT_INT) > 1)


if($mybb->get_input('page', MyBB::INPUT_INT) > 1)

	{

	{

		$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);
$start = ($mybb->input['page']*20)-20;

		$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);
$start = ($mybb->input['page']*20)-20;

 
		$pages = ceil($total_rows / 20);
if($mybb->input['page'] > $pages)
{
$mybb->input['page'] = 1;
$start = 0;
}

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

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

	}

	}


$page->add_breadcrumb_item($lang->promotion_logs);
$page->output_header($lang->user_group_promotions." - ".$lang->promotion_logs);


$page->add_breadcrumb_item($lang->promotion_logs);
$page->output_header($lang->user_group_promotions." - ".$lang->promotion_logs);

Zeile 705Zeile 714
	}

$table->output($lang->promotion_logs);

	}

$table->output($lang->promotion_logs);


$query = $db->simple_select("promotionlogs", "COUNT(plid) as promotionlogs");
$total_rows = $db->fetch_field($query, "promotionlogs");

 

echo "<br />".draw_admin_pagination($mybb->input['page'], "20", $total_rows, "index.php?module=user-group_promotions&amp;action=logs&amp;page={page}");



echo "<br />".draw_admin_pagination($mybb->input['page'], "20", $total_rows, "index.php?module=user-group_promotions&amp;action=logs&amp;page={page}");