data['title'] = $this->config->title; $this->data['description'] = $this->config->description; $this->data['keywords'] = $this->config->keywords; $this->data['logo'] = $this->config->logo; $this->data['url'] = $this->config->url; $this->data['public'] = $this->config->public; $this->data['oplata_status'] = $this->config->oplata_status; $this->data['oplatahostinpl'] = $this->config->oplatahostinpl; $this->data['status_hostinpl'] = $this->config->status_hostinpl; if($this->user->isLogged()) { $this->data['logged'] = true; $this->data['user_email'] = $this->user->getEmail(); $this->data['user_firstname'] = $this->user->getFirstname(); $this->data['user_lastname'] = $this->user->getLastname(); $this->data['user_balance'] = $this->user->getBalance(); $this->data['user_access_level'] = $this->user->getAccessLevel(); $this->data['user_img'] = $this->user->getUser_img(); } else { $this->data['logged'] = false; $this->data['user_access_level'] = 0; } $logged = $this->data['logged']; $this->data['logged'] = $logged; if(isset($this->session->data['error'])) { $this->data['error'] = $this->session->data['error']; unset($this->session->data['error']); } if(isset($this->session->data['warning'])) { $this->data['warning'] = $this->session->data['warning']; unset($this->session->data['warning']); } if(isset($this->session->data['success'])) { $this->data['success'] = $this->session->data['success']; unset($this->session->data['success']); } $this->load->model('tickets'); $this->load->model('ticketsMessages'); $this->load->model('users'); $userid = $this->user->getId(); $sort = array( 'ticket_status' => 'DESC', 'ticket_date_add' => 'DESC' ); $tickets = $this->ticketsModel->getTickets(array('user_id' => (int)$userid), array(), $sort, array()); $this->data['tickets'] = $tickets; $visitors = $this->usersModel->getAuthLog($userid); $this->data['visitors'] = $visitors; $offline = $this->config->offline; ?>