Вход Регистрация
Файл: upload-2031-rs1/admin/controller/common/profile.php
Строк: 30
<?php
class ControllerCommonProfile extends Controller {
    public function 
index() {
        
$this->load->language('common/menu');

        
$this->load->model('user/user');

        
$this->load->model('tool/image');

        
$user_info $this->model_user_user->getUser($this->user->getId());

        if (
$user_info) {
            
$data['firstname'] = $user_info['firstname'];
            
$data['lastname'] = $user_info['lastname'];
            
$data['username'] = $user_info['username'];

            
$data['user_group'] = $user_info['user_group'] ;

            if (
is_file(DIR_IMAGE $user_info['image'])) {
                
$data['image'] = $this->model_tool_image->resize($user_info['image'], 4545);
            } else {
                
$data['image'] = $this->model_tool_image->resize('no_image.png'4545);
            }
        } else {
            
$data['username'] = '';
            
$data['image'] = '';
        }

        return 
$this->load->view('common/profile.tpl'$data);
    }
}
Онлайн: 2
Реклама