Vergleich admin/modules/tools/statistics.php - 1.8.3 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 17Zeile 17
if($mybb->input['action'] == "do_graph")
{
$range = array(

if($mybb->input['action'] == "do_graph")
{
$range = array(

		'start' => (int)$mybb->input['start'],
'end' => (int)$mybb->input['end']

		'start' => $mybb->get_input('start', MyBB::INPUT_INT),
'end' => $mybb->get_input('end', MyBB::INPUT_INT)

	);
create_graph($mybb->input['type'], $range);
die;

	);
create_graph($mybb->input['type'], $range);
die;

Zeile 50Zeile 50
	// Do we have date range criteria?
if($mybb->input['from_year'])
{

	// Do we have date range criteria?
if($mybb->input['from_year'])
{

		$start_dateline = mktime(0, 0, 0, (int)$mybb->input['from_month'], (int)$mybb->input['from_day'], (int)$mybb->input['from_year']);
$end_dateline = mktime(23, 59, 59, (int)$mybb->input['to_month'], (int)$mybb->input['to_day'], (int)$mybb->input['to_year']);

		$start_dateline = mktime(0, 0, 0, $mybb->get_input('from_month', MyBB::INPUT_INT), $mybb->get_input('from_day', MyBB::INPUT_INT), $mybb->get_input('from_year', MyBB::INPUT_INT));
$end_dateline = mktime(23, 59, 59, $mybb->get_input('to_month', MyBB::INPUT_INT), $mybb->get_input('to_day', MyBB::INPUT_INT), $mybb->get_input('to_year', MyBB::INPUT_INT));

		$range = "&start={$start_dateline}&end={$end_dateline}";
}


		$range = "&start={$start_dateline}&end={$end_dateline}";
}


Zeile 71Zeile 71

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


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

		$mybb->input['page'] = $mybb->get_input('page', 1);

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

		$start = ($mybb->input['page']*$per_page)-$per_page;
}
else

		$start = ($mybb->input['page']*$per_page)-$per_page;
}
else

Zeile 150Zeile 150
	}
$table->output($lang->overall_statistics);


	}
$table->output($lang->overall_statistics);


	$url_range = "&from_month=".(int)$mybb->input['from_month']."&from_day=".(int)$mybb->input['from_day']."&from_year=".(int)$mybb->input['from_year'];
$url_range .= "&to_month=".(int)$mybb->input['to_month']."&to_day=".(int)$mybb->input['to_day']."&to_year=".(int)$mybb->input['to_year'];

	$url_range = "&from_month=".$mybb->get_input('from_month', MyBB::INPUT_INT)."&from_day=".$mybb->get_input('from_day', MyBB::INPUT_INT)."&from_year=".$mybb->get_input('from_year', MyBB::INPUT_INT);
$url_range .= "&to_month=".$mybb->get_input('to_month', MyBB::INPUT_INT)."&to_day=".$mybb->get_input('to_day', MyBB::INPUT_INT)."&to_year=".$mybb->get_input('to_year', MyBB::INPUT_INT);


echo draw_admin_pagination($mybb->input['page'], $per_page, $total_rows, "index.php?module=tools-statistics{$url_range}&page={page}");



echo draw_admin_pagination($mybb->input['page'], $per_page, $total_rows, "index.php?module=tools-statistics{$url_range}&page={page}");