function chat_red() { $red = $_GET['id_red']; if (!$this->tank_auth->is_logged_in()) { // logged in redirect('/auth'); } if (!($_COOKIE['red1'] == "1")) { header("Refresh:0;url='/ov/cgeneral/chat_red?id_red=" . $red . "'"); } include_once "cometchat/model_soporte_chat.php"; $chat_r = new Red_chat(); $chat_r->red_a_red(); $id = $this->tank_auth->get_user_id(); $style = $this->general->get_style($id); $this->template->set("style", $style); $consultar_asignacion_red = $this->model_soporte_tecnico->consultar_asignacion_red_a_red($id); if ($consultar_asignacion_red != null) { $this->model_soporte_tecnico->actualizar_red_a_red($id); } else { $this->model_soporte_tecnico->ingresar_id_red_a_red($id); } $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'); }
function chat_soporte() { $red_temporal = $_GET['id_red']; if (!$this->tank_auth->is_logged_in()) { // logged in redirect('/auth'); } if (!($_COOKIE['red1'] == "3")) { header("Refresh:0;url='/bo/configuracion/chat_soporte?id_red=" . $red_temporal . "'"); } include_once "cometchat/model_soporte_chat.php"; $chat_r = new Red_chat(); $chat_r->soporte_red(); $id = $this->tank_auth->get_user_id(); $style = $this->modelo_dashboard->get_style(1); $this->template->set("style", $style); $this->template->set_theme('desktop'); $this->template->set_layout('website/main'); $this->template->set_partial('header', 'website/bo/header'); $this->template->set_partial('footer', 'website/bo/footer'); $consultar_siesta_asignada = $this->model_soporte_tecnico->consultar_asignacion_de_soporte($id); if ($consultar_siesta_asignada != null) { $this->model_soporte_tecnico->actualizar_asignacion_de_red($id); } else { $this->model_soporte_tecnico->asignar_red_de_soporte($id); } $this->template->build('website/bo/soporteTecnico/chat_soporte'); }
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'); }