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

Signing you up...

Thank you for signing up!

PHP Decode

namespace App\Controllers; use Psr\Http\Message\ResponseInterface as Response; use Psr\Ht..

Decoded Output download

<?   namespace App\Controllers; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use App\Clases\Funciones; use App\Config\Config; use App\Config\Db; use App\Controllers\CatalogosController; use App\Controllers\SinController; class FacturasController extends BaseController { public $db; public $ems_id = config::EMS_ID; public $pto_id = config::PTO_ID; public function __construct() { $this->db = new Db(); } public function xFechas(Request $kmLYK, Response $Jlva2, $uaMG2) { goto AZknI; tQNIK: $EgbAg = $uaMG2["fin"]; goto NSctl; vP93t: try { $IhX1C = $this->db->getAll("SELECT eleid AS "id", elecli AS "codigoCliente", elefece AS "fechaEmision", elenro AS "numeroFactura", elenom AS "nombreRazonSocial", elenro AS "numeroDocumento", eledom AS "domicilioCliente", elerem AS "remesa", elerut AS "ruta", eleemail AS "correo", elecuf AS "cuf"
			\x9FROM facelec\xa\x9\x9		WHERE elecli = ?\xa		\x9\x9	AND elefece BETWEEN ? AND ?\xa\x9\x9\x9	\x9AND elests = 2\xa					AND elestsfac = 0
				ORDER BY elefece, elecli", [$I22WN, $mVx7y, $EgbAg]); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } goto Tf_uz; Kp8Q6: $mVx7y = $uaMG2["inicio"]; goto LoB7R; NSctl: Aanao: goto vP93t; Q94lH: $EgbAg = date("Y-m-s H:i:s"); goto mt27J; mt27J: goto Aanao; goto F57Qc; F57Qc: A1Vw6: goto tQNIK; AZknI: $I22WN = $uaMG2["id"]; goto Kp8Q6; LoB7R: if (isset($uaMG2["fin"])) { goto A1Vw6; } goto Q94lH; Tf_uz: } public function individual(Request $kmLYK, Response $Jlva2, $uaMG2) { $I22WN = $uaMG2["id"]; try { goto MX7f7; LY5Cs: return $this->responder($Jlva2, true); goto FqqYO; MX7f7: $ai5D9 = new SinController(); goto jzKYv; jzKYv: $ai5D9->individual($I22WN); goto LY5Cs; FqqYO: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function individuales(Request $kmLYK, Response $Jlva2, $uaMG2) { goto LwGaP; rIz3q: try { goto wJfKl; BBgRE: return $this->responder($Jlva2, 1); goto dqz1C; wJfKl: $ai5D9 = new SinController(); goto HV8O0; HV8O0: $ai5D9->individuales($eahSu, $E5WBX); goto BBgRE; dqz1C: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } goto D1IMi; bC5W5: $E5WBX = $uaMG2["elefrm"]; goto rIz3q; LwGaP: $eahSu = $uaMG2["sector"]; goto bC5W5; D1IMi: } public function masiva(Request $kmLYK, Response $Jlva2) { goto JbwOv; MlALn: fgZCA: goto qUAPl; xyeTr: if (!$IhX1C) { goto fgZCA; } goto bI0oi; bI0oi: return $this->responder($Jlva2, 1); goto MlALn; tmOGt: $IhX1C = $ai5D9->masiva(); goto xyeTr; qUAPl: return $this->responder($Jlva2, 0); goto AqOC3; JbwOv: $ai5D9 = new SinController(); goto tmOGt; AqOC3: } public function paquete(Request $kmLYK, Response $Jlva2) { $ai5D9 = new SinController(); try { $IhX1C = $ai5D9->enviarPaquete(true); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function anula(Request $kmLYK, Response $Jlva2) { $ai5D9 = new SinController(); try { goto z0_Nk; z0_Nk: $ai5D9->anula_FSB(); goto yIm05; yIm05: $Jlva2->getBody()->write("{"hecho": true}"); goto e8wrK; e8wrK: return $Jlva2->withHeader("Content-Type", "application/json")->withStatus(200); goto Geuy_; Geuy_: } catch (\Exception $sBr3o) { $Jlva2->getBody()->write("{"mensaje": "" . $sBr3o->getMessage() . ""}"); return $Jlva2->withHeader("Content-Type", "application/json")->withStatus(500); } } public function verificarFacturas(Request $kmLYK, Response $Jlva2, $uaMG2) { $ai5D9 = new SinController(); try { $IhX1C = $ai5D9->verificarFacturas($uaMG2["fecha"]); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function facContingencias(Request $kmLYK, Response $Jlva2, $uaMG2) { $I8QD0 = "SELECT elecli AS "elecli", elefec AS "elefec", elefrm AS "elefrm", elenro AS "elenro", ELECODPROS AS "codigoProductoSin", ELECODPROD AS "codigoProducto", ELEDSC AS "descripcion",\xa				ELECANT AS "cantidad", ELEUNIMED AS "unidadMedida", ELEPREUNI AS "precioUnitario", ELEMONDESC AS "montoDescuento", ELESUBTOT AS "subTotal"\xa\x9		FROM facelecl\xa\x9		WHERE elecli = ?
\x9	\x9\x9AND elefec = ?
\x9	\x9	AND elefrm = ?\xa	\x9\x9\x9AND elenro = ?
\x9\x9	ORDER BY ELECODPROD"; try { goto NN5cz; bf2ms: r4894: goto K0vbJ; mvUQW: foreach ($IhX1C as &$GU1Ju) { $GU1Ju["detalles"] = $this->db->getAll($I8QD0, [$GU1Ju["elecli"], $GU1Ju["elefec"], $GU1Ju["elefrm"], $GU1Ju["numeroFactura"]]); JFyq0: } goto NG0Qu; NN5cz: $FToqE = "SELECT ELEID as "id", ELECODSEC AS "codigoDocumentoSector", ELENRO AS "numeroFactura", ELEMES AS "mes", ELEGES AS "gestion", ELECIU AS "ciudad", ELEZON AS "zona", ELEFECE AS "fechaEmision", ELENOM AS "nombreRazonSocial",
\x9\x9\x9	elecli AS "elecli", elefec AS "elefec", elefrm AS "elefrm", elecontin AS "elecontin",
\x9\x9		ELEDOM AS "domicilioCliente", ELECODDOC AS "codigoTipoDocumentoIdentidad", ELENRODOC AS "numeroDocumento", ELECOMP AS "complemento", ELEMONTOT AS "montoTotal", ELECAFC AS "cafc", ELEEMAIL AS "correo"
\x9		\x9FROM facelec\xa\x9	\x9\x9WHERE elests = 2\xa\x9\x9\x9\x9	AND elecontin = 1\xa					AND elefrm = 2\xa	\x9\x9\x9\x9AND elecontsts = 0"; goto zIrkM; zIrkM: if (!isset($uaMG2["id"])) { goto r4894; } goto cMNFF; h9pHd: $IhX1C = $this->db->getAll($FToqE); goto mvUQW; NG0Qu: ORf7I: goto jGyBx; K0vbJ: $FToqE .= " ORDER BY elecodsec, elenro"; goto h9pHd; jGyBx: return $this->responder($Jlva2, $IhX1C); goto AyrOP; cMNFF: $FToqE .= " eleid = " . $uaMG2["id"]; goto bf2ms; AyrOP: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function getCafc(Request $kmLYK, Response $Jlva2) { $CiZ9h = $kmLYK->getParsedBody(); try { $IhX1C = $this->db->getRow("SELECT cafc FROM fac_cafc\xa		\x9\x9WHERE ? BETWEEN inicio AND fin AND sector = ? AND estado = 'A'\xa	\x9	\x9	AND ems_id = ? AND pto_id = ?", [$CiZ9h["numeroFactura"], $CiZ9h["codigoDocumentoSector"], $this->ems_id, $this->pto_id]); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function getEventos(Request $kmLYK, Response $Jlva2) { try { $IhX1C = $this->db->getOne("SELECT cat_data FROM fac_catalogos\xa\x9		\x9WHERE cat_ems_id = ?\xa\x9		\x9\x9AND cat_pto_id = ?
					AND cat_codigo = ?", [$this->ems_id, $this->pto_id, "sincronizarParametricaEventosSignificativos"]); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function addFactura(Request $kmLYK, Response $Jlva2) { goto V86OY; K3m_5: $zaZjj = \DateTime::createFromFormat("Y-m-d H:i:s", $CiZ9h["fechaEmision"]); goto cRlE5; oLyuG: try { goto SLCwB; oS25T: $htd6V = $ai5D9->miPunto["codigoControl"]; goto gFmef; ZpLXY: if (strtotime($CiZ9h["fechaEmision"]) < strtotime(str_replace("T", " ", substr($ai5D9->miPunto["cufd_validez"], 0, -6)) . " -1 day")) { goto CVbkI; } goto wr35b; lBm4s: $ai5D9->setEmisorFactura($ByTOu); goto f9x6s; gFmef: goto E2Oud; goto ZbDXa; zjrcU: $ByTOu = $this->db->getOne("SELECT eleid FROM facelec
\x9\x9	\x9WHERE ELECLI = 999999
	\x9	\x9	AND ELENRO = ?\xa		\x9	\x9AND ELEFECE = ?
	\x9		\x9AND ELEFRM = 2", [$CiZ9h["numeroFactura"], $zaZjj->format("Y-m-d H:i:s.v")]); goto lBm4s; SLCwB: $ai5D9 = new SinController(); goto ZpLXY; wr35b: $UA2AX = $ai5D9->miPunto["cufd"]; goto oS25T; BlSwP: $htd6V = $ai5D9->miPunto["codigoControl_anterior"]; goto nSzKM; vcMo2: $UA2AX = $ai5D9->miPunto["cufd_anterior"]; goto BlSwP; pOXbQ: $this->db->ejecutar("INSERT INTO facelec (ELECLI, ELECODSEC, ELECUFD, ELECTRL, ELENRO, ELEMES, ELEGES, ELEFEC,
\x9\x9	\x9ELEFECE, ELENOM, ELECIU, ELEDOM, ELECODDOC, ELENRODOC, ELECOMP, ELEEMAIL,
		\x9	ELECONTIN, ELESTS, ELECONTSTS, ELESTSMAIL, ELEFRM, ELEMETPGO, ELEUSUA, ELECODMON, ELEMED, ELETPOCAM)
				VALUES (999999, ?, ?, ?, ?, ?, ?, ?,\xa\x9\x9		?, ?, ?, ?, ?, ?, ?, ?,\xa		\x9\x91, 2, 0, 0, 2, 6, 'GLM', 1, '00000000000', 1)", [$CiZ9h["codigoDocumentoSector"], $UA2AX, $htd6V, $CiZ9h["numeroFactura"], $RVjQZ->getNombreMes($zaZjj->format("n")), $zaZjj->format("Y"), $zaZjj->format("Ymd"), $zaZjj->format("Y-m-d H:i:s.v"), $CiZ9h["nombreRazonSocial"], $ai5D9->emisor["municipio"], $CiZ9h["domicilioCliente"], $CiZ9h["codigoTipoDocumentoIdentidad"], $CiZ9h["numeroDocumento"], $kuz2t, $CiZ9h["correo"]]); goto zjrcU; ZbDXa: CVbkI: goto vcMo2; nSzKM: E2Oud: goto pOXbQ; f9x6s: return $this->responder($Jlva2, true); goto mKUvJ; mKUvJ: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } goto CgPC4; pg90S: $RVjQZ = new Funciones(); goto K3m_5; cRlE5: $zaZjj->modify("+ 1 milliseconds"); goto VkUc5; V86OY: $CiZ9h = $kmLYK->getParsedBody(); goto pg90S; VkUc5: $kuz2t = isset($CiZ9h["complemento"]) ? $CiZ9h["complemento"] : ''; goto oLyuG; CgPC4: } public function editFactura(Request $kmLYK, Response $Jlva2) { goto s4y2D; Rn9A6: $zaZjj = \DateTime::createFromFormat("Y-m-d H:i:s", $CiZ9h["fechaEmision"]); goto CudAY; s4y2D: $CiZ9h = $kmLYK->getParsedBody(); goto qjEYY; qjEYY: $RVjQZ = new Funciones(); goto Rn9A6; gXONU: $kuz2t = isset($CiZ9h["complemento"]) ? $CiZ9h["complemento"] : ''; goto g368o; CudAY: $zaZjj->modify("+ 1 milliseconds"); goto gXONU; g368o: try { goto UZqpx; b4gKw: $this->db->ejecutar("UPDATE facelec SET ELECODSEC = ?, ELEMES = ?, ELEGES = ?, ELEFECE = ?,\xa	\x9			ELENOM = ?, ELEDOM = ?, ELECODDOC = ?, ELENRODOC = ?, ELECOMP = ?, ELEEMAIL = ?,
\x9		\x9\x9ELECUFD = ?, ELECTRL = ?
\x9	\x9\x9WHERE ELECLI = 999999\xa\x9			\x9AND ELENRO = ?
\x9\x9\x9\x9\x9AND ELEFEC = ?
\x9		\x9\x9AND ELEFRM = 2", [$CiZ9h["codigoDocumentoSector"], $RVjQZ->getNombreMes($zaZjj->format("n")), $zaZjj->format("Y"), $zaZjj->format("Y-m-d H:i:s.v"), $CiZ9h["nombreRazonSocial"], $CiZ9h["domicilioCliente"], $CiZ9h["codigoTipoDocumentoIdentidad"], $CiZ9h["numeroDocumento"], $kuz2t, $CiZ9h["correo"], $UA2AX, $htd6V, $CiZ9h["numeroFactura"], $CiZ9h["elefec"]]); goto neclj; tUu7X: if (strtotime($CiZ9h["fechaEmision"]) < strtotime(str_replace("T", " ", substr($ai5D9->miPunto["cufd_validez"], 0, -6)) . " -1 day")) { goto lEQ5S; } goto SymmQ; neclj: return $this->responder($Jlva2, true); goto ZqePv; LAgfh: goto cp9s5; goto J96OO; UZqpx: $ai5D9 = new SinController(); goto tUu7X; J96OO: lEQ5S: goto qQQi3; WVy8W: cp9s5: goto b4gKw; ZpX3g: $htd6V = $ai5D9->miPunto["codigoControl"]; goto LAgfh; qQQi3: $UA2AX = $ai5D9->miPunto["cufd_anterior"]; goto WD7AT; WD7AT: $htd6V = $ai5D9->miPunto["codigoControl_anterior"]; goto WVy8W; SymmQ: $UA2AX = $ai5D9->miPunto["cufd"]; goto ZpX3g; ZqePv: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } goto e4hFI; e4hFI: } public function delFactura(Request $kmLYK, Response $Jlva2) { $CiZ9h = $kmLYK->getParsedBody(); try { goto F_d7z; F_d7z: $this->db->ejecutar("DELETE FROM facelecl
\x9	\x9\x9WHERE ELECLI = 999999\xa	\x9\x9\x9	AND ELENRO = ?\xa	\x9\x9\x9	AND ELEFEC = ?\xa			\x9\x9AND ELEFRM = 1", [$CiZ9h["numeroFactura"], $CiZ9h["elefec"]]); goto q2a8e; AL8Cg: return $this->responder($Jlva2, true); goto FMQTB; q2a8e: $this->db->ejecutar("DELETE FROM facelec
		\x9	WHERE ELECLI = 999999
	\x9		\x9AND ELENRO = ?\xa\x9\x9\x9		AND ELEFEC = ?
		\x9	\x9AND ELEFRM = 1", [$CiZ9h["numeroFactura"], $CiZ9h["elefec"]]); goto AL8Cg; FMQTB: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function regDetalles(Request $kmLYK, Response $Jlva2, $uaMG2) { goto oCNgp; wS0wu: $G43It = $this->db->getRow("SELECT elecli AS "elecli", elefec AS "elefec", elefrm AS "elefrm", elenro AS "elenro"\xa\x9\x9\x9FROM facelec WHERE eleid = ?", [$ByTOu]); goto e9V91; Mfkkv: $zf3Fi = $CiZ9h["borrar"]; goto he8N8; znIlx: $CiZ9h = $kmLYK->getParsedBody(); goto Mfkkv; x_NYm: g2CKm: goto iWq1b; Udr9W: $yrngE = $this->db->prepare("UPDATE facelecl SET\xa	\x9\x9	elecant = ?,\xa				elecodpros = ?,\xa				eledsc = ?,
\x9\x9\x9\x9elepreuni = ?,
\x9			elesubtot = ?\xa	\x9	WHERE elecli = ?
\x9\x9\x9\x9AND elefec = ?
\x9\x9	\x9AND elefrm = ?
	\x9\x9\x9AND elenro = ?\xa\x9	\x9	AND elecodprod = ?"); goto lHyov; e9V91: $r0tKw = $this->db->prepare("DELETE FROM facelecl\xa		\x9WHERE elecli = ?
\x9\x9	\x9AND elefec = ?
	\x9\x9\x9AND elefrm = ?
		\x9\x9AND elenro = ?
	\x9\x9\x9AND elecodprod = ?"); goto sVjfD; iWq1b: $qSc8D = 0.0; goto cGzJf; sVjfD: $L7gtp = $this->db->prepare("INSERT INTO facelecl (eleacteco, elecant, elecli, elecodprod, elecodpros, eledsc, elefec, elefrm, elenro, elepreuni, elesubtot, eleunimed)\xa\x9\x9	VALUES ('351000', ?, 999999, ?, ?, ?, ?, ?, ?, ?, ?, 58)"); goto Udr9W; he8N8: $n2TJ3 = $CiZ9h["detalles"]; goto wS0wu; oCNgp: $ByTOu = $uaMG2["fac_id"]; goto znIlx; o_z9s: $this->db->ejecutar("UPDATE facelec SET ELEMONTOT = ?,\xa\x9\x9	\x9\x9ELEMONTOTM = ?, ELETOTIVA = ?
	\x9	\x9WHERE eleid = ?", [$qSc8D, $qSc8D, $qSc8D, $ByTOu]); goto R3ovw; lHyov: foreach ($zf3Fi as $byShr) { $this->db->execute($r0tKw, [$byShr["elecli"], $byShr["elefec"], $byShr["elefrm"], $byShr["elenro"], $byShr["codigoProducto"]]); UdKMn: } goto x_NYm; cGzJf: foreach ($n2TJ3 as $byShr) { goto lBaEv; lBaEv: if (isset($byShr["elecli"])) { goto WQw1d; } goto EodTD; L5155: WQw1d: goto yBcUz; v0PhG: WhCcH: goto xgsRq; Poj03: goto WhCcH; goto L5155; yBcUz: $this->db->execute($yrngE, [$byShr["cantidad"], $byShr["codigoProductoSin"], $byShr["descripcion"], $byShr["precioUnitario"], $byShr["cantidad"] * $byShr["precioUnitario"], $byShr["elecli"], $byShr["elefec"], $byShr["elefrm"], $byShr["elenro"], $byShr["codigoProducto"]]); goto v0PhG; xgsRq: $qSc8D += $byShr["subTotal"]; goto b491k; EodTD: $this->db->execute($L7gtp, [$byShr["cantidad"], $byShr["codigoProducto"], $byShr["codigoProductoSin"], $byShr["descripcion"], $byShr["elefec"], $byShr["elefrm"], $byShr["elenro"], $byShr["precioUnitario"], $byShr["cantidad"] * $byShr["precioUnitario"]]); goto Poj03; b491k: UR2ky: goto jvE3K; jvE3K: } goto TIRDS; TIRDS: SHpdh: goto o_z9s; R3ovw: return $this->responder($Jlva2, true); goto LbTJA; LbTJA: } public function nroFacturadas(Request $kmLYK, Response $Jlva2, $uaMG2) { goto gevpf; DocRM: $Bolf7 = $uaMG2["periodo"]; goto jPhV3; XuWM_: $FToqE = "SELECT count(*) AS cantidad FROM facelec
WHERE elests = 2\xa	AND elecuf <> ''\xa\x9AND elefece BETWEEN '{$mVx7y}' AND '{$EgbAg}'"; goto TMIBR; hhQ5S: $mVx7y .= " 00:00:00.000"; goto XuWM_; KfWlj: if (!empty($RQ93S)) { goto lMXQE; } goto ByTQg; jPhV3: $mVx7y = $qX7sA . "-" . $Bolf7 . "-01"; goto iRxsc; TMIBR: $RQ93S = $this->db->getOne($FToqE); goto KfWlj; ByTQg: $RQ93S = 0; goto xLMEP; iRxsc: $EgbAg = date("Y-m-t", strtotime($mVx7y)) . " 23:59:59.999"; goto hhQ5S; xLMEP: lMXQE: goto ZvHMT; ZvHMT: return $this->responder($Jlva2, $RQ93S); goto oXH2K; gevpf: $qX7sA = $uaMG2["gestion"]; goto DocRM; oXH2K: } public function reporteCantidad(Request $kmLYK, Response $Jlva2, $uaMG2) { goto w5JaK; MT5fq: return $this->responder($Jlva2, $IhX1C); goto dmqKZ; xFzMn: $IhX1C[] = ["TOTAL" => $qSc8D]; goto MT5fq; Gr6aY: foreach ($HriUZ as $uk_l0 => $PFlZ6) { goto Nmmqn; ukRpy: $RQ93S = 0; goto Vvgxx; cOGUd: $qSc8D += (int) $RQ93S; goto QeByX; QeByX: dCcnr: goto bATy8; Vvgxx: ADUQQ: goto Oy754; Nmmqn: $RQ93S = file_get_contents($PFlZ6); goto tKOYx; tKOYx: if (!empty($RQ93S)) { goto ADUQQ; } goto ukRpy; Oy754: $IhX1C[] = [$uk_l0 => (int) $RQ93S]; goto cOGUd; bATy8: } goto M0Aoa; XjGcz: $Bolf7 = $uaMG2["periodo"]; goto hg9hE; a5I6i: $qSc8D = 0; goto Gr6aY; eHGK_: $IhX1C = []; goto a5I6i; M0Aoa: mNFA8: goto xFzMn; hg9hE: $HriUZ = ["Tarija" => "http://190.10.11.160:8888/api/nroFacturadas/" . $qX7sA . "/" . $Bolf7, "Yacuiba" => "http://190.10.11.161:8888/api/nroFacturadas/" . $qX7sA . "/" . $Bolf7, "Villamontes" => "http://190.10.11.162:8888/api/nroFacturadas/" . $qX7sA . "/" . $Bolf7, "Bermejo" => "http://190.10.11.163:8888/api/nroFacturadas/" . $qX7sA . "/" . $Bolf7, "Entre R\303\xados" => "http://190.10.11.164:8888/api/nroFacturadas/" . $qX7sA . "/" . $Bolf7, "El Puente" => "http://190.10.11.165:8888/api/nroFacturadas/" . $qX7sA . "/" . $Bolf7]; goto eHGK_; w5JaK: $qX7sA = $uaMG2["gestion"]; goto XjGcz; dmqKZ: } public function xMesGestion($mVx7y, $EgbAg) { return $this->db->getAll("SELECT eleid AS "id", elecuf AS "cuf", elefec AS "fecha"\xa	\x9	FROM facelec\xa			WHERE elefece BETWEEN ? AND ?
		\x9	AND elests = 2\xa\x9\x9\x9\x9AND elestsfac = 0\xa\x9		ORDER BY eleid", [$mVx7y, $EgbAg]); } public function getArchivoXml(Request $kmLYK, Response $Jlva2, $uaMG2) { goto PZJP6; sMQok: zQZul: goto lrAoO; lrAoO: $Tb8Sb = $mBL4N . "/" . $GU1Ju["cuf"] . ".xml"; goto s0KzD; tJMaB: $Bolf7 = substr($GU1Ju["fecha"], 0, 6); goto mlJ7i; sMDCi: return $this->responder($Jlva2, false); goto g7sap; XrVwQ: return $this->responder($Jlva2, false); goto OKBwy; ESeLv: $mBL4N = "/var/www/html/facturas"; goto kEdnH; qvIEG: header("Content-Disposition: attachment; filename="Setar_" . $tWGhw . ".xml";"); goto g707j; g7sap: HZeQ6: goto ESeLv; bS4wR: $mBL4N = "/home/share/" . $Bolf7; goto sMQok; e2PVU: exit; goto vn2Rq; g707j: readfile($Tb8Sb); goto e2PVU; tU3DC: if (!empty($GU1Ju)) { goto HZeQ6; } goto sMDCi; OKBwy: PblBs: goto S2zgB; mlJ7i: if (!($PuBQx != $Bolf7)) { goto zQZul; } goto bS4wR; PZJP6: $GU1Ju = $this->db->getRow("SELECT eleid AS "id", elecuf AS "cuf", elefec AS "fecha", elefece AS "fechaEmision"\xa	\x9	FROM facelec\xa		\x9WHERE eleid = ?", [$uaMG2["id"]]); goto tU3DC; s0KzD: if (file_exists($Tb8Sb)) { goto PblBs; } goto XrVwQ; kEdnH: $PuBQx = date("Ym"); goto tJMaB; S2zgB: $tWGhw = date("Y-m-d", strtotime($GU1Ju["fechaEmision"])); goto RP4kz; RP4kz: header("Content-Type: application/xml"); goto qvIEG; vn2Rq: } public function getArchivoPdf(Request $kmLYK, Response $Jlva2, $uaMG2) { goto nDy6P; ETCFt: $mBL4N = "/home/share/" . $Bolf7; goto QAo2K; U3tQB: if (file_exists($Tb8Sb)) { goto nC5Gz; } goto thGRA; G2kt3: readfile($Tb8Sb); goto oiLLw; GwFCu: $tWGhw = date("Y-m-d", strtotime($GU1Ju["fechaEmision"])); goto xEBEX; thGRA: echo NULL; goto BCgls; LT7qA: header("Content-Disposition: attachment; filename="Setar_" . $tWGhw . ".pdf";"); goto U3tQB; Higuk: if (!empty($GU1Ju)) { goto W2APR; } goto dGt8G; xEBEX: header("Content-Type: application/pdf"); goto LT7qA; xzYsc: $PuBQx = date("Ym"); goto Ahxuc; pz_Il: $mBL4N = "/var/www/html/facturas"; goto xzYsc; QAo2K: v07U7: goto xCXF6; Hf3wp: W2APR: goto pz_Il; PLvWk: nC5Gz: goto G2kt3; nDy6P: $GU1Ju = $this->db->getRow("SELECT eleid AS "id", elecuf AS "cuf", elefec AS "fecha", elefece AS "fechaEmision"\xa\x9	\x9FROM facelec
\x9\x9\x9WHERE eleid = ?", [$uaMG2["id"]]); goto Higuk; ia562: exit; goto QxVBF; wGJxL: if (!($PuBQx != $Bolf7)) { goto v07U7; } goto ETCFt; oiLLw: TXYT_: goto ia562; BCgls: goto TXYT_; goto PLvWk; dGt8G: return $this->responder($Jlva2, false); goto Hf3wp; Ahxuc: $Bolf7 = substr($GU1Ju["fecha"], 0, 6); goto wGJxL; xCXF6: $Tb8Sb = $mBL4N . "/" . $GU1Ju["cuf"] . ".pdf"; goto GwFCu; QxVBF: } } 
 ?>

Did this file decode correctly?

Original Code

 namespace App\Controllers; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use App\Clases\Funciones; use App\Config\Config; use App\Config\Db; use App\Controllers\CatalogosController; use App\Controllers\SinController; class FacturasController extends BaseController { public $db; public $ems_id = config::EMS_ID; public $pto_id = config::PTO_ID; public function __construct() { $this->db = new Db(); } public function xFechas(Request $kmLYK, Response $Jlva2, $uaMG2) { goto AZknI; tQNIK: $EgbAg = $uaMG2["\146\151\x6e"]; goto NSctl; vP93t: try { $IhX1C = $this->db->getAll("\123\105\x4c\105\x43\x54\40\x65\154\x65\151\x64\40\x41\123\x20\x22\151\144\x22\x2c\x20\145\x6c\x65\x63\154\x69\40\x41\123\40\42\x63\x6f\x64\151\147\157\103\x6c\x69\x65\156\164\145\x22\54\40\x65\x6c\x65\146\145\143\145\x20\x41\x53\40\x22\146\x65\143\x68\141\105\155\x69\163\151\157\156\42\x2c\x20\x65\x6c\145\156\162\x6f\40\101\x53\40\42\x6e\x75\155\x65\162\157\106\141\143\x74\165\x72\141\x22\x2c\x20\x65\x6c\x65\x6e\157\x6d\40\x41\123\40\42\156\x6f\x6d\x62\162\145\122\141\172\x6f\156\x53\157\143\x69\x61\154\x22\54\x20\x65\154\145\x6e\x72\157\x20\101\x53\x20\x22\x6e\165\x6d\x65\x72\x6f\104\157\x63\x75\155\x65\x6e\x74\x6f\x22\x2c\40\x65\154\x65\x64\157\x6d\40\x41\123\40\x22\x64\157\x6d\x69\x63\x69\154\151\x6f\103\154\151\145\x6e\x74\145\x22\54\x20\145\154\x65\162\x65\x6d\x20\101\123\40\42\x72\145\155\x65\163\141\42\54\40\145\154\x65\162\165\x74\40\101\x53\40\x22\162\165\x74\141\42\54\x20\x65\x6c\x65\145\x6d\x61\151\x6c\x20\101\123\x20\x22\x63\x6f\x72\162\145\x6f\42\54\40\x65\154\145\x63\x75\x66\x20\x41\123\x20\x22\143\165\146\x22\12\11\11\11\x9\x46\122\x4f\x4d\x20\x66\141\143\145\154\x65\143\xa\x9\x9\11\11\x57\110\105\x52\x45\x20\x65\154\145\143\154\x69\x20\x3d\x20\x3f\xa\11\11\x9\x9\11\x41\116\x44\x20\145\154\x65\146\x65\143\145\x20\x42\105\x54\x57\x45\x45\x4e\x20\x3f\40\101\x4e\x44\x20\77\xa\x9\x9\x9\11\x9\x41\116\x44\40\x65\x6c\x65\163\x74\x73\x20\x3d\40\x32\xa\11\11\11\11\11\x41\x4e\104\40\145\x6c\x65\163\x74\163\146\x61\143\x20\75\40\x30\12\11\11\11\11\117\x52\104\x45\x52\40\x42\131\40\145\154\145\x66\145\x63\145\x2c\x20\x65\154\145\143\154\x69", [$I22WN, $mVx7y, $EgbAg]); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } goto Tf_uz; Kp8Q6: $mVx7y = $uaMG2["\x69\x6e\151\143\151\x6f"]; goto LoB7R; NSctl: Aanao: goto vP93t; Q94lH: $EgbAg = date("\x59\55\x6d\55\163\x20\110\x3a\x69\72\163"); goto mt27J; mt27J: goto Aanao; goto F57Qc; F57Qc: A1Vw6: goto tQNIK; AZknI: $I22WN = $uaMG2["\x69\x64"]; goto Kp8Q6; LoB7R: if (isset($uaMG2["\146\x69\x6e"])) { goto A1Vw6; } goto Q94lH; Tf_uz: } public function individual(Request $kmLYK, Response $Jlva2, $uaMG2) { $I22WN = $uaMG2["\151\x64"]; try { goto MX7f7; LY5Cs: return $this->responder($Jlva2, true); goto FqqYO; MX7f7: $ai5D9 = new SinController(); goto jzKYv; jzKYv: $ai5D9->individual($I22WN); goto LY5Cs; FqqYO: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function individuales(Request $kmLYK, Response $Jlva2, $uaMG2) { goto LwGaP; rIz3q: try { goto wJfKl; BBgRE: return $this->responder($Jlva2, 1); goto dqz1C; wJfKl: $ai5D9 = new SinController(); goto HV8O0; HV8O0: $ai5D9->individuales($eahSu, $E5WBX); goto BBgRE; dqz1C: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } goto D1IMi; bC5W5: $E5WBX = $uaMG2["\x65\x6c\x65\x66\x72\155"]; goto rIz3q; LwGaP: $eahSu = $uaMG2["\163\x65\143\164\157\x72"]; goto bC5W5; D1IMi: } public function masiva(Request $kmLYK, Response $Jlva2) { goto JbwOv; MlALn: fgZCA: goto qUAPl; xyeTr: if (!$IhX1C) { goto fgZCA; } goto bI0oi; bI0oi: return $this->responder($Jlva2, 1); goto MlALn; tmOGt: $IhX1C = $ai5D9->masiva(); goto xyeTr; qUAPl: return $this->responder($Jlva2, 0); goto AqOC3; JbwOv: $ai5D9 = new SinController(); goto tmOGt; AqOC3: } public function paquete(Request $kmLYK, Response $Jlva2) { $ai5D9 = new SinController(); try { $IhX1C = $ai5D9->enviarPaquete(true); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function anula(Request $kmLYK, Response $Jlva2) { $ai5D9 = new SinController(); try { goto z0_Nk; z0_Nk: $ai5D9->anula_FSB(); goto yIm05; yIm05: $Jlva2->getBody()->write("\x7b\x22\x68\145\x63\150\157\42\x3a\40\164\162\165\x65\175"); goto e8wrK; e8wrK: return $Jlva2->withHeader("\103\157\156\x74\x65\x6e\x74\x2d\x54\x79\160\x65", "\141\x70\x70\154\151\143\141\x74\151\157\156\57\x6a\x73\157\156")->withStatus(200); goto Geuy_; Geuy_: } catch (\Exception $sBr3o) { $Jlva2->getBody()->write("\173\x22\155\145\x6e\x73\141\152\145\x22\72\40\42" . $sBr3o->getMessage() . "\42\175"); return $Jlva2->withHeader("\103\157\156\164\x65\156\164\x2d\x54\x79\160\145", "\x61\160\160\154\151\x63\x61\x74\151\x6f\156\57\x6a\x73\x6f\x6e")->withStatus(500); } } public function verificarFacturas(Request $kmLYK, Response $Jlva2, $uaMG2) { $ai5D9 = new SinController(); try { $IhX1C = $ai5D9->verificarFacturas($uaMG2["\146\x65\143\150\141"]); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function facContingencias(Request $kmLYK, Response $Jlva2, $uaMG2) { $I8QD0 = "\123\105\x4c\105\x43\124\x20\145\x6c\145\143\x6c\x69\40\x41\123\40\x22\x65\154\145\x63\154\151\42\x2c\x20\x65\154\x65\146\145\143\40\101\x53\x20\x22\x65\x6c\145\x66\145\143\x22\54\40\145\154\145\x66\x72\x6d\40\101\x53\x20\x22\145\154\x65\x66\162\155\x22\54\40\145\154\145\x6e\162\x6f\40\101\123\x20\x22\x65\x6c\145\x6e\x72\x6f\x22\x2c\40\105\x4c\x45\x43\117\104\120\x52\117\123\x20\101\123\40\x22\x63\157\x64\x69\147\x6f\120\x72\157\x64\165\143\x74\x6f\x53\x69\156\x22\x2c\40\x45\x4c\x45\103\117\x44\120\122\x4f\104\x20\101\123\40\42\143\157\144\x69\147\157\120\162\157\x64\x75\x63\164\x6f\x22\x2c\x20\x45\x4c\x45\104\x53\103\x20\x41\x53\40\x22\x64\145\163\143\162\151\x70\x63\x69\157\156\42\x2c\xa\11\11\11\11\105\x4c\105\x43\101\116\124\40\101\123\40\42\143\x61\x6e\164\x69\x64\x61\144\42\x2c\x20\105\114\105\125\116\x49\115\105\x44\x20\x41\x53\40\42\165\156\151\144\x61\x64\115\145\x64\151\144\141\42\x2c\40\105\114\x45\120\x52\x45\125\116\111\x20\101\x53\x20\x22\x70\x72\x65\143\151\x6f\125\156\151\164\x61\162\x69\x6f\x22\x2c\40\x45\x4c\105\x4d\117\116\104\x45\x53\x43\40\x41\123\40\x22\155\157\156\164\x6f\x44\145\x73\143\165\x65\x6e\164\x6f\42\x2c\x20\105\114\105\123\x55\102\124\x4f\124\x20\x41\x53\40\x22\x73\165\142\124\x6f\164\141\154\x22\xa\x9\11\11\106\x52\117\115\x20\146\141\x63\145\x6c\x65\143\x6c\xa\x9\11\11\127\110\105\x52\105\40\145\x6c\145\143\154\x69\40\x3d\x20\77\12\x9\11\x9\x9\x41\x4e\104\x20\145\154\145\x66\145\x63\40\x3d\40\77\12\x9\11\x9\11\101\x4e\x44\40\145\154\145\146\x72\155\x20\75\40\77\xa\11\x9\x9\x9\x41\116\x44\x20\145\154\x65\156\x72\157\40\x3d\x20\x3f\12\x9\x9\11\117\122\104\x45\x52\x20\102\131\x20\x45\114\x45\103\117\x44\x50\122\117\104"; try { goto NN5cz; bf2ms: r4894: goto K0vbJ; mvUQW: foreach ($IhX1C as &$GU1Ju) { $GU1Ju["\144\x65\x74\x61\x6c\154\145\163"] = $this->db->getAll($I8QD0, [$GU1Ju["\x65\154\145\x63\154\151"], $GU1Ju["\x65\154\x65\146\x65\x63"], $GU1Ju["\145\x6c\145\146\x72\x6d"], $GU1Ju["\156\165\x6d\145\x72\x6f\x46\141\143\164\165\162\141"]]); JFyq0: } goto NG0Qu; NN5cz: $FToqE = "\x53\x45\114\105\103\124\x20\105\114\x45\x49\104\40\x61\x73\40\x22\x69\x64\42\x2c\40\x45\114\105\103\117\104\x53\105\103\x20\x41\x53\x20\x22\x63\157\144\x69\x67\x6f\104\157\143\165\155\x65\x6e\x74\x6f\123\x65\143\x74\x6f\x72\x22\54\40\105\x4c\x45\x4e\x52\117\40\x41\x53\x20\x22\x6e\x75\155\145\162\157\x46\141\x63\164\165\x72\x61\x22\54\40\105\x4c\105\x4d\x45\123\40\101\x53\40\x22\x6d\145\x73\42\x2c\x20\x45\x4c\x45\107\x45\123\40\x41\123\40\42\147\x65\x73\164\151\157\x6e\x22\x2c\40\x45\114\105\x43\111\x55\x20\x41\123\x20\42\143\x69\165\144\141\x64\42\x2c\40\x45\114\105\132\x4f\x4e\40\101\x53\40\x22\x7a\157\x6e\141\x22\x2c\40\x45\x4c\x45\106\x45\x43\x45\x20\101\x53\x20\x22\146\145\x63\150\x61\105\x6d\151\163\151\x6f\156\x22\54\40\105\114\105\116\x4f\x4d\40\x41\123\40\x22\x6e\x6f\155\142\x72\x65\x52\141\x7a\x6f\x6e\x53\157\143\x69\x61\154\x22\x2c\12\x9\x9\x9\11\x65\x6c\x65\143\x6c\151\x20\x41\x53\40\x22\145\x6c\145\x63\154\151\x22\x2c\x20\145\x6c\145\x66\145\143\x20\101\x53\40\42\145\x6c\145\x66\x65\x63\42\54\40\145\154\x65\x66\162\x6d\40\x41\x53\40\x22\x65\154\145\146\162\155\x22\x2c\x20\145\154\x65\143\157\156\x74\x69\156\x20\x41\x53\x20\42\x65\154\145\143\x6f\156\x74\x69\156\42\x2c\12\x9\x9\11\11\x45\114\105\x44\x4f\x4d\x20\101\x53\40\42\144\x6f\x6d\x69\143\x69\154\151\x6f\x43\x6c\151\145\x6e\x74\x65\42\x2c\40\105\x4c\105\103\117\x44\x44\x4f\103\x20\x41\x53\x20\42\x63\157\x64\x69\x67\x6f\124\x69\160\x6f\x44\157\x63\165\x6d\x65\x6e\164\x6f\111\x64\x65\x6e\x74\x69\144\x61\144\42\54\x20\105\x4c\x45\116\122\x4f\x44\117\x43\40\101\123\40\42\x6e\x75\x6d\145\x72\157\104\157\143\x75\155\x65\x6e\x74\x6f\x22\x2c\40\x45\x4c\105\103\x4f\115\x50\40\x41\123\40\42\143\x6f\x6d\x70\x6c\x65\x6d\x65\156\164\157\42\x2c\40\105\114\105\115\117\116\x54\x4f\124\x20\x41\x53\x20\x22\x6d\x6f\x6e\x74\157\124\157\164\141\154\42\54\40\x45\x4c\105\x43\101\x46\x43\40\101\x53\x20\x22\x63\x61\x66\143\x22\54\40\105\114\105\x45\x4d\x41\x49\x4c\x20\x41\x53\40\x22\143\x6f\162\x72\x65\157\42\12\x9\11\11\x9\x46\x52\x4f\x4d\x20\146\x61\x63\145\154\x65\143\xa\x9\11\x9\x9\127\x48\x45\x52\105\40\x65\x6c\145\x73\x74\x73\40\75\40\x32\xa\x9\x9\x9\x9\11\101\116\104\40\145\x6c\145\x63\157\156\164\151\156\x20\75\40\x31\xa\11\11\11\11\11\101\x4e\x44\40\x65\x6c\x65\x66\162\155\40\75\x20\62\xa\11\x9\x9\x9\x9\101\x4e\104\40\145\x6c\145\143\157\x6e\x74\x73\164\163\40\x3d\x20\x30"; goto zIrkM; zIrkM: if (!isset($uaMG2["\151\144"])) { goto r4894; } goto cMNFF; h9pHd: $IhX1C = $this->db->getAll($FToqE); goto mvUQW; NG0Qu: ORf7I: goto jGyBx; K0vbJ: $FToqE .= "\40\117\122\x44\105\x52\40\102\x59\x20\145\x6c\145\x63\157\144\x73\x65\143\54\x20\x65\154\145\156\x72\157"; goto h9pHd; jGyBx: return $this->responder($Jlva2, $IhX1C); goto AyrOP; cMNFF: $FToqE .= "\40\145\x6c\145\x69\x64\40\x3d\40" . $uaMG2["\x69\144"]; goto bf2ms; AyrOP: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function getCafc(Request $kmLYK, Response $Jlva2) { $CiZ9h = $kmLYK->getParsedBody(); try { $IhX1C = $this->db->getRow("\x53\105\114\x45\x43\124\x20\143\x61\x66\x63\x20\106\122\x4f\x4d\x20\x66\141\143\137\x63\141\x66\143\xa\11\11\x9\x9\x57\x48\x45\122\105\x20\x3f\x20\102\x45\124\127\x45\x45\x4e\40\151\x6e\151\x63\151\157\40\x41\x4e\x44\x20\146\151\x6e\40\x41\x4e\104\x20\163\145\143\x74\x6f\x72\x20\x3d\x20\x3f\x20\101\x4e\x44\40\145\x73\164\141\144\157\x20\x3d\x20\x27\x41\47\xa\11\x9\11\x9\11\x41\x4e\x44\x20\145\x6d\163\137\151\144\40\75\x20\x3f\40\101\116\104\40\x70\164\157\x5f\151\x64\40\75\40\77", [$CiZ9h["\156\x75\155\x65\x72\x6f\106\141\x63\x74\x75\162\141"], $CiZ9h["\x63\x6f\144\x69\147\157\x44\x6f\143\165\x6d\145\156\x74\x6f\123\x65\143\x74\x6f\162"], $this->ems_id, $this->pto_id]); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function getEventos(Request $kmLYK, Response $Jlva2) { try { $IhX1C = $this->db->getOne("\x53\x45\114\105\103\124\40\x63\x61\164\x5f\x64\141\164\141\40\106\122\117\x4d\40\x66\x61\143\137\143\x61\164\141\154\x6f\x67\x6f\x73\xa\x9\11\11\x9\x57\x48\105\122\x45\40\x63\141\x74\137\145\155\x73\137\151\x64\40\75\40\77\xa\x9\11\11\x9\x9\x41\116\x44\40\x63\141\164\x5f\160\164\x6f\137\151\x64\x20\x3d\40\x3f\12\11\11\11\11\11\101\116\104\40\x63\x61\x74\137\x63\157\x64\151\147\157\x20\75\40\77", [$this->ems_id, $this->pto_id, "\163\151\156\x63\x72\x6f\x6e\151\172\141\x72\120\141\x72\x61\155\145\x74\x72\x69\x63\141\105\166\x65\x6e\164\x6f\x73\123\151\x67\x6e\151\x66\151\143\141\164\151\x76\157\x73"]); return $this->responder($Jlva2, $IhX1C); } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function addFactura(Request $kmLYK, Response $Jlva2) { goto V86OY; K3m_5: $zaZjj = \DateTime::createFromFormat("\x59\55\155\x2d\144\x20\110\x3a\151\72\163", $CiZ9h["\x66\145\x63\150\x61\x45\x6d\x69\163\151\157\156"]); goto cRlE5; oLyuG: try { goto SLCwB; oS25T: $htd6V = $ai5D9->miPunto["\143\157\144\x69\147\157\x43\157\x6e\164\162\x6f\154"]; goto gFmef; ZpLXY: if (strtotime($CiZ9h["\x66\145\143\150\141\x45\155\x69\x73\x69\x6f\x6e"]) < strtotime(str_replace("\x54", "\x20", substr($ai5D9->miPunto["\143\x75\146\144\x5f\x76\x61\154\151\144\145\x7a"], 0, -6)) . "\40\x2d\x31\40\144\x61\x79")) { goto CVbkI; } goto wr35b; lBm4s: $ai5D9->setEmisorFactura($ByTOu); goto f9x6s; gFmef: goto E2Oud; goto ZbDXa; zjrcU: $ByTOu = $this->db->getOne("\x53\x45\x4c\x45\x43\124\40\x65\154\145\x69\x64\40\x46\x52\x4f\115\40\x66\141\143\x65\x6c\145\x63\12\x9\x9\11\x9\127\x48\105\122\x45\x20\105\x4c\x45\x43\114\111\40\75\40\71\x39\x39\71\x39\71\12\11\x9\11\x9\11\x41\x4e\104\40\x45\x4c\x45\x4e\122\117\x20\x3d\x20\77\xa\11\11\x9\11\x9\101\116\x44\x20\x45\114\105\x46\105\x43\105\40\x3d\40\77\12\11\x9\11\11\x9\x41\x4e\x44\x20\105\x4c\105\106\122\x4d\x20\75\x20\x32", [$CiZ9h["\156\165\x6d\x65\162\157\x46\141\143\x74\165\x72\141"], $zaZjj->format("\x59\55\155\55\x64\x20\110\72\x69\x3a\x73\56\x76")]); goto lBm4s; SLCwB: $ai5D9 = new SinController(); goto ZpLXY; wr35b: $UA2AX = $ai5D9->miPunto["\x63\x75\146\144"]; goto oS25T; BlSwP: $htd6V = $ai5D9->miPunto["\x63\157\x64\151\x67\x6f\103\157\156\x74\162\157\x6c\x5f\x61\156\164\145\162\x69\157\162"]; goto nSzKM; vcMo2: $UA2AX = $ai5D9->miPunto["\143\165\x66\144\137\141\x6e\x74\145\162\x69\x6f\162"]; goto BlSwP; pOXbQ: $this->db->ejecutar("\111\x4e\123\105\x52\x54\40\x49\116\124\x4f\40\146\141\143\145\154\x65\x63\x20\x28\105\114\x45\x43\x4c\111\54\x20\x45\114\105\x43\x4f\104\x53\105\103\x2c\x20\105\114\x45\103\x55\x46\104\x2c\x20\x45\x4c\x45\x43\124\x52\114\54\40\105\x4c\x45\116\x52\x4f\54\40\105\114\x45\x4d\x45\123\54\40\105\x4c\105\x47\x45\123\x2c\40\105\114\105\x46\105\x43\x2c\12\x9\x9\11\x9\105\x4c\x45\x46\x45\103\105\x2c\40\x45\114\105\x4e\x4f\115\54\x20\x45\x4c\x45\103\111\125\x2c\40\x45\x4c\x45\104\117\115\x2c\40\x45\114\x45\x43\x4f\x44\x44\x4f\103\54\40\105\114\x45\x4e\x52\117\x44\x4f\x43\54\40\105\114\x45\x43\117\115\120\54\x20\105\x4c\105\x45\x4d\x41\111\x4c\54\12\11\11\x9\11\105\114\x45\x43\x4f\116\x54\x49\116\x2c\40\105\114\105\123\x54\x53\54\40\105\114\105\x43\117\116\124\123\x54\123\54\40\x45\x4c\x45\x53\124\x53\x4d\101\x49\114\x2c\40\105\114\x45\106\x52\115\x2c\x20\105\114\x45\x4d\105\124\x50\x47\117\54\x20\105\114\105\125\x53\x55\101\54\40\x45\114\x45\x43\x4f\x44\x4d\x4f\116\54\40\x45\114\x45\x4d\x45\104\x2c\x20\105\x4c\x45\x54\x50\x4f\x43\101\x4d\51\12\11\11\11\11\x56\x41\x4c\125\x45\x53\40\50\71\x39\71\x39\x39\x39\x2c\x20\x3f\x2c\40\77\x2c\40\77\x2c\40\77\x2c\40\x3f\54\x20\77\x2c\40\x3f\x2c\xa\x9\x9\11\11\77\x2c\40\77\54\40\77\x2c\x20\x3f\x2c\x20\x3f\54\40\77\54\40\77\54\40\x3f\x2c\xa\11\11\x9\x9\61\54\40\62\54\x20\x30\x2c\40\60\54\x20\62\54\x20\66\x2c\x20\47\x47\x4c\x4d\x27\54\x20\61\54\x20\x27\x30\x30\x30\60\x30\x30\x30\60\x30\60\60\47\x2c\x20\x31\51", [$CiZ9h["\x63\x6f\x64\x69\147\157\x44\157\x63\165\x6d\x65\156\x74\157\123\x65\x63\x74\157\x72"], $UA2AX, $htd6V, $CiZ9h["\156\x75\x6d\145\x72\x6f\106\x61\x63\164\165\162\x61"], $RVjQZ->getNombreMes($zaZjj->format("\156")), $zaZjj->format("\x59"), $zaZjj->format("\x59\x6d\144"), $zaZjj->format("\131\55\x6d\55\x64\40\x48\x3a\151\72\163\56\x76"), $CiZ9h["\x6e\157\x6d\142\162\x65\122\141\172\157\156\x53\157\143\151\141\x6c"], $ai5D9->emisor["\155\165\x6e\x69\143\151\x70\x69\x6f"], $CiZ9h["\x64\157\x6d\x69\x63\151\154\151\157\103\x6c\x69\145\x6e\x74\x65"], $CiZ9h["\x63\x6f\144\x69\x67\157\x54\151\x70\x6f\104\x6f\143\x75\x6d\x65\x6e\x74\157\111\x64\145\x6e\x74\151\144\141\144"], $CiZ9h["\156\165\155\x65\x72\x6f\104\157\x63\165\155\145\156\164\157"], $kuz2t, $CiZ9h["\x63\x6f\x72\162\x65\x6f"]]); goto zjrcU; ZbDXa: CVbkI: goto vcMo2; nSzKM: E2Oud: goto pOXbQ; f9x6s: return $this->responder($Jlva2, true); goto mKUvJ; mKUvJ: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } goto CgPC4; pg90S: $RVjQZ = new Funciones(); goto K3m_5; cRlE5: $zaZjj->modify("\x2b\40\61\x20\155\151\x6c\x6c\151\163\x65\x63\x6f\x6e\x64\163"); goto VkUc5; V86OY: $CiZ9h = $kmLYK->getParsedBody(); goto pg90S; VkUc5: $kuz2t = isset($CiZ9h["\143\x6f\155\x70\x6c\145\155\145\156\x74\157"]) ? $CiZ9h["\143\157\155\x70\154\x65\155\x65\x6e\x74\157"] : ''; goto oLyuG; CgPC4: } public function editFactura(Request $kmLYK, Response $Jlva2) { goto s4y2D; Rn9A6: $zaZjj = \DateTime::createFromFormat("\131\x2d\155\55\x64\40\x48\x3a\x69\72\163", $CiZ9h["\x66\145\x63\x68\x61\105\x6d\x69\163\x69\x6f\x6e"]); goto CudAY; s4y2D: $CiZ9h = $kmLYK->getParsedBody(); goto qjEYY; qjEYY: $RVjQZ = new Funciones(); goto Rn9A6; gXONU: $kuz2t = isset($CiZ9h["\x63\x6f\155\160\x6c\x65\x6d\x65\x6e\x74\x6f"]) ? $CiZ9h["\x63\x6f\x6d\160\154\145\x6d\145\x6e\x74\x6f"] : ''; goto g368o; CudAY: $zaZjj->modify("\53\40\x31\x20\155\151\x6c\x6c\x69\x73\x65\143\157\x6e\144\x73"); goto gXONU; g368o: try { goto UZqpx; b4gKw: $this->db->ejecutar("\125\120\104\x41\x54\x45\x20\x66\141\x63\145\154\x65\143\40\x53\105\x54\40\x45\114\x45\103\x4f\104\x53\x45\103\40\x3d\40\x3f\54\40\105\x4c\105\115\105\x53\x20\75\x20\77\54\40\105\114\105\x47\x45\x53\40\x3d\x20\x3f\54\40\x45\x4c\105\106\x45\103\105\x20\x3d\40\77\54\xa\11\x9\11\11\11\105\114\x45\x4e\117\x4d\x20\75\x20\x3f\54\40\105\114\x45\x44\x4f\x4d\x20\75\x20\77\54\x20\105\114\x45\103\117\104\104\117\x43\40\x3d\40\x3f\x2c\40\105\114\x45\116\x52\117\x44\x4f\103\x20\75\x20\x3f\54\x20\105\114\x45\x43\117\115\120\x20\x3d\x20\x3f\x2c\40\x45\x4c\x45\105\x4d\101\111\x4c\40\75\x20\x3f\x2c\12\x9\11\11\x9\x9\x45\x4c\x45\x43\125\x46\104\x20\75\x20\x3f\x2c\x20\x45\114\105\103\x54\122\114\40\x3d\40\x3f\12\x9\11\x9\x9\127\110\105\122\x45\x20\x45\114\105\103\114\111\x20\75\40\71\x39\x39\x39\x39\x39\xa\x9\11\11\11\x9\x41\116\104\40\x45\114\105\116\122\117\40\75\x20\x3f\12\x9\x9\x9\x9\x9\x41\x4e\104\40\x45\114\x45\106\x45\103\x20\75\40\77\12\x9\11\11\x9\x9\101\x4e\x44\x20\x45\x4c\105\106\x52\115\40\75\40\62", [$CiZ9h["\x63\157\144\x69\147\157\104\157\143\x75\155\x65\156\x74\x6f\123\145\x63\164\x6f\x72"], $RVjQZ->getNombreMes($zaZjj->format("\156")), $zaZjj->format("\131"), $zaZjj->format("\131\55\x6d\x2d\144\x20\110\x3a\151\72\x73\56\166"), $CiZ9h["\156\x6f\155\142\162\145\122\141\x7a\x6f\156\x53\157\143\x69\x61\154"], $CiZ9h["\x64\157\155\151\x63\x69\154\151\157\x43\154\x69\x65\156\x74\x65"], $CiZ9h["\143\157\x64\x69\147\157\124\151\160\157\x44\157\143\165\x6d\145\156\164\157\111\144\145\156\x74\x69\144\141\144"], $CiZ9h["\156\x75\x6d\145\162\157\x44\x6f\143\165\155\x65\x6e\164\x6f"], $kuz2t, $CiZ9h["\143\x6f\162\162\x65\157"], $UA2AX, $htd6V, $CiZ9h["\156\x75\155\145\162\157\106\x61\x63\164\x75\x72\141"], $CiZ9h["\x65\x6c\x65\x66\x65\143"]]); goto neclj; tUu7X: if (strtotime($CiZ9h["\146\145\x63\150\x61\105\155\x69\x73\151\157\156"]) < strtotime(str_replace("\124", "\40", substr($ai5D9->miPunto["\x63\165\x66\144\137\x76\x61\x6c\x69\144\145\x7a"], 0, -6)) . "\x20\55\61\x20\x64\x61\171")) { goto lEQ5S; } goto SymmQ; neclj: return $this->responder($Jlva2, true); goto ZqePv; LAgfh: goto cp9s5; goto J96OO; UZqpx: $ai5D9 = new SinController(); goto tUu7X; J96OO: lEQ5S: goto qQQi3; WVy8W: cp9s5: goto b4gKw; ZpX3g: $htd6V = $ai5D9->miPunto["\x63\x6f\x64\x69\x67\x6f\x43\x6f\x6e\164\x72\157\154"]; goto LAgfh; qQQi3: $UA2AX = $ai5D9->miPunto["\143\x75\146\144\x5f\x61\156\x74\x65\162\x69\x6f\162"]; goto WD7AT; WD7AT: $htd6V = $ai5D9->miPunto["\143\x6f\144\x69\147\157\103\x6f\x6e\x74\162\x6f\154\x5f\x61\156\164\x65\162\x69\157\x72"]; goto WVy8W; SymmQ: $UA2AX = $ai5D9->miPunto["\x63\x75\146\x64"]; goto ZpX3g; ZqePv: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } goto e4hFI; e4hFI: } public function delFactura(Request $kmLYK, Response $Jlva2) { $CiZ9h = $kmLYK->getParsedBody(); try { goto F_d7z; F_d7z: $this->db->ejecutar("\104\x45\x4c\105\124\x45\x20\106\x52\117\115\40\x66\141\x63\x65\x6c\145\143\154\12\x9\11\x9\x9\x57\x48\105\122\x45\40\105\114\105\x43\x4c\111\40\75\x20\x39\x39\x39\x39\x39\x39\xa\11\x9\x9\x9\11\x41\x4e\104\40\x45\x4c\105\116\122\117\40\75\x20\77\xa\11\x9\x9\x9\11\101\116\x44\x20\x45\x4c\x45\x46\105\103\40\75\x20\x3f\xa\11\11\11\x9\x9\101\x4e\104\x20\x45\114\105\x46\x52\115\40\x3d\40\61", [$CiZ9h["\x6e\x75\155\x65\162\157\x46\x61\143\164\165\162\141"], $CiZ9h["\x65\154\x65\x66\x65\143"]]); goto q2a8e; AL8Cg: return $this->responder($Jlva2, true); goto FMQTB; q2a8e: $this->db->ejecutar("\x44\105\114\x45\124\x45\x20\106\122\117\115\40\x66\141\143\145\154\145\143\12\11\11\x9\11\127\110\x45\x52\105\40\x45\x4c\x45\103\114\x49\40\x3d\x20\71\71\71\71\71\x39\12\11\x9\11\11\x9\x41\x4e\104\x20\105\x4c\x45\116\x52\x4f\x20\x3d\x20\x3f\xa\x9\x9\x9\11\11\101\116\104\x20\105\x4c\x45\106\x45\103\40\x3d\40\77\12\11\11\x9\11\x9\x41\116\x44\x20\105\x4c\x45\106\x52\x4d\40\x3d\x20\x31", [$CiZ9h["\x6e\165\155\145\x72\x6f\106\141\x63\164\x75\162\141"], $CiZ9h["\145\x6c\145\x66\x65\143"]]); goto AL8Cg; FMQTB: } catch (\Exception $sBr3o) { return $this->quejar($Jlva2, $sBr3o->getMessage()); } } public function regDetalles(Request $kmLYK, Response $Jlva2, $uaMG2) { goto oCNgp; wS0wu: $G43It = $this->db->getRow("\123\x45\114\x45\x43\124\40\145\x6c\x65\143\x6c\151\40\x41\x53\x20\42\145\x6c\145\143\x6c\x69\42\x2c\x20\145\x6c\x65\146\145\143\40\101\x53\x20\42\x65\x6c\x65\x66\145\x63\42\54\x20\x65\154\x65\146\162\x6d\x20\x41\123\40\x22\x65\154\145\x66\x72\155\x22\54\x20\x65\154\x65\x6e\162\157\x20\x41\x53\x20\42\145\x6c\x65\x6e\x72\x6f\x22\xa\x9\x9\x9\106\x52\117\115\40\x66\141\143\145\x6c\145\x63\40\127\110\105\x52\x45\x20\145\x6c\x65\151\144\x20\x3d\x20\x3f", [$ByTOu]); goto e9V91; Mfkkv: $zf3Fi = $CiZ9h["\x62\x6f\x72\162\141\x72"]; goto he8N8; znIlx: $CiZ9h = $kmLYK->getParsedBody(); goto Mfkkv; x_NYm: g2CKm: goto iWq1b; Udr9W: $yrngE = $this->db->prepare("\125\x50\104\101\124\x45\x20\x66\x61\143\145\154\x65\x63\x6c\x20\x53\x45\x54\xa\11\x9\x9\11\145\154\145\143\x61\156\164\x20\x3d\40\x3f\x2c\xa\11\11\11\11\x65\x6c\145\x63\157\x64\x70\x72\x6f\163\x20\75\x20\x3f\54\xa\11\11\11\11\145\x6c\x65\144\163\x63\40\75\40\x3f\x2c\12\x9\x9\x9\x9\x65\154\145\x70\x72\145\165\x6e\151\40\x3d\x20\77\54\12\x9\11\11\11\145\x6c\145\x73\x75\142\x74\x6f\164\x20\75\x20\77\xa\11\x9\11\127\x48\105\x52\x45\40\x65\x6c\145\x63\154\x69\x20\x3d\40\77\12\x9\x9\x9\x9\101\116\104\x20\x65\x6c\145\x66\x65\143\x20\75\x20\77\12\x9\x9\11\x9\101\116\x44\x20\x65\x6c\x65\146\x72\x6d\40\x3d\x20\77\12\11\x9\x9\x9\101\x4e\x44\40\145\x6c\x65\x6e\162\157\40\x3d\40\x3f\xa\x9\11\x9\11\x41\x4e\x44\40\145\154\145\143\157\144\160\x72\157\x64\40\75\x20\77"); goto lHyov; e9V91: $r0tKw = $this->db->prepare("\x44\x45\x4c\x45\124\105\40\x46\x52\x4f\115\x20\146\141\143\145\154\x65\x63\x6c\xa\11\11\x9\127\110\105\122\x45\x20\x65\x6c\x65\143\154\151\x20\75\40\x3f\12\x9\x9\11\x9\x41\116\x44\40\x65\154\145\x66\x65\x63\x20\x3d\40\77\12\11\x9\x9\x9\x41\116\x44\40\145\154\145\x66\162\x6d\x20\75\40\77\12\11\11\x9\x9\x41\116\104\x20\145\154\145\x6e\162\x6f\40\75\x20\x3f\12\11\x9\x9\x9\101\116\104\x20\x65\x6c\145\143\x6f\x64\160\x72\x6f\144\x20\x3d\40\x3f"); goto sVjfD; iWq1b: $qSc8D = 0.0; goto cGzJf; sVjfD: $L7gtp = $this->db->prepare("\111\116\x53\x45\x52\x54\40\x49\x4e\124\x4f\x20\x66\x61\143\x65\154\145\143\x6c\40\x28\x65\x6c\145\141\x63\x74\x65\x63\157\x2c\40\x65\154\145\143\141\156\164\x2c\40\145\x6c\x65\143\154\151\x2c\x20\145\x6c\145\x63\157\144\160\x72\x6f\x64\x2c\x20\145\x6c\145\x63\157\144\x70\x72\157\163\54\40\145\154\145\x64\163\x63\x2c\x20\x65\154\145\x66\145\143\54\x20\145\x6c\x65\x66\x72\x6d\54\40\x65\154\145\x6e\162\x6f\x2c\x20\x65\x6c\x65\x70\162\145\x75\156\x69\54\40\145\154\145\x73\165\142\x74\157\164\54\40\145\154\145\165\156\151\155\145\x64\51\xa\x9\x9\11\126\101\114\125\x45\123\x20\50\x27\x33\x35\x31\x30\x30\60\47\54\x20\x3f\54\x20\x39\x39\x39\x39\71\x39\54\x20\77\x2c\x20\77\x2c\40\77\54\x20\77\x2c\x20\x3f\x2c\40\77\x2c\x20\77\54\40\x3f\54\40\65\x38\x29"); goto Udr9W; he8N8: $n2TJ3 = $CiZ9h["\144\145\x74\141\x6c\154\x65\163"]; goto wS0wu; oCNgp: $ByTOu = $uaMG2["\x66\x61\143\x5f\x69\144"]; goto znIlx; o_z9s: $this->db->ejecutar("\125\x50\x44\101\124\x45\40\146\141\143\x65\154\x65\x63\x20\123\x45\124\x20\105\114\105\x4d\x4f\116\124\117\x54\x20\75\x20\77\54\xa\x9\x9\11\x9\x9\x45\x4c\105\115\117\116\124\x4f\124\x4d\40\x3d\40\77\54\40\x45\114\x45\124\117\x54\111\126\x41\x20\x3d\40\x3f\12\11\x9\11\x9\x57\x48\x45\x52\105\40\145\154\145\x69\x64\40\x3d\x20\x3f", [$qSc8D, $qSc8D, $qSc8D, $ByTOu]); goto R3ovw; lHyov: foreach ($zf3Fi as $byShr) { $this->db->execute($r0tKw, [$byShr["\x65\154\x65\x63\x6c\151"], $byShr["\x65\154\x65\146\145\x63"], $byShr["\x65\x6c\145\146\162\155"], $byShr["\145\154\x65\156\x72\x6f"], $byShr["\x63\x6f\144\x69\x67\x6f\120\162\157\144\165\143\x74\x6f"]]); UdKMn: } goto x_NYm; cGzJf: foreach ($n2TJ3 as $byShr) { goto lBaEv; lBaEv: if (isset($byShr["\145\154\x65\x63\154\151"])) { goto WQw1d; } goto EodTD; L5155: WQw1d: goto yBcUz; v0PhG: WhCcH: goto xgsRq; Poj03: goto WhCcH; goto L5155; yBcUz: $this->db->execute($yrngE, [$byShr["\143\x61\x6e\x74\x69\x64\x61\144"], $byShr["\143\x6f\144\151\x67\x6f\x50\x72\x6f\144\165\143\x74\x6f\x53\x69\x6e"], $byShr["\144\145\x73\x63\162\x69\x70\x63\x69\157\156"], $byShr["\x70\162\145\143\x69\x6f\125\156\x69\x74\x61\x72\151\157"], $byShr["\143\x61\x6e\164\151\x64\x61\144"] * $byShr["\160\x72\x65\143\x69\x6f\125\156\x69\x74\x61\162\x69\x6f"], $byShr["\145\x6c\145\x63\x6c\151"], $byShr["\x65\154\x65\x66\x65\143"], $byShr["\145\x6c\145\146\162\x6d"], $byShr["\x65\154\145\x6e\162\x6f"], $byShr["\143\x6f\144\x69\x67\x6f\x50\x72\157\x64\165\x63\164\x6f"]]); goto v0PhG; xgsRq: $qSc8D += $byShr["\163\165\142\124\x6f\x74\x61\154"]; goto b491k; EodTD: $this->db->execute($L7gtp, [$byShr["\x63\x61\156\x74\151\x64\x61\x64"], $byShr["\x63\x6f\144\151\x67\157\x50\x72\x6f\x64\165\x63\x74\157"], $byShr["\x63\157\x64\151\x67\x6f\120\162\x6f\x64\165\143\x74\157\x53\151\156"], $byShr["\x64\x65\x73\x63\162\151\160\143\x69\x6f\x6e"], $byShr["\x65\x6c\145\146\145\143"], $byShr["\145\154\x65\146\x72\155"], $byShr["\x65\x6c\x65\x6e\162\x6f"], $byShr["\160\x72\145\143\x69\x6f\125\156\x69\164\141\x72\x69\x6f"], $byShr["\x63\x61\156\x74\151\x64\141\144"] * $byShr["\x70\x72\x65\x63\151\x6f\125\x6e\151\164\x61\162\151\x6f"]]); goto Poj03; b491k: UR2ky: goto jvE3K; jvE3K: } goto TIRDS; TIRDS: SHpdh: goto o_z9s; R3ovw: return $this->responder($Jlva2, true); goto LbTJA; LbTJA: } public function nroFacturadas(Request $kmLYK, Response $Jlva2, $uaMG2) { goto gevpf; DocRM: $Bolf7 = $uaMG2["\x70\x65\x72\x69\x6f\x64\157"]; goto jPhV3; XuWM_: $FToqE = "\123\105\114\x45\103\124\40\x63\157\165\x6e\x74\50\x2a\51\x20\x41\x53\x20\x63\141\x6e\x74\151\144\141\144\40\x46\x52\117\115\40\x66\x61\x63\145\x6c\145\x63\12\x57\x48\x45\x52\x45\40\145\154\145\x73\164\163\x20\75\x20\62\xa\11\101\x4e\104\40\145\154\145\x63\x75\x66\x20\x3c\76\x20\47\47\xa\x9\101\116\x44\x20\145\x6c\x65\146\x65\x63\x65\40\102\x45\x54\x57\x45\105\x4e\x20\x27{$mVx7y}\x27\40\x41\x4e\x44\40\47{$EgbAg}\47"; goto TMIBR; hhQ5S: $mVx7y .= "\40\60\x30\72\60\x30\72\x30\x30\x2e\x30\60\60"; goto XuWM_; KfWlj: if (!empty($RQ93S)) { goto lMXQE; } goto ByTQg; jPhV3: $mVx7y = $qX7sA . "\55" . $Bolf7 . "\x2d\x30\61"; goto iRxsc; TMIBR: $RQ93S = $this->db->getOne($FToqE); goto KfWlj; ByTQg: $RQ93S = 0; goto xLMEP; iRxsc: $EgbAg = date("\x59\x2d\155\x2d\x74", strtotime($mVx7y)) . "\x20\x32\x33\72\65\x39\72\x35\x39\x2e\71\71\x39"; goto hhQ5S; xLMEP: lMXQE: goto ZvHMT; ZvHMT: return $this->responder($Jlva2, $RQ93S); goto oXH2K; gevpf: $qX7sA = $uaMG2["\x67\x65\x73\164\x69\157\156"]; goto DocRM; oXH2K: } public function reporteCantidad(Request $kmLYK, Response $Jlva2, $uaMG2) { goto w5JaK; MT5fq: return $this->responder($Jlva2, $IhX1C); goto dmqKZ; xFzMn: $IhX1C[] = ["\x54\x4f\x54\101\114" => $qSc8D]; goto MT5fq; Gr6aY: foreach ($HriUZ as $uk_l0 => $PFlZ6) { goto Nmmqn; ukRpy: $RQ93S = 0; goto Vvgxx; cOGUd: $qSc8D += (int) $RQ93S; goto QeByX; QeByX: dCcnr: goto bATy8; Vvgxx: ADUQQ: goto Oy754; Nmmqn: $RQ93S = file_get_contents($PFlZ6); goto tKOYx; tKOYx: if (!empty($RQ93S)) { goto ADUQQ; } goto ukRpy; Oy754: $IhX1C[] = [$uk_l0 => (int) $RQ93S]; goto cOGUd; bATy8: } goto M0Aoa; XjGcz: $Bolf7 = $uaMG2["\x70\x65\162\151\x6f\144\157"]; goto hg9hE; a5I6i: $qSc8D = 0; goto Gr6aY; eHGK_: $IhX1C = []; goto a5I6i; M0Aoa: mNFA8: goto xFzMn; hg9hE: $HriUZ = ["\x54\x61\162\x69\x6a\x61" => "\x68\164\164\160\x3a\57\x2f\61\71\60\56\61\60\56\x31\61\x2e\61\x36\x30\72\x38\70\70\x38\57\x61\x70\151\57\x6e\162\x6f\106\141\x63\164\x75\162\141\144\x61\x73\x2f" . $qX7sA . "\x2f" . $Bolf7, "\131\x61\x63\165\151\x62\141" => "\150\164\164\160\x3a\x2f\x2f\x31\71\x30\x2e\x31\60\x2e\61\61\x2e\61\x36\x31\x3a\x38\x38\70\70\x2f\x61\x70\151\x2f\156\x72\157\106\x61\x63\164\165\162\141\144\x61\163\57" . $qX7sA . "\x2f" . $Bolf7, "\126\151\x6c\154\141\155\157\156\x74\145\x73" => "\150\x74\164\160\x3a\57\x2f\61\71\60\x2e\x31\x30\56\x31\61\x2e\61\66\62\x3a\70\70\70\70\57\141\x70\151\57\156\162\157\x46\x61\x63\164\165\x72\x61\x64\x61\163\57" . $qX7sA . "\57" . $Bolf7, "\x42\x65\x72\155\145\152\x6f" => "\150\164\164\x70\72\57\x2f\61\x39\x30\56\x31\x30\x2e\x31\x31\x2e\x31\66\x33\72\x38\70\70\70\57\x61\x70\x69\57\x6e\162\x6f\x46\141\x63\164\x75\x72\x61\144\141\163\57" . $qX7sA . "\x2f" . $Bolf7, "\x45\156\x74\x72\145\x20\122\303\xad\157\163" => "\150\x74\x74\x70\x3a\57\x2f\61\x39\x30\x2e\61\x30\x2e\61\x31\56\61\x36\x34\x3a\x38\70\x38\70\x2f\141\x70\x69\x2f\x6e\x72\x6f\x46\141\x63\164\x75\x72\141\144\x61\163\x2f" . $qX7sA . "\x2f" . $Bolf7, "\x45\154\40\120\165\145\x6e\164\x65" => "\150\164\164\x70\x3a\x2f\57\61\x39\x30\x2e\x31\x30\56\x31\61\x2e\61\x36\65\x3a\70\x38\70\70\57\141\160\151\57\156\x72\157\106\x61\x63\164\x75\162\x61\x64\x61\x73\57" . $qX7sA . "\x2f" . $Bolf7]; goto eHGK_; w5JaK: $qX7sA = $uaMG2["\x67\x65\163\x74\x69\157\156"]; goto XjGcz; dmqKZ: } public function xMesGestion($mVx7y, $EgbAg) { return $this->db->getAll("\x53\x45\x4c\x45\103\124\40\145\154\145\x69\144\40\101\123\40\x22\151\x64\x22\54\x20\x65\x6c\x65\x63\165\146\x20\101\123\x20\42\x63\165\x66\x22\x2c\x20\145\x6c\x65\146\145\143\40\x41\123\40\42\x66\x65\143\x68\x61\42\xa\11\x9\11\106\122\117\x4d\x20\x66\141\143\145\154\x65\143\xa\11\11\11\127\x48\x45\122\105\x20\145\x6c\145\146\145\x63\145\40\x42\x45\124\127\105\105\x4e\x20\77\40\x41\x4e\x44\x20\x3f\12\11\11\x9\11\x41\116\x44\40\x65\x6c\145\163\164\163\40\75\x20\x32\xa\x9\x9\x9\x9\101\116\104\x20\145\x6c\145\163\164\163\146\x61\x63\40\75\40\x30\xa\x9\11\11\117\x52\104\x45\x52\x20\102\x59\40\x65\x6c\145\x69\x64", [$mVx7y, $EgbAg]); } public function getArchivoXml(Request $kmLYK, Response $Jlva2, $uaMG2) { goto PZJP6; sMQok: zQZul: goto lrAoO; lrAoO: $Tb8Sb = $mBL4N . "\x2f" . $GU1Ju["\x63\x75\146"] . "\x2e\x78\155\154"; goto s0KzD; tJMaB: $Bolf7 = substr($GU1Ju["\x66\145\143\150\x61"], 0, 6); goto mlJ7i; sMDCi: return $this->responder($Jlva2, false); goto g7sap; XrVwQ: return $this->responder($Jlva2, false); goto OKBwy; ESeLv: $mBL4N = "\57\166\141\x72\x2f\167\167\167\x2f\150\164\x6d\154\x2f\146\x61\143\164\165\162\x61\163"; goto kEdnH; qvIEG: header("\x43\157\156\x74\x65\x6e\164\55\104\151\163\160\157\x73\x69\164\151\157\156\x3a\x20\x61\x74\x74\141\143\x68\x6d\145\x6e\x74\x3b\40\146\x69\x6c\145\x6e\141\x6d\145\x3d\42\x53\145\164\141\162\x5f" . $tWGhw . "\x2e\x78\155\154\x22\x3b"); goto g707j; g7sap: HZeQ6: goto ESeLv; bS4wR: $mBL4N = "\x2f\x68\157\x6d\145\57\163\150\141\x72\x65\x2f" . $Bolf7; goto sMQok; e2PVU: exit; goto vn2Rq; g707j: readfile($Tb8Sb); goto e2PVU; tU3DC: if (!empty($GU1Ju)) { goto HZeQ6; } goto sMDCi; OKBwy: PblBs: goto S2zgB; mlJ7i: if (!($PuBQx != $Bolf7)) { goto zQZul; } goto bS4wR; PZJP6: $GU1Ju = $this->db->getRow("\x53\x45\x4c\105\103\x54\x20\145\x6c\x65\x69\144\40\x41\123\x20\x22\x69\x64\x22\54\40\x65\x6c\x65\143\x75\146\40\101\123\40\x22\x63\x75\146\x22\x2c\x20\x65\154\145\x66\145\143\x20\101\x53\x20\x22\146\145\x63\x68\x61\x22\54\40\145\x6c\145\146\x65\x63\145\x20\101\x53\40\42\146\145\x63\150\x61\x45\155\x69\163\x69\157\x6e\42\xa\11\x9\11\x46\x52\x4f\x4d\x20\x66\x61\143\x65\154\x65\x63\xa\11\11\x9\127\110\x45\x52\105\40\x65\154\145\x69\144\x20\x3d\40\77", [$uaMG2["\x69\144"]]); goto tU3DC; s0KzD: if (file_exists($Tb8Sb)) { goto PblBs; } goto XrVwQ; kEdnH: $PuBQx = date("\131\155"); goto tJMaB; S2zgB: $tWGhw = date("\x59\x2d\x6d\55\144", strtotime($GU1Ju["\x66\x65\x63\150\141\105\155\x69\x73\x69\157\156"])); goto RP4kz; RP4kz: header("\103\157\156\164\145\x6e\x74\x2d\x54\171\160\145\72\40\141\160\x70\x6c\x69\143\141\164\x69\x6f\x6e\57\170\155\154"); goto qvIEG; vn2Rq: } public function getArchivoPdf(Request $kmLYK, Response $Jlva2, $uaMG2) { goto nDy6P; ETCFt: $mBL4N = "\57\x68\157\x6d\145\57\x73\150\x61\x72\145\x2f" . $Bolf7; goto QAo2K; U3tQB: if (file_exists($Tb8Sb)) { goto nC5Gz; } goto thGRA; G2kt3: readfile($Tb8Sb); goto oiLLw; GwFCu: $tWGhw = date("\131\55\x6d\x2d\x64", strtotime($GU1Ju["\146\145\x63\x68\141\105\x6d\x69\x73\x69\x6f\156"])); goto xEBEX; thGRA: echo NULL; goto BCgls; LT7qA: header("\103\157\156\164\x65\156\x74\55\x44\x69\163\x70\x6f\163\151\164\x69\157\156\x3a\40\x61\x74\x74\x61\143\x68\x6d\x65\156\164\x3b\40\146\x69\154\145\156\141\155\x65\x3d\42\x53\145\x74\141\x72\137" . $tWGhw . "\x2e\160\144\146\42\73"); goto U3tQB; Higuk: if (!empty($GU1Ju)) { goto W2APR; } goto dGt8G; xEBEX: header("\103\x6f\x6e\x74\145\156\164\x2d\124\x79\160\x65\x3a\40\x61\160\160\x6c\x69\x63\141\x74\151\157\156\x2f\x70\x64\146"); goto LT7qA; xzYsc: $PuBQx = date("\x59\155"); goto Ahxuc; pz_Il: $mBL4N = "\x2f\166\x61\x72\x2f\167\x77\x77\57\x68\164\155\x6c\x2f\x66\x61\x63\x74\x75\x72\x61\x73"; goto xzYsc; QAo2K: v07U7: goto xCXF6; Hf3wp: W2APR: goto pz_Il; PLvWk: nC5Gz: goto G2kt3; nDy6P: $GU1Ju = $this->db->getRow("\123\x45\x4c\105\x43\x54\x20\x65\x6c\145\x69\144\x20\x41\x53\x20\x22\x69\x64\42\54\40\145\x6c\x65\x63\x75\146\x20\101\x53\x20\42\143\x75\x66\42\54\x20\145\x6c\x65\x66\145\143\x20\x41\x53\x20\x22\x66\x65\143\150\x61\x22\x2c\40\145\154\x65\146\x65\143\x65\x20\x41\123\40\x22\x66\145\143\150\x61\105\155\x69\163\x69\x6f\x6e\42\xa\x9\11\x9\x46\122\x4f\115\40\146\141\x63\x65\x6c\145\143\12\x9\x9\x9\127\110\105\122\105\40\145\x6c\x65\x69\144\x20\x3d\40\77", [$uaMG2["\151\x64"]]); goto Higuk; ia562: exit; goto QxVBF; wGJxL: if (!($PuBQx != $Bolf7)) { goto v07U7; } goto ETCFt; oiLLw: TXYT_: goto ia562; BCgls: goto TXYT_; goto PLvWk; dGt8G: return $this->responder($Jlva2, false); goto Hf3wp; Ahxuc: $Bolf7 = substr($GU1Ju["\x66\x65\x63\x68\141"], 0, 6); goto wGJxL; xCXF6: $Tb8Sb = $mBL4N . "\x2f" . $GU1Ju["\143\165\x66"] . "\x2e\x70\144\x66"; goto GwFCu; QxVBF: } }

Function Calls

None

Variables

None

Stats

MD5 5c653824a543d12346689a0094c49ca2
Eval Count 0
Decode Time 60 ms