mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
a24661cd32
Signed-off-by: Janos SUTO <sj@acts.hu>
44 lines
1000 B
PHP
44 lines
1000 B
PHP
<?php
|
|
|
|
|
|
class ControllerStatStat extends Controller {
|
|
private $error = array();
|
|
|
|
public function index(){
|
|
|
|
$this->id = "content";
|
|
$this->template = "stat/stat.tpl";
|
|
$this->layout = "common/layout";
|
|
|
|
|
|
$request = Registry::get('request');
|
|
$db = Registry::get('db');
|
|
|
|
$this->load->model('user/user');
|
|
$this->load->model('stat/chart');
|
|
|
|
$this->document->title = $this->data['text_statistics'];
|
|
|
|
$this->data['timespan'] = @$this->request->get['timespan'];
|
|
$this->data['uid'] = @$this->request->get['uid'];
|
|
|
|
$this->data['admin_user'] = Registry::get('admin_user');
|
|
$this->data['readonly_admin'] = Registry::get('readonly_admin');
|
|
|
|
$this->data['username'] = Registry::get('username');
|
|
|
|
$timespan = @$this->request->get['timespan'];
|
|
|
|
$db->select_db($db->database);
|
|
|
|
$chart = new ModelStatChart();
|
|
|
|
$this->data['data'] = $chart->lineChartArchivedMessages($timespan);
|
|
|
|
|
|
$this->render();
|
|
}
|
|
|
|
|
|
}
|