| Server IP : 103.161.17.216 / Your IP : 216.73.216.1 Web Server : nginx/1.18.0 System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/app.houseland.info/application/libraries/ |
Upload File : |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class App_clients_area_constructor
{
private $ci;
public function __construct()
{
$this->ci = &get_instance();
$this->ci->load->library('form_validation');
$this->ci->form_validation->set_error_delimiters('<p class="text-danger alert-validation">', '</p>');
$this->ci->form_validation->set_message('required', _l('form_validation_required'));
$this->ci->form_validation->set_message('valid_email', _l('form_validation_valid_email'));
$this->ci->form_validation->set_message('matches', _l('form_validation_matches'));
$this->ci->form_validation->set_message('is_unique', _l('form_validation_is_unique'));
$this->ci->load->model('tickets_model');
$this->ci->load->model('departments_model');
$this->ci->load->model('currencies_model');
$this->ci->load->model('invoices_model');
$this->ci->load->model('estimates_model');
$this->ci->load->model('proposals_model');
$this->ci->load->model('projects_model');
$this->ci->load->model('announcements_model');
$this->ci->load->model('contracts_model');
$this->ci->load->model('knowledge_base_model');
$vars = [];
if (is_client_logged_in()) {
$contact = $this->ci->clients_model->get_contact(get_contact_user_id());
$GLOBALS['contact'] = $contact;
if (!$contact || $contact->active == 0) {
$this->ci->authentication_model->logout(true);
redirect(site_url());
}
$vars['total_undismissed_announcements'] = $this->ci->announcements_model->get_total_undismissed_announcements();
$vars['client'] = $this->ci->clients_model->get($contact->userid);
$vars['contact'] = $contact;
}
init_customers_area_assets();
hooks()->do_action('clients_init');
$vars['departments'] = $this->ci->departments_model->get(false, true);
$vars['priorities'] = $this->ci->tickets_model->get_priority();
$vars['ticket_statuses'] = $this->ci->tickets_model->get_ticket_status();
$vars['currencies'] = $this->ci->currencies_model->get();
$vars['menu'] = $this->ci->app_menu->get_theme_items();
$vars['isRTL'] = (is_rtl(true) ? 'true' : 'false');
if (get_option('services') == 1) {
$vars['services'] = $this->ci->tickets_model->get_service();
}
$vars = hooks()->apply_filters('customers_area_autoloaded_vars', $vars);
$this->ci->load->vars($vars);
}
}