Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* +-------------------------+ | Creado por TEKNISERVICE | | www..

Decoded Output download

<?php  
  
/*  
  
+-------------------------+  
  
| Creado por TEKNISERVICE |  
  
| www.tekniservice.com    |  
  
+-------------------------+  
  
*/  
  
 goto TObmX; hzTBm: exit("No direct script access allowed"); goto rz0Rx; rz0Rx: t5T4u: goto AGzEx; TObmX: if (defined("BASEPATH")) { goto t5T4u; } goto hzTBm; AGzEx: class Destinos_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_destinos() { goto N0CZo; glY25: tPswa: goto zypEk; zypEk: return $g2QMu; goto eHEoa; iXrVe: $g2QMu = $BSoTB->result(); goto A0bTz; N0CZo: $this->db->select()->from("tb_destinos"); goto yGMRU; A0bTz: foreach ($g2QMu as &$O7wIR) { goto bp2Oj; sWL8Y: $R32ml = json_decode($O7wIR->pais_destino); goto jV4oP; BaJsw: $y691g = json_decode($O7wIR->nombre_destino); goto sWL8Y; HNLFQ: DZtQ_: goto m0ZMh; ri3Fq: a8v_6: goto UKbNr; pctJ9: jeLfV: goto f87d8; bp2Oj: $O7wIR->transports = $this->getImageTransports($O7wIR->id_destino); goto BaJsw; UKbNr: unset($O7wIR->nombre_destino); goto aUtWq; jV4oP: foreach ($y691g as $LnJnz => $YQXB_) { $O7wIR->{"nombre_" . $LnJnz} = $YQXB_; BrA3z: } goto ri3Fq; aUtWq: foreach ($R32ml as $LnJnz => $aBsOM) { $O7wIR->{"pais_" . $LnJnz} = $aBsOM; o6GYD: } goto HNLFQ; m0ZMh: unset($O7wIR->pais_destino); goto pctJ9; f87d8: } goto glY25; yGMRU: $BSoTB = $this->db->get(); goto iXrVe; eHEoa: } private function getImageTransports($stE20) { goto ItMvH; vV3pO: $DY3fh->ImagenTranvia = file_exists($ILj38 . $stE20 . "_imagenTranvia.svg") ? $fjQOv . $stE20 . "_imagenTranvia.svg" : null; goto oXIeF; ItMvH: $ILj38 = FCPATH . "assets/img/transports" . DIRECTORY_SEPARATOR; goto eay_j; KNRUa: return $DY3fh; goto FW_oX; CzVWf: $DY3fh->ImagenMetro = file_exists($ILj38 . $stE20 . "_imagenMetro.svg") ? $fjQOv . $stE20 . "_imagenMetro.svg" : null; goto vV3pO; vh64U: $DY3fh = new stdClass(); goto CzVWf; oXIeF: $DY3fh->ImagenBus = file_exists($ILj38 . $stE20 . "_imagenBus.svg") ? $fjQOv . $stE20 . "_imagenBus.svg" : null; goto Jl7VA; eay_j: $fjQOv = base_url() . "assets/img/transports" . DIRECTORY_SEPARATOR; goto vh64U; Jl7VA: $DY3fh->ImagenTren = file_exists($ILj38 . $stE20 . "_imagenTren.svg") ? $fjQOv . $stE20 . "_imagenTren.svg" : null; goto KNRUa; FW_oX: } public function get_lista_servex_destinos() { goto sfmmO; Jyux0: $this->db->select("id_servicio as id, nombre_servicio as text, precio_base as precio")->from("tb_servicios_extras"); goto mq5me; s4Cg0: $this->db->where("tipo_servicio", 0); goto Jyux0; mq5me: $BSoTB = $this->db->get(); goto D1OB4; b2VEs: foreach ($p3mMY as $QA4oq) { $QA4oq->text = json_decode($QA4oq->text)->titulo->es . " - " . NumberFormatter::create("es_ES", NumberFormatter::DECIMAL)->format($QA4oq->precio); m9JLf: } goto DawIe; DawIe: kRFg_: goto R5r3W; D1OB4: $p3mMY = $BSoTB->result(); goto b2VEs; sfmmO: setlocale(LC_MONETARY, "es_ES"); goto s4Cg0; R5r3W: return $p3mMY; goto KG2Sn; KG2Sn: } public function get_lista_servex_destino($Ei1rT) { goto yqMwG; Hz9_U: $p3mMY = $BSoTB->result(); goto XCK5L; yqMwG: $this->db->where("id_destino", $Ei1rT); goto nyfn1; nyfn1: $this->db->join("tb_servicios_extras", "tb_servicios_extras.id_servicio = tb_destinos_servex.id_servicio", "left"); goto xVO62; xVO62: $this->db->select()->from("tb_destinos_servex"); goto zXMVs; XCK5L: foreach ($p3mMY as $QA4oq) { $QA4oq->nombre_servicio = json_decode($QA4oq->nombre_servicio)->titulo->es; AaMby: } goto uDsXt; X72jd: return $p3mMY; goto fqSgB; uDsXt: V1W5u: goto X72jd; zXMVs: $BSoTB = $this->db->get(); goto Hz9_U; fqSgB: } public function get_lista_expertos_destino($ZRKt4) { goto nK1gg; D2nPH: $BSoTB = $this->db->get(); goto I5KCS; I5KCS: $t0u1a = $BSoTB->result(); goto ygmtW; nK1gg: $this->db->where("id_destino", $ZRKt4); goto gCNXr; SFzuh: return $t0u1a; goto CbCgi; OGJoV: Gs66e: goto SFzuh; ygmtW: foreach ($t0u1a as $luxc6) { goto JCECj; K28Eb: array_unshift($smwJI, $luxc6->idioma_nativo); goto QiWQR; OxQLT: $smwJI = array_column($rxg7U, "code"); goto K28Eb; A3y0e: z6ALD: goto TFspB; uiXh1: $luxc6->nombre_completo = $luxc6->nombre . " " . $luxc6->apellidos . " - " . implode(" ", $smwJI); goto TNaor; Md9o_: unset($luxc6->idioma3); goto A3y0e; TNaor: unset($luxc6->idioma_nativo); goto FAIpA; LcQx7: $luxc6->nombre_simple = $luxc6->nombre . " " . $luxc6->apellidos; goto uiXh1; xsYbm: $this->db->select("code")->from("tb_idiomas"); goto QNXaD; EnDPx: $this->db->or_where("id_idioma", $luxc6->idioma3); goto xsYbm; g1OXt: $rxg7U = $BSoTB->result_array(); goto OxQLT; FAIpA: unset($luxc6->idioma2); goto Md9o_; I8JmL: cRndl: goto LcQx7; QNXaD: $BSoTB = $this->db->get(); goto g1OXt; JCECj: $this->db->where("id_idioma", $luxc6->idioma2); goto EnDPx; QiWQR: foreach ($smwJI as &$fQMoH) { $fQMoH = "<img class="flag-list-border" src="/assets/img/flags/svg/" . $fQMoH . ".svg">"; u0TF6: } goto I8JmL; TFspB: } goto OGJoV; yglN4: $this->db->join("tb_idiomas", "tb_idiomas.id_idioma = tb_expertos.idioma_nativo", "left"); goto e0wkb; e0wkb: $this->db->select("nombre, apellidos, id_destino_experto, id_destino, tb_destinos_expertos.id_experto, tb_idiomas.code as idioma_nativo, idioma2, idioma3")->from("tb_destinos_expertos"); goto D2nPH; gCNXr: $this->db->join("tb_expertos", "tb_expertos.id_experto = tb_destinos_expertos.id_experto", "left"); goto yglN4; CbCgi: } public function get_lista_expertos() { goto ZnlZb; ZnlZb: $this->db->join("tb_idiomas", "tb_idiomas.id_idioma = tb_expertos.idioma_nativo", "left"); goto BmMec; YxbFc: $BSoTB = $this->db->get(); goto mnJuk; mnJuk: $t0u1a = $BSoTB->result(); goto vxN26; vxN26: foreach ($t0u1a as $luxc6) { goto nFFfZ; iOezs: unset($luxc6->listaIdiomas); goto SYm7J; uSGKF: tMFnh: goto yoxwZ; aVg2u: unset($luxc6->idioma3); goto uSGKF; AJRqR: foreach ($smwJI as &$fQMoH) { $fQMoH = "<img class="flag-list-border" src="/assets/img/flags/svg/" . $fQMoH . ".svg">"; wjjvf: } goto f4opn; MHF_4: $BSoTB = $this->db->get(); goto yvwuw; H1b5J: $smwJI = array_column($rxg7U, "code"); goto EZBGO; Yxtok: $this->db->select("code")->from("tb_idiomas"); goto MHF_4; ggtj3: $luxc6->text = $luxc6->nombre . " " . $luxc6->apellidos; goto fj1cl; yvwuw: $rxg7U = $BSoTB->result_array(); goto H1b5J; PA06Q: $this->db->or_where("id_idioma", $luxc6->idioma3); goto Yxtok; EZBGO: array_unshift($smwJI, $luxc6->idioma_nativo); goto AJRqR; nFFfZ: $this->db->where("id_idioma", $luxc6->idioma2); goto PA06Q; LfwYQ: $luxc6->image = implode(" ", $smwJI); goto ggtj3; SYm7J: unset($luxc6->idioma2); goto aVg2u; fj1cl: unset($luxc6->idioma_nativo); goto iOezs; f4opn: Mvzkn: goto LfwYQ; yoxwZ: } goto WcZiU; WcZiU: JkQiq: goto eF7WU; BmMec: $this->db->select("nombre, apellidos, id_experto as id, tb_idiomas.code as idioma_nativo, idioma2, idioma3")->from("tb_expertos"); goto YxbFc; eF7WU: return $t0u1a; goto iVTWH; iVTWH: } public function get_lista_destino_actividades($Ei1rT) { goto S61lZ; FCRmc: $kpBT0 = $BSoTB->result(); goto AD3_u; z24cJ: return $kpBT0; goto nTtpX; S61lZ: $this->db->where("id_destino", $Ei1rT); goto BEn6E; qg9vl: $BSoTB = $this->db->get(); goto FCRmc; AD3_u: foreach ($kpBT0 as &$u5cbW) { goto gczc5; tknpL: $u5cbW->evento = ["eventStart" => empty($DnVo4) ? null : $DnVo4[array_key_first($DnVo4)]->eventDay, "eventEnd" => empty($DnVo4) ? null : $DnVo4[array_key_last($DnVo4)]->eventDay, "recurrenceDays" => array_values(array_unique($Kkiz2)), "type" => count($sAKQ9) > count($ppaOE) ? 0 : 1]; goto OJ3v3; oaRwH: qboG8: goto tknpL; FX17x: $this->db->where("id_activity", $u5cbW->id_destino_actividad); goto vLqVk; ZdxMe: $this->db->order_by("eventDay", "asc"); goto ugHsw; mJQYg: $DnVo4 = $BSoTB->result(); goto hB_qa; Gr2C0: DCYCA: goto pwsiW; Q4YTG: $ppaOE = []; goto Ipr3P; nRIaZ: if (!($u5cbW->tipo == 3)) { goto iQVH7; } goto FX17x; hB_qa: $Kkiz2 = []; goto Obrje; Obrje: $sAKQ9 = []; goto Q4YTG; V6Mui: $u5cbW->nombre_actividad = $w5EWB->es; goto nRIaZ; gczc5: $w5EWB = json_decode($u5cbW->titulo); goto V6Mui; Ipr3P: foreach ($DnVo4 as $RZHnc) { goto Luu_H; kpCff: jAXxu: goto K821G; Zj4fb: cETNZ: goto ckx33; K821G: $sAKQ9[] = $RZHnc; goto Zj4fb; Luu_H: $Kkiz2[] = \Carbon\Carbon::parse($RZHnc->eventDay)->format("l"); goto sFJsA; fc92L: $ppaOE[] = $RZHnc; goto gzw82; gzw82: goto cETNZ; goto kpCff; ckx33: bjFwi: goto GzwyE; sFJsA: if ($RZHnc->type == 0) { goto jAXxu; } goto fc92L; GzwyE: } goto oaRwH; OJ3v3: iQVH7: goto Gr2C0; vLqVk: $this->db->select()->from("tb_events"); goto ZdxMe; ugHsw: $BSoTB = $this->db->get(); goto mJQYg; pwsiW: } goto FuY1h; BEn6E: $this->db->select()->from("tb_destinos_actividades"); goto qg9vl; FuY1h: sYF6F: goto z24cJ; nTtpX: } public function getActividadesPrincipal($ubO5i) { goto f4GuC; Tj4Xd: $this->db->join("tb_destinos_actividades", "tb_destinos_actividades.id_destino_actividad = tb_actividades_relacionadas.id_actividad"); goto xB_Ao; xB_Ao: $BSoTB = $this->db->get(); goto fcXIl; QqBWU: return $kpBT0; goto vRZul; fcXIl: $kpBT0 = $BSoTB->result(); goto NNw74; I0Ooh: $this->db->from("tb_actividades_relacionadas"); goto Tj4Xd; f4GuC: $this->db->where("id_actividad_relacionada", $ubO5i); goto qjECo; n7VFy: Lz91I: goto QqBWU; qjECo: $this->db->select("titulo"); goto I0Ooh; NNw74: foreach ($kpBT0 as $u5cbW) { goto n500f; DlZhr: $u5cbW->nombre_actividad = $w5EWB->es; goto qT_aT; n500f: $w5EWB = json_decode($u5cbW->titulo); goto DlZhr; qT_aT: mLzJn: goto TA7fL; TA7fL: } goto n7VFy; vRZul: } public function getActividadesRelacionadas($stE20, $aBUDK) { goto j9zCk; GVvpk: foreach ($zMCSE as $u5cbW) { goto A0Avc; B4U7z: G9owD: goto bUbZv; A0Avc: $w5EWB = json_decode($u5cbW->titulo); goto yd8Ql; HNvVN: unset($u5cbW->textospeech); goto XOWNl; zyuXQ: unset($u5cbW->longdesc); goto HNvVN; XOWNl: unset($u5cbW->titulo); goto B4U7z; yd8Ql: $u5cbW->nombre_actividad = $w5EWB->es; goto T12p8; T12p8: unset($u5cbW->shortdesc); goto zyuXQ; bUbZv: } goto PgNYI; APPTB: $this->db->select()->from("tb_destinos_actividades"); goto S_Pmc; mmnX2: foreach ($g00Ya as $u5cbW) { goto FOatB; FVGQw: taU_b: goto VC6yn; vlBdp: $u5cbW->nombre_actividad = $w5EWB->es; goto FVGQw; FOatB: $w5EWB = json_decode($u5cbW->titulo); goto vlBdp; VC6yn: } goto WNjM3; L5cWo: $g00Ya = $EzPP1->result(); goto mmnX2; j9zCk: $this->db->where("id_actividad", $aBUDK); goto QgbW9; PgNYI: SsYTA: goto Cr20T; JtqFg: $LE0Xl = array_column($g00Ya, "nombre_actividad"); goto izI6c; zrygq: $WvkHE = ["actividadesRelacionadas" => $g00Ya, "listaActividadesRelacionadas" => $zMCSE]; goto yNlTu; ZDq0s: $this->db->where("id_destino", $stE20); goto Icpa3; p4EWe: $zMCSE = $VBtdz->result(); goto GVvpk; izI6c: array_multisort($LE0Xl, SORT_ASC, $g00Ya); goto ZDq0s; S_Pmc: $VBtdz = $this->db->get(); goto p4EWe; QgbW9: $this->db->join("tb_destinos_actividades", "tb_destinos_actividades.id_destino_actividad = tb_actividades_relacionadas.id_actividad_relacionada", "left"); goto ydnVY; Icpa3: $this->db->where("tipo", 1); goto APPTB; yNlTu: return $WvkHE; goto F3hQ0; ydnVY: $this->db->select()->from("tb_actividades_relacionadas"); goto neVsE; WNjM3: AJusS: goto JtqFg; Cr20T: $YKLWN = array_column($zMCSE, "nombre_actividad"); goto s_D18; s_D18: array_multisort($YKLWN, SORT_ASC, $zMCSE); goto zrygq; neVsE: $EzPP1 = $this->db->get(); goto L5cWo; F3hQ0: } public function addActividadRelacionada($aBUDK, $agWYd) { $BSoTB = $this->db->insert("tb_actividades_relacionadas", array("id_actividad" => $aBUDK, "id_actividad_relacionada" => $agWYd)); return $BSoTB; } public function removeActividadRelacionada($aBUDK, $agWYd) { $BSoTB = $this->db->delete("tb_actividades_relacionadas", array("id_actividad" => $aBUDK, "id_actividad_relacionada" => $agWYd)); return $BSoTB; } public function get_filename($dtVDh) { goto z_Sg5; rkTGW: $BSoTB = $this->db->get(); goto d1x29; z_Sg5: $this->db->where("id_destino_actividad", $dtVDh); goto i4p8q; i4p8q: $this->db->select("filename")->from("tb_destinos_actividades"); goto rkTGW; d1x29: $fh_Uz = $BSoTB->row(); goto kT1yQ; kT1yQ: return $fh_Uz->filename; goto Shvoq; Shvoq: } public function new_destino($Zo4Q1) { goto irCuw; Jm72o: $VXk5O = json_encode($aHGCV); goto H7f5n; eXF5a: foreach ($Zo4Q1 as $LnJnz => $O7wIR) { goto Y0KY4; V37Xd: c3GVE: goto eNA0p; fDjhb: goto Mjulc; goto mHxu3; Y0KY4: $oYBu0 = explode("_", $LnJnz); goto Ni6QV; mHxu3: t24R_: goto qnnne; mzbr_: goto Mjulc; goto V37Xd; VehM3: Mjulc: goto okuei; k7lGz: if ($oYBu0[0] == "pais") { goto c3GVE; } goto fDjhb; eNA0p: $aHGCV[$oYBu0[1]] = trim($O7wIR); goto VehM3; okuei: PjH_q: goto KTusc; qnnne: $RYg69[$oYBu0[1]] = trim($O7wIR); goto mzbr_; Ni6QV: if ($oYBu0[0] == "destino") { goto t24R_; } goto k7lGz; KTusc: } goto omCD_; tqKOs: $aHGCV = array(); goto eXF5a; bbr9N: $RYg69 = array(); goto tqKOs; H7f5n: $BSoTB = $this->db->insert("tb_destinos", array("nombre_destino" => $u7EB2, "pais_destino" => $VXk5O)); goto bvpqx; omCD_: wlQ2f: goto Z6heM; s_996: unset($Zo4Q1["id_destino"]); goto bbr9N; Z6heM: $u7EB2 = json_encode($RYg69); goto Jm72o; irCuw: unset($Zo4Q1["tipo_accion"]); goto s_996; bvpqx: return $BSoTB; goto qkwha; qkwha: } public function update_destino($Zo4Q1) { goto w2d9Z; ERoIk: $RYg69 = array(); goto yuxTE; yuxTE: $aHGCV = array(); goto jn2H7; jn2H7: unset($Zo4Q1["tipo_accion"]); goto j71oh; j71oh: unset($Zo4Q1["id_destino"]); goto k1roq; gx4BH: $u7EB2 = json_encode($RYg69); goto bOMmf; deGuZ: $BSoTB = $this->db->update("tb_destinos"); goto icMYF; lZhNo: $this->db->set("pais_destino", $VXk5O); goto mzhUt; Czp6q: $this->db->set("nombre_destino", $u7EB2); goto lZhNo; w2d9Z: $Ei1rT = $Zo4Q1["id_destino"]; goto ERoIk; YXRG3: F8uG1: goto gx4BH; k1roq: foreach ($Zo4Q1 as $LnJnz => $QA4oq) { goto pHwoh; pMIO7: APF2p: goto lGSsE; pHwoh: $oYBu0 = explode("_", $LnJnz); goto GKF2k; v0Yh6: NyOM6: goto nTt4V; nVpc4: OAt71: goto J6C21; nTt4V: $aHGCV[$oYBu0[1]] = trim($QA4oq); goto Pk1Xq; GKF2k: if ($oYBu0[0] == "destino") { goto OAt71; } goto AO8sr; J6C21: $RYg69[$oYBu0[1]] = trim($QA4oq); goto V0_HN; AO8sr: if ($oYBu0[0] == "pais") { goto NyOM6; } goto yZFHH; V0_HN: goto ePkJl; goto v0Yh6; yZFHH: goto ePkJl; goto nVpc4; Pk1Xq: ePkJl: goto pMIO7; lGSsE: } goto YXRG3; mzhUt: $this->db->where("id_destino", $Ei1rT); goto deGuZ; bOMmf: $VXk5O = json_encode($aHGCV); goto Czp6q; icMYF: return $BSoTB; goto YWdXy; YWdXy: } public function delete_destino($Ei1rT) { goto D3Crs; vCpyb: $BSoTB = $this->db->delete("tb_destinos_extras"); goto zFyta; zFyta: return $BSoTB; goto XHvGw; D3Crs: $this->db->where("id_destino", $Ei1rT); goto vCpyb; XHvGw: } public function new_servex_destino($McoGS) { goto mkUZo; bhPtl: return $WvkHE; goto UBezW; fr9fE: $WvkHE["id_creada"] = $this->db->insert_id(); goto bhPtl; mkUZo: $this->db->insert("tb_destinos_servex", $McoGS); goto fr9fE; UBezW: } public function new_experto_destino($i4hEO) { goto YQnPJ; f2_T5: $WvkHE["id_creada"] = $this->db->insert_id(); goto TwFe5; YQnPJ: $this->db->insert("tb_destinos_expertos", $i4hEO); goto f2_T5; TwFe5: return $WvkHE; goto gkKhH; gkKhH: } public function update_price_servex($iVCjd) { goto S9Kyl; nUXqd: $this->db->where("id_destino_servex", $iVCjd["id_destino_servex"]); goto reqKf; S9Kyl: $this->db->set("precio", $iVCjd["precio"]); goto nUXqd; reqKf: $BSoTB = $this->db->update("tb_destinos_servex"); goto ljGMg; ljGMg: return $BSoTB; goto GHtxH; GHtxH: } public function new_actividad($BtUs5) { goto C94HZ; sahZG: $this->createEvents($sUan_, $BtUs5); goto xSUnI; aHYrZ: t8mmS: goto gdgnn; YwLNA: $IflKW = json_encode($uoDcW); goto nSChW; aaFII: $YtGvt = json_encode($rIRJG); goto tbXC5; cTSlU: $sUan_ = $this->db->insert_id(); goto sahZG; nSChW: $BSoTB = $this->db->insert("tb_destinos_actividades", ["id_destino" => $BtUs5->id_destino, "category" => $BtUs5->category, "tipo" => $BtUs5->actividad_tipo, "titulo" => $MnQZo, "shortdesc" => $YtGvt, "longdesc" => $JOInw, "textospeech" => $IflKW, "esencial" => $BtUs5->esencial, "kids" => $BtUs5->kids, "icono" => $BtUs5->icono, "direccion" => $BtUs5->direccion, "codigo_postal" => $BtUs5->codigo_postal, "coordenadas" => $BtUs5->coordenadas, "filename" => $BtUs5->filename, "url_video_es" => empty(trim($BtUs5->url_video_es)) ? NULL : trim($BtUs5->url_video_es), "url_video_en" => empty(trim($BtUs5->url_video_en)) ? NULL : trim($BtUs5->url_video_en)]); goto cTSlU; Qwt31: $rIRJG = []; goto eLXYD; eLXYD: $bJT_i = []; goto q3pxh; tbXC5: $JOInw = json_encode($bJT_i); goto YwLNA; q3pxh: $uoDcW = []; goto GHGjv; C94HZ: unset($BtUs5->tipo_accion); goto Axujv; gdgnn: $MnQZo = json_encode($cwkln); goto aaFII; GHGjv: foreach ($BtUs5 as $LnJnz => $UQzDA) { goto m2AjX; dKKKs: if ($oYBu0[0] == "textaudioguia") { goto Padet; } goto AH1ND; HBc7q: if ($oYBu0[0] == "shortdesc") { goto H6TZ7; } goto z0pLL; XzOnh: if ($oYBu0[0] == "titulo") { goto yfOKG; } goto HBc7q; Fw_NH: $cwkln[$oYBu0[1]] = $UQzDA; goto O5hxc; ZI240: Padet: goto rWn6D; rWn6D: $uoDcW[$oYBu0[1]] = $UQzDA; goto HTcEv; pJdkc: $bJT_i[$oYBu0[1]] = $UQzDA; goto Ub1TD; z0pLL: if ($oYBu0[0] == "longdesc") { goto fxaWo; } goto dKKKs; oFOEY: H6TZ7: goto eeeea; DjdOV: goto Sd2cB; goto edVk0; edVk0: fxaWo: goto pJdkc; O5hxc: goto Sd2cB; goto oFOEY; AH1ND: goto Sd2cB; goto O7et0; Ub1TD: goto Sd2cB; goto ZI240; hXYI6: x2IBB: goto pbNTx; HTcEv: Sd2cB: goto hXYI6; eeeea: $rIRJG[$oYBu0[1]] = $UQzDA; goto DjdOV; m2AjX: $oYBu0 = explode("_", $LnJnz); goto XzOnh; O7et0: yfOKG: goto Fw_NH; pbNTx: } goto aHYrZ; xSUnI: return $BSoTB; goto ngP0Z; Axujv: $cwkln = []; goto Qwt31; ngP0Z: } private function createEvents($BzLJ2, $BtUs5) { goto tPnji; Vx1Lp: ZVaYy: goto TJ0cv; eDD3N: $this->db->where("id_activity", $BzLJ2); goto YmdRu; eGMt2: $vwV_2 = $b9m9S; goto h04fG; h04fG: fErpl: goto zKjfs; tPnji: $baBhV = []; goto X9649; zKxmO: $b9m9S = \Carbon\Carbon::parse($BtUs5->eventDayStart); goto xXtAR; fpnnS: $baBhV[] = ["id_activity" => $BzLJ2, "eventDay" => $vwV_2->format("Y-m-d"), "type" => property_exists($BtUs5, "eventType") and $BtUs5->eventType === "on"]; goto qRt9I; sY0nb: goto JKlQH; goto T9Q65; mZT26: TgAtj: goto AU2na; zKjfs: if (!$vwV_2->lte($IYstw)) { goto NCP4R; } goto fpnnS; SE9CY: foreach ($BtUs5 as $LnJnz => $UQzDA) { goto vch7d; hnrBb: nqNUR: goto NhUnE; NhUnE: yCB3v: goto EJACx; vch7d: if (!preg_match("/^eventRecurrence/", $LnJnz)) { goto nqNUR; } goto EnE9C; EnE9C: $IBn6q[] = substr($LnJnz, 15); goto hnrBb; EJACx: } goto Vx1Lp; TJ0cv: if (!(property_exists($BtUs5, "eventDayStart") and property_exists($BtUs5, "eventDayEnd"))) { goto stCms; } goto hoFPC; YmdRu: $this->db->delete("tb_events"); goto SE9CY; xXtAR: $IYstw = \Carbon\Carbon::parse($BtUs5->eventDayEnd); goto eGMt2; T9Q65: vuGuK: goto raLmV; qRt9I: WgFma: goto aB1Dd; cn_hJ: goto fErpl; goto Ky0Ab; aB1Dd: $vwV_2->addDay(); goto cn_hJ; X9649: $IBn6q = []; goto eDD3N; hoFPC: if (count($IBn6q) > 0) { goto vuGuK; } goto zKxmO; JN_PU: stCms: goto s7Xy3; HYABd: $this->db->insert_batch("tb_events", $baBhV); goto JN_PU; AU2na: JKlQH: goto HYABd; Ky0Ab: NCP4R: goto sY0nb; raLmV: foreach ($IBn6q as $p0Cg9) { goto Ihb4z; CukiQ: $IYstw = \Carbon\Carbon::parse($BtUs5->eventDayEnd); goto mTbKH; CABeN: $b9m9S = \Carbon\Carbon::parse($BtUs5->eventDayStart)->modify("this {$p0Cg9}"); goto CukiQ; fm40M: m5wJc: goto B2463; B2463: $vwV_2->addWeek(); goto ebM_G; Lj4NL: VV22M: goto edSRW; mTbKH: $vwV_2 = $b9m9S; goto AyVV2; ihnqe: if (!$vwV_2->lte($IYstw)) { goto NMDTa; } goto ZTZPK; Ihb4z: $p0Cg9 = strtolower($p0Cg9); goto CABeN; AyVV2: kLZFa: goto ihnqe; IY6qk: NMDTa: goto Lj4NL; ebM_G: goto kLZFa; goto IY6qk; ZTZPK: $baBhV[] = ["id_activity" => $BzLJ2, "eventDay" => $vwV_2->format("Y-m-d"), "type" => property_exists($BtUs5, "eventType") and $BtUs5->eventType === "on"]; goto fm40M; edSRW: } goto mZT26; s7Xy3: } public function update_actividad($BtUs5, $wjyah = false) { goto xog5W; jRJfY: $bJT_i = []; goto dC3Td; r8uQe: $Fku2o = json_decode($Skmg9); goto FHbmD; AD21T: $ooDZz["filename"] = $BtUs5->filename; goto S7AG3; cY8Zh: gboQh: goto oFU9Q; dCVjc: H9mfE: goto jnbZa; rI6No: $ooDZz["kids"] = $BtUs5->kids; goto QC3cL; fpiwr: $ooDZz["web"] = trim($BtUs5->web); goto lecrL; wn1Yj: $ooDZz["filename"] = null; goto KN1WM; cu_WJ: return $BSoTB; goto T4zmE; B_WDB: foreach ($BtUs5 as $LnJnz => $UQzDA) { goto IuLdm; qcw7n: $uoDcW[$oYBu0[1]] = $UQzDA; goto AcHcI; spbQa: DRW1_: goto EhE40; IuLdm: $oYBu0 = explode("_", $LnJnz); goto qIGbF; P1gPM: IfP3p: goto qcw7n; Z2tyt: $CB__j[$oYBu0[1]] = $UQzDA; goto qudX9; uK1CH: goto hVP_b; goto spbQa; guxdI: kJYGu: goto Z2tyt; h7BR9: aHdg9: goto MYPaM; FE12A: goto hVP_b; goto BmlkK; GE38q: if ($oYBu0[0] == "shortdesc") { goto aHdg9; } goto IVzr2; MYPaM: $rIRJG[$oYBu0[1]] = $UQzDA; goto FE12A; AA2e9: if ($oYBu0[0] == "transportsdesc") { goto kJYGu; } goto uK1CH; SXWAC: irBL5: goto RAW5_; IVzr2: if ($oYBu0[0] == "longdesc") { goto u_1IB; } goto Ge8pk; AcHcI: goto hVP_b; goto guxdI; qIGbF: if ($oYBu0[0] == "titulo") { goto DRW1_; } goto GE38q; Ge8pk: if ($oYBu0[0] == "textaudioguia") { goto IfP3p; } goto AA2e9; qudX9: hVP_b: goto SXWAC; aYAKh: goto hVP_b; goto P1gPM; z88Xv: goto hVP_b; goto h7BR9; o3Egt: $bJT_i[$oYBu0[1]] = $UQzDA; goto aYAKh; BmlkK: u_1IB: goto o3Egt; EhE40: $cwkln[$oYBu0[1]] = $UQzDA; goto z88Xv; RAW5_: } goto cY8Zh; aCXnj: $BSoTB = $this->db->get(); goto hXOL3; RZ2HC: if (!(property_exists($BtUs5, "borrar_imagen") and $BtUs5->borrar_imagen)) { goto KuZcG; } goto CG1FP; oNt27: w12qV: goto WcRnK; WcRnK: if (!($y5TS0 < count($Fku2o->results[0]->address_components))) { goto JDtWM; } goto WFh5Y; bHrkH: $this->db->select("filename")->from("tb_destinos_actividades"); goto aCXnj; ahqCG: $ooDZz["telefono"] = trim($BtUs5->telefono); goto YyPvI; P1sB9: if (!(is_file($AQPtN . $fh_Uz->filename) and file_exists($AQPtN . $fh_Uz->filename))) { goto FiRRa; } goto lKjkE; hXOL3: $fh_Uz = $BSoTB->row(); goto NBBBp; WN0Iy: $CB__j = []; goto B_WDB; MyFv0: $ooDZz["url_video_es"] = empty(trim($BtUs5->url_video_es)) ? NULL : trim($BtUs5->url_video_es); goto vlpnh; XU4or: $this->createEvents($BtUs5->id_actividad, $BtUs5); goto bCglG; YyPvI: $ooDZz["email"] = trim($BtUs5->email); goto fpiwr; nkPjy: $ooDZz["direccion"] = trim($BtUs5->direccion); goto Ejr0b; tSFmS: $ooDZz["shortdesc"] = json_encode($rIRJG); goto bQGqA; dC3Td: $uoDcW = []; goto WN0Iy; QeKvo: $AQPtN = FCPATH . "assets/img_actividades/"; goto P1sB9; S7AG3: Go2nM: goto zFqMt; hNr19: $this->db->where("id_destino_actividad", $BtUs5->id_actividad); goto bHrkH; lecrL: $ooDZz["prefix_tel"] = NULL; goto MyFv0; lKjkE: unlink($AQPtN . $fh_Uz->filename); goto pqgLb; YM6Ud: if (empty($ooDZz["telefono"])) { goto E0OJY; } goto de0NJ; bQGqA: $ooDZz["longdesc"] = json_encode($bJT_i); goto AD6Tb; w25zE: $this->db->select("filename")->from("tb_destinos_actividades"); goto Oi37A; ejxdG: $ooDZz["coordenadas"] = trim($BtUs5->coordenadas); goto ahqCG; JqPbB: $ooDZz["esencial"] = $BtUs5->esencial; goto rI6No; oFU9Q: $ooDZz["category"] = $BtUs5->category; goto ea9Yn; bRHtl: goto w12qV; goto rRQbC; VdIqi: unlink($AQPtN . $fh_Uz->filename); goto l1Hej; Ok7Lb: E0OJY: goto NmBiZ; FA8Oi: if (!(is_file($AQPtN . $fh_Uz->filename) and file_exists($AQPtN . $fh_Uz->filename))) { goto Wd6TE; } goto VdIqi; Oi37A: $BSoTB = $this->db->get(); goto e7Hth; e7Hth: $fh_Uz = $BSoTB->row(); goto QeKvo; j6W7z: goto Go2nM; goto DKjD2; LLsIJ: $BSoTB = $this->db->update("tb_destinos_actividades"); goto nBYTN; KN1WM: KuZcG: goto j6W7z; FHbmD: $y5TS0 = 0; goto oNt27; CG1FP: $this->db->where("id_destino_actividad", $BtUs5->id_actividad); goto w25zE; l1Hej: Wd6TE: goto AD21T; vqlxo: $y5TS0++; goto bRHtl; OBPG1: $ooDZz["prefix_tel"] = $this->getPrefixPhone($Fku2o->results[0]->address_components[$y5TS0]->short_name); goto dCVjc; AD6Tb: $ooDZz["transportsdesc"] = json_encode($CB__j); goto npDtn; nURYz: $cwkln = []; goto U7smX; bCglG: ds3Hp: goto cu_WJ; npDtn: $ooDZz["textospeech"] = json_encode($uoDcW); goto JqPbB; jnbZa: h33cR: goto vqlxo; zFqMt: $this->db->set($ooDZz); goto uPcaT; vlpnh: $ooDZz["url_video_en"] = empty(trim($BtUs5->url_video_en)) ? NULL : trim($BtUs5->url_video_en); goto YM6Ud; NmBiZ: if (property_exists($BtUs5, "filename")) { goto oKtmT; } goto RZ2HC; pqgLb: FiRRa: goto wn1Yj; U7smX: $rIRJG = []; goto jRJfY; DKjD2: oKtmT: goto hNr19; QC3cL: $ooDZz["icono"] = $BtUs5->icono; goto nkPjy; WyelR: if (!in_array("country", $rlcTb)) { goto H9mfE; } goto OBPG1; ea9Yn: $ooDZz["titulo"] = json_encode($cwkln); goto tSFmS; WFh5Y: $rlcTb = array($Fku2o->results[0]->address_components[$y5TS0]->types[0]); goto WyelR; de0NJ: $Skmg9 = file_get_contents("https://maps.googleapis.com/maps/api/geocode/json?latlng=" . preg_replace("/\s+/", '', $ooDZz["coordenadas"]) . "&sensor=false&key=" . GOOGLE_MAP_API); goto r8uQe; Ejr0b: $ooDZz["codigo_postal"] = trim($BtUs5->codigo_postal); goto ejxdG; xog5W: unset($BtUs5->actividad_tipo); goto nURYz; nBYTN: if (!$wjyah) { goto ds3Hp; } goto XU4or; NBBBp: $AQPtN = FCPATH . "assets/img_actividades/"; goto FA8Oi; rRQbC: JDtWM: goto Ok7Lb; uPcaT: $this->db->where("id_destino_actividad", $BtUs5->id_actividad); goto LLsIJ; T4zmE: } public function delete_actividad($Ei1rT) { goto HM3Hs; N4NjB: return $BSoTB; goto u3gfq; QIrQd: $BSoTB = $this->db->delete("tb_destinos_extras"); goto N4NjB; HM3Hs: $this->db->where("id_destino", $Ei1rT); goto QIrQd; u3gfq: } private function getPrefixPhone($BL2cz, $RHQ53 = "code") { $MNDr8 = array("AD" => array("name" => "ANDORRA", "code" => "376"), "AE" => array("name" => "UNITED ARAB EMIRATES", "code" => "971"), "AF" => array("name" => "AFGHANISTAN", "code" => "93"), "AG" => array("name" => "ANTIGUA AND BARBUDA", "code" => "1268"), "AI" => array("name" => "ANGUILLA", "code" => "1264"), "AL" => array("name" => "ALBANIA", "code" => "355"), "AM" => array("name" => "ARMENIA", "code" => "374"), "AN" => array("name" => "NETHERLANDS ANTILLES", "code" => "599"), "AO" => array("name" => "ANGOLA", "code" => "244"), "AQ" => array("name" => "ANTARCTICA", "code" => "672"), "AR" => array("name" => "ARGENTINA", "code" => "54"), "AS" => array("name" => "AMERICAN SAMOA", "code" => "1684"), "AT" => array("name" => "AUSTRIA", "code" => "43"), "AU" => array("name" => "AUSTRALIA", "code" => "61"), "AW" => array("name" => "ARUBA", "code" => "297"), "AZ" => array("name" => "AZERBAIJAN", "code" => "994"), "BA" => array("name" => "BOSNIA AND HERZEGOVINA", "code" => "387"), "BB" => array("name" => "BARBADOS", "code" => "1246"), "BD" => array("name" => "BANGLADESH", "code" => "880"), "BE" => array("name" => "BELGIUM", "code" => "32"), "BF" => array("name" => "BURKINA FASO", "code" => "226"), "BG" => array("name" => "BULGARIA", "code" => "359"), "BH" => array("name" => "BAHRAIN", "code" => "973"), "BI" => array("name" => "BURUNDI", "code" => "257"), "BJ" => array("name" => "BENIN", "code" => "229"), "BL" => array("name" => "SAINT BARTHELEMY", "code" => "590"), "BM" => array("name" => "BERMUDA", "code" => "1441"), "BN" => array("name" => "BRUNEI DARUSSALAM", "code" => "673"), "BO" => array("name" => "BOLIVIA", "code" => "591"), "BR" => array("name" => "BRAZIL", "code" => "55"), "BS" => array("name" => "BAHAMAS", "code" => "1242"), "BT" => array("name" => "BHUTAN", "code" => "975"), "BW" => array("name" => "BOTSWANA", "code" => "267"), "BY" => array("name" => "BELARUS", "code" => "375"), "BZ" => array("name" => "BELIZE", "code" => "501"), "CA" => array("name" => "CANADA", "code" => "1"), "CC" => array("name" => "COCOS (KEELING) ISLANDS", "code" => "61"), "CD" => array("name" => "CONGO, THE DEMOCRATIC REPUBLIC OF THE", "code" => "243"), "CF" => array("name" => "CENTRAL AFRICAN REPUBLIC", "code" => "236"), "CG" => array("name" => "CONGO", "code" => "242"), "CH" => array("name" => "SWITZERLAND", "code" => "41"), "CI" => array("name" => "COTE D IVOIRE", "code" => "225"), "CK" => array("name" => "COOK ISLANDS", "code" => "682"), "CL" => array("name" => "CHILE", "code" => "56"), "CM" => array("name" => "CAMEROON", "code" => "237"), "CN" => array("name" => "CHINA", "code" => "86"), "CO" => array("name" => "COLOMBIA", "code" => "57"), "CR" => array("name" => "COSTA RICA", "code" => "506"), "CU" => array("name" => "CUBA", "code" => "53"), "CV" => array("name" => "CAPE VERDE", "code" => "238"), "CX" => array("name" => "CHRISTMAS ISLAND", "code" => "61"), "CY" => array("name" => "CYPRUS", "code" => "357"), "CZ" => array("name" => "CZECH REPUBLIC", "code" => "420"), "DE" => array("name" => "GERMANY", "code" => "49"), "DJ" => array("name" => "DJIBOUTI", "code" => "253"), "DK" => array("name" => "DENMARK", "code" => "45"), "DM" => array("name" => "DOMINICA", "code" => "1767"), "DO" => array("name" => "DOMINICAN REPUBLIC", "code" => "1809"), "DZ" => array("name" => "ALGERIA", "code" => "213"), "EC" => array("name" => "ECUADOR", "code" => "593"), "EE" => array("name" => "ESTONIA", "code" => "372"), "EG" => array("name" => "EGYPT", "code" => "20"), "ER" => array("name" => "ERITREA", "code" => "291"), "ES" => array("name" => "SPAIN", "code" => "34"), "ET" => array("name" => "ETHIOPIA", "code" => "251"), "FI" => array("name" => "FINLAND", "code" => "358"), "FJ" => array("name" => "FIJI", "code" => "679"), "FK" => array("name" => "FALKLAND ISLANDS (MALVINAS)", "code" => "500"), "FM" => array("name" => "MICRONESIA, FEDERATED STATES OF", "code" => "691"), "FO" => array("name" => "FAROE ISLANDS", "code" => "298"), "FR" => array("name" => "FRANCE", "code" => "33"), "GA" => array("name" => "GABON", "code" => "241"), "GB" => array("name" => "UNITED KINGDOM", "code" => "44"), "GD" => array("name" => "GRENADA", "code" => "1473"), "GE" => array("name" => "GEORGIA", "code" => "995"), "GH" => array("name" => "GHANA", "code" => "233"), "GI" => array("name" => "GIBRALTAR", "code" => "350"), "GL" => array("name" => "GREENLAND", "code" => "299"), "GM" => array("name" => "GAMBIA", "code" => "220"), "GN" => array("name" => "GUINEA", "code" => "224"), "GQ" => array("name" => "EQUATORIAL GUINEA", "code" => "240"), "GR" => array("name" => "GREECE", "code" => "30"), "GT" => array("name" => "GUATEMALA", "code" => "502"), "GU" => array("name" => "GUAM", "code" => "1671"), "GW" => array("name" => "GUINEA-BISSAU", "code" => "245"), "GY" => array("name" => "GUYANA", "code" => "592"), "HK" => array("name" => "HONG KONG", "code" => "852"), "HN" => array("name" => "HONDURAS", "code" => "504"), "HR" => array("name" => "CROATIA", "code" => "385"), "HT" => array("name" => "HAITI", "code" => "509"), "HU" => array("name" => "HUNGARY", "code" => "36"), "ID" => array("name" => "INDONESIA", "code" => "62"), "IE" => array("name" => "IRELAND", "code" => "353"), "IL" => array("name" => "ISRAEL", "code" => "972"), "IM" => array("name" => "ISLE OF MAN", "code" => "44"), "IN" => array("name" => "INDIA", "code" => "91"), "IQ" => array("name" => "IRAQ", "code" => "964"), "IR" => array("name" => "IRAN, ISLAMIC REPUBLIC OF", "code" => "98"), "IS" => array("name" => "ICELAND", "code" => "354"), "IT" => array("name" => "ITALY", "code" => "39"), "JM" => array("name" => "JAMAICA", "code" => "1876"), "JO" => array("name" => "JORDAN", "code" => "962"), "JP" => array("name" => "JAPAN", "code" => "81"), "KE" => array("name" => "KENYA", "code" => "254"), "KG" => array("name" => "KYRGYZSTAN", "code" => "996"), "KH" => array("name" => "CAMBODIA", "code" => "855"), "KI" => array("name" => "KIRIBATI", "code" => "686"), "KM" => array("name" => "COMOROS", "code" => "269"), "KN" => array("name" => "SAINT KITTS AND NEVIS", "code" => "1869"), "KP" => array("name" => "KOREA DEMOCRATIC PEOPLES REPUBLIC OF", "code" => "850"), "KR" => array("name" => "KOREA REPUBLIC OF", "code" => "82"), "KW" => array("name" => "KUWAIT", "code" => "965"), "KY" => array("name" => "CAYMAN ISLANDS", "code" => "1345"), "KZ" => array("name" => "KAZAKSTAN", "code" => "7"), "LA" => array("name" => "LAO PEOPLES DEMOCRATIC REPUBLIC", "code" => "856"), "LB" => array("name" => "LEBANON", "code" => "961"), "LC" => array("name" => "SAINT LUCIA", "code" => "1758"), "LI" => array("name" => "LIECHTENSTEIN", "code" => "423"), "LK" => array("name" => "SRI LANKA", "code" => "94"), "LR" => array("name" => "LIBERIA", "code" => "231"), "LS" => array("name" => "LESOTHO", "code" => "266"), "LT" => array("name" => "LITHUANIA", "code" => "370"), "LU" => array("name" => "LUXEMBOURG", "code" => "352"), "LV" => array("name" => "LATVIA", "code" => "371"), "LY" => array("name" => "LIBYAN ARAB JAMAHIRIYA", "code" => "218"), "MA" => array("name" => "MOROCCO", "code" => "212"), "MC" => array("name" => "MONACO", "code" => "377"), "MD" => array("name" => "MOLDOVA, REPUBLIC OF", "code" => "373"), "ME" => array("name" => "MONTENEGRO", "code" => "382"), "MF" => array("name" => "SAINT MARTIN", "code" => "1599"), "MG" => array("name" => "MADAGASCAR", "code" => "261"), "MH" => array("name" => "MARSHALL ISLANDS", "code" => "692"), "MK" => array("name" => "MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF", "code" => "389"), "ML" => array("name" => "MALI", "code" => "223"), "MM" => array("name" => "MYANMAR", "code" => "95"), "MN" => array("name" => "MONGOLIA", "code" => "976"), "MO" => array("name" => "MACAU", "code" => "853"), "MP" => array("name" => "NORTHERN MARIANA ISLANDS", "code" => "1670"), "MR" => array("name" => "MAURITANIA", "code" => "222"), "MS" => array("name" => "MONTSERRAT", "code" => "1664"), "MT" => array("name" => "MALTA", "code" => "356"), "MU" => array("name" => "MAURITIUS", "code" => "230"), "MV" => array("name" => "MALDIVES", "code" => "960"), "MW" => array("name" => "MALAWI", "code" => "265"), "MX" => array("name" => "MEXICO", "code" => "52"), "MY" => array("name" => "MALAYSIA", "code" => "60"), "MZ" => array("name" => "MOZAMBIQUE", "code" => "258"), "NA" => array("name" => "NAMIBIA", "code" => "264"), "NC" => array("name" => "NEW CALEDONIA", "code" => "687"), "NE" => array("name" => "NIGER", "code" => "227"), "NG" => array("name" => "NIGERIA", "code" => "234"), "NI" => array("name" => "NICARAGUA", "code" => "505"), "NL" => array("name" => "NETHERLANDS", "code" => "31"), "NO" => array("name" => "NORWAY", "code" => "47"), "NP" => array("name" => "NEPAL", "code" => "977"), "NR" => array("name" => "NAURU", "code" => "674"), "NU" => array("name" => "NIUE", "code" => "683"), "NZ" => array("name" => "NEW ZEALAND", "code" => "64"), "OM" => array("name" => "OMAN", "code" => "968"), "PA" => array("name" => "PANAMA", "code" => "507"), "PE" => array("name" => "PERU", "code" => "51"), "PF" => array("name" => "FRENCH POLYNESIA", "code" => "689"), "PG" => array("name" => "PAPUA NEW GUINEA", "code" => "675"), "PH" => array("name" => "PHILIPPINES", "code" => "63"), "PK" => array("name" => "PAKISTAN", "code" => "92"), "PL" => array("name" => "POLAND", "code" => "48"), "PM" => array("name" => "SAINT PIERRE AND MIQUELON", "code" => "508"), "PN" => array("name" => "PITCAIRN", "code" => "870"), "PR" => array("name" => "PUERTO RICO", "code" => "1"), "PT" => array("name" => "PORTUGAL", "code" => "351"), "PW" => array("name" => "PALAU", "code" => "680"), "PY" => array("name" => "PARAGUAY", "code" => "595"), "QA" => array("name" => "QATAR", "code" => "974"), "RO" => array("name" => "ROMANIA", "code" => "40"), "RS" => array("name" => "SERBIA", "code" => "381"), "RU" => array("name" => "RUSSIAN FEDERATION", "code" => "7"), "RW" => array("name" => "RWANDA", "code" => "250"), "SA" => array("name" => "SAUDI ARABIA", "code" => "966"), "SB" => array("name" => "SOLOMON ISLANDS", "code" => "677"), "SC" => array("name" => "SEYCHELLES", "code" => "248"), "SD" => array("name" => "SUDAN", "code" => "249"), "SE" => array("name" => "SWEDEN", "code" => "46"), "SG" => array("name" => "SINGAPORE", "code" => "65"), "SH" => array("name" => "SAINT HELENA", "code" => "290"), "SI" => array("name" => "SLOVENIA", "code" => "386"), "SK" => array("name" => "SLOVAKIA", "code" => "421"), "SL" => array("name" => "SIERRA LEONE", "code" => "232"), "SM" => array("name" => "SAN MARINO", "code" => "378"), "SN" => array("name" => "SENEGAL", "code" => "221"), "SO" => array("name" => "SOMALIA", "code" => "252"), "SR" => array("name" => "SURINAME", "code" => "597"), "ST" => array("name" => "SAO TOME AND PRINCIPE", "code" => "239"), "SV" => array("name" => "EL SALVADOR", "code" => "503"), "SY" => array("name" => "SYRIAN ARAB REPUBLIC", "code" => "963"), "SZ" => array("name" => "SWAZILAND", "code" => "268"), "TC" => array("name" => "TURKS AND CAICOS ISLANDS", "code" => "1649"), "TD" => array("name" => "CHAD", "code" => "235"), "TG" => array("name" => "TOGO", "code" => "228"), "TH" => array("name" => "THAILAND", "code" => "66"), "TJ" => array("name" => "TAJIKISTAN", "code" => "992"), "TK" => array("name" => "TOKELAU", "code" => "690"), "TL" => array("name" => "TIMOR-LESTE", "code" => "670"), "TM" => array("name" => "TURKMENISTAN", "code" => "993"), "TN" => array("name" => "TUNISIA", "code" => "216"), "TO" => array("name" => "TONGA", "code" => "676"), "TR" => array("name" => "TURKEY", "code" => "90"), "TT" => array("name" => "TRINIDAD AND TOBAGO", "code" => "1868"), "TV" => array("name" => "TUVALU", "code" => "688"), "TW" => array("name" => "TAIWAN, PROVINCE OF CHINA", "code" => "886"), "TZ" => array("name" => "TANZANIA, UNITED REPUBLIC OF", "code" => "255"), "UA" => array("name" => "UKRAINE", "code" => "380"), "UG" => array("name" => "UGANDA", "code" => "256"), "US" => array("name" => "UNITED STATES", "code" => "1"), "UY" => array("name" => "URUGUAY", "code" => "598"), "UZ" => array("name" => "UZBEKISTAN", "code" => "998"), "VA" => array("name" => "HOLY SEE (VATICAN CITY STATE)", "code" => "39"), "VC" => array("name" => "SAINT VINCENT AND THE GRENADINES", "code" => "1784"), "VE" => array("name" => "VENEZUELA", "code" => "58"), "VG" => array("name" => "VIRGIN ISLANDS, BRITISH", "code" => "1284"), "VI" => array("name" => "VIRGIN ISLANDS, U.S.", "code" => "1340"), "VN" => array("name" => "VIET NAM", "code" => "84"), "VU" => array("name" => "VANUATU", "code" => "678"), "WF" => array("name" => "WALLIS AND FUTUNA", "code" => "681"), "WS" => array("name" => "SAMOA", "code" => "685"), "XK" => array("name" => "KOSOVO", "code" => "381"), "YE" => array("name" => "YEMEN", "code" => "967"), "YT" => array("name" => "MAYOTTE", "code" => "262"), "ZA" => array("name" => "SOUTH AFRICA", "code" => "27"), "ZM" => array("name" => "ZAMBIA", "code" => "260"), "ZW" => array("name" => "ZIMBABWE", "code" => "263")); return $RHQ53 === "name" ? $MNDr8[$BL2cz]["name"] : $MNDr8[$BL2cz]["code"]; } } ?>

Did this file decode correctly?

Original Code

<?php 
 
/* 
 
+-------------------------+ 
 
| Creado por TEKNISERVICE | 
 
| www.tekniservice.com    | 
 
+-------------------------+ 
 
*/ 
 
 goto TObmX; hzTBm: exit("No direct script access allowed"); goto rz0Rx; rz0Rx: t5T4u: goto AGzEx; TObmX: if (defined("BASEPATH")) { goto t5T4u; } goto hzTBm; AGzEx: class Destinos_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_destinos() { goto N0CZo; glY25: tPswa: goto zypEk; zypEk: return $g2QMu; goto eHEoa; iXrVe: $g2QMu = $BSoTB->result(); goto A0bTz; N0CZo: $this->db->select()->from("tb_destinos"); goto yGMRU; A0bTz: foreach ($g2QMu as &$O7wIR) { goto bp2Oj; sWL8Y: $R32ml = json_decode($O7wIR->pais_destino); goto jV4oP; BaJsw: $y691g = json_decode($O7wIR->nombre_destino); goto sWL8Y; HNLFQ: DZtQ_: goto m0ZMh; ri3Fq: a8v_6: goto UKbNr; pctJ9: jeLfV: goto f87d8; bp2Oj: $O7wIR->transports = $this->getImageTransports($O7wIR->id_destino); goto BaJsw; UKbNr: unset($O7wIR->nombre_destino); goto aUtWq; jV4oP: foreach ($y691g as $LnJnz => $YQXB_) { $O7wIR->{"nombre_" . $LnJnz} = $YQXB_; BrA3z: } goto ri3Fq; aUtWq: foreach ($R32ml as $LnJnz => $aBsOM) { $O7wIR->{"pais_" . $LnJnz} = $aBsOM; o6GYD: } goto HNLFQ; m0ZMh: unset($O7wIR->pais_destino); goto pctJ9; f87d8: } goto glY25; yGMRU: $BSoTB = $this->db->get(); goto iXrVe; eHEoa: } private function getImageTransports($stE20) { goto ItMvH; vV3pO: $DY3fh->ImagenTranvia = file_exists($ILj38 . $stE20 . "_imagenTranvia.svg") ? $fjQOv . $stE20 . "_imagenTranvia.svg" : null; goto oXIeF; ItMvH: $ILj38 = FCPATH . "assets/img/transports" . DIRECTORY_SEPARATOR; goto eay_j; KNRUa: return $DY3fh; goto FW_oX; CzVWf: $DY3fh->ImagenMetro = file_exists($ILj38 . $stE20 . "_imagenMetro.svg") ? $fjQOv . $stE20 . "_imagenMetro.svg" : null; goto vV3pO; vh64U: $DY3fh = new stdClass(); goto CzVWf; oXIeF: $DY3fh->ImagenBus = file_exists($ILj38 . $stE20 . "_imagenBus.svg") ? $fjQOv . $stE20 . "_imagenBus.svg" : null; goto Jl7VA; eay_j: $fjQOv = base_url() . "assets/img/transports" . DIRECTORY_SEPARATOR; goto vh64U; Jl7VA: $DY3fh->ImagenTren = file_exists($ILj38 . $stE20 . "_imagenTren.svg") ? $fjQOv . $stE20 . "_imagenTren.svg" : null; goto KNRUa; FW_oX: } public function get_lista_servex_destinos() { goto sfmmO; Jyux0: $this->db->select("id_servicio as id, nombre_servicio as text, precio_base as precio")->from("tb_servicios_extras"); goto mq5me; s4Cg0: $this->db->where("tipo_servicio", 0); goto Jyux0; mq5me: $BSoTB = $this->db->get(); goto D1OB4; b2VEs: foreach ($p3mMY as $QA4oq) { $QA4oq->text = json_decode($QA4oq->text)->titulo->es . " - " . NumberFormatter::create("es_ES", NumberFormatter::DECIMAL)->format($QA4oq->precio); m9JLf: } goto DawIe; DawIe: kRFg_: goto R5r3W; D1OB4: $p3mMY = $BSoTB->result(); goto b2VEs; sfmmO: setlocale(LC_MONETARY, "es_ES"); goto s4Cg0; R5r3W: return $p3mMY; goto KG2Sn; KG2Sn: } public function get_lista_servex_destino($Ei1rT) { goto yqMwG; Hz9_U: $p3mMY = $BSoTB->result(); goto XCK5L; yqMwG: $this->db->where("id_destino", $Ei1rT); goto nyfn1; nyfn1: $this->db->join("tb_servicios_extras", "tb_servicios_extras.id_servicio = tb_destinos_servex.id_servicio", "left"); goto xVO62; xVO62: $this->db->select()->from("tb_destinos_servex"); goto zXMVs; XCK5L: foreach ($p3mMY as $QA4oq) { $QA4oq->nombre_servicio = json_decode($QA4oq->nombre_servicio)->titulo->es; AaMby: } goto uDsXt; X72jd: return $p3mMY; goto fqSgB; uDsXt: V1W5u: goto X72jd; zXMVs: $BSoTB = $this->db->get(); goto Hz9_U; fqSgB: } public function get_lista_expertos_destino($ZRKt4) { goto nK1gg; D2nPH: $BSoTB = $this->db->get(); goto I5KCS; I5KCS: $t0u1a = $BSoTB->result(); goto ygmtW; nK1gg: $this->db->where("id_destino", $ZRKt4); goto gCNXr; SFzuh: return $t0u1a; goto CbCgi; OGJoV: Gs66e: goto SFzuh; ygmtW: foreach ($t0u1a as $luxc6) { goto JCECj; K28Eb: array_unshift($smwJI, $luxc6->idioma_nativo); goto QiWQR; OxQLT: $smwJI = array_column($rxg7U, "code"); goto K28Eb; A3y0e: z6ALD: goto TFspB; uiXh1: $luxc6->nombre_completo = $luxc6->nombre . " " . $luxc6->apellidos . " - " . implode(" ", $smwJI); goto TNaor; Md9o_: unset($luxc6->idioma3); goto A3y0e; TNaor: unset($luxc6->idioma_nativo); goto FAIpA; LcQx7: $luxc6->nombre_simple = $luxc6->nombre . " " . $luxc6->apellidos; goto uiXh1; xsYbm: $this->db->select("code")->from("tb_idiomas"); goto QNXaD; EnDPx: $this->db->or_where("id_idioma", $luxc6->idioma3); goto xsYbm; g1OXt: $rxg7U = $BSoTB->result_array(); goto OxQLT; FAIpA: unset($luxc6->idioma2); goto Md9o_; I8JmL: cRndl: goto LcQx7; QNXaD: $BSoTB = $this->db->get(); goto g1OXt; JCECj: $this->db->where("id_idioma", $luxc6->idioma2); goto EnDPx; QiWQR: foreach ($smwJI as &$fQMoH) { $fQMoH = "<img class="flag-list-border" src="/assets/img/flags/svg/" . $fQMoH . ".svg">"; u0TF6: } goto I8JmL; TFspB: } goto OGJoV; yglN4: $this->db->join("tb_idiomas", "tb_idiomas.id_idioma = tb_expertos.idioma_nativo", "left"); goto e0wkb; e0wkb: $this->db->select("nombre, apellidos, id_destino_experto, id_destino, tb_destinos_expertos.id_experto, tb_idiomas.code as idioma_nativo, idioma2, idioma3")->from("tb_destinos_expertos"); goto D2nPH; gCNXr: $this->db->join("tb_expertos", "tb_expertos.id_experto = tb_destinos_expertos.id_experto", "left"); goto yglN4; CbCgi: } public function get_lista_expertos() { goto ZnlZb; ZnlZb: $this->db->join("tb_idiomas", "tb_idiomas.id_idioma = tb_expertos.idioma_nativo", "left"); goto BmMec; YxbFc: $BSoTB = $this->db->get(); goto mnJuk; mnJuk: $t0u1a = $BSoTB->result(); goto vxN26; vxN26: foreach ($t0u1a as $luxc6) { goto nFFfZ; iOezs: unset($luxc6->listaIdiomas); goto SYm7J; uSGKF: tMFnh: goto yoxwZ; aVg2u: unset($luxc6->idioma3); goto uSGKF; AJRqR: foreach ($smwJI as &$fQMoH) { $fQMoH = "<img class="flag-list-border" src="/assets/img/flags/svg/" . $fQMoH . ".svg">"; wjjvf: } goto f4opn; MHF_4: $BSoTB = $this->db->get(); goto yvwuw; H1b5J: $smwJI = array_column($rxg7U, "code"); goto EZBGO; Yxtok: $this->db->select("code")->from("tb_idiomas"); goto MHF_4; ggtj3: $luxc6->text = $luxc6->nombre . " " . $luxc6->apellidos; goto fj1cl; yvwuw: $rxg7U = $BSoTB->result_array(); goto H1b5J; PA06Q: $this->db->or_where("id_idioma", $luxc6->idioma3); goto Yxtok; EZBGO: array_unshift($smwJI, $luxc6->idioma_nativo); goto AJRqR; nFFfZ: $this->db->where("id_idioma", $luxc6->idioma2); goto PA06Q; LfwYQ: $luxc6->image = implode(" ", $smwJI); goto ggtj3; SYm7J: unset($luxc6->idioma2); goto aVg2u; fj1cl: unset($luxc6->idioma_nativo); goto iOezs; f4opn: Mvzkn: goto LfwYQ; yoxwZ: } goto WcZiU; WcZiU: JkQiq: goto eF7WU; BmMec: $this->db->select("nombre, apellidos, id_experto as id, tb_idiomas.code as idioma_nativo, idioma2, idioma3")->from("tb_expertos"); goto YxbFc; eF7WU: return $t0u1a; goto iVTWH; iVTWH: } public function get_lista_destino_actividades($Ei1rT) { goto S61lZ; FCRmc: $kpBT0 = $BSoTB->result(); goto AD3_u; z24cJ: return $kpBT0; goto nTtpX; S61lZ: $this->db->where("id_destino", $Ei1rT); goto BEn6E; qg9vl: $BSoTB = $this->db->get(); goto FCRmc; AD3_u: foreach ($kpBT0 as &$u5cbW) { goto gczc5; tknpL: $u5cbW->evento = ["eventStart" => empty($DnVo4) ? null : $DnVo4[array_key_first($DnVo4)]->eventDay, "eventEnd" => empty($DnVo4) ? null : $DnVo4[array_key_last($DnVo4)]->eventDay, "recurrenceDays" => array_values(array_unique($Kkiz2)), "type" => count($sAKQ9) > count($ppaOE) ? 0 : 1]; goto OJ3v3; oaRwH: qboG8: goto tknpL; FX17x: $this->db->where("id_activity", $u5cbW->id_destino_actividad); goto vLqVk; ZdxMe: $this->db->order_by("eventDay", "asc"); goto ugHsw; mJQYg: $DnVo4 = $BSoTB->result(); goto hB_qa; Gr2C0: DCYCA: goto pwsiW; Q4YTG: $ppaOE = []; goto Ipr3P; nRIaZ: if (!($u5cbW->tipo == 3)) { goto iQVH7; } goto FX17x; hB_qa: $Kkiz2 = []; goto Obrje; Obrje: $sAKQ9 = []; goto Q4YTG; V6Mui: $u5cbW->nombre_actividad = $w5EWB->es; goto nRIaZ; gczc5: $w5EWB = json_decode($u5cbW->titulo); goto V6Mui; Ipr3P: foreach ($DnVo4 as $RZHnc) { goto Luu_H; kpCff: jAXxu: goto K821G; Zj4fb: cETNZ: goto ckx33; K821G: $sAKQ9[] = $RZHnc; goto Zj4fb; Luu_H: $Kkiz2[] = \Carbon\Carbon::parse($RZHnc->eventDay)->format("l"); goto sFJsA; fc92L: $ppaOE[] = $RZHnc; goto gzw82; gzw82: goto cETNZ; goto kpCff; ckx33: bjFwi: goto GzwyE; sFJsA: if ($RZHnc->type == 0) { goto jAXxu; } goto fc92L; GzwyE: } goto oaRwH; OJ3v3: iQVH7: goto Gr2C0; vLqVk: $this->db->select()->from("tb_events"); goto ZdxMe; ugHsw: $BSoTB = $this->db->get(); goto mJQYg; pwsiW: } goto FuY1h; BEn6E: $this->db->select()->from("tb_destinos_actividades"); goto qg9vl; FuY1h: sYF6F: goto z24cJ; nTtpX: } public function getActividadesPrincipal($ubO5i) { goto f4GuC; Tj4Xd: $this->db->join("tb_destinos_actividades", "tb_destinos_actividades.id_destino_actividad = tb_actividades_relacionadas.id_actividad"); goto xB_Ao; xB_Ao: $BSoTB = $this->db->get(); goto fcXIl; QqBWU: return $kpBT0; goto vRZul; fcXIl: $kpBT0 = $BSoTB->result(); goto NNw74; I0Ooh: $this->db->from("tb_actividades_relacionadas"); goto Tj4Xd; f4GuC: $this->db->where("id_actividad_relacionada", $ubO5i); goto qjECo; n7VFy: Lz91I: goto QqBWU; qjECo: $this->db->select("titulo"); goto I0Ooh; NNw74: foreach ($kpBT0 as $u5cbW) { goto n500f; DlZhr: $u5cbW->nombre_actividad = $w5EWB->es; goto qT_aT; n500f: $w5EWB = json_decode($u5cbW->titulo); goto DlZhr; qT_aT: mLzJn: goto TA7fL; TA7fL: } goto n7VFy; vRZul: } public function getActividadesRelacionadas($stE20, $aBUDK) { goto j9zCk; GVvpk: foreach ($zMCSE as $u5cbW) { goto A0Avc; B4U7z: G9owD: goto bUbZv; A0Avc: $w5EWB = json_decode($u5cbW->titulo); goto yd8Ql; HNvVN: unset($u5cbW->textospeech); goto XOWNl; zyuXQ: unset($u5cbW->longdesc); goto HNvVN; XOWNl: unset($u5cbW->titulo); goto B4U7z; yd8Ql: $u5cbW->nombre_actividad = $w5EWB->es; goto T12p8; T12p8: unset($u5cbW->shortdesc); goto zyuXQ; bUbZv: } goto PgNYI; APPTB: $this->db->select()->from("tb_destinos_actividades"); goto S_Pmc; mmnX2: foreach ($g00Ya as $u5cbW) { goto FOatB; FVGQw: taU_b: goto VC6yn; vlBdp: $u5cbW->nombre_actividad = $w5EWB->es; goto FVGQw; FOatB: $w5EWB = json_decode($u5cbW->titulo); goto vlBdp; VC6yn: } goto WNjM3; L5cWo: $g00Ya = $EzPP1->result(); goto mmnX2; j9zCk: $this->db->where("id_actividad", $aBUDK); goto QgbW9; PgNYI: SsYTA: goto Cr20T; JtqFg: $LE0Xl = array_column($g00Ya, "nombre_actividad"); goto izI6c; zrygq: $WvkHE = ["actividadesRelacionadas" => $g00Ya, "listaActividadesRelacionadas" => $zMCSE]; goto yNlTu; ZDq0s: $this->db->where("id_destino", $stE20); goto Icpa3; p4EWe: $zMCSE = $VBtdz->result(); goto GVvpk; izI6c: array_multisort($LE0Xl, SORT_ASC, $g00Ya); goto ZDq0s; S_Pmc: $VBtdz = $this->db->get(); goto p4EWe; QgbW9: $this->db->join("tb_destinos_actividades", "tb_destinos_actividades.id_destino_actividad = tb_actividades_relacionadas.id_actividad_relacionada", "left"); goto ydnVY; Icpa3: $this->db->where("tipo", 1); goto APPTB; yNlTu: return $WvkHE; goto F3hQ0; ydnVY: $this->db->select()->from("tb_actividades_relacionadas"); goto neVsE; WNjM3: AJusS: goto JtqFg; Cr20T: $YKLWN = array_column($zMCSE, "nombre_actividad"); goto s_D18; s_D18: array_multisort($YKLWN, SORT_ASC, $zMCSE); goto zrygq; neVsE: $EzPP1 = $this->db->get(); goto L5cWo; F3hQ0: } public function addActividadRelacionada($aBUDK, $agWYd) { $BSoTB = $this->db->insert("tb_actividades_relacionadas", array("id_actividad" => $aBUDK, "id_actividad_relacionada" => $agWYd)); return $BSoTB; } public function removeActividadRelacionada($aBUDK, $agWYd) { $BSoTB = $this->db->delete("tb_actividades_relacionadas", array("id_actividad" => $aBUDK, "id_actividad_relacionada" => $agWYd)); return $BSoTB; } public function get_filename($dtVDh) { goto z_Sg5; rkTGW: $BSoTB = $this->db->get(); goto d1x29; z_Sg5: $this->db->where("id_destino_actividad", $dtVDh); goto i4p8q; i4p8q: $this->db->select("filename")->from("tb_destinos_actividades"); goto rkTGW; d1x29: $fh_Uz = $BSoTB->row(); goto kT1yQ; kT1yQ: return $fh_Uz->filename; goto Shvoq; Shvoq: } public function new_destino($Zo4Q1) { goto irCuw; Jm72o: $VXk5O = json_encode($aHGCV); goto H7f5n; eXF5a: foreach ($Zo4Q1 as $LnJnz => $O7wIR) { goto Y0KY4; V37Xd: c3GVE: goto eNA0p; fDjhb: goto Mjulc; goto mHxu3; Y0KY4: $oYBu0 = explode("_", $LnJnz); goto Ni6QV; mHxu3: t24R_: goto qnnne; mzbr_: goto Mjulc; goto V37Xd; VehM3: Mjulc: goto okuei; k7lGz: if ($oYBu0[0] == "pais") { goto c3GVE; } goto fDjhb; eNA0p: $aHGCV[$oYBu0[1]] = trim($O7wIR); goto VehM3; okuei: PjH_q: goto KTusc; qnnne: $RYg69[$oYBu0[1]] = trim($O7wIR); goto mzbr_; Ni6QV: if ($oYBu0[0] == "destino") { goto t24R_; } goto k7lGz; KTusc: } goto omCD_; tqKOs: $aHGCV = array(); goto eXF5a; bbr9N: $RYg69 = array(); goto tqKOs; H7f5n: $BSoTB = $this->db->insert("tb_destinos", array("nombre_destino" => $u7EB2, "pais_destino" => $VXk5O)); goto bvpqx; omCD_: wlQ2f: goto Z6heM; s_996: unset($Zo4Q1["id_destino"]); goto bbr9N; Z6heM: $u7EB2 = json_encode($RYg69); goto Jm72o; irCuw: unset($Zo4Q1["tipo_accion"]); goto s_996; bvpqx: return $BSoTB; goto qkwha; qkwha: } public function update_destino($Zo4Q1) { goto w2d9Z; ERoIk: $RYg69 = array(); goto yuxTE; yuxTE: $aHGCV = array(); goto jn2H7; jn2H7: unset($Zo4Q1["tipo_accion"]); goto j71oh; j71oh: unset($Zo4Q1["id_destino"]); goto k1roq; gx4BH: $u7EB2 = json_encode($RYg69); goto bOMmf; deGuZ: $BSoTB = $this->db->update("tb_destinos"); goto icMYF; lZhNo: $this->db->set("pais_destino", $VXk5O); goto mzhUt; Czp6q: $this->db->set("nombre_destino", $u7EB2); goto lZhNo; w2d9Z: $Ei1rT = $Zo4Q1["id_destino"]; goto ERoIk; YXRG3: F8uG1: goto gx4BH; k1roq: foreach ($Zo4Q1 as $LnJnz => $QA4oq) { goto pHwoh; pMIO7: APF2p: goto lGSsE; pHwoh: $oYBu0 = explode("_", $LnJnz); goto GKF2k; v0Yh6: NyOM6: goto nTt4V; nVpc4: OAt71: goto J6C21; nTt4V: $aHGCV[$oYBu0[1]] = trim($QA4oq); goto Pk1Xq; GKF2k: if ($oYBu0[0] == "destino") { goto OAt71; } goto AO8sr; J6C21: $RYg69[$oYBu0[1]] = trim($QA4oq); goto V0_HN; AO8sr: if ($oYBu0[0] == "pais") { goto NyOM6; } goto yZFHH; V0_HN: goto ePkJl; goto v0Yh6; yZFHH: goto ePkJl; goto nVpc4; Pk1Xq: ePkJl: goto pMIO7; lGSsE: } goto YXRG3; mzhUt: $this->db->where("id_destino", $Ei1rT); goto deGuZ; bOMmf: $VXk5O = json_encode($aHGCV); goto Czp6q; icMYF: return $BSoTB; goto YWdXy; YWdXy: } public function delete_destino($Ei1rT) { goto D3Crs; vCpyb: $BSoTB = $this->db->delete("tb_destinos_extras"); goto zFyta; zFyta: return $BSoTB; goto XHvGw; D3Crs: $this->db->where("id_destino", $Ei1rT); goto vCpyb; XHvGw: } public function new_servex_destino($McoGS) { goto mkUZo; bhPtl: return $WvkHE; goto UBezW; fr9fE: $WvkHE["id_creada"] = $this->db->insert_id(); goto bhPtl; mkUZo: $this->db->insert("tb_destinos_servex", $McoGS); goto fr9fE; UBezW: } public function new_experto_destino($i4hEO) { goto YQnPJ; f2_T5: $WvkHE["id_creada"] = $this->db->insert_id(); goto TwFe5; YQnPJ: $this->db->insert("tb_destinos_expertos", $i4hEO); goto f2_T5; TwFe5: return $WvkHE; goto gkKhH; gkKhH: } public function update_price_servex($iVCjd) { goto S9Kyl; nUXqd: $this->db->where("id_destino_servex", $iVCjd["id_destino_servex"]); goto reqKf; S9Kyl: $this->db->set("precio", $iVCjd["precio"]); goto nUXqd; reqKf: $BSoTB = $this->db->update("tb_destinos_servex"); goto ljGMg; ljGMg: return $BSoTB; goto GHtxH; GHtxH: } public function new_actividad($BtUs5) { goto C94HZ; sahZG: $this->createEvents($sUan_, $BtUs5); goto xSUnI; aHYrZ: t8mmS: goto gdgnn; YwLNA: $IflKW = json_encode($uoDcW); goto nSChW; aaFII: $YtGvt = json_encode($rIRJG); goto tbXC5; cTSlU: $sUan_ = $this->db->insert_id(); goto sahZG; nSChW: $BSoTB = $this->db->insert("tb_destinos_actividades", ["id_destino" => $BtUs5->id_destino, "category" => $BtUs5->category, "tipo" => $BtUs5->actividad_tipo, "titulo" => $MnQZo, "shortdesc" => $YtGvt, "longdesc" => $JOInw, "textospeech" => $IflKW, "esencial" => $BtUs5->esencial, "kids" => $BtUs5->kids, "icono" => $BtUs5->icono, "direccion" => $BtUs5->direccion, "codigo_postal" => $BtUs5->codigo_postal, "coordenadas" => $BtUs5->coordenadas, "filename" => $BtUs5->filename, "url_video_es" => empty(trim($BtUs5->url_video_es)) ? NULL : trim($BtUs5->url_video_es), "url_video_en" => empty(trim($BtUs5->url_video_en)) ? NULL : trim($BtUs5->url_video_en)]); goto cTSlU; Qwt31: $rIRJG = []; goto eLXYD; eLXYD: $bJT_i = []; goto q3pxh; tbXC5: $JOInw = json_encode($bJT_i); goto YwLNA; q3pxh: $uoDcW = []; goto GHGjv; C94HZ: unset($BtUs5->tipo_accion); goto Axujv; gdgnn: $MnQZo = json_encode($cwkln); goto aaFII; GHGjv: foreach ($BtUs5 as $LnJnz => $UQzDA) { goto m2AjX; dKKKs: if ($oYBu0[0] == "textaudioguia") { goto Padet; } goto AH1ND; HBc7q: if ($oYBu0[0] == "shortdesc") { goto H6TZ7; } goto z0pLL; XzOnh: if ($oYBu0[0] == "titulo") { goto yfOKG; } goto HBc7q; Fw_NH: $cwkln[$oYBu0[1]] = $UQzDA; goto O5hxc; ZI240: Padet: goto rWn6D; rWn6D: $uoDcW[$oYBu0[1]] = $UQzDA; goto HTcEv; pJdkc: $bJT_i[$oYBu0[1]] = $UQzDA; goto Ub1TD; z0pLL: if ($oYBu0[0] == "longdesc") { goto fxaWo; } goto dKKKs; oFOEY: H6TZ7: goto eeeea; DjdOV: goto Sd2cB; goto edVk0; edVk0: fxaWo: goto pJdkc; O5hxc: goto Sd2cB; goto oFOEY; AH1ND: goto Sd2cB; goto O7et0; Ub1TD: goto Sd2cB; goto ZI240; hXYI6: x2IBB: goto pbNTx; HTcEv: Sd2cB: goto hXYI6; eeeea: $rIRJG[$oYBu0[1]] = $UQzDA; goto DjdOV; m2AjX: $oYBu0 = explode("_", $LnJnz); goto XzOnh; O7et0: yfOKG: goto Fw_NH; pbNTx: } goto aHYrZ; xSUnI: return $BSoTB; goto ngP0Z; Axujv: $cwkln = []; goto Qwt31; ngP0Z: } private function createEvents($BzLJ2, $BtUs5) { goto tPnji; Vx1Lp: ZVaYy: goto TJ0cv; eDD3N: $this->db->where("id_activity", $BzLJ2); goto YmdRu; eGMt2: $vwV_2 = $b9m9S; goto h04fG; h04fG: fErpl: goto zKjfs; tPnji: $baBhV = []; goto X9649; zKxmO: $b9m9S = \Carbon\Carbon::parse($BtUs5->eventDayStart); goto xXtAR; fpnnS: $baBhV[] = ["id_activity" => $BzLJ2, "eventDay" => $vwV_2->format("Y-m-d"), "type" => property_exists($BtUs5, "eventType") and $BtUs5->eventType === "on"]; goto qRt9I; sY0nb: goto JKlQH; goto T9Q65; mZT26: TgAtj: goto AU2na; zKjfs: if (!$vwV_2->lte($IYstw)) { goto NCP4R; } goto fpnnS; SE9CY: foreach ($BtUs5 as $LnJnz => $UQzDA) { goto vch7d; hnrBb: nqNUR: goto NhUnE; NhUnE: yCB3v: goto EJACx; vch7d: if (!preg_match("/^eventRecurrence/", $LnJnz)) { goto nqNUR; } goto EnE9C; EnE9C: $IBn6q[] = substr($LnJnz, 15); goto hnrBb; EJACx: } goto Vx1Lp; TJ0cv: if (!(property_exists($BtUs5, "eventDayStart") and property_exists($BtUs5, "eventDayEnd"))) { goto stCms; } goto hoFPC; YmdRu: $this->db->delete("tb_events"); goto SE9CY; xXtAR: $IYstw = \Carbon\Carbon::parse($BtUs5->eventDayEnd); goto eGMt2; T9Q65: vuGuK: goto raLmV; qRt9I: WgFma: goto aB1Dd; cn_hJ: goto fErpl; goto Ky0Ab; aB1Dd: $vwV_2->addDay(); goto cn_hJ; X9649: $IBn6q = []; goto eDD3N; hoFPC: if (count($IBn6q) > 0) { goto vuGuK; } goto zKxmO; JN_PU: stCms: goto s7Xy3; HYABd: $this->db->insert_batch("tb_events", $baBhV); goto JN_PU; AU2na: JKlQH: goto HYABd; Ky0Ab: NCP4R: goto sY0nb; raLmV: foreach ($IBn6q as $p0Cg9) { goto Ihb4z; CukiQ: $IYstw = \Carbon\Carbon::parse($BtUs5->eventDayEnd); goto mTbKH; CABeN: $b9m9S = \Carbon\Carbon::parse($BtUs5->eventDayStart)->modify("this {$p0Cg9}"); goto CukiQ; fm40M: m5wJc: goto B2463; B2463: $vwV_2->addWeek(); goto ebM_G; Lj4NL: VV22M: goto edSRW; mTbKH: $vwV_2 = $b9m9S; goto AyVV2; ihnqe: if (!$vwV_2->lte($IYstw)) { goto NMDTa; } goto ZTZPK; Ihb4z: $p0Cg9 = strtolower($p0Cg9); goto CABeN; AyVV2: kLZFa: goto ihnqe; IY6qk: NMDTa: goto Lj4NL; ebM_G: goto kLZFa; goto IY6qk; ZTZPK: $baBhV[] = ["id_activity" => $BzLJ2, "eventDay" => $vwV_2->format("Y-m-d"), "type" => property_exists($BtUs5, "eventType") and $BtUs5->eventType === "on"]; goto fm40M; edSRW: } goto mZT26; s7Xy3: } public function update_actividad($BtUs5, $wjyah = false) { goto xog5W; jRJfY: $bJT_i = []; goto dC3Td; r8uQe: $Fku2o = json_decode($Skmg9); goto FHbmD; AD21T: $ooDZz["filename"] = $BtUs5->filename; goto S7AG3; cY8Zh: gboQh: goto oFU9Q; dCVjc: H9mfE: goto jnbZa; rI6No: $ooDZz["kids"] = $BtUs5->kids; goto QC3cL; fpiwr: $ooDZz["web"] = trim($BtUs5->web); goto lecrL; wn1Yj: $ooDZz["filename"] = null; goto KN1WM; cu_WJ: return $BSoTB; goto T4zmE; B_WDB: foreach ($BtUs5 as $LnJnz => $UQzDA) { goto IuLdm; qcw7n: $uoDcW[$oYBu0[1]] = $UQzDA; goto AcHcI; spbQa: DRW1_: goto EhE40; IuLdm: $oYBu0 = explode("_", $LnJnz); goto qIGbF; P1gPM: IfP3p: goto qcw7n; Z2tyt: $CB__j[$oYBu0[1]] = $UQzDA; goto qudX9; uK1CH: goto hVP_b; goto spbQa; guxdI: kJYGu: goto Z2tyt; h7BR9: aHdg9: goto MYPaM; FE12A: goto hVP_b; goto BmlkK; GE38q: if ($oYBu0[0] == "shortdesc") { goto aHdg9; } goto IVzr2; MYPaM: $rIRJG[$oYBu0[1]] = $UQzDA; goto FE12A; AA2e9: if ($oYBu0[0] == "transportsdesc") { goto kJYGu; } goto uK1CH; SXWAC: irBL5: goto RAW5_; IVzr2: if ($oYBu0[0] == "longdesc") { goto u_1IB; } goto Ge8pk; AcHcI: goto hVP_b; goto guxdI; qIGbF: if ($oYBu0[0] == "titulo") { goto DRW1_; } goto GE38q; Ge8pk: if ($oYBu0[0] == "textaudioguia") { goto IfP3p; } goto AA2e9; qudX9: hVP_b: goto SXWAC; aYAKh: goto hVP_b; goto P1gPM; z88Xv: goto hVP_b; goto h7BR9; o3Egt: $bJT_i[$oYBu0[1]] = $UQzDA; goto aYAKh; BmlkK: u_1IB: goto o3Egt; EhE40: $cwkln[$oYBu0[1]] = $UQzDA; goto z88Xv; RAW5_: } goto cY8Zh; aCXnj: $BSoTB = $this->db->get(); goto hXOL3; RZ2HC: if (!(property_exists($BtUs5, "borrar_imagen") and $BtUs5->borrar_imagen)) { goto KuZcG; } goto CG1FP; oNt27: w12qV: goto WcRnK; WcRnK: if (!($y5TS0 < count($Fku2o->results[0]->address_components))) { goto JDtWM; } goto WFh5Y; bHrkH: $this->db->select("filename")->from("tb_destinos_actividades"); goto aCXnj; ahqCG: $ooDZz["telefono"] = trim($BtUs5->telefono); goto YyPvI; P1sB9: if (!(is_file($AQPtN . $fh_Uz->filename) and file_exists($AQPtN . $fh_Uz->filename))) { goto FiRRa; } goto lKjkE; hXOL3: $fh_Uz = $BSoTB->row(); goto NBBBp; WN0Iy: $CB__j = []; goto B_WDB; MyFv0: $ooDZz["url_video_es"] = empty(trim($BtUs5->url_video_es)) ? NULL : trim($BtUs5->url_video_es); goto vlpnh; XU4or: $this->createEvents($BtUs5->id_actividad, $BtUs5); goto bCglG; YyPvI: $ooDZz["email"] = trim($BtUs5->email); goto fpiwr; nkPjy: $ooDZz["direccion"] = trim($BtUs5->direccion); goto Ejr0b; tSFmS: $ooDZz["shortdesc"] = json_encode($rIRJG); goto bQGqA; dC3Td: $uoDcW = []; goto WN0Iy; QeKvo: $AQPtN = FCPATH . "assets/img_actividades/"; goto P1sB9; S7AG3: Go2nM: goto zFqMt; hNr19: $this->db->where("id_destino_actividad", $BtUs5->id_actividad); goto bHrkH; lecrL: $ooDZz["prefix_tel"] = NULL; goto MyFv0; lKjkE: unlink($AQPtN . $fh_Uz->filename); goto pqgLb; YM6Ud: if (empty($ooDZz["telefono"])) { goto E0OJY; } goto de0NJ; bQGqA: $ooDZz["longdesc"] = json_encode($bJT_i); goto AD6Tb; w25zE: $this->db->select("filename")->from("tb_destinos_actividades"); goto Oi37A; ejxdG: $ooDZz["coordenadas"] = trim($BtUs5->coordenadas); goto ahqCG; JqPbB: $ooDZz["esencial"] = $BtUs5->esencial; goto rI6No; oFU9Q: $ooDZz["category"] = $BtUs5->category; goto ea9Yn; bRHtl: goto w12qV; goto rRQbC; VdIqi: unlink($AQPtN . $fh_Uz->filename); goto l1Hej; Ok7Lb: E0OJY: goto NmBiZ; FA8Oi: if (!(is_file($AQPtN . $fh_Uz->filename) and file_exists($AQPtN . $fh_Uz->filename))) { goto Wd6TE; } goto VdIqi; Oi37A: $BSoTB = $this->db->get(); goto e7Hth; e7Hth: $fh_Uz = $BSoTB->row(); goto QeKvo; j6W7z: goto Go2nM; goto DKjD2; LLsIJ: $BSoTB = $this->db->update("tb_destinos_actividades"); goto nBYTN; KN1WM: KuZcG: goto j6W7z; FHbmD: $y5TS0 = 0; goto oNt27; CG1FP: $this->db->where("id_destino_actividad", $BtUs5->id_actividad); goto w25zE; l1Hej: Wd6TE: goto AD21T; vqlxo: $y5TS0++; goto bRHtl; OBPG1: $ooDZz["prefix_tel"] = $this->getPrefixPhone($Fku2o->results[0]->address_components[$y5TS0]->short_name); goto dCVjc; AD6Tb: $ooDZz["transportsdesc"] = json_encode($CB__j); goto npDtn; nURYz: $cwkln = []; goto U7smX; bCglG: ds3Hp: goto cu_WJ; npDtn: $ooDZz["textospeech"] = json_encode($uoDcW); goto JqPbB; jnbZa: h33cR: goto vqlxo; zFqMt: $this->db->set($ooDZz); goto uPcaT; vlpnh: $ooDZz["url_video_en"] = empty(trim($BtUs5->url_video_en)) ? NULL : trim($BtUs5->url_video_en); goto YM6Ud; NmBiZ: if (property_exists($BtUs5, "filename")) { goto oKtmT; } goto RZ2HC; pqgLb: FiRRa: goto wn1Yj; U7smX: $rIRJG = []; goto jRJfY; DKjD2: oKtmT: goto hNr19; QC3cL: $ooDZz["icono"] = $BtUs5->icono; goto nkPjy; WyelR: if (!in_array("country", $rlcTb)) { goto H9mfE; } goto OBPG1; ea9Yn: $ooDZz["titulo"] = json_encode($cwkln); goto tSFmS; WFh5Y: $rlcTb = array($Fku2o->results[0]->address_components[$y5TS0]->types[0]); goto WyelR; de0NJ: $Skmg9 = file_get_contents("https://maps.googleapis.com/maps/api/geocode/json?latlng=" . preg_replace("/\s+/", '', $ooDZz["coordenadas"]) . "&sensor=false&key=" . GOOGLE_MAP_API); goto r8uQe; Ejr0b: $ooDZz["codigo_postal"] = trim($BtUs5->codigo_postal); goto ejxdG; xog5W: unset($BtUs5->actividad_tipo); goto nURYz; nBYTN: if (!$wjyah) { goto ds3Hp; } goto XU4or; NBBBp: $AQPtN = FCPATH . "assets/img_actividades/"; goto FA8Oi; rRQbC: JDtWM: goto Ok7Lb; uPcaT: $this->db->where("id_destino_actividad", $BtUs5->id_actividad); goto LLsIJ; T4zmE: } public function delete_actividad($Ei1rT) { goto HM3Hs; N4NjB: return $BSoTB; goto u3gfq; QIrQd: $BSoTB = $this->db->delete("tb_destinos_extras"); goto N4NjB; HM3Hs: $this->db->where("id_destino", $Ei1rT); goto QIrQd; u3gfq: } private function getPrefixPhone($BL2cz, $RHQ53 = "code") { $MNDr8 = array("AD" => array("name" => "ANDORRA", "code" => "376"), "AE" => array("name" => "UNITED ARAB EMIRATES", "code" => "971"), "AF" => array("name" => "AFGHANISTAN", "code" => "93"), "AG" => array("name" => "ANTIGUA AND BARBUDA", "code" => "1268"), "AI" => array("name" => "ANGUILLA", "code" => "1264"), "AL" => array("name" => "ALBANIA", "code" => "355"), "AM" => array("name" => "ARMENIA", "code" => "374"), "AN" => array("name" => "NETHERLANDS ANTILLES", "code" => "599"), "AO" => array("name" => "ANGOLA", "code" => "244"), "AQ" => array("name" => "ANTARCTICA", "code" => "672"), "AR" => array("name" => "ARGENTINA", "code" => "54"), "AS" => array("name" => "AMERICAN SAMOA", "code" => "1684"), "AT" => array("name" => "AUSTRIA", "code" => "43"), "AU" => array("name" => "AUSTRALIA", "code" => "61"), "AW" => array("name" => "ARUBA", "code" => "297"), "AZ" => array("name" => "AZERBAIJAN", "code" => "994"), "BA" => array("name" => "BOSNIA AND HERZEGOVINA", "code" => "387"), "BB" => array("name" => "BARBADOS", "code" => "1246"), "BD" => array("name" => "BANGLADESH", "code" => "880"), "BE" => array("name" => "BELGIUM", "code" => "32"), "BF" => array("name" => "BURKINA FASO", "code" => "226"), "BG" => array("name" => "BULGARIA", "code" => "359"), "BH" => array("name" => "BAHRAIN", "code" => "973"), "BI" => array("name" => "BURUNDI", "code" => "257"), "BJ" => array("name" => "BENIN", "code" => "229"), "BL" => array("name" => "SAINT BARTHELEMY", "code" => "590"), "BM" => array("name" => "BERMUDA", "code" => "1441"), "BN" => array("name" => "BRUNEI DARUSSALAM", "code" => "673"), "BO" => array("name" => "BOLIVIA", "code" => "591"), "BR" => array("name" => "BRAZIL", "code" => "55"), "BS" => array("name" => "BAHAMAS", "code" => "1242"), "BT" => array("name" => "BHUTAN", "code" => "975"), "BW" => array("name" => "BOTSWANA", "code" => "267"), "BY" => array("name" => "BELARUS", "code" => "375"), "BZ" => array("name" => "BELIZE", "code" => "501"), "CA" => array("name" => "CANADA", "code" => "1"), "CC" => array("name" => "COCOS (KEELING) ISLANDS", "code" => "61"), "CD" => array("name" => "CONGO, THE DEMOCRATIC REPUBLIC OF THE", "code" => "243"), "CF" => array("name" => "CENTRAL AFRICAN REPUBLIC", "code" => "236"), "CG" => array("name" => "CONGO", "code" => "242"), "CH" => array("name" => "SWITZERLAND", "code" => "41"), "CI" => array("name" => "COTE D IVOIRE", "code" => "225"), "CK" => array("name" => "COOK ISLANDS", "code" => "682"), "CL" => array("name" => "CHILE", "code" => "56"), "CM" => array("name" => "CAMEROON", "code" => "237"), "CN" => array("name" => "CHINA", "code" => "86"), "CO" => array("name" => "COLOMBIA", "code" => "57"), "CR" => array("name" => "COSTA RICA", "code" => "506"), "CU" => array("name" => "CUBA", "code" => "53"), "CV" => array("name" => "CAPE VERDE", "code" => "238"), "CX" => array("name" => "CHRISTMAS ISLAND", "code" => "61"), "CY" => array("name" => "CYPRUS", "code" => "357"), "CZ" => array("name" => "CZECH REPUBLIC", "code" => "420"), "DE" => array("name" => "GERMANY", "code" => "49"), "DJ" => array("name" => "DJIBOUTI", "code" => "253"), "DK" => array("name" => "DENMARK", "code" => "45"), "DM" => array("name" => "DOMINICA", "code" => "1767"), "DO" => array("name" => "DOMINICAN REPUBLIC", "code" => "1809"), "DZ" => array("name" => "ALGERIA", "code" => "213"), "EC" => array("name" => "ECUADOR", "code" => "593"), "EE" => array("name" => "ESTONIA", "code" => "372"), "EG" => array("name" => "EGYPT", "code" => "20"), "ER" => array("name" => "ERITREA", "code" => "291"), "ES" => array("name" => "SPAIN", "code" => "34"), "ET" => array("name" => "ETHIOPIA", "code" => "251"), "FI" => array("name" => "FINLAND", "code" => "358"), "FJ" => array("name" => "FIJI", "code" => "679"), "FK" => array("name" => "FALKLAND ISLANDS (MALVINAS)", "code" => "500"), "FM" => array("name" => "MICRONESIA, FEDERATED STATES OF", "code" => "691"), "FO" => array("name" => "FAROE ISLANDS", "code" => "298"), "FR" => array("name" => "FRANCE", "code" => "33"), "GA" => array("name" => "GABON", "code" => "241"), "GB" => array("name" => "UNITED KINGDOM", "code" => "44"), "GD" => array("name" => "GRENADA", "code" => "1473"), "GE" => array("name" => "GEORGIA", "code" => "995"), "GH" => array("name" => "GHANA", "code" => "233"), "GI" => array("name" => "GIBRALTAR", "code" => "350"), "GL" => array("name" => "GREENLAND", "code" => "299"), "GM" => array("name" => "GAMBIA", "code" => "220"), "GN" => array("name" => "GUINEA", "code" => "224"), "GQ" => array("name" => "EQUATORIAL GUINEA", "code" => "240"), "GR" => array("name" => "GREECE", "code" => "30"), "GT" => array("name" => "GUATEMALA", "code" => "502"), "GU" => array("name" => "GUAM", "code" => "1671"), "GW" => array("name" => "GUINEA-BISSAU", "code" => "245"), "GY" => array("name" => "GUYANA", "code" => "592"), "HK" => array("name" => "HONG KONG", "code" => "852"), "HN" => array("name" => "HONDURAS", "code" => "504"), "HR" => array("name" => "CROATIA", "code" => "385"), "HT" => array("name" => "HAITI", "code" => "509"), "HU" => array("name" => "HUNGARY", "code" => "36"), "ID" => array("name" => "INDONESIA", "code" => "62"), "IE" => array("name" => "IRELAND", "code" => "353"), "IL" => array("name" => "ISRAEL", "code" => "972"), "IM" => array("name" => "ISLE OF MAN", "code" => "44"), "IN" => array("name" => "INDIA", "code" => "91"), "IQ" => array("name" => "IRAQ", "code" => "964"), "IR" => array("name" => "IRAN, ISLAMIC REPUBLIC OF", "code" => "98"), "IS" => array("name" => "ICELAND", "code" => "354"), "IT" => array("name" => "ITALY", "code" => "39"), "JM" => array("name" => "JAMAICA", "code" => "1876"), "JO" => array("name" => "JORDAN", "code" => "962"), "JP" => array("name" => "JAPAN", "code" => "81"), "KE" => array("name" => "KENYA", "code" => "254"), "KG" => array("name" => "KYRGYZSTAN", "code" => "996"), "KH" => array("name" => "CAMBODIA", "code" => "855"), "KI" => array("name" => "KIRIBATI", "code" => "686"), "KM" => array("name" => "COMOROS", "code" => "269"), "KN" => array("name" => "SAINT KITTS AND NEVIS", "code" => "1869"), "KP" => array("name" => "KOREA DEMOCRATIC PEOPLES REPUBLIC OF", "code" => "850"), "KR" => array("name" => "KOREA REPUBLIC OF", "code" => "82"), "KW" => array("name" => "KUWAIT", "code" => "965"), "KY" => array("name" => "CAYMAN ISLANDS", "code" => "1345"), "KZ" => array("name" => "KAZAKSTAN", "code" => "7"), "LA" => array("name" => "LAO PEOPLES DEMOCRATIC REPUBLIC", "code" => "856"), "LB" => array("name" => "LEBANON", "code" => "961"), "LC" => array("name" => "SAINT LUCIA", "code" => "1758"), "LI" => array("name" => "LIECHTENSTEIN", "code" => "423"), "LK" => array("name" => "SRI LANKA", "code" => "94"), "LR" => array("name" => "LIBERIA", "code" => "231"), "LS" => array("name" => "LESOTHO", "code" => "266"), "LT" => array("name" => "LITHUANIA", "code" => "370"), "LU" => array("name" => "LUXEMBOURG", "code" => "352"), "LV" => array("name" => "LATVIA", "code" => "371"), "LY" => array("name" => "LIBYAN ARAB JAMAHIRIYA", "code" => "218"), "MA" => array("name" => "MOROCCO", "code" => "212"), "MC" => array("name" => "MONACO", "code" => "377"), "MD" => array("name" => "MOLDOVA, REPUBLIC OF", "code" => "373"), "ME" => array("name" => "MONTENEGRO", "code" => "382"), "MF" => array("name" => "SAINT MARTIN", "code" => "1599"), "MG" => array("name" => "MADAGASCAR", "code" => "261"), "MH" => array("name" => "MARSHALL ISLANDS", "code" => "692"), "MK" => array("name" => "MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF", "code" => "389"), "ML" => array("name" => "MALI", "code" => "223"), "MM" => array("name" => "MYANMAR", "code" => "95"), "MN" => array("name" => "MONGOLIA", "code" => "976"), "MO" => array("name" => "MACAU", "code" => "853"), "MP" => array("name" => "NORTHERN MARIANA ISLANDS", "code" => "1670"), "MR" => array("name" => "MAURITANIA", "code" => "222"), "MS" => array("name" => "MONTSERRAT", "code" => "1664"), "MT" => array("name" => "MALTA", "code" => "356"), "MU" => array("name" => "MAURITIUS", "code" => "230"), "MV" => array("name" => "MALDIVES", "code" => "960"), "MW" => array("name" => "MALAWI", "code" => "265"), "MX" => array("name" => "MEXICO", "code" => "52"), "MY" => array("name" => "MALAYSIA", "code" => "60"), "MZ" => array("name" => "MOZAMBIQUE", "code" => "258"), "NA" => array("name" => "NAMIBIA", "code" => "264"), "NC" => array("name" => "NEW CALEDONIA", "code" => "687"), "NE" => array("name" => "NIGER", "code" => "227"), "NG" => array("name" => "NIGERIA", "code" => "234"), "NI" => array("name" => "NICARAGUA", "code" => "505"), "NL" => array("name" => "NETHERLANDS", "code" => "31"), "NO" => array("name" => "NORWAY", "code" => "47"), "NP" => array("name" => "NEPAL", "code" => "977"), "NR" => array("name" => "NAURU", "code" => "674"), "NU" => array("name" => "NIUE", "code" => "683"), "NZ" => array("name" => "NEW ZEALAND", "code" => "64"), "OM" => array("name" => "OMAN", "code" => "968"), "PA" => array("name" => "PANAMA", "code" => "507"), "PE" => array("name" => "PERU", "code" => "51"), "PF" => array("name" => "FRENCH POLYNESIA", "code" => "689"), "PG" => array("name" => "PAPUA NEW GUINEA", "code" => "675"), "PH" => array("name" => "PHILIPPINES", "code" => "63"), "PK" => array("name" => "PAKISTAN", "code" => "92"), "PL" => array("name" => "POLAND", "code" => "48"), "PM" => array("name" => "SAINT PIERRE AND MIQUELON", "code" => "508"), "PN" => array("name" => "PITCAIRN", "code" => "870"), "PR" => array("name" => "PUERTO RICO", "code" => "1"), "PT" => array("name" => "PORTUGAL", "code" => "351"), "PW" => array("name" => "PALAU", "code" => "680"), "PY" => array("name" => "PARAGUAY", "code" => "595"), "QA" => array("name" => "QATAR", "code" => "974"), "RO" => array("name" => "ROMANIA", "code" => "40"), "RS" => array("name" => "SERBIA", "code" => "381"), "RU" => array("name" => "RUSSIAN FEDERATION", "code" => "7"), "RW" => array("name" => "RWANDA", "code" => "250"), "SA" => array("name" => "SAUDI ARABIA", "code" => "966"), "SB" => array("name" => "SOLOMON ISLANDS", "code" => "677"), "SC" => array("name" => "SEYCHELLES", "code" => "248"), "SD" => array("name" => "SUDAN", "code" => "249"), "SE" => array("name" => "SWEDEN", "code" => "46"), "SG" => array("name" => "SINGAPORE", "code" => "65"), "SH" => array("name" => "SAINT HELENA", "code" => "290"), "SI" => array("name" => "SLOVENIA", "code" => "386"), "SK" => array("name" => "SLOVAKIA", "code" => "421"), "SL" => array("name" => "SIERRA LEONE", "code" => "232"), "SM" => array("name" => "SAN MARINO", "code" => "378"), "SN" => array("name" => "SENEGAL", "code" => "221"), "SO" => array("name" => "SOMALIA", "code" => "252"), "SR" => array("name" => "SURINAME", "code" => "597"), "ST" => array("name" => "SAO TOME AND PRINCIPE", "code" => "239"), "SV" => array("name" => "EL SALVADOR", "code" => "503"), "SY" => array("name" => "SYRIAN ARAB REPUBLIC", "code" => "963"), "SZ" => array("name" => "SWAZILAND", "code" => "268"), "TC" => array("name" => "TURKS AND CAICOS ISLANDS", "code" => "1649"), "TD" => array("name" => "CHAD", "code" => "235"), "TG" => array("name" => "TOGO", "code" => "228"), "TH" => array("name" => "THAILAND", "code" => "66"), "TJ" => array("name" => "TAJIKISTAN", "code" => "992"), "TK" => array("name" => "TOKELAU", "code" => "690"), "TL" => array("name" => "TIMOR-LESTE", "code" => "670"), "TM" => array("name" => "TURKMENISTAN", "code" => "993"), "TN" => array("name" => "TUNISIA", "code" => "216"), "TO" => array("name" => "TONGA", "code" => "676"), "TR" => array("name" => "TURKEY", "code" => "90"), "TT" => array("name" => "TRINIDAD AND TOBAGO", "code" => "1868"), "TV" => array("name" => "TUVALU", "code" => "688"), "TW" => array("name" => "TAIWAN, PROVINCE OF CHINA", "code" => "886"), "TZ" => array("name" => "TANZANIA, UNITED REPUBLIC OF", "code" => "255"), "UA" => array("name" => "UKRAINE", "code" => "380"), "UG" => array("name" => "UGANDA", "code" => "256"), "US" => array("name" => "UNITED STATES", "code" => "1"), "UY" => array("name" => "URUGUAY", "code" => "598"), "UZ" => array("name" => "UZBEKISTAN", "code" => "998"), "VA" => array("name" => "HOLY SEE (VATICAN CITY STATE)", "code" => "39"), "VC" => array("name" => "SAINT VINCENT AND THE GRENADINES", "code" => "1784"), "VE" => array("name" => "VENEZUELA", "code" => "58"), "VG" => array("name" => "VIRGIN ISLANDS, BRITISH", "code" => "1284"), "VI" => array("name" => "VIRGIN ISLANDS, U.S.", "code" => "1340"), "VN" => array("name" => "VIET NAM", "code" => "84"), "VU" => array("name" => "VANUATU", "code" => "678"), "WF" => array("name" => "WALLIS AND FUTUNA", "code" => "681"), "WS" => array("name" => "SAMOA", "code" => "685"), "XK" => array("name" => "KOSOVO", "code" => "381"), "YE" => array("name" => "YEMEN", "code" => "967"), "YT" => array("name" => "MAYOTTE", "code" => "262"), "ZA" => array("name" => "SOUTH AFRICA", "code" => "27"), "ZM" => array("name" => "ZAMBIA", "code" => "260"), "ZW" => array("name" => "ZIMBABWE", "code" => "263")); return $RHQ53 === "name" ? $MNDr8[$BL2cz]["name"] : $MNDr8[$BL2cz]["code"]; } } ?>

Function Calls

None

Variables

None

Stats

MD5 0bd3193bbd9219197cc22a64c35eed75
Eval Count 0
Decode Time 73 ms