Вход Регистрация
Файл: system/controllers/messages/actions/index.php
Строк: 22
<?php

class actionMessagesIndex extends cmsAction {

    public function 
run() {

        if (empty(
$this->options['is_enable_pm'])) {
            return 
cmsCore::error404();
        }

        
$is_allowed $this->cms_user->isInGroups($this->options['groups_allowed']);

        
$contacts $this->model->getContacts($this->cms_user->id);

        
$this->cms_template->render('index', [
            
'is_modal'     => (int) $this->request->isAjax(),
            
'user'         => $this->cms_user,
            
'is_allowed'   => $is_allowed,
            
'refresh_time' => (!empty($this->options['refresh_time']) ? ($this->options['refresh_time'] * 1000) : 15000),
            
'contacts'     => $contacts
        
]);
    }

}
Онлайн: 1
Реклама