/* Decoded by unphp.net */ getContentGatingConfigDetails(); goto BG; vc: $this->saveLoopringAPIKey(); BG: goto tv; WK: $this->deleteContentGatingDetails(); tv: goto Dz; hY: $this->addContentGatingDetails(); Dz: goto bD; La: $this->deleteTokenDetails(); bD: goto VO; m1: $this->updateTokenDetails(); VO: goto JF; IJ: $this->addTokenDetails(); JF: Op: } public function saveLoopringAPIKey() { global $V8; $X5 = isset($_REQUEST["loopringDetails"]) ? $_REQUEST["loopringDetails"] : null; $SC = isset($X5["loopringApiKey"]) ? $X5["loopringApiKey"] : null; $V8->mo_web3_update_option("mo_web3_loopring_api_key", $SC); wp_send_json("success"); } public function getContentGatingConfigDetails() { global $V8; $ej = $V8->mo_web3_get_option("mo_web3_content_gating_config_details_store"); wp_send_json($ej); } public function addContentGatingDetails() { global $V8; $t7 = isset($_REQUEST["contentGatingDetails"]) ? $_REQUEST["contentGatingDetails"] : null; $q3 = array(); foreach ($t7 as $Ky => $V7) { $Ky = isset($Ky) ? sanitize_text_field(wp_unslash($Ky)) : null; $V7 = isset($V7) ? sanitize_text_field(wp_unslash($V7)) : null; $q3[$Ky] = $V7; x1: } WW: $ej = $V8->mo_web3_get_option("mo_web3_content_gating_config_details_store"); $Qo = $q3["pageURL"]; if ($ej) { goto pm; } $ej = array(); pm: if (!array_key_exists($Qo, $ej)) { goto xT; } wp_send_json("duplicate entry"); xT: $ej[$Qo] = $q3; $V8->mo_web3_update_option("mo_web3_content_gating_config_details_store", $ej); wp_send_json("success"); } public function deleteContentGatingDetails() { global $V8; $t7 = isset($_REQUEST["contentGatingDetails"]) ? $_REQUEST["contentGatingDetails"] : null; $t7 = $t7["gatedPageURLArray"]; $ej = $V8->mo_web3_get_option("mo_web3_content_gating_config_details_store"); foreach ($t7 as $Ky => $V7) { $Ky = isset($Ky) ? sanitize_text_field(wp_unslash($Ky)) : null; $V7 = isset($V7) ? sanitize_text_field(wp_unslash($V7)) : null; $Qo = $V7; unset($ej[$Qo]); Z3: } kR: $V8->mo_web3_update_option("mo_web3_content_gating_config_details_store", $ej); wp_send_json("success"); } public function addTokenDetails() { global $V8; $NJ = isset($_REQUEST["tokenDetails"]) ? $_REQUEST["tokenDetails"] : null; $k2 = array(); foreach ($NJ as $Ky => $V7) { $Ky = isset($Ky) ? sanitize_text_field(wp_unslash($Ky)) : null; $V7 = isset($V7) ? sanitize_text_field(wp_unslash($V7)) : null; $V7 = str_replace(" ", '', $V7); if (!($V7 == '')) { goto E9; } $V7 = null; E9: $k2[$Ky] = $V7; Ez: } fo: $J4 = $V8->mo_web3_get_option("mo_web3_token_config_details_store"); $JC = $k2["contractAddressName"]; if ($J4) { goto tP; } $J4 = array(); tP: if (!array_key_exists($JC, $J4)) { goto w_; } wp_send_json("duplicate entry"); w_: $J4[$JC] = $k2; $V8->mo_web3_update_option("mo_web3_token_config_details_store", $J4); wp_send_json("success"); } public function updateTokenDetails() { global $V8; $NJ = isset($_REQUEST["tokenDetails"]) ? $_REQUEST["tokenDetails"] : null; $k2 = array(); foreach ($NJ as $Ky => $V7) { $Ky = isset($Ky) ? sanitize_text_field(wp_unslash($Ky)) : null; $V7 = isset($V7) ? sanitize_text_field(wp_unslash($V7)) : null; $V7 = str_replace(" ", '', $V7); if (!($V7 == '')) { goto Ww; } $V7 = null; Ww: $k2[$Ky] = $V7; u0: } AD: $J4 = $V8->mo_web3_get_option("mo_web3_token_config_details_store"); $JC = $k2["contractAddressName"]; $J4[$JC] = $k2; $V8->mo_web3_update_option("mo_web3_token_config_details_store", $J4); wp_send_json("success"); } public function deleteTokenDetails() { global $V8; $NJ = isset($_REQUEST["tokenDetails"]) ? $_REQUEST["tokenDetails"] : null; $NJ = $NJ["contractAddressName"]; $J4 = $V8->mo_web3_get_option("mo_web3_token_config_details_store"); foreach ($NJ as $Ky => $V7) { $Ky = isset($Ky) ? sanitize_text_field(wp_unslash($Ky)) : null; $V7 = isset($V7) ? sanitize_text_field(wp_unslash($V7)) : null; $JC = $V7; unset($J4[$JC]); F1: } wp: $V8->mo_web3_update_option("mo_web3_token_config_details_store", $J4); wp_send_json("success"); } } ?>