/* Decoded by unphp.net */ IAAuN() . "postmeta"; goto gpdGS; OqHLZ: if (!empty($GUpQh)) { goto rVYd3; } goto dlIJS; TY5vA: $DkUW8 = ["ID" => "mediumint(11) NOT NULL AUTO_INCREMENT", "tbl_api_key_val" => "VARCHAR(255) DEFAULT '' NOT NULL", "tbl_api_quota_used" => "float DEFAULT 0 NOT NULL", "tbl_api_costs" => "float DEFAULT 0 NOT NULL", "nb_task_progress" => "float DEFAULT 0 NOT NULL", "api_key_status" => "VARCHAR(255) DEFAULT '' NOT NULL", "openai_model" => "VARCHAR(255) DEFAULT '["gpt-3.5-turbo"]' NOT NULL"]; goto sGZbd; hdf7v: $AYQcv = ["ID" => "mediumint(11) NOT NULL AUTO_INCREMENT", "cprompt_filename" => "VARCHAR(255) DEFAULT '' NOT NULL", "cprompt_content" => "TEXT DEFAULT '' NOT NULL"]; goto K_fZI; aKiFv: B16y1: goto mFcPm; K_fZI: $nU3ga->g99d2($Gp_eZ, $AYQcv); goto M7FiM; Zqb6E: $CQkby = $QKBkO->IaaUN() . "tbl_log"; goto hLgEb; edP1J: goto B16y1; goto RgLq2; iCltK: $j3C9j = implode(",", $GUpQh); goto bvkIL; vGuUc: global $QKBkO; goto Zqb6E; HNaR3: $Gp_eZ = $QKBkO->IaaUN() . "tbl_custom_prompt"; goto hdf7v; vu_jI: $GUpQh = $QKBkO->AlgaQ($UQsCX); goto OqHLZ; tqZjJ: $HhBcf = $QKBkO->IAAUn() . "tbl_config"; goto jR5vS; GUCSp: $QKBkO->query($UQsCX); goto cg3Ro; VGr3d: $UQsCX = $QKBkO->prepare("DELETE FROM {$sRprA} WHERE post_type = %s AND post_parent NOT IN ( {$j3C9j} ) AND post_status != 'publish' AND post_status != 'draft' AND post_status != 'future'", "wpg_bulk"); goto GUCSp; XjW9z: if (!empty($g9z8V)) { goto m7U0F; } goto EUBrC; PPxjZ: if (empty($bv22J)) { goto H7DNM; } goto FIp6J; mvLXj: goto RGF9K; goto pYtb_; hLgEb: $QKBkO->query("DROP TABLE IF EXISTS {$CQkby}"); goto tqZjJ; MJ2ab: NjnFz: goto sxHja; RrK13: $QKBkO->query($UQsCX); goto mvLXj; EmV3U: $nU3ga->g99d2($HhBcf, $Ass4b); goto rt05P; M7FiM: $bv22J = $QKBkO->C4eS_("SELECT * FROM {$Gp_eZ} ORDER BY cprompt_content ASC", XLFh6); goto PPxjZ; zXVEQ: $nU3ga = new self(); goto EmV3U; mFcPm: $RZLas = $QKBkO->iAAuN() . "tbl_apikey_liste"; goto TY5vA; scYDL: $sRprA = $QKBkO->iaAun() . "posts"; goto rb319; rt05P: $g9z8V = $QKBkO->uJ5OM($QKBkO->prepare("SELECT * FROM {$HhBcf} WHERE tbl_name = %s", "tbl_g_config")); goto XjW9z; gpdGS: $UQsCX = $QKBkO->prepare("SELECT ID FROM {$sRprA} WHERE post_type = %s", "wpg_project"); goto vu_jI; jR5vS: $Ass4b = ["ID" => "mediumint(11) NOT NULL AUTO_INCREMENT", "tbl_name" => "text NOT NULL", "tbl_language" => "VARCHAR(255) DEFAULT 'fr' NOT NULL", "tbl_add_faq" => "BOOLEAN DEFAULT 0 NOT NULL", "tbl_add_featured_img" => "BOOLEAN DEFAULT 1 NOT NULL", "tbl_add_content_img" => "BOOLEAN DEFAULT 1 NOT NULL", "tbl_rewrite_hn_scrap" => "BOOLEAN DEFAULT 0 NOT NULL", "tbl_licence" => "VARCHAR(255) DEFAULT 'OK' NOT NULL", "tbl_licence_is_valid" => "BOOLEAN DEFAULT FALSE NOT NULL"]; goto zXVEQ; dlIJS: $UQsCX = $QKBkO->prepare("DELETE FROM {$sRprA} WHERE post_type = %s AND post_status != 'publish' AND post_status != 'draft' AND post_status != 'future'", "wpg_bulk"); goto RrK13; RgLq2: m7U0F: goto aKiFv; sxHja: H7DNM: goto scYDL; pYtb_: rVYd3: goto iCltK; bvkIL: $QftOA = $QKBkO->prepare("DELETE FROM {$FwAjr} WHERE post_id IN ( %s )", $j3C9j); goto L4D97; sGZbd: $nU3ga->g99D2($RZLas, $DkUW8); goto HNaR3; EUBrC: $QKBkO->insert($HhBcf, ["tbl_name" => "tbl_g_config"], ["%s"]); goto edP1J; L4D97: $QKBkO->query($QftOA); goto VGr3d; FIp6J: foreach ($bv22J as $DaJge) { goto ruS0i; YhVkv: fclose($c_DDO); goto qjPg5; m7egl: flock($c_DDO, LOCK_EX); goto cLNPf; McaVY: flock($c_DDO, LOCK_UN); goto YhVkv; BUZ8T: $jwIOJ = json_encode(json_decode($DaJge["cprompt_content"])); goto lzeDt; cLNPf: fwrite($c_DDO, $jwIOJ); goto McaVY; JE0rh: $c_DDO = fopen($JXZ1y, "w+"); goto m7egl; lzeDt: $JXZ1y = V9lhS . "/admin/partials/prompts/" . $xk7m9; goto JE0rh; ruS0i: $xk7m9 = $DaJge["cprompt_filename"]; goto BUZ8T; qjPg5: tRr3o: goto u9_fU; u9_fU: } goto MJ2ab; bwHBM: } public function g99d2($m7qzt, $fKiO8) { goto Lz1Cb; qxgoK: zDMtK: goto R45JN; hU3hx: r9ME0: goto JW9RG; ieeMD: require_once rC7_E . "wp-admin/includes/upgrade.php"; goto wRP1B; jdsoN: $kdzAN = $QKBkO->aLGAq("DESCRIBE {$m7qzt}"); goto Fg41Q; YMYR0: if ($QKBkO->JkJ3n("SHOW TABLES LIKE '{$m7qzt}'") != $m7qzt) { goto ZzN5X; } goto jdsoN; rA507: $AJWWv = "CREATE TABLE {$m7qzt} ( ID mediumint(11) NOT NULL AUTO_INCREMENT,\xd\xa PRIMARY KEY (ID)\xd ) {$DA07m};"; goto ieeMD; j_rJ0: DKqko: goto gL5xm; OYL4z: foreach ($gcCJn as $gAl12 => $VzjRy) { $QKBkO->query("ALTER TABLE {$m7qzt} DROP COLUMN {$gAl12}"); P3hMr: } goto hU3hx; Fg41Q: $qaGcL = array_diff_key($fKiO8, array_flip($kdzAN)); goto b_AHH; gL5xm: $gcCJn = array_diff_key(array_flip($kdzAN), $fKiO8); goto OYL4z; JW9RG: goto zDMtK; goto r2acE; VCv_p: $DA07m = $QKBkO->o6ZtS(); goto YMYR0; b_AHH: foreach ($qaGcL as $gAl12 => $yZI19) { $QKBkO->query("ALTER TABLE {$m7qzt} ADD COLUMN {$gAl12} {$yZI19}"); Qy0aC: } goto j_rJ0; cFIat: foreach ($fKiO8 as $gAl12 => $yZI19) { $QKBkO->query("ALTER TABLE {$m7qzt} ADD COLUMN {$gAl12} {$yZI19}"); knWq3: } goto WwI9B; Lz1Cb: global $QKBkO; goto VCv_p; WwI9B: x1m0P: goto qxgoK; r2acE: ZzN5X: goto rA507; wRP1B: sVpWl($AJWWv); goto cFIat; R45JN: } } ?>