Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
^[j^r^ goto gCLVh; aV5Yk: function normalize_domain($url) { $host = parse_url($url, PHP_..
Decoded Output download
<? ^[j^r^
goto gCLVh; aV5Yk: function normalize_domain($url) { $host = parse_url($url, PHP_URL_HOST) ?? $url; $host = preg_replace("/^www\./", '', $host); $parts = explode(".", $host); if (count($parts) > 2) { $host = implode(".", array_slice($parts, -2)); } return $host; } goto tvYhU; tzC93: function wpnews_core_menu() { add_menu_page("Pengaturan Lisensi", "WPNews Core", "manage_options", "wpnews-core", "wpnews_core_page", "dashicons-lock", 998); } goto aV5Yk; ngKZh: function check_license_and_blank() { if (!isset($_SESSION["license_checked"])) { if (!get_option("license_key") || get_option("license_status") === "invalid") { $_SESSION["license_checked"] = true; wp_die("<h1>Masukkan Kode Lisensi</h1>
<p>Perhatian, kami menginformasikan bahwa lisensi untuk tema ini belum diaktifkan atau kode lisensi yang Anda masukkan tidak valid. Untuk melanjutkan penggunaan tema secara sah dan mengakses semua fitur, harap masukkan kode lisensi yang valid pada pengaturan tema.</p>\xa<p>Jika Anda sudah membeli lisensi, silakan masukkan kode lisensi yang benar. Jika Anda belum memiliki lisensi, kami sarankan untuk menghubungi kami untuk informasi lebih lanjut mengenai cara memperoleh lisensi yang sah.</p>
<p>Kami sangat menghargai dukungan Anda dalam menjaga integritas produk kami. Jika Anda memerlukan bantuan atau memiliki pertanyaan, tim dukungan kami siap membantu Anda.</p>
<p style="font-weight: bold;">Terima kasih atas perhatian dan kerjasama Anda.</p>\xa<p style="margin-top: 20px;">Dikembangkan oleh: PT Digital Kreator Nusantara<br>Email: <a href="[email protected]">[email protected]</a></p>\xa<p style="margin-top: 20px; font-size: 12px; color: #888;">© 2024 PT Digital Kreator Nusantara. Semua hak cipta dilindungi undang-undang.</p>", "Lisensi Tidak Valid"); } } } goto p34ZH; MKzUQ: add_action("license_check_cron", "check_and_update_license_status"); goto kbZqX; KtwJF: add_action("admin_menu", "wpnews_core_menu"); goto tzC93; L7Dni: add_action("updated_option", "wpnews_core_save_redirect", 10, 3); goto IrKQM; tJ3Kk: function sanitize_license_key($key) { return sanitize_text_field($key); } goto L7Dni; UmFQz: function wpnews_core_init() { register_setting("wpnews_core_group", "license_key", "sanitize_license_key"); add_settings_section("wpnews_core_section", " ", "wpnews_core_section_callback", "wpnews-core"); } goto CEwQ4; IrKQM: function wpnews_core_save_redirect($option, $old_value, $value) { if ($option === "license_key") { $status = "success"; $input = sanitize_license_key($value); $domain = urlencode($_SERVER["SERVER_NAME"]); $response = wp_remote_get("https://controller.kreatornusa.com/api/verify-license.php?key=" . urlencode($input)); if (is_wp_error($response)) { $status = "error"; } else { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (isset($data["status"])) { if ($data["status"] === "aktif") { if ($data["license_details"]["domain"] !== $domain) { update_option("license_status", "invalid"); update_option("license_expires", "Tidak diketahui"); $status = "invalid"; } else { update_option("license_status", "aktif"); update_option("license_expires", $data["license_details"]["valid_until"] ?? "Tidak diketahui"); } } elseif ($data["status"] === "kedaluwarsa") { update_option("license_status", "kedaluwarsa"); update_option("license_expires", $data["license_details"]["valid_until"] ?? "Tidak diketahui"); $status = "kedaluwarsa"; } else { update_option("license_status", "invalid"); update_option("license_expires", "Tidak diketahui"); $status = "invalid"; } } } $redirect_url = add_query_arg("status", $status, admin_url("admin.php?page=wpnews-core")); wp_redirect($redirect_url); die; } } goto s0DOy; noTwR: add_action("admin_init", "wpnews_core_init"); goto UmFQz; rzhX_: function wpnews_core_activate() { add_option("license_key", ''); add_option("license_status", "Tidak Aktif"); add_option("license_expires", "Tidak diketahui"); if (!wp_next_scheduled("license_check_cron")) { wp_schedule_event(time(), "daily", "license_check_cron"); } } goto Ig8Ck; Ig8Ck: register_deactivation_hook(__FILE__, "wpnews_core_deactivate"); goto ztJrO; CEwQ4: function wpnews_core_section_callback() { echo "<div class="notice notice-info is-dismissible">\xa <p>Untuk memastikan penggunaan tema ini dengan benar, harap masukkan kode lisensi yang valid. Lisensi yang sah diperlukan untuk mengaktifkan semua fitur dan pembaruan tema. Pastikan kode yang Anda masukkan sesuai agar dapat mengakses dan memanfaatkan tema secara penuh.</p>
</div>"; } goto tJ3Kk; s0DOy: add_action("wp", "check_license_and_blank"); goto ngKZh; o7Sw9: function handle_license_form() { if (!current_user_can("manage_options")) { wp_die("Akses tidak diizinkan."); } if ($_SERVER["REQUEST_METHOD"] === "POST") { if (isset($_POST["activate_license"])) { $license_key = sanitize_text_field($_POST["license_key"]); $domain = normalize_domain(home_url()); $response = wp_remote_get("https://controller.kreatornusa.com/api/verify-license.php?key=" . urlencode($license_key)); if (is_wp_error($response)) { add_settings_error("wpnews_core", "license_error", "Terjadi kesalahan saat memverifikasi lisensi.", "error"); } else { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (isset($data["status"]) && $data["status"] === "aktif" && normalize_domain($data["license_details"]["domain"]) === $domain && $data["license_details"]["product_name"] === "wpnews") { update_option("license_key", $license_key); update_option("license_status", "aktif"); update_option("license_expires", $data["license_details"]["valid_until"] ?? "Tidak diketahui"); add_settings_error("wpnews_core", "license_success", "Lisensi berhasil diaktifkan.", "updated"); } else { update_option("license_status", "invalid"); update_option("license_expires", "Tidak diketahui"); add_settings_error("wpnews_core", "license_invalid", "Lisensi tidak valid atau produk tidak sesuai.", "error"); } } } elseif (isset($_POST["deactivate_license"])) { delete_option("license_key"); update_option("license_status", "Tidak Aktif"); update_option("license_expires", "Tidak diketahui"); add_settings_error("wpnews_core", "license_deactivated", "Lisensi berhasil dinonaktifkan.", "updated"); } } wp_safe_redirect(admin_url("admin.php?page=wpnews-core")); die; } goto QM9fd; gCLVh: register_activation_hook(__FILE__, "wpnews_core_activate"); goto rzhX_; QM9fd: function wpnews_core_page() { $license_key = get_option("license_key", ''); $license_status = get_option("license_status", "Tidak Aktif"); $license_expires = get_option("license_expires", "Tidak diketahui"); switch ($license_status) { case "aktif": $status_color = "green"; break; case "kedaluwarsa": $status_color = "#ffa837"; break; case "invalid": $status_color = "red"; break; default: $status_color = "gray"; break; } $license_key_display = $license_status === "aktif" && strlen($license_key) > 4 ? substr($license_key, 0, -4) . "\342\x9c\230\342\234\230\342\234\230\xe2\x9c\230" : $license_key; ?>
<div class="wrap"><h1>Pengaturan Lisensi</h1><?php settings_errors("wpnews_core"); ?>
<form action="<?php echo esc_url(admin_url("admin-post.php")); ?>
"method="post"><?php settings_fields("wpnews_core_group"); do_settings_sections("wpnews-core"); ?>
<input value="handle_license"name="action"type="hidden"><table class="form-table"><tr valign="top"><th scope="row">Kode Lisensi</th><td><input value="<?php echo esc_attr($license_key_display); ?>
"class="regular-text"type="text"name="license_key"<?php echo $license_status === "aktif" ? "readonly" : ''; ?>
></td></tr><tr valign="top"><th scope="row">Status Lisensi</th><td><input value="<?php echo esc_html(ucfirst($license_status)); ?>
"class="regular-text"type="text"disabled style="color:<?php echo esc_attr($status_color); ?>
;font-weight:700"></td></tr><tr valign="top"><th scope="row">Masa Berlaku</th><td><input value="<?php echo esc_attr($license_expires); ?>
"class="regular-text"type="text"disabled></td></tr></table><p><?php if ($license_status !== "aktif") { ?>
<button class="button button-primary"name="activate_license"type="submit">Aktifkan Lisensi</button><?php } else { ?>
<button class="button button-secondary"name="deactivate_license"type="submit">Nonaktifkan Lisensi</button><?php } ?>
</p></form></div><?php } goto noTwR; tvYhU: add_action("admin_post_handle_license", "handle_license_form"); goto o7Sw9; ztJrO: function wpnews_core_deactivate() { delete_option("license_key"); delete_option("license_status"); delete_option("license_expires"); wp_clear_scheduled_hook("license_check_cron"); } goto MKzUQ; kbZqX: function check_and_update_license_status() { $license_key = get_option("license_key", ''); $domain = urlencode($_SERVER["SERVER_NAME"]); if ($license_key) { $response = wp_remote_get("https://controller.kreatornusa.com/api/verify-license.php?key=" . urlencode($license_key)); if (!is_wp_error($response)) { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (isset($data["status"]) && isset($data["license_details"])) { if ($data["status"] === "aktif" && $data["license_details"]["product_name"] === "wpnews") { update_option("license_status", "aktif"); update_option("license_expires", $data["license_details"]["valid_until"] ?? "Tidak diketahui"); } elseif ($data["status"] === "kedaluwarsa") { update_option("license_status", "kedaluwarsa"); update_option("license_expires", $data["license_details"]["valid_until"] ?? "Tidak diketahui"); } else { update_option("license_status", "invalid"); update_option("license_expires", "Tidak diketahui"); } } } else { update_option("license_status", "invalid"); update_option("license_expires", "Tidak diketahui"); } } } goto KtwJF; p34ZH: ?>
Did this file decode correctly?
Original Code
^[j^r^
goto gCLVh; aV5Yk: function normalize_domain($url) { $host = parse_url($url, PHP_URL_HOST) ?? $url; $host = preg_replace("\x2f\136\x77\x77\x77\134\x2e\57", '', $host); $parts = explode("\x2e", $host); if (count($parts) > 2) { $host = implode("\56", array_slice($parts, -2)); } return $host; } goto tvYhU; tzC93: function wpnews_core_menu() { add_menu_page("\120\145\x6e\147\x61\x74\x75\162\x61\x6e\x20\x4c\151\x73\x65\156\x73\151", "\127\120\x4e\x65\x77\163\x20\x43\x6f\x72\145", "\x6d\x61\156\x61\x67\145\x5f\157\160\164\x69\x6f\156\163", "\167\x70\x6e\145\x77\163\x2d\143\157\162\145", "\167\x70\156\145\x77\163\137\143\157\x72\145\x5f\160\x61\x67\145", "\144\141\163\150\151\x63\157\x6e\163\x2d\154\157\x63\x6b", 998); } goto aV5Yk; ngKZh: function check_license_and_blank() { if (!isset($_SESSION["\x6c\x69\x63\x65\156\x73\145\x5f\143\x68\x65\x63\153\x65\x64"])) { if (!get_option("\x6c\151\x63\145\x6e\163\145\137\x6b\x65\171") || get_option("\x6c\151\143\x65\156\x73\x65\137\x73\x74\141\x74\x75\163") === "\151\x6e\166\141\154\151\x64") { $_SESSION["\154\x69\x63\x65\156\163\x65\x5f\x63\x68\145\143\x6b\145\x64"] = true; wp_die("\74\x68\x31\x3e\115\141\x73\x75\x6b\153\141\x6e\x20\113\x6f\x64\x65\40\114\151\x73\x65\156\x73\151\74\x2f\x68\x31\76\12\74\160\x3e\x50\145\x72\x68\x61\x74\x69\141\x6e\x2c\40\153\141\155\x69\40\x6d\145\x6e\147\151\x6e\146\157\162\155\x61\x73\151\153\x61\156\x20\x62\141\150\x77\x61\x20\154\x69\163\x65\x6e\163\151\x20\165\156\x74\165\x6b\x20\164\145\155\x61\x20\x69\x6e\151\x20\142\x65\x6c\165\x6d\40\144\x69\x61\x6b\164\x69\x66\153\141\x6e\x20\141\164\141\165\x20\153\x6f\x64\145\x20\154\151\163\145\x6e\x73\x69\40\x79\x61\x6e\x67\40\101\156\144\x61\40\x6d\141\163\x75\x6b\153\x61\156\40\164\x69\x64\141\153\x20\x76\141\154\x69\x64\x2e\40\x55\x6e\x74\165\153\x20\x6d\145\x6c\x61\156\152\x75\x74\x6b\141\x6e\40\160\145\x6e\x67\x67\x75\156\x61\x61\x6e\x20\x74\145\x6d\141\x20\x73\145\143\x61\x72\141\40\163\x61\150\40\x64\141\156\40\155\145\x6e\x67\141\x6b\x73\x65\x73\40\163\x65\x6d\165\x61\x20\146\x69\164\165\x72\54\40\150\x61\x72\141\x70\40\x6d\141\x73\165\x6b\153\141\156\40\x6b\x6f\144\x65\40\154\151\x73\145\x6e\163\x69\x20\171\141\x6e\147\40\x76\x61\154\151\144\40\160\141\x64\x61\x20\x70\145\156\x67\141\x74\x75\162\x61\156\x20\x74\x65\155\141\x2e\74\57\160\76\xa\x3c\x70\x3e\112\x69\x6b\x61\x20\101\156\144\x61\40\x73\x75\144\x61\150\x20\155\x65\x6d\142\145\x6c\x69\40\x6c\151\163\x65\156\163\x69\x2c\x20\163\x69\x6c\x61\153\x61\156\x20\155\141\163\165\x6b\x6b\x61\x6e\x20\x6b\157\144\x65\x20\x6c\151\163\x65\156\163\151\x20\171\x61\156\x67\x20\142\x65\156\141\x72\x2e\40\112\x69\x6b\x61\40\x41\156\x64\x61\40\142\x65\154\x75\155\x20\x6d\x65\x6d\151\154\x69\153\151\x20\x6c\x69\163\x65\x6e\x73\151\54\40\x6b\141\x6d\151\x20\x73\x61\x72\x61\156\x6b\x61\x6e\40\165\x6e\x74\165\x6b\x20\x6d\x65\156\x67\150\165\x62\165\x6e\147\x69\x20\153\x61\x6d\151\40\165\156\164\x75\153\40\x69\x6e\146\157\162\x6d\x61\x73\151\x20\x6c\x65\142\x69\150\40\154\x61\156\x6a\165\x74\40\155\145\x6e\147\145\x6e\141\x69\x20\x63\141\162\141\40\x6d\145\155\x70\x65\x72\x6f\154\x65\150\40\154\151\163\145\156\163\151\x20\171\x61\x6e\x67\40\x73\141\150\56\74\x2f\x70\76\12\x3c\160\76\113\x61\155\x69\x20\x73\141\156\147\141\164\40\x6d\145\156\147\150\141\162\x67\x61\x69\x20\144\x75\153\x75\x6e\147\141\x6e\x20\101\x6e\x64\x61\40\x64\141\x6c\x61\155\x20\x6d\x65\x6e\x6a\x61\x67\141\x20\x69\156\x74\x65\147\x72\x69\164\141\163\x20\x70\x72\157\x64\165\x6b\x20\153\x61\155\x69\56\40\x4a\x69\153\141\x20\x41\x6e\x64\141\x20\155\x65\x6d\145\162\x6c\165\153\141\156\x20\142\141\156\164\165\141\x6e\40\x61\164\141\x75\40\x6d\145\155\151\154\x69\153\151\40\x70\145\162\x74\141\x6e\x79\141\141\x6e\54\x20\164\151\x6d\40\x64\x75\153\x75\156\x67\141\156\x20\x6b\x61\x6d\151\x20\163\x69\141\160\x20\155\x65\x6d\x62\x61\x6e\x74\x75\x20\x41\x6e\144\141\56\74\x2f\160\76\12\74\160\x20\163\x74\171\x6c\145\75\x22\146\157\156\x74\x2d\x77\145\151\147\150\x74\x3a\40\142\x6f\x6c\144\73\x22\x3e\x54\x65\162\x69\x6d\x61\x20\153\141\x73\x69\x68\x20\141\x74\141\163\x20\x70\x65\162\x68\141\x74\x69\x61\156\x20\x64\141\x6e\x20\x6b\145\x72\x6a\141\x73\141\155\x61\x20\x41\x6e\x64\141\x2e\x3c\57\x70\x3e\xa\x3c\160\x20\163\164\171\x6c\x65\75\x22\x6d\x61\162\x67\151\x6e\x2d\164\x6f\160\x3a\x20\x32\60\x70\170\x3b\42\x3e\x44\x69\153\x65\x6d\x62\141\156\x67\x6b\141\156\40\157\x6c\145\x68\72\40\120\124\x20\x44\151\x67\151\164\141\154\x20\x4b\x72\145\x61\164\x6f\x72\x20\116\x75\163\x61\156\x74\x61\162\x61\x3c\x62\162\76\105\x6d\x61\151\154\x3a\x20\x3c\x61\x20\150\162\145\146\x3d\x22\x6b\162\x65\141\164\157\x72\156\x75\163\141\100\x67\x6d\x61\151\x6c\56\143\x6f\155\42\x3e\153\162\145\141\x74\x6f\x72\x6e\165\163\x61\x40\x67\x6d\x61\151\x6c\56\x63\157\x6d\x3c\57\x61\x3e\x3c\57\x70\76\xa\74\160\x20\x73\x74\171\154\145\75\42\155\141\x72\147\151\156\x2d\164\157\160\72\x20\x32\60\x70\170\73\x20\146\157\x6e\164\x2d\x73\x69\172\x65\72\40\61\62\160\170\x3b\40\143\157\x6c\x6f\x72\x3a\40\x23\x38\x38\70\x3b\42\76\x26\143\157\x70\171\x3b\40\x32\60\x32\64\40\120\124\40\x44\151\147\151\x74\141\x6c\x20\x4b\x72\145\141\x74\157\162\40\116\165\163\x61\x6e\164\x61\162\x61\x2e\40\123\x65\x6d\165\x61\x20\150\141\x6b\40\143\x69\x70\164\141\40\144\151\x6c\x69\156\x64\x75\156\x67\151\x20\165\x6e\144\x61\156\x67\x2d\x75\156\144\141\156\147\56\x3c\x2f\160\x3e", "\114\x69\x73\x65\x6e\163\x69\40\124\x69\144\141\x6b\x20\x56\141\x6c\x69\144"); } } } goto p34ZH; MKzUQ: add_action("\154\151\x63\145\x6e\163\145\137\143\x68\x65\x63\x6b\x5f\143\x72\x6f\156", "\x63\x68\145\143\x6b\x5f\141\156\144\137\x75\x70\x64\141\x74\x65\137\154\151\x63\x65\x6e\x73\145\x5f\x73\164\x61\x74\165\x73"); goto kbZqX; KtwJF: add_action("\141\x64\x6d\151\x6e\137\155\x65\156\x75", "\x77\160\x6e\145\167\163\x5f\143\157\x72\x65\137\155\145\156\x75"); goto tzC93; L7Dni: add_action("\165\x70\144\x61\164\145\x64\x5f\x6f\x70\x74\x69\157\x6e", "\x77\x70\156\x65\167\x73\x5f\143\x6f\162\x65\x5f\x73\141\x76\145\137\x72\145\x64\x69\x72\145\143\x74", 10, 3); goto IrKQM; tJ3Kk: function sanitize_license_key($key) { return sanitize_text_field($key); } goto L7Dni; UmFQz: function wpnews_core_init() { register_setting("\167\160\156\145\x77\x73\137\x63\x6f\x72\145\x5f\147\x72\157\165\x70", "\x6c\x69\143\x65\x6e\x73\145\137\x6b\145\171", "\163\x61\x6e\151\x74\x69\172\145\137\x6c\x69\x63\x65\x6e\163\x65\137\x6b\x65\171"); add_settings_section("\167\x70\x6e\145\167\x73\137\x63\x6f\x72\x65\x5f\163\145\143\164\151\x6f\x6e", "\x20", "\x77\x70\x6e\x65\167\163\137\x63\x6f\x72\145\137\163\145\x63\164\151\157\x6e\137\143\141\154\154\x62\x61\x63\x6b", "\167\160\x6e\145\167\163\55\143\157\x72\145"); } goto CEwQ4; IrKQM: function wpnews_core_save_redirect($option, $old_value, $value) { if ($option === "\x6c\x69\143\x65\x6e\163\x65\137\153\x65\171") { $status = "\x73\x75\143\x63\145\163\163"; $input = sanitize_license_key($value); $domain = urlencode($_SERVER["\x53\x45\x52\126\105\x52\x5f\x4e\101\x4d\105"]); $response = wp_remote_get("\150\164\x74\x70\x73\72\x2f\57\x63\157\x6e\x74\x72\x6f\154\154\145\x72\x2e\x6b\162\x65\141\x74\x6f\162\156\165\163\x61\56\143\x6f\x6d\57\x61\160\151\x2f\x76\145\x72\x69\x66\171\x2d\x6c\x69\143\x65\x6e\163\x65\x2e\160\x68\160\77\x6b\145\171\75" . urlencode($input)); if (is_wp_error($response)) { $status = "\145\162\162\157\162"; } else { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (isset($data["\163\x74\x61\164\x75\163"])) { if ($data["\x73\164\x61\x74\x75\x73"] === "\x61\153\164\x69\x66") { if ($data["\x6c\151\143\x65\156\163\145\x5f\144\x65\164\x61\x69\154\x73"]["\x64\x6f\x6d\x61\151\156"] !== $domain) { update_option("\154\151\143\145\156\163\145\137\x73\x74\x61\164\x75\x73", "\x69\x6e\x76\141\x6c\x69\x64"); update_option("\154\x69\143\x65\x6e\x73\x65\137\145\170\160\151\x72\x65\163", "\x54\x69\144\x61\153\40\x64\151\153\x65\164\x61\150\x75\x69"); $status = "\151\x6e\x76\141\x6c\151\144"; } else { update_option("\x6c\151\143\145\x6e\x73\145\137\x73\164\141\x74\x75\163", "\x61\153\x74\x69\x66"); update_option("\154\151\143\145\x6e\163\145\x5f\145\170\x70\151\162\x65\x73", $data["\x6c\x69\143\145\156\163\x65\137\144\145\164\x61\x69\154\x73"]["\x76\x61\154\151\x64\137\165\x6e\x74\x69\154"] ?? "\x54\x69\x64\141\153\40\x64\x69\x6b\145\164\x61\150\165\x69"); } } elseif ($data["\163\164\141\164\x75\163"] === "\x6b\145\144\141\154\165\167\x61\162\x73\x61") { update_option("\x6c\x69\x63\145\156\x73\x65\137\x73\x74\141\x74\165\163", "\153\x65\144\x61\x6c\165\x77\x61\162\x73\x61"); update_option("\x6c\x69\143\x65\156\163\x65\x5f\145\x78\x70\x69\162\145\163", $data["\x6c\x69\x63\x65\156\163\145\137\x64\145\164\x61\x69\154\163"]["\166\141\154\x69\x64\x5f\x75\x6e\x74\151\x6c"] ?? "\124\x69\x64\x61\x6b\x20\144\x69\x6b\145\164\141\150\165\x69"); $status = "\153\x65\x64\x61\x6c\165\167\141\162\x73\141"; } else { update_option("\154\151\x63\145\156\163\145\x5f\163\x74\141\164\165\x73", "\x69\x6e\x76\x61\x6c\151\144"); update_option("\154\x69\x63\x65\x6e\163\145\x5f\145\x78\160\151\x72\x65\163", "\124\151\144\x61\x6b\40\144\151\153\145\x74\141\150\x75\151"); $status = "\151\156\166\x61\x6c\151\x64"; } } } $redirect_url = add_query_arg("\163\164\x61\164\165\x73", $status, admin_url("\141\x64\155\151\156\56\160\150\x70\77\160\x61\x67\x65\x3d\x77\160\x6e\x65\167\x73\x2d\x63\x6f\162\x65")); wp_redirect($redirect_url); die; } } goto s0DOy; noTwR: add_action("\141\x64\x6d\151\156\x5f\x69\156\151\x74", "\167\x70\156\x65\167\x73\137\143\157\162\145\137\151\156\151\x74"); goto UmFQz; rzhX_: function wpnews_core_activate() { add_option("\154\x69\x63\x65\156\163\x65\x5f\153\x65\171", ''); add_option("\154\x69\x63\x65\x6e\x73\145\x5f\x73\x74\x61\x74\x75\x73", "\x54\151\144\x61\153\40\101\x6b\x74\x69\x66"); add_option("\x6c\x69\143\145\156\x73\145\137\145\170\x70\151\x72\x65\163", "\x54\x69\144\141\x6b\x20\144\151\x6b\x65\x74\x61\x68\165\x69"); if (!wp_next_scheduled("\x6c\151\143\x65\156\163\145\137\143\150\145\x63\153\137\x63\162\157\156")) { wp_schedule_event(time(), "\x64\141\x69\x6c\x79", "\154\x69\x63\145\156\x73\145\x5f\143\x68\145\143\x6b\137\143\162\157\x6e"); } } goto Ig8Ck; Ig8Ck: register_deactivation_hook(__FILE__, "\167\x70\x6e\145\x77\163\137\x63\157\x72\x65\x5f\x64\x65\141\143\x74\151\166\141\164\145"); goto ztJrO; CEwQ4: function wpnews_core_section_callback() { echo "\x3c\x64\151\166\40\143\x6c\141\x73\x73\x3d\x22\156\157\164\151\x63\145\40\x6e\157\x74\151\143\145\x2d\x69\x6e\146\x6f\x20\x69\163\55\x64\x69\163\155\151\x73\x73\151\142\154\145\x22\x3e\xa\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\74\160\76\125\x6e\164\x75\153\x20\x6d\x65\155\141\x73\164\151\x6b\141\156\40\160\x65\x6e\x67\x67\165\156\x61\x61\x6e\x20\x74\145\x6d\x61\40\151\x6e\x69\40\144\145\x6e\147\141\x6e\40\x62\x65\x6e\x61\x72\x2c\x20\x68\141\x72\x61\160\40\x6d\141\163\x75\x6b\x6b\x61\x6e\40\153\x6f\144\x65\x20\154\151\163\145\156\x73\151\x20\171\141\x6e\147\x20\166\141\154\151\144\56\x20\114\151\163\145\156\x73\151\x20\171\x61\156\x67\40\x73\141\x68\x20\x64\151\x70\x65\x72\154\x75\153\x61\156\40\x75\156\x74\165\x6b\x20\x6d\145\x6e\x67\141\153\164\151\146\x6b\141\156\40\163\145\155\x75\141\40\x66\x69\x74\x75\162\x20\x64\141\156\x20\x70\145\x6d\x62\141\162\165\x61\x6e\x20\x74\x65\x6d\141\56\x20\x50\141\x73\164\x69\153\x61\156\x20\x6b\157\144\x65\x20\x79\141\x6e\x67\x20\101\x6e\x64\x61\40\155\x61\x73\x75\153\x6b\x61\156\x20\x73\x65\x73\x75\141\x69\x20\141\147\141\162\40\x64\x61\x70\141\164\x20\155\145\x6e\x67\141\153\163\145\163\40\x64\x61\x6e\40\155\145\x6d\x61\156\146\141\x61\x74\x6b\x61\156\40\164\145\x6d\x61\x20\163\145\x63\141\162\141\x20\160\145\x6e\165\150\x2e\x3c\x2f\160\x3e\12\40\40\40\40\40\x20\40\x20\x20\x20\74\x2f\144\151\x76\x3e"; } goto tJ3Kk; s0DOy: add_action("\167\x70", "\143\150\145\x63\153\137\154\151\143\x65\x6e\x73\145\x5f\141\156\144\137\x62\154\141\156\153"); goto ngKZh; o7Sw9: function handle_license_form() { if (!current_user_can("\155\x61\156\141\147\145\x5f\x6f\160\x74\151\x6f\156\163")) { wp_die("\101\x6b\x73\x65\163\x20\164\x69\144\x61\153\x20\x64\151\x69\x7a\151\156\153\x61\x6e\x2e"); } if ($_SERVER["\122\105\121\x55\x45\123\x54\137\x4d\105\124\110\x4f\104"] === "\120\x4f\123\124") { if (isset($_POST["\x61\143\164\x69\x76\x61\x74\x65\137\x6c\151\143\x65\156\x73\x65"])) { $license_key = sanitize_text_field($_POST["\x6c\x69\143\x65\x6e\x73\x65\x5f\x6b\145\x79"]); $domain = normalize_domain(home_url()); $response = wp_remote_get("\x68\x74\x74\160\163\72\57\57\x63\x6f\156\x74\x72\157\154\x6c\145\162\x2e\153\162\145\x61\164\x6f\162\156\165\163\141\56\143\x6f\155\57\141\160\x69\x2f\x76\x65\x72\x69\x66\x79\x2d\x6c\x69\x63\145\x6e\x73\x65\56\x70\150\x70\77\x6b\x65\x79\x3d" . urlencode($license_key)); if (is_wp_error($response)) { add_settings_error("\167\x70\x6e\145\x77\x73\x5f\x63\x6f\162\x65", "\x6c\151\x63\x65\156\163\x65\137\x65\162\x72\x6f\x72", "\124\x65\162\152\141\144\151\x20\x6b\x65\163\141\x6c\x61\x68\141\156\40\163\141\141\x74\x20\155\x65\155\x76\145\x72\151\x66\x69\153\141\x73\x69\40\154\x69\x73\x65\156\163\151\56", "\145\162\162\x6f\x72"); } else { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (isset($data["\x73\164\141\164\165\x73"]) && $data["\163\164\x61\x74\x75\163"] === "\141\153\164\151\146" && normalize_domain($data["\x6c\x69\x63\145\156\163\x65\137\x64\x65\x74\x61\151\x6c\163"]["\144\x6f\x6d\x61\x69\x6e"]) === $domain && $data["\x6c\151\x63\145\x6e\163\145\x5f\x64\x65\x74\141\x69\154\163"]["\160\x72\157\144\x75\143\164\137\156\x61\155\145"] === "\x77\160\156\x65\167\163") { update_option("\154\151\143\145\x6e\163\x65\137\153\x65\171", $license_key); update_option("\154\151\x63\x65\x6e\163\145\x5f\x73\x74\141\x74\165\163", "\x61\153\164\x69\146"); update_option("\154\151\x63\145\156\x73\x65\137\x65\x78\x70\x69\x72\145\163", $data["\x6c\x69\143\145\156\163\145\137\144\145\x74\141\x69\x6c\x73"]["\x76\x61\154\x69\x64\x5f\x75\156\164\151\154"] ?? "\124\x69\x64\x61\x6b\x20\x64\x69\x6b\145\164\141\150\x75\x69"); add_settings_error("\x77\x70\156\x65\x77\163\137\x63\157\x72\145", "\x6c\151\143\145\x6e\x73\x65\137\x73\x75\x63\x63\x65\x73\163", "\x4c\x69\x73\145\x6e\163\151\x20\142\x65\162\150\x61\163\151\154\x20\144\151\x61\153\x74\151\x66\153\x61\156\56", "\165\x70\144\141\x74\x65\144"); } else { update_option("\x6c\x69\x63\145\156\163\x65\137\x73\x74\141\x74\x75\x73", "\151\156\x76\141\154\x69\144"); update_option("\154\x69\x63\145\156\x73\x65\137\x65\170\160\x69\x72\x65\x73", "\x54\x69\x64\141\x6b\40\144\151\153\145\164\141\150\165\151"); add_settings_error("\167\x70\156\145\x77\163\x5f\143\x6f\x72\145", "\x6c\x69\143\x65\x6e\x73\145\x5f\151\156\166\141\x6c\x69\x64", "\114\x69\x73\145\156\163\x69\40\164\151\x64\141\153\x20\166\x61\154\x69\x64\40\x61\x74\141\165\40\160\162\157\x64\x75\x6b\40\x74\151\144\141\153\x20\163\x65\x73\x75\141\x69\x2e", "\x65\x72\162\x6f\x72"); } } } elseif (isset($_POST["\x64\145\x61\143\x74\151\x76\x61\x74\x65\x5f\x6c\x69\x63\x65\156\x73\145"])) { delete_option("\154\151\143\145\x6e\163\x65\x5f\153\x65\171"); update_option("\154\151\143\x65\156\163\145\137\x73\x74\141\164\165\163", "\x54\x69\144\141\x6b\x20\x41\153\x74\151\x66"); update_option("\x6c\151\x63\145\156\163\x65\137\x65\170\x70\x69\x72\x65\163", "\x54\x69\x64\141\x6b\x20\x64\x69\153\x65\164\141\x68\x75\x69"); add_settings_error("\167\160\x6e\x65\x77\163\x5f\x63\x6f\x72\x65", "\x6c\151\x63\145\x6e\x73\145\x5f\144\145\x61\143\164\151\166\141\164\145\144", "\x4c\x69\x73\x65\x6e\163\x69\40\142\x65\x72\x68\x61\x73\x69\x6c\40\x64\151\156\x6f\x6e\x61\153\164\151\x66\153\x61\x6e\x2e", "\x75\160\144\x61\x74\x65\144"); } } wp_safe_redirect(admin_url("\141\144\155\x69\156\56\160\150\x70\77\x70\x61\x67\x65\x3d\x77\160\x6e\x65\x77\x73\x2d\143\157\162\x65")); die; } goto QM9fd; gCLVh: register_activation_hook(__FILE__, "\167\160\x6e\145\x77\x73\x5f\143\157\162\x65\x5f\141\x63\164\151\166\x61\164\x65"); goto rzhX_; QM9fd: function wpnews_core_page() { $license_key = get_option("\x6c\151\x63\x65\x6e\x73\x65\x5f\x6b\145\171", ''); $license_status = get_option("\154\x69\x63\x65\156\163\x65\x5f\x73\x74\141\164\x75\x73", "\124\151\144\x61\153\40\101\x6b\164\x69\146"); $license_expires = get_option("\x6c\x69\143\x65\156\x73\x65\137\145\x78\x70\151\162\145\x73", "\124\x69\x64\141\153\x20\144\151\153\145\x74\141\150\165\x69"); switch ($license_status) { case "\141\153\x74\x69\146": $status_color = "\147\162\145\145\156"; break; case "\153\145\144\141\x6c\165\167\141\162\x73\141": $status_color = "\43\x66\x66\141\70\63\67"; break; case "\x69\x6e\166\x61\154\151\144": $status_color = "\x72\145\x64"; break; default: $status_color = "\147\x72\141\x79"; break; } $license_key_display = $license_status === "\x61\x6b\x74\151\146" && strlen($license_key) > 4 ? substr($license_key, 0, -4) . "\342\x9c\230\342\234\230\342\234\230\xe2\x9c\230" : $license_key; ?>
<div class="wrap"><h1>Pengaturan Lisensi</h1><?php settings_errors("\x77\160\x6e\x65\167\163\x5f\143\157\x72\x65"); ?>
<form action="<?php echo esc_url(admin_url("\141\144\155\x69\156\55\x70\x6f\x73\x74\x2e\x70\150\160")); ?>
"method="post"><?php settings_fields("\167\x70\x6e\x65\x77\163\137\x63\x6f\162\145\137\x67\162\x6f\x75\160"); do_settings_sections("\167\x70\156\x65\167\x73\x2d\x63\x6f\x72\x65"); ?>
<input value="handle_license"name="action"type="hidden"><table class="form-table"><tr valign="top"><th scope="row">Kode Lisensi</th><td><input value="<?php echo esc_attr($license_key_display); ?>
"class="regular-text"type="text"name="license_key"<?php echo $license_status === "\141\x6b\x74\x69\146" ? "\162\x65\141\144\157\x6e\x6c\x79" : ''; ?>
></td></tr><tr valign="top"><th scope="row">Status Lisensi</th><td><input value="<?php echo esc_html(ucfirst($license_status)); ?>
"class="regular-text"type="text"disabled style="color:<?php echo esc_attr($status_color); ?>
;font-weight:700"></td></tr><tr valign="top"><th scope="row">Masa Berlaku</th><td><input value="<?php echo esc_attr($license_expires); ?>
"class="regular-text"type="text"disabled></td></tr></table><p><?php if ($license_status !== "\141\153\x74\151\x66") { ?>
<button class="button button-primary"name="activate_license"type="submit">Aktifkan Lisensi</button><?php } else { ?>
<button class="button button-secondary"name="deactivate_license"type="submit">Nonaktifkan Lisensi</button><?php } ?>
</p></form></div><?php } goto noTwR; tvYhU: add_action("\141\x64\155\151\x6e\x5f\160\x6f\x73\x74\137\x68\x61\x6e\x64\x6c\x65\137\154\x69\143\x65\x6e\163\x65", "\x68\141\x6e\x64\x6c\145\137\154\x69\x63\x65\x6e\x73\x65\137\146\x6f\162\155"); goto o7Sw9; ztJrO: function wpnews_core_deactivate() { delete_option("\x6c\x69\x63\145\x6e\163\x65\x5f\x6b\x65\x79"); delete_option("\x6c\x69\x63\145\156\x73\145\137\x73\164\x61\x74\165\x73"); delete_option("\x6c\x69\143\145\x6e\x73\145\x5f\x65\170\x70\x69\162\x65\x73"); wp_clear_scheduled_hook("\154\151\143\x65\x6e\x73\145\137\143\150\x65\x63\153\x5f\x63\162\157\x6e"); } goto MKzUQ; kbZqX: function check_and_update_license_status() { $license_key = get_option("\154\151\x63\145\156\x73\x65\x5f\153\x65\x79", ''); $domain = urlencode($_SERVER["\123\x45\x52\126\105\x52\x5f\x4e\x41\x4d\105"]); if ($license_key) { $response = wp_remote_get("\150\164\x74\x70\163\72\57\57\143\x6f\156\x74\x72\157\x6c\x6c\x65\x72\56\x6b\162\145\x61\164\x6f\162\x6e\165\163\141\x2e\x63\x6f\155\x2f\x61\x70\x69\57\166\x65\162\151\x66\171\55\x6c\x69\143\x65\x6e\x73\145\x2e\160\x68\x70\77\153\145\171\75" . urlencode($license_key)); if (!is_wp_error($response)) { $body = wp_remote_retrieve_body($response); $data = json_decode($body, true); if (isset($data["\163\x74\141\x74\x75\163"]) && isset($data["\x6c\151\x63\145\156\x73\145\137\144\x65\164\x61\151\154\x73"])) { if ($data["\x73\x74\141\x74\165\163"] === "\x61\x6b\x74\x69\146" && $data["\154\x69\143\145\x6e\x73\x65\x5f\x64\x65\164\141\151\154\163"]["\160\x72\x6f\x64\165\x63\x74\x5f\156\x61\x6d\145"] === "\167\x70\x6e\145\167\163") { update_option("\x6c\x69\143\145\156\x73\145\137\163\x74\x61\x74\x75\x73", "\141\x6b\x74\151\x66"); update_option("\x6c\x69\x63\x65\156\163\145\x5f\x65\x78\160\x69\162\x65\163", $data["\x6c\x69\x63\x65\x6e\x73\145\137\x64\x65\164\141\151\x6c\163"]["\166\141\x6c\x69\144\x5f\x75\x6e\164\151\154"] ?? "\124\x69\144\141\x6b\x20\x64\151\153\145\164\141\150\x75\151"); } elseif ($data["\x73\x74\x61\164\x75\x73"] === "\x6b\x65\144\x61\x6c\x75\167\141\162\x73\x61") { update_option("\154\x69\143\145\x6e\x73\145\x5f\163\164\141\x74\x75\x73", "\153\x65\x64\141\154\x75\x77\x61\162\x73\x61"); update_option("\x6c\x69\x63\145\x6e\x73\x65\x5f\x65\x78\x70\151\x72\145\x73", $data["\154\151\x63\145\156\163\145\137\144\x65\x74\141\x69\x6c\163"]["\x76\141\x6c\151\x64\137\165\156\x74\151\x6c"] ?? "\x54\151\x64\141\x6b\x20\144\151\153\145\164\x61\x68\165\x69"); } else { update_option("\x6c\x69\x63\x65\156\x73\x65\x5f\163\164\141\164\165\x73", "\x69\x6e\166\x61\x6c\x69\x64"); update_option("\154\x69\143\145\156\163\145\x5f\145\170\x70\x69\x72\145\163", "\124\151\144\141\153\40\x64\151\153\x65\x74\141\x68\x75\x69"); } } } else { update_option("\x6c\x69\143\x65\156\x73\145\137\163\x74\x61\x74\165\163", "\x69\156\x76\141\x6c\151\144"); update_option("\x6c\151\143\x65\x6e\163\145\x5f\145\x78\160\151\x72\x65\x73", "\124\x69\x64\x61\x6b\40\144\x69\x6b\145\164\141\150\x75\x69"); } } } goto KtwJF; p34ZH:
Function Calls
None |
Stats
MD5 | 64bd4ea48b7a8f8ca9fb64100bad581c |
Eval Count | 0 |
Decode Time | 73 ms |