function chat_soporte() { if (!$this->tank_auth->is_logged_in()) { // logged in redirect('/auth'); } $var = $_GET['id']; if (!($_COOKIE['red1'] == "2")) { header("Refresh:0;url='/ov/cgeneral/chat_soporte?id=red_soporte'"); } include_once "cometchat/model_soporte_chat.php"; $chat_r = new Red_chat(); $chat_r->red_soporte(); $id = $this->tank_auth->get_user_id(); $style = $this->general->get_style($id); $this->template->set("style", $style); $this->template->set_theme('desktop'); $this->template->set_layout('website/main'); $this->template->set_partial('header', 'website/ov/header'); $this->template->set_partial('footer', 'website/ov/footer'); $this->template->build('website/ov/general/chat_red'); }