public function userstatAction() { $model = new AdminModel(); $this->view->count = $model->countUsers(); $this->view->count24h = $model->countUsers("`dateLast` > '" . (time() - 24 * 3600) . "'"); $this->view->list = $model->getUsersOnline(); $this->view->title = Lang::translate('USERSTAT_TITLE'); }