added online users feature

This commit is contained in:
SJ
2013-07-24 22:14:05 +02:00
parent 920f4208ba
commit 93e9c7ce33
16 changed files with 159 additions and 1 deletions

View File

@ -18,6 +18,9 @@ class ControllerHealthWorker extends Controller {
$this->load->model('health/health');
$this->load->model('stat/counter');
if(ENABLE_SAAS == 1) {
$this->load->model('saas/customer');
}
$request = Registry::get('request');
@ -37,6 +40,9 @@ class ControllerHealthWorker extends Controller {
$this->data['health'][] = $this->model_health_health->checksmtp($smtp, $lang->data['text_error']);
}
if(ENABLE_SAAS == 1) {
$this->data['num_of_online_users'] = $this->model_saas_customer->count_online();
}
$this->data['processed_emails'] = $this->model_health_health->count_processed_emails();