<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.17  |
    |              on 2026-01-30 06:01:14              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 require_once RUTA_APP . 'Conexion.php'; class SimpleQuery { public static function exec($query, $is_insert = FALSE) { goto v8wVs; oHrrp: $id = "-1"; goto TkCVZ; e_dLn: $r = array("status" => "error", "error" => mysqli_error($con), "query" => $query); goto HI_qq; b3_md: if ($res) { goto X20Wa; } goto e_dLn; UgGej: JbDT3: goto QzBv7; OohkR: $r = array("status" => "ok", "result" => $res, "id" => $id); goto UgGej; dprlU: X20Wa: goto oHrrp; QzBv7: sv_mysqli_close($con); goto pPoKF; VMlOd: $r = array(); goto b3_md; TkCVZ: if (!$is_insert) { goto s5kUi; } goto VczSi; pPoKF: return $r; goto Nqpin; HI_qq: goto JbDT3; goto dprlU; C9FW8: s5kUi: goto OohkR; Fvj_7: $res = sv_mysqli_query($con, $query); goto VMlOd; VczSi: $id = mysqli_insert_id($con); goto C9FW8; v8wVs: $con = getConnection(); goto Fvj_7; Nqpin: } public static function simpleSelect($fields = "", $table = "", $conditions = "", $skip = 0, $limit = 15, $group = "") { goto m1IIm; phz2B: $query .= " GROUP BY {$group}"; goto d3oOw; Yif1H: goto fzYeU; goto I7VKm; fFXLc: $query .= " OFFSET {$skip} "; goto nCRmZ; m1IIm: $query = "SELECT {$fields} FROM {$table}"; goto rKden; nCRmZ: ljIzS: goto n_Ihn; eoHV0: fzYeU: goto bSSq6; rKden: if (!($conditions !== "")) { goto JPdCJ; } goto ilpWS; XcXm3: return $query; goto l_9mj; I7VKm: uf4sk: goto PFtfx; N2nV1: $query .= " LIMIT {$limit} "; goto n_PA1; SgGiZ: if ($limit > 0) { goto sxtvF; } goto BAZTj; d3oOw: j6qNy: goto XcXm3; bSSq6: if (!($group !== "")) { goto j6qNy; } goto phz2B; n_Ihn: goto YMRx5; goto dUyxz; n_PA1: YMRx5: goto Yif1H; BAZTj: if (!($skip > 0)) { goto ljIzS; } goto fFXLc; w2A75: JPdCJ: goto If8e3; dUyxz: sxtvF: goto N2nV1; ilpWS: $query .= " WHERE {$conditions} "; goto w2A75; PFtfx: $query .= " LIMIT {$skip}, {$limit} "; goto eoHV0; If8e3: if ($limit > 0 && $skip > 0) { goto uf4sk; } goto SgGiZ; l_9mj: } public static function insert($table = "", $values = array()) { goto M2ycr; T79bf: zxwI3: goto BDnoJ; M2ycr: $str_fields = ""; goto kw_NX; gUK4r: foreach ($values as $field => $value) { goto xQ3t0; BKrX2: Yx4XL: goto tSM__; tSM__: goto YKfLa; goto RrgcT; uMZFm: HhJ3n: goto yUzHl; OmSlL: $str_fields .= $field; goto uMZFm; NBNXT: goto HhJ3n; goto gWNwZ; glmFS: oJ1jL: goto nRnri; yM7QZ: if ($str_values === "") { goto KAj79; } goto zyuaw; gWNwZ: DaVe2: goto OmSlL; P0FKh: KAj79: goto GJB1H; KtgsV: goto Yx4XL; goto P0FKh; zyuaw: $str_values .= ",{$value}"; goto KtgsV; GJB1H: $str_values .= $value; goto BKrX2; RrgcT: cvupw: goto bG8OF; ZbDRF: NnvmJ: goto XOVB1; JrWcJ: z7FPK: goto Mm2lG; Mm2lG: $str_values .= "'" . limpia($value) . "'"; goto ZbDRF; Nf1W_: $str_fields .= ",{$field}"; goto NBNXT; bG8OF: if ($str_values === "") { goto z7FPK; } goto o4pPj; XOVB1: YKfLa: goto glmFS; yUzHl: if (is_string($value)) { goto cvupw; } goto yM7QZ; nCHBA: goto NnvmJ; goto JrWcJ; o4pPj: $str_values .= ",'" . limpia($value) . "'"; goto nCHBA; xQ3t0: if ($str_fields === "") { goto DaVe2; } goto Nf1W_; nRnri: } goto T79bf; kw_NX: $str_values = ""; goto gUK4r; BDnoJ: return "INSERT INTO {$table} ({$str_fields}) VALUES ({$str_values})"; goto kXmYm; kXmYm: } public static function update($table = "", $values = array(), $conditions = "") { goto o_nJK; DBx_E: I64P3: goto m1dN2; m1dN2: $query = "UPDATE {$table} SET {$str_values} "; goto t6tt5; t6tt5: if (!($conditions !== "")) { goto y3aJR; } goto o3boY; o3boY: $query .= " WHERE {$conditions} "; goto YhpZd; YhpZd: y3aJR: goto vhheA; RxiJO: foreach ($values as $field => $value) { goto LGx41; KbBFT: cE38m: goto h3Ivh; FE6Uq: if (is_string($value)) { goto jKUfy; } goto H88Gq; LO1yl: rMh9_: goto n1Alj; xfLBP: if (is_string($value)) { goto rMh9_; } goto S5qDk; di9nd: MhE1W: goto KbBFT; UjExq: aTkD4: goto LbSp1; X28jp: goto aTkD4; goto LO1yl; LGx41: if ($str_values === "") { goto WrOPs; } goto xfLBP; dovnj: $str_values .= "{$field} = '" . limpia($value) . "'"; goto m7hwf; dO9H8: goto sRuUg; goto qGT09; LbSp1: goto MhE1W; goto lk39z; n1Alj: $str_values .= ",{$field} = '" . limpia($value) . "'"; goto UjExq; qGT09: jKUfy: goto dovnj; lk39z: WrOPs: goto FE6Uq; m7hwf: sRuUg: goto di9nd; S5qDk: $str_values .= ",{$field} = {$value}"; goto X28jp; H88Gq: $str_values .= "{$field} = {$value}"; goto dO9H8; h3Ivh: } goto DBx_E; o_nJK: $str_values = ""; goto RxiJO; vhheA: return $query; goto bkHWB; bkHWB: } }