Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * License from amember http api softsale module * * Author: Gian MR - htt..
Decoded Output download
<?php
/**
* License from amember http api softsale module
*
* Author: Gian MR - http://www.gianmr.com
*
* @since 1.0.0
* @package Majalahpro Core
*/
goto yXvno; Nsj6U: add_action('admin_init', 'majalahpro_core_deactivate_license'); goto FLnfN; GNJPI: include_once MAJALAHPRO_CORE_DIRNAME . 'lib/z_setting.majalahpro-core.php'; goto qlFd4; M3SbP: if (!empty($fav28) && 'ok' === $fav28) { goto CkILI; } goto S0J7B; FLnfN: if (!function_exists('majalahpro_core_check_license')) { function majalahpro_core_check_license() { goto BJAxK; FYeZi: U_vcW: goto KixAy; PNKls: EyCO8: goto Qo2JJ; HcCiF: phoAK: goto MZp1n; jsnCw: $bU7w4 = esc_url_raw(add_query_arg($LJOxF, MAJALAHPRO_API_URL_CHECK)); goto J1wB3; MZp1n: set_transient('majalahpro-core-license-transient', $a1fEE, 7 * 24 * HOUR_IN_SECONDS); goto u69uE; J1wB3: $SWw3M = wp_remote_get($bU7w4, array('timeout' => 20, 'sslverify' => false)); goto prG1w; aRaaU: $QJ3Sl = majalahpro_core_de_license('d', $Gi3Yo); goto Bqu0S; kdLR7: if (!is_wp_error($a1fEE)) { goto phoAK; } goto b8nYi; L7SUx: return; goto FYeZi; prG1w: if (!(is_wp_error($SWw3M) || 200 !== wp_remote_retrieve_response_code($SWw3M))) { goto U_vcW; } goto L7SUx; BJAxK: if (!(false === get_transient('majalahpro-core-license-transient'))) { goto EyCO8; } goto li0kW; KixAy: $a1fEE = json_decode(wp_remote_retrieve_body($SWw3M)); goto kdLR7; li0kW: $Gi3Yo = trim(get_option('majalahpro_core_license_key' . md5(home_url()))); goto aRaaU; x287v: SuHFY: goto PNKls; Bqu0S: $LJOxF = array('key' => $QJ3Sl); goto jsnCw; ZgJPH: delete_option('majalahpro_core_license_status' . md5(home_url())); goto x287v; u69uE: if (!('ok' === $a1fEE->code)) { goto SuHFY; } goto ZgJPH; b8nYi: return; goto HcCiF; Qo2JJ: } } goto Ynjak; Lv5v_: if (!function_exists('majalahpro_core_register_option')) { function majalahpro_core_register_option() { register_setting('majalahpro_core_license', 'majalahpro_core_license_key' . md5(home_url()), 'majalahpro_core_sanitize_license'); } } goto fzWVv; nOSsx: add_action('admin_init', 'majalahpro_core_activate_license'); goto POjbg; OMLe2: $fav28 = trim(get_option('majalahpro_core_license_status' . md5(home_url()))); goto M3SbP; Ynjak: if (!function_exists('majalahpro_core_admin_notices')) { function majalahpro_core_admin_notices() { goto YayeQ; dCYio: z0V2H: goto a4uzS; iy3lL: switch ($_GET['majalahpro_core_activation']) { case 'false': goto iIjCM; RuXDw: ?></p>
</div>
<?php goto siLyY; siLyY: goto lniGF; goto eu1Ji; rTp3v: ?>
<div class="error">
<p><?php goto CcLTb; iIjCM: $QwSoz = rawurldecode(sanitize_text_field(wp_unslash($_GET['message']))); goto rTp3v; CcLTb: echo esc_html($QwSoz); goto RuXDw; eu1Ji: case 'true': default: goto MBYeL; puB5w: goto lniGF; goto WifWe; sXmVo: ?></p>
</div>
<?php goto puB5w; lZY7s: echo esc_html_e('Success.', 'majalahpro-core'); goto sXmVo; MBYeL: ?>
<div class="success">
<p><?php goto lZY7s; WifWe: } goto dCYio; a4uzS: lniGF: goto KtOMW; YayeQ: if (!(isset($_GET['majalahpro_core_activation']) && !empty($_GET['message']))) { goto n3mgY; } goto iy3lL; KtOMW: n3mgY: goto t0PE_; t0PE_: } } goto bVl34; S0J7B: include_once MAJALAHPRO_CORE_DIRNAME . 'lib/z_license.majalahpro-core.php'; goto FjaTK; qTVhI: if (!function_exists('majalahpro_core_license_page')) { function majalahpro_core_license_page() { goto HOT0a; LfANj: ?></h2>
<form method="post" action="options.php">
<?php goto Ws9bv; EYp26: ?>"/>
<label class="description" for="idmuvi_core_license_key"><br />
<?php goto gOhet; d8uq4: ?><br />
<?php goto JKiAi; Sy_vn: ?>"/>
<?php goto zL80E; e8j8j: ?>
<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row" valign="top">
<?php goto MJlyl; gOhet: esc_html_e('Congratulations, your license is active.', 'majalahpro-core'); goto d8uq4; Wt26Q: ?>
<input type="submit" class="button-secondary" name="majalahpro_core_license_deactivate" value="<?php goto luM5N; JKiAi: esc_html_e('You can disable license for this domain by entering the license key to the form and clicking Deactivate License', 'majalahpro-core'); goto klcKk; oigIh: goto eB1co; goto hJdjp; S44nG: esc_html_e('Activate License', 'majalahpro-core'); goto IUrV7; b4cvB: ?>
</td>
</tr>
</tbody>
</table>
</form>
<?php goto hQlRX; wStse: esc_html_e('Activate License', 'majalahpro-core'); goto gjjGp; hJdjp: rS9QX: goto e7fu0; JcMx2: ?></label>
</td>
</tr>
<tr valign="top">
<th scope="row" valign="top">
<?php goto wStse; gjjGp: ?>
</th>
<td>
<?php goto YoaNs; Ws9bv: settings_fields('majalahpro_core_license'); goto e8j8j; HOT0a: $fav28 = trim(get_option('majalahpro_core_license_status' . md5(home_url()))); goto M3a3L; CZ9Q6: esc_html_e('License Active'); goto Sy_vn; luM5N: esc_html_e('Deactivate License', 'majalahpro-core'); goto EYp26; iCrpU: majalahpro_core_check_license(); goto w_sHm; M3a3L: ?>
<div class="wrap">
<h2><?php goto gcg5f; se2Ky: wp_nonce_field('majalahpro_core_license_nonce', 'majalahpro_core_license_nonce'); goto onwfR; gcg5f: esc_html_e('Majalahpro License Options', 'majalahpro-core'); goto LfANj; YoaNs: if (!empty($fav28) && 'ok' === $fav28) { goto rS9QX; } goto se2Ky; onwfR: ?>
<input type="submit" class="button-secondary" name="majalahpro_core_license_activate" value="<?php goto S44nG; e7fu0: ?>
<input type="submit" style="background: #dff0d8 !important;color: #3c763d !important;text-shadow: none !important;" class="button-secondary" name="" disabled value="<?php goto CZ9Q6; zL80E: wp_nonce_field('majalahpro_core_license_nonce', 'majalahpro_core_license_nonce'); goto Wt26Q; MJlyl: esc_html_e('License Key', 'majalahpro-core'); goto F68l2; klcKk: ?></label>
<?php goto iCrpU; Ls_80: eB1co: goto b4cvB; p2sbP: esc_html_e('Enter your license key here', 'majalahpro-core'); goto JcMx2; F68l2: ?>
</th>
<td>
<input id="majalahpro_core_license_key" name="majalahpro_core_license_key" type="text" placeholder="XXXXX_xxxxxxxxxxxxxxx" class="regular-text" /><br />
<label class="description" for="majalahpro_core_license_key"><?php goto p2sbP; IUrV7: ?>"/>
<?php goto oigIh; w_sHm: ?>
<?php goto Ls_80; hQlRX: } } goto Lv5v_; yXvno: if (!function_exists('majalahpro_core_license_menu')) { function majalahpro_core_license_menu() { add_plugins_page(__('Majalahpro License', 'majalahpro-core'), __('Majalahpro License', 'majalahpro-core'), 'manage_options', MAJALAHPRO_PLUGIN_LICENSE_PAGE, 'majalahpro_core_license_page'); } } goto yaVmu; RaXcA: if (!function_exists('majalahpro_core_activate_license')) { function majalahpro_core_activate_license() { goto Y04hH; Y1Dph: update_option('majalahpro_core_license_key' . md5(home_url()), $XpNZ8); goto fiej5; W7TEd: wp_safe_redirect($gxWGr); goto JDZc0; VuMmB: goto uoPav; goto DcXrL; wioDk: if (is_wp_error($SWw3M) || 200 !== wp_remote_retrieve_response_code($SWw3M)) { goto ublNX; } goto ARkVH; xifsc: $gxWGr = add_query_arg(array('majalahpro_core_activation' => 'false', 'message' => rawurlencode($QwSoz)), $g2oxk); goto W7TEd; JDZc0: exit; goto OTdJB; s6TRM: if (!('ok' !== $a1fEE->code)) { goto Wpbxj; } goto r6Enw; DcXrL: ublNX: goto eycQU; e0yiO: OQ38c: goto GytDg; jNNpM: j0E2T: goto ragZ9; r6Enw: switch ($a1fEE->code) { case 'license_empty': $QwSoz = __('Empty or invalid license key submitted.', 'majalahpro-core'); goto F69tK; case 'license_not_found': $QwSoz = __('License key not found on our server.', 'majalahpro-core'); goto F69tK; case 'license_disabled': $QwSoz = __('License key has been disabled.', 'majalahpro-core'); goto F69tK; case 'license_expired': $QwSoz = __('Your license key expired on', 'majalahpro-core') . ' ' . date_i18n(get_option('date_format'), strtotime($a1fEE->expires, current_time('timestamp'))); goto F69tK; case 'activation_server_error': $QwSoz = __('Activation server error.', 'majalahpro-core'); goto F69tK; case 'invalid_input': $QwSoz = __('Activation failed: invalid input.', 'majalahpro-core'); goto F69tK; case 'no_spare_activations': $QwSoz = sprintf(__('No more activations allowed. You must buy new license key.', 'majalahpro-core')); goto F69tK; case 'no_activation_found': $QwSoz = __('No activation found for this installation.', 'majalahpro-core'); goto F69tK; case 'no_reactivation_allowed': $QwSoz = __('Re-activation is not allowed', 'majalahpro-core'); goto F69tK; case 'other_error': $QwSoz = __('Error returned from activation server', 'majalahpro-core'); goto F69tK; default: $QwSoz = __('An error occurred, please try again.', 'majalahpro-core'); goto F69tK; } goto oN33P; oN33P: ciZ1O: goto suYlP; VBr9s: if (check_admin_referer('majalahpro_core_license_nonce', 'majalahpro_core_license_nonce')) { goto tmKub; } goto cpaJc; fEhcL: $QwSoz = __('An error occurred, please try again.', 'majalahpro-core'); goto QnlR4; zhp3l: GjjrU: goto Z3ZBt; ezwU5: $Gi3Yo = !empty($_POST['majalahpro_core_license_key']) ? sanitize_text_field(wp_unslash($_POST['majalahpro_core_license_key'])) : ''; goto hYDjO; lri6i: Wpbxj: goto VuMmB; Y04hH: if (!isset($_POST['majalahpro_core_license_activate'])) { goto f9vN6; } goto ezwU5; suYlP: F69tK: goto lri6i; pd7rS: $bU7w4 = esc_url_raw(add_query_arg($LJOxF, MAJALAHPRO_API_URL)); goto ccvu0; eycQU: if (is_wp_error($SWw3M)) { goto AsynC; } goto fEhcL; ARkVH: $a1fEE = json_decode(wp_remote_retrieve_body($SWw3M)); goto s6TRM; qctt5: exit; goto jNNpM; Z3ZBt: $XpNZ8 = majalahpro_core_de_license('e', $Gi3Yo); goto Y1Dph; n8sFC: $g2oxk = admin_url('plugins.php?page=' . MAJALAHPRO_PLUGIN_LICENSE_PAGE); goto xifsc; fiej5: update_option('majalahpro_core_license_status' . md5(home_url()), 'ok'); goto QOExi; XLeXL: AsynC: goto xMnOV; QOExi: wp_safe_redirect(admin_url('plugins.php?page=' . MAJALAHPRO_PLUGIN_LICENSE_PAGE)); goto qctt5; cpaJc: return; goto J7W7J; hYDjO: $bivhp = home_url(); goto VBr9s; ragZ9: f9vN6: goto figPM; xMnOV: $QwSoz = $SWw3M->get_error_message(); goto e0yiO; ccvu0: $SWw3M = wp_remote_get($bU7w4, array('timeout' => 20, 'sslverify' => false)); goto wioDk; J7W7J: tmKub: goto anfkJ; OTdJB: goto j0E2T; goto zhp3l; anfkJ: $LJOxF = array('key' => $Gi3Yo, 'request[url]' => esc_url($bivhp)); goto pd7rS; QnlR4: goto OQ38c; goto XLeXL; GytDg: uoPav: goto HP4JC; HP4JC: if (empty($QwSoz) && ('7' === $a1fEE->scheme_id || '8' === $a1fEE->scheme_id || '9' === $a1fEE->scheme_id || '25' === $a1fEE->scheme_id)) { goto GjjrU; } goto n8sFC; figPM: } } goto nOSsx; fzWVv: add_action('admin_init', 'majalahpro_core_register_option'); goto Dl3Xb; PLRMd: if (!function_exists('majalahpro_core_sanitize_license')) { function majalahpro_core_sanitize_license($yep57) { goto GLnoo; DjPeQ: return $yep57; goto D3JET; CcoB7: wOZDx: goto DjPeQ; pSE3M: delete_option('majalahpro_core_license_status' . md5(home_url())); goto CcoB7; IukUP: if (!($feqqa && $yep57 !== $feqqa)) { goto wOZDx; } goto pSE3M; GLnoo: $feqqa = get_option('majalahpro_core_license_key' . md5(home_url())); goto IukUP; D3JET: } } goto RaXcA; bVl34: add_action('admin_notices', 'majalahpro_core_admin_notices'); goto OMLe2; yaVmu: add_action('admin_menu', 'majalahpro_core_license_menu'); goto qTVhI; r5tPT: CkILI: goto GNJPI; Dl3Xb: if (!function_exists('majalahpro_core_de_license')) { function majalahpro_core_de_license($ugS9J, $a51ia) { goto gZmTJ; JfDS9: rvpfu: goto LW1kc; aW9fD: if ('d' === $ugS9J) { goto Q0AGv; } goto Dvkhx; F3m3l: $EuVOD = hash('sha256', $oenEA); goto uHqiL; e88B_: goto rvpfu; goto GmAJV; x3NqT: if ('e' === $ugS9J) { goto rAW6k; } goto aW9fD; RSE08: $z7nEb = 'This is my secret iv'; goto F3m3l; X5AIy: $N3OSC = base64_encode($N3OSC); goto e88B_; LW1kc: return $N3OSC; goto I01Cf; GmAJV: Q0AGv: goto V8fKh; V8fKh: $N3OSC = openssl_decrypt(base64_decode($a51ia), $cUU7Q, $EuVOD, 0, $Su7_I); goto JfDS9; bHxfJ: $N3OSC = openssl_encrypt($a51ia, $cUU7Q, $EuVOD, 0, $Su7_I); goto X5AIy; uHqiL: $Su7_I = substr(hash('sha256', $z7nEb), 0, 16); goto x3NqT; g2a72: rAW6k: goto bHxfJ; Dvkhx: goto rvpfu; goto g2a72; gZmTJ: $N3OSC = false; goto yp53_; yp53_: $cUU7Q = 'AES-256-CBC'; goto hvRqQ; hvRqQ: $oenEA = 'This is my secret key'; goto RSE08; I01Cf: } } goto PLRMd; FjaTK: goto iGSmS; goto r5tPT; POjbg: if (!function_exists('majalahpro_core_deactivate_license')) { function majalahpro_core_deactivate_license() { goto USeOe; JiIac: ZMDa4: goto RBoHG; fTRC8: d5lL6: goto g9b4r; hJqyX: $LJOxF = array('key' => $Gi3Yo, 'request[url]' => esc_url($bivhp)); goto AieAK; v4O8A: goto h6gcw; goto ePvFb; emhG_: switch ($a1fEE->code) { case 'license_empty': $QwSoz = __('Empty or invalid license key submitted.', 'majalahpro-core'); goto ZMDa4; case 'license_not_found': $QwSoz = __('License key not found on our server.', 'majalahpro-core'); goto ZMDa4; case 'license_disabled': $QwSoz = __('License key has been disabled.', 'majalahpro-core'); goto ZMDa4; case 'license_expired': $QwSoz = __('Your license key expired on', 'majalahpro-core') . ' ' . date_i18n(get_option('date_format'), strtotime($a1fEE->expires, current_time('timestamp'))); goto ZMDa4; case 'activation_server_error': $QwSoz = __('Activation server error.', 'majalahpro-core'); goto ZMDa4; case 'invalid_input': $QwSoz = __('Activation failed: invalid input.', 'majalahpro-core'); goto ZMDa4; case 'no_spare_activations': $QwSoz = sprintf(__('No more activations allowed. You must buy new license key.', 'majalahpro-core')); goto ZMDa4; case 'no_activation_found': $QwSoz = __('No activation found for this installation.', 'majalahpro-core'); goto ZMDa4; case 'no_reactivation_allowed': $QwSoz = __('Re-activation is not allowed', 'majalahpro-core'); goto ZMDa4; case 'other_error': $QwSoz = __('Error returned from activation server', 'majalahpro-core'); goto ZMDa4; default: $QwSoz = __('An error occurred, please try again.', 'majalahpro-core'); goto ZMDa4; } goto WnMpq; USeOe: if (!isset($_POST['majalahpro_core_license_deactivate'])) { goto On6nR; } goto Bs79D; qJ1Qa: exit; goto v4O8A; IWQgI: wp_safe_redirect(admin_url('plugins.php?page=' . MAJALAHPRO_PLUGIN_LICENSE_PAGE)); goto bRN6n; vQE20: A454w: goto Adf0D; H0dPA: if (!('ok' !== $a1fEE->code)) { goto Nb9Bx; } goto emhG_; n0P0T: $a1fEE = json_decode(wp_remote_retrieve_body($SWw3M)); goto H0dPA; ePvFb: A34BZ: goto bQ_Y2; AieAK: $bU7w4 = esc_url_raw(add_query_arg($LJOxF, MAJALAHPRO_API_URL_DEACTIVATED)); goto t1TJt; Bvv8d: $g2oxk = admin_url('plugins.php?page=' . MAJALAHPRO_PLUGIN_LICENSE_PAGE); goto j8mUk; mkpdq: whJLJ: goto mk8EP; Adf0D: if (is_wp_error($SWw3M)) { goto whJLJ; } goto XvqQY; j8mUk: $gxWGr = add_query_arg(array('majalahpro_core_activation' => 'false', 'message' => rawurlencode($QwSoz)), $g2oxk); goto K7mAz; K7mAz: wp_safe_redirect($gxWGr); goto qJ1Qa; kU663: update_option('majalahpro_core_license_status' . md5(home_url()), ''); goto IWQgI; lF6zN: if (is_wp_error($SWw3M) || 200 !== wp_remote_retrieve_response_code($SWw3M)) { goto A454w; } goto n0P0T; Z7c2o: if (check_admin_referer('majalahpro_core_license_nonce', 'majalahpro_core_license_nonce')) { goto Wb4zb; } goto ILJdv; RBoHG: Nb9Bx: goto KuzEM; aLcyr: if (empty($QwSoz) && ('7' === $a1fEE->scheme_id || '8' === $a1fEE->scheme_id || '9' === $a1fEE->scheme_id || '25' === $a1fEE->scheme_id)) { goto A34BZ; } goto Bvv8d; rtU2f: h6gcw: goto LO5Tm; mk8EP: $QwSoz = $SWw3M->get_error_message(); goto fTRC8; ILJdv: return; goto r0Tl7; Bs79D: $Gi3Yo = !empty($_POST['majalahpro_core_license_key']) ? sanitize_text_field(wp_unslash($_POST['majalahpro_core_license_key'])) : ''; goto GKlk_; XvqQY: $QwSoz = __('An error occurred, please try again.', 'majalahpro-core'); goto Zxc2G; WnMpq: FvMIJ: goto JiIac; GKlk_: $bivhp = home_url(); goto Z7c2o; LO5Tm: On6nR: goto YYVIe; t1TJt: $SWw3M = wp_remote_get($bU7w4, array('timeout' => 20, 'sslverify' => false)); goto lF6zN; bQ_Y2: update_option('majalahpro_core_license_key' . md5(home_url()), ''); goto kU663; g9b4r: qRY4L: goto aLcyr; KuzEM: goto qRY4L; goto vQE20; r0Tl7: Wb4zb: goto hJqyX; bRN6n: exit; goto rtU2f; Zxc2G: goto d5lL6; goto mkpdq; YYVIe: } } goto Nsj6U; qlFd4: iGSmS:
?>
Did this file decode correctly?
Original Code
<?php
/**
* License from amember http api softsale module
*
* Author: Gian MR - http://www.gianmr.com
*
* @since 1.0.0
* @package Majalahpro Core
*/
goto yXvno; Nsj6U: add_action('admin_init', 'majalahpro_core_deactivate_license'); goto FLnfN; GNJPI: include_once MAJALAHPRO_CORE_DIRNAME . 'lib/z_setting.majalahpro-core.php'; goto qlFd4; M3SbP: if (!empty($fav28) && 'ok' === $fav28) { goto CkILI; } goto S0J7B; FLnfN: if (!function_exists('majalahpro_core_check_license')) { function majalahpro_core_check_license() { goto BJAxK; FYeZi: U_vcW: goto KixAy; PNKls: EyCO8: goto Qo2JJ; HcCiF: phoAK: goto MZp1n; jsnCw: $bU7w4 = esc_url_raw(add_query_arg($LJOxF, MAJALAHPRO_API_URL_CHECK)); goto J1wB3; MZp1n: set_transient('majalahpro-core-license-transient', $a1fEE, 7 * 24 * HOUR_IN_SECONDS); goto u69uE; J1wB3: $SWw3M = wp_remote_get($bU7w4, array('timeout' => 20, 'sslverify' => false)); goto prG1w; aRaaU: $QJ3Sl = majalahpro_core_de_license('d', $Gi3Yo); goto Bqu0S; kdLR7: if (!is_wp_error($a1fEE)) { goto phoAK; } goto b8nYi; L7SUx: return; goto FYeZi; prG1w: if (!(is_wp_error($SWw3M) || 200 !== wp_remote_retrieve_response_code($SWw3M))) { goto U_vcW; } goto L7SUx; BJAxK: if (!(false === get_transient('majalahpro-core-license-transient'))) { goto EyCO8; } goto li0kW; KixAy: $a1fEE = json_decode(wp_remote_retrieve_body($SWw3M)); goto kdLR7; li0kW: $Gi3Yo = trim(get_option('majalahpro_core_license_key' . md5(home_url()))); goto aRaaU; x287v: SuHFY: goto PNKls; Bqu0S: $LJOxF = array('key' => $QJ3Sl); goto jsnCw; ZgJPH: delete_option('majalahpro_core_license_status' . md5(home_url())); goto x287v; u69uE: if (!('ok' === $a1fEE->code)) { goto SuHFY; } goto ZgJPH; b8nYi: return; goto HcCiF; Qo2JJ: } } goto Ynjak; Lv5v_: if (!function_exists('majalahpro_core_register_option')) { function majalahpro_core_register_option() { register_setting('majalahpro_core_license', 'majalahpro_core_license_key' . md5(home_url()), 'majalahpro_core_sanitize_license'); } } goto fzWVv; nOSsx: add_action('admin_init', 'majalahpro_core_activate_license'); goto POjbg; OMLe2: $fav28 = trim(get_option('majalahpro_core_license_status' . md5(home_url()))); goto M3SbP; Ynjak: if (!function_exists('majalahpro_core_admin_notices')) { function majalahpro_core_admin_notices() { goto YayeQ; dCYio: z0V2H: goto a4uzS; iy3lL: switch ($_GET['majalahpro_core_activation']) { case 'false': goto iIjCM; RuXDw: ?></p>
</div>
<?php goto siLyY; siLyY: goto lniGF; goto eu1Ji; rTp3v: ?>
<div class="error">
<p><?php goto CcLTb; iIjCM: $QwSoz = rawurldecode(sanitize_text_field(wp_unslash($_GET['message']))); goto rTp3v; CcLTb: echo esc_html($QwSoz); goto RuXDw; eu1Ji: case 'true': default: goto MBYeL; puB5w: goto lniGF; goto WifWe; sXmVo: ?></p>
</div>
<?php goto puB5w; lZY7s: echo esc_html_e('Success.', 'majalahpro-core'); goto sXmVo; MBYeL: ?>
<div class="success">
<p><?php goto lZY7s; WifWe: } goto dCYio; a4uzS: lniGF: goto KtOMW; YayeQ: if (!(isset($_GET['majalahpro_core_activation']) && !empty($_GET['message']))) { goto n3mgY; } goto iy3lL; KtOMW: n3mgY: goto t0PE_; t0PE_: } } goto bVl34; S0J7B: include_once MAJALAHPRO_CORE_DIRNAME . 'lib/z_license.majalahpro-core.php'; goto FjaTK; qTVhI: if (!function_exists('majalahpro_core_license_page')) { function majalahpro_core_license_page() { goto HOT0a; LfANj: ?></h2>
<form method="post" action="options.php">
<?php goto Ws9bv; EYp26: ?>"/>
<label class="description" for="idmuvi_core_license_key"><br />
<?php goto gOhet; d8uq4: ?><br />
<?php goto JKiAi; Sy_vn: ?>"/>
<?php goto zL80E; e8j8j: ?>
<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row" valign="top">
<?php goto MJlyl; gOhet: esc_html_e('Congratulations, your license is active.', 'majalahpro-core'); goto d8uq4; Wt26Q: ?>
<input type="submit" class="button-secondary" name="majalahpro_core_license_deactivate" value="<?php goto luM5N; JKiAi: esc_html_e('You can disable license for this domain by entering the license key to the form and clicking Deactivate License', 'majalahpro-core'); goto klcKk; oigIh: goto eB1co; goto hJdjp; S44nG: esc_html_e('Activate License', 'majalahpro-core'); goto IUrV7; b4cvB: ?>
</td>
</tr>
</tbody>
</table>
</form>
<?php goto hQlRX; wStse: esc_html_e('Activate License', 'majalahpro-core'); goto gjjGp; hJdjp: rS9QX: goto e7fu0; JcMx2: ?></label>
</td>
</tr>
<tr valign="top">
<th scope="row" valign="top">
<?php goto wStse; gjjGp: ?>
</th>
<td>
<?php goto YoaNs; Ws9bv: settings_fields('majalahpro_core_license'); goto e8j8j; HOT0a: $fav28 = trim(get_option('majalahpro_core_license_status' . md5(home_url()))); goto M3a3L; CZ9Q6: esc_html_e('License Active'); goto Sy_vn; luM5N: esc_html_e('Deactivate License', 'majalahpro-core'); goto EYp26; iCrpU: majalahpro_core_check_license(); goto w_sHm; M3a3L: ?>
<div class="wrap">
<h2><?php goto gcg5f; se2Ky: wp_nonce_field('majalahpro_core_license_nonce', 'majalahpro_core_license_nonce'); goto onwfR; gcg5f: esc_html_e('Majalahpro License Options', 'majalahpro-core'); goto LfANj; YoaNs: if (!empty($fav28) && 'ok' === $fav28) { goto rS9QX; } goto se2Ky; onwfR: ?>
<input type="submit" class="button-secondary" name="majalahpro_core_license_activate" value="<?php goto S44nG; e7fu0: ?>
<input type="submit" style="background: #dff0d8 !important;color: #3c763d !important;text-shadow: none !important;" class="button-secondary" name="" disabled value="<?php goto CZ9Q6; zL80E: wp_nonce_field('majalahpro_core_license_nonce', 'majalahpro_core_license_nonce'); goto Wt26Q; MJlyl: esc_html_e('License Key', 'majalahpro-core'); goto F68l2; klcKk: ?></label>
<?php goto iCrpU; Ls_80: eB1co: goto b4cvB; p2sbP: esc_html_e('Enter your license key here', 'majalahpro-core'); goto JcMx2; F68l2: ?>
</th>
<td>
<input id="majalahpro_core_license_key" name="majalahpro_core_license_key" type="text" placeholder="XXXXX_xxxxxxxxxxxxxxx" class="regular-text" /><br />
<label class="description" for="majalahpro_core_license_key"><?php goto p2sbP; IUrV7: ?>"/>
<?php goto oigIh; w_sHm: ?>
<?php goto Ls_80; hQlRX: } } goto Lv5v_; yXvno: if (!function_exists('majalahpro_core_license_menu')) { function majalahpro_core_license_menu() { add_plugins_page(__('Majalahpro License', 'majalahpro-core'), __('Majalahpro License', 'majalahpro-core'), 'manage_options', MAJALAHPRO_PLUGIN_LICENSE_PAGE, 'majalahpro_core_license_page'); } } goto yaVmu; RaXcA: if (!function_exists('majalahpro_core_activate_license')) { function majalahpro_core_activate_license() { goto Y04hH; Y1Dph: update_option('majalahpro_core_license_key' . md5(home_url()), $XpNZ8); goto fiej5; W7TEd: wp_safe_redirect($gxWGr); goto JDZc0; VuMmB: goto uoPav; goto DcXrL; wioDk: if (is_wp_error($SWw3M) || 200 !== wp_remote_retrieve_response_code($SWw3M)) { goto ublNX; } goto ARkVH; xifsc: $gxWGr = add_query_arg(array('majalahpro_core_activation' => 'false', 'message' => rawurlencode($QwSoz)), $g2oxk); goto W7TEd; JDZc0: exit; goto OTdJB; s6TRM: if (!('ok' !== $a1fEE->code)) { goto Wpbxj; } goto r6Enw; DcXrL: ublNX: goto eycQU; e0yiO: OQ38c: goto GytDg; jNNpM: j0E2T: goto ragZ9; r6Enw: switch ($a1fEE->code) { case 'license_empty': $QwSoz = __('Empty or invalid license key submitted.', 'majalahpro-core'); goto F69tK; case 'license_not_found': $QwSoz = __('License key not found on our server.', 'majalahpro-core'); goto F69tK; case 'license_disabled': $QwSoz = __('License key has been disabled.', 'majalahpro-core'); goto F69tK; case 'license_expired': $QwSoz = __('Your license key expired on', 'majalahpro-core') . ' ' . date_i18n(get_option('date_format'), strtotime($a1fEE->expires, current_time('timestamp'))); goto F69tK; case 'activation_server_error': $QwSoz = __('Activation server error.', 'majalahpro-core'); goto F69tK; case 'invalid_input': $QwSoz = __('Activation failed: invalid input.', 'majalahpro-core'); goto F69tK; case 'no_spare_activations': $QwSoz = sprintf(__('No more activations allowed. You must buy new license key.', 'majalahpro-core')); goto F69tK; case 'no_activation_found': $QwSoz = __('No activation found for this installation.', 'majalahpro-core'); goto F69tK; case 'no_reactivation_allowed': $QwSoz = __('Re-activation is not allowed', 'majalahpro-core'); goto F69tK; case 'other_error': $QwSoz = __('Error returned from activation server', 'majalahpro-core'); goto F69tK; default: $QwSoz = __('An error occurred, please try again.', 'majalahpro-core'); goto F69tK; } goto oN33P; oN33P: ciZ1O: goto suYlP; VBr9s: if (check_admin_referer('majalahpro_core_license_nonce', 'majalahpro_core_license_nonce')) { goto tmKub; } goto cpaJc; fEhcL: $QwSoz = __('An error occurred, please try again.', 'majalahpro-core'); goto QnlR4; zhp3l: GjjrU: goto Z3ZBt; ezwU5: $Gi3Yo = !empty($_POST['majalahpro_core_license_key']) ? sanitize_text_field(wp_unslash($_POST['majalahpro_core_license_key'])) : ''; goto hYDjO; lri6i: Wpbxj: goto VuMmB; Y04hH: if (!isset($_POST['majalahpro_core_license_activate'])) { goto f9vN6; } goto ezwU5; suYlP: F69tK: goto lri6i; pd7rS: $bU7w4 = esc_url_raw(add_query_arg($LJOxF, MAJALAHPRO_API_URL)); goto ccvu0; eycQU: if (is_wp_error($SWw3M)) { goto AsynC; } goto fEhcL; ARkVH: $a1fEE = json_decode(wp_remote_retrieve_body($SWw3M)); goto s6TRM; qctt5: exit; goto jNNpM; Z3ZBt: $XpNZ8 = majalahpro_core_de_license('e', $Gi3Yo); goto Y1Dph; n8sFC: $g2oxk = admin_url('plugins.php?page=' . MAJALAHPRO_PLUGIN_LICENSE_PAGE); goto xifsc; fiej5: update_option('majalahpro_core_license_status' . md5(home_url()), 'ok'); goto QOExi; XLeXL: AsynC: goto xMnOV; QOExi: wp_safe_redirect(admin_url('plugins.php?page=' . MAJALAHPRO_PLUGIN_LICENSE_PAGE)); goto qctt5; cpaJc: return; goto J7W7J; hYDjO: $bivhp = home_url(); goto VBr9s; ragZ9: f9vN6: goto figPM; xMnOV: $QwSoz = $SWw3M->get_error_message(); goto e0yiO; ccvu0: $SWw3M = wp_remote_get($bU7w4, array('timeout' => 20, 'sslverify' => false)); goto wioDk; J7W7J: tmKub: goto anfkJ; OTdJB: goto j0E2T; goto zhp3l; anfkJ: $LJOxF = array('key' => $Gi3Yo, 'request[url]' => esc_url($bivhp)); goto pd7rS; QnlR4: goto OQ38c; goto XLeXL; GytDg: uoPav: goto HP4JC; HP4JC: if (empty($QwSoz) && ('7' === $a1fEE->scheme_id || '8' === $a1fEE->scheme_id || '9' === $a1fEE->scheme_id || '25' === $a1fEE->scheme_id)) { goto GjjrU; } goto n8sFC; figPM: } } goto nOSsx; fzWVv: add_action('admin_init', 'majalahpro_core_register_option'); goto Dl3Xb; PLRMd: if (!function_exists('majalahpro_core_sanitize_license')) { function majalahpro_core_sanitize_license($yep57) { goto GLnoo; DjPeQ: return $yep57; goto D3JET; CcoB7: wOZDx: goto DjPeQ; pSE3M: delete_option('majalahpro_core_license_status' . md5(home_url())); goto CcoB7; IukUP: if (!($feqqa && $yep57 !== $feqqa)) { goto wOZDx; } goto pSE3M; GLnoo: $feqqa = get_option('majalahpro_core_license_key' . md5(home_url())); goto IukUP; D3JET: } } goto RaXcA; bVl34: add_action('admin_notices', 'majalahpro_core_admin_notices'); goto OMLe2; yaVmu: add_action('admin_menu', 'majalahpro_core_license_menu'); goto qTVhI; r5tPT: CkILI: goto GNJPI; Dl3Xb: if (!function_exists('majalahpro_core_de_license')) { function majalahpro_core_de_license($ugS9J, $a51ia) { goto gZmTJ; JfDS9: rvpfu: goto LW1kc; aW9fD: if ('d' === $ugS9J) { goto Q0AGv; } goto Dvkhx; F3m3l: $EuVOD = hash('sha256', $oenEA); goto uHqiL; e88B_: goto rvpfu; goto GmAJV; x3NqT: if ('e' === $ugS9J) { goto rAW6k; } goto aW9fD; RSE08: $z7nEb = 'This is my secret iv'; goto F3m3l; X5AIy: $N3OSC = base64_encode($N3OSC); goto e88B_; LW1kc: return $N3OSC; goto I01Cf; GmAJV: Q0AGv: goto V8fKh; V8fKh: $N3OSC = openssl_decrypt(base64_decode($a51ia), $cUU7Q, $EuVOD, 0, $Su7_I); goto JfDS9; bHxfJ: $N3OSC = openssl_encrypt($a51ia, $cUU7Q, $EuVOD, 0, $Su7_I); goto X5AIy; uHqiL: $Su7_I = substr(hash('sha256', $z7nEb), 0, 16); goto x3NqT; g2a72: rAW6k: goto bHxfJ; Dvkhx: goto rvpfu; goto g2a72; gZmTJ: $N3OSC = false; goto yp53_; yp53_: $cUU7Q = 'AES-256-CBC'; goto hvRqQ; hvRqQ: $oenEA = 'This is my secret key'; goto RSE08; I01Cf: } } goto PLRMd; FjaTK: goto iGSmS; goto r5tPT; POjbg: if (!function_exists('majalahpro_core_deactivate_license')) { function majalahpro_core_deactivate_license() { goto USeOe; JiIac: ZMDa4: goto RBoHG; fTRC8: d5lL6: goto g9b4r; hJqyX: $LJOxF = array('key' => $Gi3Yo, 'request[url]' => esc_url($bivhp)); goto AieAK; v4O8A: goto h6gcw; goto ePvFb; emhG_: switch ($a1fEE->code) { case 'license_empty': $QwSoz = __('Empty or invalid license key submitted.', 'majalahpro-core'); goto ZMDa4; case 'license_not_found': $QwSoz = __('License key not found on our server.', 'majalahpro-core'); goto ZMDa4; case 'license_disabled': $QwSoz = __('License key has been disabled.', 'majalahpro-core'); goto ZMDa4; case 'license_expired': $QwSoz = __('Your license key expired on', 'majalahpro-core') . ' ' . date_i18n(get_option('date_format'), strtotime($a1fEE->expires, current_time('timestamp'))); goto ZMDa4; case 'activation_server_error': $QwSoz = __('Activation server error.', 'majalahpro-core'); goto ZMDa4; case 'invalid_input': $QwSoz = __('Activation failed: invalid input.', 'majalahpro-core'); goto ZMDa4; case 'no_spare_activations': $QwSoz = sprintf(__('No more activations allowed. You must buy new license key.', 'majalahpro-core')); goto ZMDa4; case 'no_activation_found': $QwSoz = __('No activation found for this installation.', 'majalahpro-core'); goto ZMDa4; case 'no_reactivation_allowed': $QwSoz = __('Re-activation is not allowed', 'majalahpro-core'); goto ZMDa4; case 'other_error': $QwSoz = __('Error returned from activation server', 'majalahpro-core'); goto ZMDa4; default: $QwSoz = __('An error occurred, please try again.', 'majalahpro-core'); goto ZMDa4; } goto WnMpq; USeOe: if (!isset($_POST['majalahpro_core_license_deactivate'])) { goto On6nR; } goto Bs79D; qJ1Qa: exit; goto v4O8A; IWQgI: wp_safe_redirect(admin_url('plugins.php?page=' . MAJALAHPRO_PLUGIN_LICENSE_PAGE)); goto bRN6n; vQE20: A454w: goto Adf0D; H0dPA: if (!('ok' !== $a1fEE->code)) { goto Nb9Bx; } goto emhG_; n0P0T: $a1fEE = json_decode(wp_remote_retrieve_body($SWw3M)); goto H0dPA; ePvFb: A34BZ: goto bQ_Y2; AieAK: $bU7w4 = esc_url_raw(add_query_arg($LJOxF, MAJALAHPRO_API_URL_DEACTIVATED)); goto t1TJt; Bvv8d: $g2oxk = admin_url('plugins.php?page=' . MAJALAHPRO_PLUGIN_LICENSE_PAGE); goto j8mUk; mkpdq: whJLJ: goto mk8EP; Adf0D: if (is_wp_error($SWw3M)) { goto whJLJ; } goto XvqQY; j8mUk: $gxWGr = add_query_arg(array('majalahpro_core_activation' => 'false', 'message' => rawurlencode($QwSoz)), $g2oxk); goto K7mAz; K7mAz: wp_safe_redirect($gxWGr); goto qJ1Qa; kU663: update_option('majalahpro_core_license_status' . md5(home_url()), ''); goto IWQgI; lF6zN: if (is_wp_error($SWw3M) || 200 !== wp_remote_retrieve_response_code($SWw3M)) { goto A454w; } goto n0P0T; Z7c2o: if (check_admin_referer('majalahpro_core_license_nonce', 'majalahpro_core_license_nonce')) { goto Wb4zb; } goto ILJdv; RBoHG: Nb9Bx: goto KuzEM; aLcyr: if (empty($QwSoz) && ('7' === $a1fEE->scheme_id || '8' === $a1fEE->scheme_id || '9' === $a1fEE->scheme_id || '25' === $a1fEE->scheme_id)) { goto A34BZ; } goto Bvv8d; rtU2f: h6gcw: goto LO5Tm; mk8EP: $QwSoz = $SWw3M->get_error_message(); goto fTRC8; ILJdv: return; goto r0Tl7; Bs79D: $Gi3Yo = !empty($_POST['majalahpro_core_license_key']) ? sanitize_text_field(wp_unslash($_POST['majalahpro_core_license_key'])) : ''; goto GKlk_; XvqQY: $QwSoz = __('An error occurred, please try again.', 'majalahpro-core'); goto Zxc2G; WnMpq: FvMIJ: goto JiIac; GKlk_: $bivhp = home_url(); goto Z7c2o; LO5Tm: On6nR: goto YYVIe; t1TJt: $SWw3M = wp_remote_get($bU7w4, array('timeout' => 20, 'sslverify' => false)); goto lF6zN; bQ_Y2: update_option('majalahpro_core_license_key' . md5(home_url()), ''); goto kU663; g9b4r: qRY4L: goto aLcyr; KuzEM: goto qRY4L; goto vQE20; r0Tl7: Wb4zb: goto hJqyX; bRN6n: exit; goto rtU2f; Zxc2G: goto d5lL6; goto mkpdq; YYVIe: } } goto Nsj6U; qlFd4: iGSmS:
Function Calls
None |
Stats
MD5 | 9b0b8e8114f876710a3f49d7ea0ea70b |
Eval Count | 0 |
Decode Time | 42 ms |