\n

Select a report type from the left for a detailed look at site statistics

\n\n" . $this->RecentViews() . "\n\n\n\n" . $this->showAll(); } function RecentViews() { return Statistics::get_recent_views(); } function Trend() { return Statistics::trend_chart(array('PageView', 'Member', 'SiteTree'), 'day', 'mchart', 'Line', 'red'); } function BrowserPie() { return Statistics::browser_chart(); } function OSPie() { return Statistics::os_chart(); } function UACPie() { return Statistics::activity_chart(); } function UserTable() { return Statistics::user_record_table(); } function ViewTable() { return Statistics::get_views('all'); } function showAll() { return $this->BrowserPie() . $this->OSPie() . $this->UACPie() . $this->Trend() . $this->UserTable() . $this->ViewTable(); } public function viewcsv() { header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=viewreport.csv"); header("Pragma: no-cache"); header("Expires: 0"); echo Statistics::get_view_csv(); } public function usercsv() { header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=userreport.csv"); header("Pragma: no-cache"); header("Expires: 0"); echo Statistics::get_user_csv(); } } ?>