Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.48 kb
<?php
/**
* Viewing a summary of statistics by month
* @author Daniel15 <daniel at dan.cx>
*/
require __DIR__ . '/includes/core.php';
// Querystring parameters
$year = !empty($_GET['year']) ? (int) $_GET['year'] : date('Y');
$month = !empty($_GET['month']) ? (int) $_GET['month'] : date('m');
$start_date = mktime(0, 0, 0, $month, 1, $year);
$data = Data_Summary::month($start_date);
View::factory('month')
->set('date', $start_date)
->set('data', $data)
->render();
?>
Jump to Line
Something went wrong with that request. Please try again.