<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.17  |
    |              on 2026-02-13 06:00:53              |
    |    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 Mh1OI; U6DsX: goto O6Up4; goto V3_La; xQeEN: O6Up4: goto Dw0iP; Z3zE4: return $r; goto CexPA; Dw0iP: sv_mysqli_close($con); goto Z3zE4; oFzCc: $id = mysqli_insert_id($con); goto YLsrZ; Mh1OI: $con = getConnection(); goto YIvFY; Y121E: $r = array("status" => "error", "error" => mysqli_error($con), "query" => $query); goto U6DsX; YIvFY: $res = sv_mysqli_query($con, $query); goto IdvJC; Kiyf5: if (!$is_insert) { goto zVBHl; } goto oFzCc; kP4mb: $id = "-1"; goto Kiyf5; IdvJC: $r = array(); goto Rrg4A; Rrg4A: if ($res) { goto ij7L1; } goto Y121E; G2klG: $r = array("status" => "ok", "result" => $res, "id" => $id); goto xQeEN; V3_La: ij7L1: goto kP4mb; YLsrZ: zVBHl: goto G2klG; CexPA: } public static function simpleSelect($fields = "", $table = "", $conditions = "", $skip = 0, $limit = 15, $group = "") { goto sG8ls; l_9cn: zp4E8: goto ns1Ah; PgrRu: if ($limit > 0) { goto MZl4D; } goto mmPci; q0xYa: $query .= " LIMIT {$limit} "; goto epx9h; vg06x: vXyP2: goto QkMOE; oDtY6: k5bcZ: goto BECMe; BECMe: if ($limit > 0 && $skip > 0) { goto zp4E8; } goto PgrRu; cwbVD: $query .= " OFFSET {$skip} "; goto VNzbn; RtulM: MZl4D: goto q0xYa; lng06: $query .= " WHERE {$conditions} "; goto oDtY6; AJB6X: if (!($group !== "")) { goto vXyP2; } goto jAVc1; KxidL: if (!($conditions !== "")) { goto k5bcZ; } goto lng06; ncsMH: YknjC: goto AJB6X; epx9h: iwDvX: goto LYcN8; LYcN8: goto YknjC; goto l_9cn; mmPci: if (!($skip > 0)) { goto um4lH; } goto cwbVD; ns1Ah: $query .= " LIMIT {$skip}, {$limit} "; goto ncsMH; QkMOE: return $query; goto asB3m; VNzbn: um4lH: goto VML1E; sG8ls: $query = "SELECT {$fields} FROM {$table}"; goto KxidL; VML1E: goto iwDvX; goto RtulM; jAVc1: $query .= " GROUP BY {$group}"; goto vg06x; asB3m: } public static function insert($table = "", $values = array()) { goto DIIgb; zwkEW: return "INSERT INTO {$table} ({$str_fields}) VALUES ({$str_values})"; goto IKETg; xylXM: $str_values = ""; goto vPsQo; DIIgb: $str_fields = ""; goto xylXM; dxXP9: UtUZq: goto zwkEW; vPsQo: foreach ($values as $field => $value) { goto w0tVs; lgAVM: $str_values .= $value; goto XAJbu; teaDs: goto h2W04; goto x33Rk; V9zei: $str_values .= ",{$value}"; goto leVFT; SGFLe: if ($str_values === "") { goto GB1cP; } goto frbNa; FQ90n: goto lXXBd; goto um_8D; lVa4S: if (is_string($value)) { goto JKXmP; } goto q0XV4; um_8D: JKXmP: goto SGFLe; XAJbu: sgiJH: goto FQ90n; Aa2gY: Qrzzn: goto lVa4S; hlrO5: $str_fields .= $field; goto Aa2gY; thbDC: TZxks: goto hlrO5; It_2V: VrABj: goto lgAVM; x33Rk: GB1cP: goto pvejg; frbNa: $str_values .= ",'" . limpia($value) . "'"; goto teaDs; q0XV4: if ($str_values === "") { goto VrABj; } goto V9zei; w0tVs: if ($str_fields === "") { goto TZxks; } goto AeRKw; AeRKw: $str_fields .= ",{$field}"; goto niOA8; v04mr: h2W04: goto xfPvx; leVFT: goto sgiJH; goto It_2V; xfPvx: lXXBd: goto lgWgV; niOA8: goto Qrzzn; goto thbDC; lgWgV: glROg: goto g3VFi; pvejg: $str_values .= "'" . limpia($value) . "'"; goto v04mr; g3VFi: } goto dxXP9; IKETg: } public static function update($table = "", $values = array(), $conditions = "") { goto gTyrl; GqQJK: $query .= " WHERE {$conditions} "; goto vqtF7; pLrqf: return $query; goto fK7Kq; gTyrl: $str_values = ""; goto db1bk; WeWxx: $query = "UPDATE {$table} SET {$str_values} "; goto MnLYB; MnLYB: if (!($conditions !== "")) { goto xAGBD; } goto GqQJK; db1bk: foreach ($values as $field => $value) { goto JuQ_1; a_s8T: tYbJP: goto w2xzl; l8_UB: aj4ex: goto oOxnl; vOqUc: $str_values .= ",{$field} = '" . limpia($value) . "'"; goto a_s8T; Dbv5B: JlD9H: goto xNFN2; w2xzl: goto cbSfb; goto YaCBT; un68Z: if (is_string($value)) { goto JlD9H; } goto S2Ckj; JuQ_1: if ($str_values === "") { goto gJ2rA; } goto AtndG; pVlq8: $str_values .= ",{$field} = {$value}"; goto RFyIj; Bw49g: xG2C6: goto vOqUc; RFyIj: goto tYbJP; goto Bw49g; xNFN2: $str_values .= "{$field} = '" . limpia($value) . "'"; goto UpMvS; AtndG: if (is_string($value)) { goto xG2C6; } goto pVlq8; UpMvS: Hl50S: goto FyirH; F1Evc: goto Hl50S; goto Dbv5B; FyirH: cbSfb: goto l8_UB; YaCBT: gJ2rA: goto un68Z; S2Ckj: $str_values .= "{$field} = {$value}"; goto F1Evc; oOxnl: } goto UNbar; UNbar: LbcIX: goto WeWxx; vqtF7: xAGBD: goto pLrqf; fK7Kq: } }