Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

goto gbjgc; zg9RV: function exthemes_theme_license_admin_notices() { if (isset($_GET["\..

Decoded Output download

<?   
 goto gbjgc; zg9RV: function exthemes_theme_license_admin_notices() { if (isset($_GET["sl_theme_activation"]) && !empty($_GET["message"])) { switch ($_GET["sl_theme_activation"]) { case "false": $message = urldecode($_GET["message"]); ?> 
			<div class="error"> 
				<p><?php  echo $message; ?> 
</p> 
			</div> 
			<?php  break; case "true": default: break; } } } goto OTYxC; OTYxC: add_action("admin_notices", "exthemes_theme_license_admin_notices", 999); goto TM4gY; Oa97k: class edd_updater_admin { protected $remote_api_url = null; protected $theme_slug = null; protected $version = null; protected $author = null; protected $download_id = null; protected $renew_url = null; protected $strings = null; function __construct($config = array(), $strings = array()) { $config = wp_parse_args($config, array("remote_api_url" => exthemes, "download_id" => '', "theme_slug" => get_template(), "item_name" => '', "license" => '', "version" => '', "author" => '', "renew_url" => '', "beta" => false)); $this->remote_api_url = $config["remote_api_url"]; $this->item_name = $config["item_name"]; $this->theme_slug = sanitize_key($config["theme_slug"]); $this->version = $config["version"]; $this->author = $config["author"]; $this->download_id = $config["download_id"]; $this->renew_url = $config["renew_url"]; $this->beta = $config["beta"]; if ('' == $config["version"]) { $theme = wp_get_theme($this->theme_slug); $this->version = $theme->get("Version"); } $this->strings = $strings; add_action("init", array($this, "updater_edd_themes")); add_action("admin_init", array($this, "register_option")); add_action("admin_init", array($this, "license_action"), 20); add_action("admin_menu", array($this, "license_menu")); add_action("add_option_" . $this->theme_slug . "_license_key", array($this, "activate_license"), 20, 2); add_action("update_option_" . $this->theme_slug . "_license_key", array($this, "activate_license"), 20, 2); add_filter("http_request_args", array($this, "disable_wporg_request"), 5, 2); } function updater_edd_themes() { if (!current_user_can("manage_options")) { return; } if (get_option($this->theme_slug . "_license_key_status", false) != "valid") { return; } if (!class_exists("edd_theme_updater")) { include EX_THEMES_DIR . "/libs/plugins/appa.php"; } new edd_theme_updater(array("remote_api_url" => $this->remote_api_url, "version" => $this->version, "license" => trim(get_option($this->theme_slug . "_license_key")), "item_name" => $this->item_name, "author" => $this->author, "beta" => $this->beta), $this->strings); } function license_menu() { $strings = $this->strings; add_menu_page($strings["theme-license"], $strings["theme-license"], "manage_options", $this->theme_slug . '', array($this, "license_page"), "dashicons-admin-network"); } function license_page() { $strings = $this->strings; $license = trim(get_option($this->theme_slug . "_license_key")); if (!$license) { $message = $strings["enter-key"]; } else { delete_transient($this->theme_slug . "_license_message"); if (!get_transient($this->theme_slug . "_license_message", false)) { set_transient($this->theme_slug . "_license_message", $this->check_license(), 60 * 60 * 24); } $message = get_transient($this->theme_slug . "_license_message"); } $status = get_option($this->theme_slug . "_license_key_status", false); global $post; $license = trim(get_option($this->theme_slug . "_license_key")); $strings = $this->strings; $api_params = array("edd_action" => "check_license", "license" => $license, "item_name" => urlencode($this->item_name), "url" => home_url("/")); $response = $this->get_api_response($api_params); $license_data = json_decode(wp_remote_retrieve_body($response)); $site_count = isset($license_data->site_count) ? $license_data->site_count : ''; $customer_name = isset($license_data->customer_name) ? $license_data->customer_name : ''; $customer_email = isset($license_data->customer_email) ? $license_data->customer_email : ''; $license_limit = isset($license_data->license_limit) ? $license_data->license_limit : ''; $expires = false; if (isset($license_data->expires) && "lifetime" != $license_data->expires) { $expires = date_i18n(get_option("date_format"), strtotime($license_data->expires, current_time("timestamp"))); $renew_link = "<a href="" . esc_url($this->get_renewal_link()) . "" target="_blank">" . $strings["renew"] . "</a>"; } elseif (isset($license_data->expires) && "lifetime" == $license_data->expires) { $expires = "lifetime"; } if (0 == $license_limit) { $license_limit = $strings["unlimited"]; } $gravatar_link = "//gravatar.com/avatar/" . md5($customer_email); $user_info = get_userdata(1); $author_names = $user_info->user_login; ?> 
 
		<style> 
		.exthemes-wp-license-form{padding:10px 20px;border-left:4px solid #00a0d2}.exthemes-wp-license-form input{height:40px;line-height:40px;padding:0 10px;vertical-align:top;background:#f5f5f5}.wp-core-ui .exthemes-wp-license-form .button,.wp-core-ui .exthemes-wp-license-form .button-primary,.wp-core-ui .exthemes-wp-license-form .button-secondary{height:40px;line-height:40px;padding:0 20px;vertical-align:top}.exthemes-wp-license-form a{text-decoration:none}.exthemes-wp-license-good{color:#3c763d}.exthemes-wp-license-bad{color:#a94442}@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400';.firstinfo,.badgescard{display:flex;justify-content:center;align-items:center}*,*:before,*:after{box-sizing:border-box}.content2{position:relative;animation:animatop .9s cubic-bezier(0.425,1.14,0.47,1.125) forwards;}.card{width:500px;min-height:100px;padding:20px;border-radius:3px;background-color:white;box-shadow:0 10px 20px rgba(0,0,0,0.2);position:relative;overflow:hidden}.card:after{content:"";display:block;width:190px;height:300px;background:#2271b1;position:absolute;animation:rotatemagic .75s cubic-bezier(0.425,1.04,0.47,1.105) 1s both}.badgescard{padding:10px 20px;border-radius:3px;background-color:#ececec;width:480px;box-shadow:0 10px 20px rgba(0,0,0,0.2);position:absolute;z-index:-1;left:10px;bottom:10px;animation:animainfos .5s cubic-bezier(0.425,1.04,0.47,1.105) .75s forwards}.badgescard span{font-size:1.6em;margin:0 6px;opacity:.6}.firstinfo{flex-direction:row;z-index:2;position:relative}.firstinfo img{border-radius:50%;width:75px;height:75px}.firstinfo .profileinfo{padding:0 20px}.firstinfo .profileinfo h1{font-size:1.8em}.firstinfo .profileinfo h3{font-size:1.2em;color:#2271b1;font-style:italic}.firstinfo .profileinfo p.bio{padding:10px 0;color:#5a5a5a;line-height:1.2;font-style:initial}@keyframes animatop{0%{opacity:0;bottom:-500px}100%{opacity:1;bottom:0}}@keyframes animainfos{0%{bottom:10px}100%{bottom:-42px}}@keyframes rotatemagic{0%{opacity:0;transform:rotate(0deg);top:-24px;left:-253px}100%{transform:rotate(-30deg);top:-24px;left:-78px}}.firstinfo2{flex-direction:row;z-index:2;position:relative}.firstinfo2 a{color:dodgerblue}.card2{width:500px;border-radius:3px;background-color:white;box-shadow:0 10px 20px rgba(0,0,0,0.2);position:relative;overflow:hidden;margin-top:2em;}.card2:after{content:"";display:block;width:190px;height:300px;background:;position:absolute;animation:rotatemagic .75s cubic-bezier(0.425,1.04,0.47,1.105) 1s both}.card2 h2{font-size:1.2em;color:#2271b1;margin-left:2em}.blink{background: url(<?php  echo EX_THEMES_URI; ?> 
/assets/img/sparks.gif)}.col-main{flex: 1}.col-complementary{flex: 1}@media only screen and (min-width: 640px){.layout{display: flex}}.container{margin-right: auto;margin-left: auto}.col{padding: 0;margin: 0 2px 2px 0;background: transparent} 
		</style> 
		<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> 
 
 
<div class="container"> 
 
<div class="card2" >  
<h2 class="firstinfo2" style="text-align: center;"> ~ <?php  echo $strings["license-key"]; ?> 
 for <b style="color: blue;text-transform: uppercase;"><?php  echo THEMES_NAMES; ?> 
</b> v.<?php  echo EXTHEMES_VERSION; ?> 
 ~ </h2> 
</div> 
		 
<div class="layout"> 
<div class="col col-main"> 
 
<h2 style="text-transform: uppercase;color: red;"> ~ how to setting ~ </h2> 
  
<iframe height="200" width="93%" src="https://www.youtube.com/embed/<?php  echo IDIFRAMEYUTUBE; ?> 
" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> 
 
 
<?php  if ($license) { if (in_array($status, array("valid"))) { ?> 
		 
 
<div class="card" > 
	<div class="firstinfo"> 
		<img src="<?php  echo $gravatar_link; ?> 
"> 
			<div class="profileinfo"> 
				<h1 style="color:crimson; text-transform: uppercase !important;"><?php  echo $customer_name; ?> 
</h1> 
				<h3 style="font-size: 1em !important;font-weight: bold;">My License Key : <b style="color:maroon"><?php  echo $this->get_hidden_license($license); ?> 
</b></h3> 
				<p class="bio"> 
					<?php  echo sprintf($strings["%1$s/%2$-sites"], $site_count, $license_limit); ?> 
					<br>					 
					<?php  echo sprintf($strings["customer-email-%1$s"], $this->get_hidden_email($customer_email), $license_limit); ?> 
					<br> 
					<?php  echo sprintf($strings["expires%s"], $expires); ?> 
				</p> 
			</div> 
	</div> 
		<br> 
		<p style="float: right; "> 
		<i class="fa fa-globe" style="color: crimson;"></i> <a href="<?php  echo EXTHEMES_ITEMS_URL; ?> 
" target="_blank"><?php  echo EXTHEMES_AUTHOR; ?> 
</a>  
		<i class="fa fa-youtube" style="color: crimson;"></i> <a href="<?php  echo EXTHEMES_YOUTUBE_URL; ?> 
" target="_blank"><?php  echo EXTHEMES_AUTHOR; ?> 
</a>  
		<i class="fa fa-facebook" style="color: crimson;"></i> <a href="<?php  echo EXTHEMES_FACEBOOK_URL; ?> 
" target="_blank"><?php  echo EXTHEMES_AUTHOR; ?> 
</a>  
		</p> 
</div>  
	 
<?php  } } else { } ?> 
  
  
<form method="post" action="options.php" class="card2 "> 
	<?php  settings_fields($this->theme_slug . ''); wp_nonce_field($this->theme_slug . "_nonce", $this->theme_slug . "_nonce"); if ($license) { if (in_array($status, array("valid"))) { } elseif (in_array($status, array("site_inactive"))) { } else { } } else { ?> 
	<p class="firstinfo">Hello&nbsp; <strong style=" color: #a94442;text-transform: uppercase;text-shadow: 1px 1px white;"><?php  echo $author_names; ?> 
</strong>, Please Enter your license key <strong style="color: #a94442;text-transform: uppercase; text-shadow: 1px 1px white;">&nbsp;<?php  echo THEMES_NAMES; ?> 
&nbsp;</strong> Themes </p>	 
	<?php  } if ($license) { if (in_array($status, array("valid"))) { ?> 
	<p class="firstinfo"><input id="<?php  echo $this->theme_slug; ?> 
_license_key" name="<?php  echo $this->theme_slug; ?> 
_license_key_hidden" type="text" class="regular-text" value="<?php  echo $this->get_hidden_license($license); ?> 
" disabled /> 
	<input type="submit" class="button button-primary" name="<?php  echo $this->theme_slug; ?> 
_license_deactivate" value="<?php  echo esc_attr($strings["deactivate-license"]); ?> 
"/></p> 
	<?php  } elseif (in_array($status, array("site_inactive"))) { } else { ?> 
	<p class="firstinfo"><input id="<?php  echo $this->theme_slug; ?> 
_license_key" name="<?php  echo $this->theme_slug; ?> 
_license_key" type="text" class="regular-text" value="" placeholder="<?php  echo $strings["enter-key"]; ?> 
" /> 
	<input type="submit" class="button button-primary" name="submit" value="<?php  echo esc_attr($strings["activate-license"]); ?> 
"/></p> 
	<p class="firstinfo"><span class="description">Your License Key : <strong><?php  echo $this->get_hidden_license($license); ?> 
</strong>.<br/><span class="exthemes-wp-license-bad"><b>STATUS : <i class="fa fa-lock" style="color:#a94442"></i> </b> <?php  echo $message; ?> 
</span></span></p> 
	<?php  } } else { ?> 
	<p class="firstinfo"><input id="<?php  echo $this->theme_slug; ?> 
_license_key" name="<?php  echo $this->theme_slug; ?> 
_license_key" type="text" class="regular-text" value="" placeholder="<?php  echo $strings["enter-key"]; ?> 
" /><input type="submit" class="button button-primary" name="submit" value="<?php  echo esc_attr($strings["activate-license"]); ?> 
"/></p> 
	<p class="firstinfo"><span class="description"><span class="exthemes-wp-license-bad">  <?php  echo $message; ?> 
</span></span></p> 
	<?php  } ?> 
  
</form>		 
    
 
<?php  if ($license) { if (in_array($status, array("valid"))) { } elseif (in_array($status, array("site_inactive"))) { } else { } } else { ?> 
<div class="card2"> 
	<h2 class="firstinfo2" style=" text-shadow: 1px 1px white;">How to Get a License Key <b style="color: blue;text-transform: uppercase;"><?php  echo THEMES_NAMES; ?> 
</b> v.<?php  echo EXTHEMES_VERSION; ?> 
 Wordpress Themes?</h2> 
	<p class="firstinfo2"> 
		<ol class="firstinfo2" style="color:#a94442; text-shadow: 1px 1px white;"> 
			<li>if You ALREADY Buy , <i class="fa fa-hand-o-right" style="color:#3c763d"></i> <b><a href="<?php  echo EXTHEMES_MEMBER_URL; ?> 
" target="_blank">Login to the member area</a></b></li> 
			<li>if You Forget License Key , <i class="fa fa-hand-o-right" style="color:#3c763d"></i> <b><a href="<?php  echo EXTHEMES_HOW_TO; ?> 
" target="_blank">See My License Key</a></b> </li> 
			<li>if You haven't bought yet , <i class="fa fa-hand-o-right" style="color:#3c763d"></i> <b><a href="<?php  echo EXTHEMES_ITEMS_URL; ?> 
" target="_blank">Buy <?php  echo EXTHEMES_NAME; ?> 
</a></b> </li> 
		</ol> 
	</p> 
</div> 
<?php  } ?> 
 
</div>   
 
<div class="col col-complementary" role="complementary">   
<?php  echo file_get_contents(WEBSCHANGELOGS); ?> 
  
</div>  
    
</div> 
</div> 
 
<?php  } function get_hidden_license($license) { if (!$license) { return $license; } $start = substr($license, 0, 7); $finish = substr($license, -7); $license = "License*****Hiden"; return $license; } function get_hidden_email($customer_email) { if (!$customer_email) { return $customer_email; } $start = substr($customer_email, 0, 7); $finish = substr($customer_email, -8); $customer_email = $start . "*****" . $finish; return $customer_email; } function register_option() { register_setting($this->theme_slug . '', $this->theme_slug . "_license_key", array($this, "sanitize_license")); } function sanitize_license($new) { $old = get_option($this->theme_slug . "_license_key"); if ($old && $old != $new) { delete_option($this->theme_slug . "_license_key_status"); delete_transient($this->theme_slug . "_license_message"); } return $new; } function get_api_response($api_params) { $response = wp_remote_post($this->remote_api_url, array("timeout" => 15, "sslverify" => false, "body" => $api_params)); return $response; } function activate_license() { $license = trim(get_option($this->theme_slug . "_license_key")); $api_params = array("edd_action" => "activate_license", "license" => $license, "item_name" => urlencode($this->item_name), "url" => home_url("/")); $response = $this->get_api_response($api_params); if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) { if (is_wp_error($response)) { $message = $response->get_error_message(); } else { $message = __("An error occurred, please try again.", TEXT_DOMAIN); } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if (false === $license_data->success) { switch ($license_data->error) { case "expired": $message = sprintf(__("Your license code has expired on%s.", TEXT_DOMAIN), date_i18n(get_option("date_format"), strtotime($license_data->expires, current_time("timestamp")))); break; case "revoked": $message = __("Your license code has been disabled and can no longer be used.", TEXT_DOMAIN); break; case "missing": $message = __("Invalid license.", TEXT_DOMAIN); break; case "invalid": case "site_inactive": $message = __("Your license is currently inactive on this website.", TEXT_DOMAIN); break; case "item_name_mismatch": $message = sprintf(__("This license code does not appear to be valid for %s.", TEXT_DOMAIN), $this->item_name); break; case "no_activations_left": $message = __("Your license code has reached the limit of license activation.", TEXT_DOMAIN); break; default: $message = __("An error occurred, please try again.", TEXT_DOMAIN); break; } if (!empty($message)) { $base_url = admin_url("themes.php?page=" . $this->theme_slug . ''); $redirect = add_query_arg(array("sl_theme_activation" => "false", "message" => urlencode($message)), $base_url); wp_redirect($redirect); die; } } } if ($license_data && isset($license_data->license)) { update_option($this->theme_slug . "_license_key_status", $license_data->license); delete_transient($this->theme_slug . "_license_message"); } wp_redirect(admin_url("themes.php?page=" . $this->theme_slug . '')); die; } function deactivate_license() { $license = trim(get_option($this->theme_slug . "_license_key")); $api_params = array("edd_action" => "deactivate_license", "license" => $license, "item_name" => urlencode($this->item_name), "url" => home_url("/")); $response = $this->get_api_response($api_params); if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) { if (is_wp_error($response)) { $message = $response->get_error_message(); } else { $message = __("An error occurred, please try again.", TEXT_DOMAIN); } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if ($license_data && $license_data->license == "deactivated") { delete_option($this->theme_slug . "_license_key"); delete_option($this->theme_slug . "_license_key_status"); delete_transient($this->theme_slug . "_license_message"); } } if (!empty($message)) { $base_url = admin_url("themes.php?page=" . $this->theme_slug . ''); $redirect = add_query_arg(array("sl_theme_activation" => "false", "message" => urlencode($message)), $base_url); wp_redirect($redirect); die; } wp_redirect(admin_url("themes.php?page=" . $this->theme_slug . '')); die; } function change_license() { delete_option($this->theme_slug . "_license_key"); delete_option($this->theme_slug . "_license_key_status"); delete_transient($this->theme_slug . "_license_message"); wp_redirect(admin_url("themes.php?page=" . $this->theme_slug . '')); die; } function get_renewal_link() { if ('' != $this->renew_url) { return $this->renew_url; } $license_key = trim(get_option($this->theme_slug . "_license_key", false)); if ('' != $this->download_id && $license_key) { $url = esc_url($this->remote_api_url); $url .= "/checkout/?edd_license_key=" . $license_key . "&download_id=" . $this->download_id; return $url; } return $this->remote_api_url; } function license_action() { if (isset($_POST[$this->theme_slug . "_license_activate"])) { if (check_admin_referer($this->theme_slug . "_nonce", $this->theme_slug . "_nonce")) { $this->activate_license(); } } if (isset($_POST[$this->theme_slug . "_license_deactivate"])) { if (check_admin_referer($this->theme_slug . "_nonce", $this->theme_slug . "_nonce")) { $this->deactivate_license(); } } if (isset($_POST[$this->theme_slug . "_license_change"])) { if (check_admin_referer($this->theme_slug . "_nonce", $this->theme_slug . "_nonce")) { $this->change_license(); } } } function check_license() { $license = trim(get_option($this->theme_slug . "_license_key")); $strings = $this->strings; $api_params = array("edd_action" => "check_license", "license" => $license, "item_name" => urlencode($this->item_name), "url" => home_url("/")); $response = $this->get_api_response($api_params); if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) { if (is_wp_error($response)) { $message = $response->get_error_message(); if (strpos($message, "Could not resolve host") !== false) { $message = esc_html__("Could not connect to license server", TEXT_DOMAIN); } } else { $message = $strings["license-status-unknown"]; } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if (!isset($license_data->license)) { $message = $strings["license-status-unknown"]; return $message; } if ($license_data && isset($license_data->license)) { update_option($this->theme_slug . "_license_key_status", $license_data->license); } $expires = false; if (isset($license_data->expires) && "lifetime" != $license_data->expires) { $expires = date_i18n(get_option("date_format"), strtotime($license_data->expires, current_time("timestamp"))); $renew_link = "<a href="" . esc_url($this->get_renewal_link()) . "" target="_blank">" . $strings["renew"] . "</a>"; } elseif (isset($license_data->expires) && "lifetime" == $license_data->expires) { $expires = "lifetime"; } $site_count = isset($license_data->site_count) ? $license_data->site_count : ''; $customer_name = isset($license_data->customer_name) ? $license_data->customer_name : ''; $customer_email = isset($license_data->customer_email) ? $license_data->customer_email : ''; $license_limit = isset($license_data->license_limit) ? $license_data->license_limit : ''; if (0 == $license_limit) { $license_limit = $strings["unlimited"]; } if ($license_data->license == "valid") { $message = $strings["license-key-is-active"] . " "; if (isset($expires) && "lifetime" != $expires) { $message .= " <br>" . sprintf($strings["expires%s"], $expires) . " "; } if (isset($expires) && "lifetime" == $expires) { $message .= " <br>" . $strings["expires-never"]; } if ($site_count && $license_limit) { $message .= " <br> " . sprintf($strings["%1$s/%2$-sites"], $site_count, $license_limit); } if ($customer_name && $license_limit) { $message .= " <br> " . sprintf($strings["customer-name-%1$s"], $customer_name, $license_limit); } if ($customer_email && $license_limit) { $message .= " <br> " . sprintf($strings["customer-email-%1$s"], $customer_email, $license_limit); } } else { if ($license_data->license == "expired") { if ($expires) { $message = " <br>" . sprintf($strings["license-key-expired-%s"], $expires); } else { $message = $strings["license-key-expired"]; } if ($renew_link) { $message .= " " . $renew_link; } } else { if ($license_data->license == "invalid") { $message = $strings["license-keys-do-not-match"]; } else { if ($license_data->license == "inactive") { $message = $strings["license-is-inactive"]; } else { if ($license_data->license == "disabled") { $message = $strings["license-key-is-disabled"]; } else { if ($license_data->license == "site_inactive") { $message = $strings["site-is-inactive"]; } else { $message = $strings["license-status-unknown"]; } } } } } } } return $message; } function disable_wporg_request($r, $url) { if (0 !== strpos($url, "https://api.wordpress.org/themes/update-check/1.1/")) { return $r; } $themes = json_decode($r["body"]["themes"]); $parent = get_option("template"); $child = get_option("stylesheet"); unset($themes->themes->{$parent}); unset($themes->themes->{$child}); $r["body"]["themes"] = json_encode($themes); return $r; } } goto zg9RV; gbjgc: if (!defined("ABSPATH")) { die; } goto fidck; fidck: error_reporting(SALAH); goto Oa97k; TM4gY:  ?>

Did this file decode correctly?

Original Code


 goto gbjgc; zg9RV: function exthemes_theme_license_admin_notices() { if (isset($_GET["\163\x6c\x5f\164\x68\145\155\145\x5f\141\x63\164\x69\166\x61\164\x69\157\x6e"]) && !empty($_GET["\x6d\145\x73\163\x61\147\x65"])) { switch ($_GET["\163\x6c\x5f\164\150\x65\155\145\137\x61\143\164\151\x76\141\164\151\x6f\156"]) { case "\146\x61\x6c\163\145": $message = urldecode($_GET["\155\x65\x73\x73\x61\147\145"]); ?>
			<div class="error">
				<p><?php  echo $message; ?>
</p>
			</div>
			<?php  break; case "\164\x72\x75\145": default: break; } } } goto OTYxC; OTYxC: add_action("\141\144\155\151\x6e\137\x6e\157\x74\151\x63\145\163", "\x65\170\164\150\x65\x6d\x65\x73\x5f\164\150\x65\155\145\x5f\154\151\143\145\x6e\x73\x65\x5f\x61\x64\x6d\151\x6e\x5f\156\x6f\x74\x69\143\x65\163", 999); goto TM4gY; Oa97k: class edd_updater_admin { protected $remote_api_url = null; protected $theme_slug = null; protected $version = null; protected $author = null; protected $download_id = null; protected $renew_url = null; protected $strings = null; function __construct($config = array(), $strings = array()) { $config = wp_parse_args($config, array("\162\x65\155\157\164\x65\x5f\x61\160\151\x5f\165\162\154" => exthemes, "\x64\x6f\x77\156\154\157\x61\144\137\151\x64" => '', "\x74\150\x65\x6d\x65\137\163\x6c\x75\x67" => get_template(), "\x69\x74\145\x6d\137\x6e\x61\155\145" => '', "\154\x69\143\x65\x6e\x73\x65" => '', "\166\145\x72\163\151\157\156" => '', "\x61\x75\164\150\x6f\162" => '', "\x72\x65\x6e\x65\x77\x5f\165\162\x6c" => '', "\x62\145\164\141" => false)); $this->remote_api_url = $config["\x72\x65\x6d\157\164\x65\137\x61\160\x69\137\165\x72\154"]; $this->item_name = $config["\x69\x74\x65\x6d\x5f\x6e\x61\155\145"]; $this->theme_slug = sanitize_key($config["\x74\x68\x65\x6d\145\137\x73\x6c\165\x67"]); $this->version = $config["\166\145\162\x73\151\157\x6e"]; $this->author = $config["\x61\x75\164\x68\x6f\162"]; $this->download_id = $config["\x64\157\x77\x6e\154\157\x61\144\x5f\151\144"]; $this->renew_url = $config["\162\145\156\x65\167\x5f\x75\162\x6c"]; $this->beta = $config["\142\x65\x74\141"]; if ('' == $config["\166\x65\162\163\151\x6f\156"]) { $theme = wp_get_theme($this->theme_slug); $this->version = $theme->get("\x56\145\162\163\151\157\x6e"); } $this->strings = $strings; add_action("\x69\156\x69\164", array($this, "\165\x70\144\141\x74\x65\162\137\x65\x64\144\x5f\164\x68\x65\x6d\145\163")); add_action("\x61\x64\155\151\x6e\x5f\x69\x6e\151\x74", array($this, "\162\145\x67\151\163\164\x65\x72\137\157\x70\x74\x69\x6f\x6e")); add_action("\141\x64\x6d\x69\x6e\x5f\151\156\151\x74", array($this, "\x6c\151\x63\x65\156\163\x65\x5f\141\143\x74\x69\x6f\156"), 20); add_action("\141\x64\155\151\x6e\x5f\155\x65\x6e\165", array($this, "\154\151\143\145\156\163\x65\x5f\155\145\156\165")); add_action("\141\144\144\137\157\x70\x74\x69\157\x6e\x5f" . $this->theme_slug . "\x5f\154\151\x63\x65\x6e\x73\x65\137\x6b\145\171", array($this, "\141\x63\x74\151\166\x61\x74\x65\137\x6c\x69\x63\x65\156\x73\145"), 20, 2); add_action("\165\160\144\x61\164\145\x5f\157\x70\x74\151\157\x6e\137" . $this->theme_slug . "\x5f\x6c\x69\143\x65\156\163\145\x5f\153\145\x79", array($this, "\x61\143\x74\x69\x76\141\164\145\137\154\x69\x63\145\x6e\x73\x65"), 20, 2); add_filter("\150\x74\164\160\x5f\x72\x65\161\165\145\163\x74\137\141\162\147\x73", array($this, "\144\x69\163\141\142\154\145\137\x77\x70\157\x72\147\x5f\x72\145\x71\x75\145\x73\x74"), 5, 2); } function updater_edd_themes() { if (!current_user_can("\155\141\x6e\141\x67\x65\x5f\157\160\x74\151\157\156\163")) { return; } if (get_option($this->theme_slug . "\x5f\x6c\x69\143\145\156\x73\145\137\x6b\145\x79\137\x73\x74\x61\164\165\163", false) != "\x76\x61\x6c\x69\144") { return; } if (!class_exists("\145\144\x64\x5f\x74\x68\x65\155\145\x5f\x75\160\x64\141\164\x65\x72")) { include EX_THEMES_DIR . "\57\154\x69\x62\163\x2f\x70\154\165\147\x69\156\163\57\x61\160\160\x61\56\160\x68\160"; } new edd_theme_updater(array("\162\x65\155\x6f\x74\x65\137\141\160\151\x5f\x75\162\154" => $this->remote_api_url, "\166\x65\162\x73\151\x6f\156" => $this->version, "\154\x69\x63\145\156\x73\145" => trim(get_option($this->theme_slug . "\x5f\154\151\x63\x65\x6e\163\145\x5f\x6b\145\171")), "\151\x74\x65\x6d\137\x6e\141\x6d\x65" => $this->item_name, "\x61\165\x74\x68\x6f\x72" => $this->author, "\142\145\x74\141" => $this->beta), $this->strings); } function license_menu() { $strings = $this->strings; add_menu_page($strings["\164\150\x65\155\145\x2d\154\x69\143\x65\156\163\145"], $strings["\x74\x68\x65\x6d\x65\55\x6c\151\x63\x65\x6e\x73\x65"], "\155\x61\x6e\x61\x67\145\x5f\157\x70\x74\151\x6f\x6e\x73", $this->theme_slug . '', array($this, "\154\151\143\145\x6e\163\145\137\x70\x61\x67\x65"), "\144\x61\x73\150\x69\143\157\156\x73\x2d\x61\x64\x6d\x69\x6e\x2d\x6e\145\164\x77\x6f\x72\x6b"); } function license_page() { $strings = $this->strings; $license = trim(get_option($this->theme_slug . "\137\154\151\143\145\x6e\x73\x65\137\x6b\145\171")); if (!$license) { $message = $strings["\x65\x6e\x74\145\x72\55\x6b\x65\171"]; } else { delete_transient($this->theme_slug . "\x5f\x6c\151\x63\145\x6e\x73\145\137\155\x65\x73\163\x61\x67\x65"); if (!get_transient($this->theme_slug . "\x5f\154\151\143\x65\156\163\x65\x5f\x6d\x65\x73\x73\141\x67\145", false)) { set_transient($this->theme_slug . "\137\x6c\x69\x63\x65\156\x73\145\137\155\145\x73\163\141\147\145", $this->check_license(), 60 * 60 * 24); } $message = get_transient($this->theme_slug . "\x5f\x6c\x69\143\x65\x6e\x73\x65\137\x6d\x65\x73\x73\x61\x67\x65"); } $status = get_option($this->theme_slug . "\137\154\151\x63\145\156\x73\145\x5f\153\x65\171\x5f\x73\164\141\x74\165\x73", false); global $post; $license = trim(get_option($this->theme_slug . "\137\154\x69\x63\145\x6e\x73\145\137\x6b\x65\171")); $strings = $this->strings; $api_params = array("\145\x64\144\137\141\x63\164\x69\x6f\x6e" => "\143\150\145\143\153\137\154\x69\x63\145\x6e\x73\x65", "\x6c\151\x63\145\156\x73\145" => $license, "\151\x74\x65\155\x5f\156\x61\x6d\145" => urlencode($this->item_name), "\165\x72\154" => home_url("\57")); $response = $this->get_api_response($api_params); $license_data = json_decode(wp_remote_retrieve_body($response)); $site_count = isset($license_data->site_count) ? $license_data->site_count : ''; $customer_name = isset($license_data->customer_name) ? $license_data->customer_name : ''; $customer_email = isset($license_data->customer_email) ? $license_data->customer_email : ''; $license_limit = isset($license_data->license_limit) ? $license_data->license_limit : ''; $expires = false; if (isset($license_data->expires) && "\x6c\151\x66\145\x74\151\155\x65" != $license_data->expires) { $expires = date_i18n(get_option("\x64\x61\x74\145\137\146\157\162\155\x61\x74"), strtotime($license_data->expires, current_time("\x74\x69\x6d\145\163\x74\141\155\160"))); $renew_link = "\74\141\40\150\162\145\146\x3d\x22" . esc_url($this->get_renewal_link()) . "\42\x20\x74\141\162\x67\x65\x74\75\42\x5f\142\x6c\141\x6e\x6b\x22\x3e" . $strings["\x72\x65\x6e\x65\x77"] . "\x3c\x2f\x61\76"; } elseif (isset($license_data->expires) && "\x6c\x69\146\145\164\151\155\145" == $license_data->expires) { $expires = "\x6c\151\146\x65\164\x69\155\145"; } if (0 == $license_limit) { $license_limit = $strings["\165\156\154\x69\155\x69\x74\x65\x64"]; } $gravatar_link = "\57\57\147\x72\141\166\x61\164\x61\x72\56\143\x6f\x6d\57\141\166\x61\x74\x61\162\x2f" . md5($customer_email); $user_info = get_userdata(1); $author_names = $user_info->user_login; ?>

		<style>
		.exthemes-wp-license-form{padding:10px 20px;border-left:4px solid #00a0d2}.exthemes-wp-license-form input{height:40px;line-height:40px;padding:0 10px;vertical-align:top;background:#f5f5f5}.wp-core-ui .exthemes-wp-license-form .button,.wp-core-ui .exthemes-wp-license-form .button-primary,.wp-core-ui .exthemes-wp-license-form .button-secondary{height:40px;line-height:40px;padding:0 20px;vertical-align:top}.exthemes-wp-license-form a{text-decoration:none}.exthemes-wp-license-good{color:#3c763d}.exthemes-wp-license-bad{color:#a94442}@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400';.firstinfo,.badgescard{display:flex;justify-content:center;align-items:center}*,*:before,*:after{box-sizing:border-box}.content2{position:relative;animation:animatop .9s cubic-bezier(0.425,1.14,0.47,1.125) forwards;}.card{width:500px;min-height:100px;padding:20px;border-radius:3px;background-color:white;box-shadow:0 10px 20px rgba(0,0,0,0.2);position:relative;overflow:hidden}.card:after{content:"";display:block;width:190px;height:300px;background:#2271b1;position:absolute;animation:rotatemagic .75s cubic-bezier(0.425,1.04,0.47,1.105) 1s both}.badgescard{padding:10px 20px;border-radius:3px;background-color:#ececec;width:480px;box-shadow:0 10px 20px rgba(0,0,0,0.2);position:absolute;z-index:-1;left:10px;bottom:10px;animation:animainfos .5s cubic-bezier(0.425,1.04,0.47,1.105) .75s forwards}.badgescard span{font-size:1.6em;margin:0 6px;opacity:.6}.firstinfo{flex-direction:row;z-index:2;position:relative}.firstinfo img{border-radius:50%;width:75px;height:75px}.firstinfo .profileinfo{padding:0 20px}.firstinfo .profileinfo h1{font-size:1.8em}.firstinfo .profileinfo h3{font-size:1.2em;color:#2271b1;font-style:italic}.firstinfo .profileinfo p.bio{padding:10px 0;color:#5a5a5a;line-height:1.2;font-style:initial}@keyframes animatop{0%{opacity:0;bottom:-500px}100%{opacity:1;bottom:0}}@keyframes animainfos{0%{bottom:10px}100%{bottom:-42px}}@keyframes rotatemagic{0%{opacity:0;transform:rotate(0deg);top:-24px;left:-253px}100%{transform:rotate(-30deg);top:-24px;left:-78px}}.firstinfo2{flex-direction:row;z-index:2;position:relative}.firstinfo2 a{color:dodgerblue}.card2{width:500px;border-radius:3px;background-color:white;box-shadow:0 10px 20px rgba(0,0,0,0.2);position:relative;overflow:hidden;margin-top:2em;}.card2:after{content:"";display:block;width:190px;height:300px;background:;position:absolute;animation:rotatemagic .75s cubic-bezier(0.425,1.04,0.47,1.105) 1s both}.card2 h2{font-size:1.2em;color:#2271b1;margin-left:2em}.blink{background: url(<?php  echo EX_THEMES_URI; ?>
/assets/img/sparks.gif)}.col-main{flex: 1}.col-complementary{flex: 1}@media only screen and (min-width: 640px){.layout{display: flex}}.container{margin-right: auto;margin-left: auto}.col{padding: 0;margin: 0 2px 2px 0;background: transparent}
		</style>
		<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />


<div class="container">

<div class="card2" > 
<h2 class="firstinfo2" style="text-align: center;"> ~ <?php  echo $strings["\x6c\x69\x63\x65\156\x73\x65\55\x6b\x65\x79"]; ?>
 for <b style="color: blue;text-transform: uppercase;"><?php  echo THEMES_NAMES; ?>
</b> v.<?php  echo EXTHEMES_VERSION; ?>
 ~ </h2>
</div>
		
<div class="layout">
<div class="col col-main">

<h2 style="text-transform: uppercase;color: red;"> ~ how to setting ~ </h2>
 
<iframe height="200" width="93%" src="https://www.youtube.com/embed/<?php  echo IDIFRAMEYUTUBE; ?>
" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>


<?php  if ($license) { if (in_array($status, array("\x76\141\154\x69\144"))) { ?>
		

<div class="card" >
	<div class="firstinfo">
		<img src="<?php  echo $gravatar_link; ?>
">
			<div class="profileinfo">
				<h1 style="color:crimson; text-transform: uppercase !important;"><?php  echo $customer_name; ?>
</h1>
				<h3 style="font-size: 1em !important;font-weight: bold;">My License Key : <b style="color:maroon"><?php  echo $this->get_hidden_license($license); ?>
</b></h3>
				<p class="bio">
					<?php  echo sprintf($strings["\x25\x31\44\x73\x2f\x25\62\x24\55\x73\151\164\145\x73"], $site_count, $license_limit); ?>
					<br>					
					<?php  echo sprintf($strings["\x63\165\x73\x74\157\155\145\x72\55\x65\155\141\151\x6c\55\45\61\x24\x73"], $this->get_hidden_email($customer_email), $license_limit); ?>
					<br>
					<?php  echo sprintf($strings["\145\170\x70\151\x72\145\x73\x25\x73"], $expires); ?>
				</p>
			</div>
	</div>
		<br>
		<p style="float: right; ">
		<i class="fa fa-globe" style="color: crimson;"></i> <a href="<?php  echo EXTHEMES_ITEMS_URL; ?>
" target="_blank"><?php  echo EXTHEMES_AUTHOR; ?>
</a> 
		<i class="fa fa-youtube" style="color: crimson;"></i> <a href="<?php  echo EXTHEMES_YOUTUBE_URL; ?>
" target="_blank"><?php  echo EXTHEMES_AUTHOR; ?>
</a> 
		<i class="fa fa-facebook" style="color: crimson;"></i> <a href="<?php  echo EXTHEMES_FACEBOOK_URL; ?>
" target="_blank"><?php  echo EXTHEMES_AUTHOR; ?>
</a> 
		</p>
</div> 
	
<?php  } } else { } ?>
 
 
<form method="post" action="options.php" class="card2 ">
	<?php  settings_fields($this->theme_slug . ''); wp_nonce_field($this->theme_slug . "\x5f\156\157\156\143\x65", $this->theme_slug . "\137\x6e\x6f\156\x63\145"); if ($license) { if (in_array($status, array("\x76\141\154\x69\x64"))) { } elseif (in_array($status, array("\163\151\x74\145\x5f\x69\156\141\143\164\151\166\145"))) { } else { } } else { ?>
	<p class="firstinfo">Hello&nbsp; <strong style=" color: #a94442;text-transform: uppercase;text-shadow: 1px 1px white;"><?php  echo $author_names; ?>
</strong>, Please Enter your license key <strong style="color: #a94442;text-transform: uppercase; text-shadow: 1px 1px white;">&nbsp;<?php  echo THEMES_NAMES; ?>
&nbsp;</strong> Themes </p>	
	<?php  } if ($license) { if (in_array($status, array("\166\141\x6c\151\144"))) { ?>
	<p class="firstinfo"><input id="<?php  echo $this->theme_slug; ?>
_license_key" name="<?php  echo $this->theme_slug; ?>
_license_key_hidden" type="text" class="regular-text" value="<?php  echo $this->get_hidden_license($license); ?>
" disabled />
	<input type="submit" class="button button-primary" name="<?php  echo $this->theme_slug; ?>
_license_deactivate" value="<?php  echo esc_attr($strings["\144\145\141\143\x74\151\x76\x61\164\x65\x2d\154\x69\143\x65\156\x73\x65"]); ?>
"/></p>
	<?php  } elseif (in_array($status, array("\163\x69\x74\145\x5f\151\156\141\143\164\151\166\x65"))) { } else { ?>
	<p class="firstinfo"><input id="<?php  echo $this->theme_slug; ?>
_license_key" name="<?php  echo $this->theme_slug; ?>
_license_key" type="text" class="regular-text" value="" placeholder="<?php  echo $strings["\x65\156\x74\145\162\55\x6b\145\x79"]; ?>
" />
	<input type="submit" class="button button-primary" name="submit" value="<?php  echo esc_attr($strings["\141\x63\164\151\x76\141\164\x65\55\154\x69\143\x65\x6e\163\x65"]); ?>
"/></p>
	<p class="firstinfo"><span class="description">Your License Key : <strong><?php  echo $this->get_hidden_license($license); ?>
</strong>.<br/><span class="exthemes-wp-license-bad"><b>STATUS : <i class="fa fa-lock" style="color:#a94442"></i> </b> <?php  echo $message; ?>
</span></span></p>
	<?php  } } else { ?>
	<p class="firstinfo"><input id="<?php  echo $this->theme_slug; ?>
_license_key" name="<?php  echo $this->theme_slug; ?>
_license_key" type="text" class="regular-text" value="" placeholder="<?php  echo $strings["\145\x6e\x74\x65\x72\x2d\153\145\x79"]; ?>
" /><input type="submit" class="button button-primary" name="submit" value="<?php  echo esc_attr($strings["\x61\143\x74\151\x76\141\x74\145\x2d\x6c\x69\143\145\x6e\x73\145"]); ?>
"/></p>
	<p class="firstinfo"><span class="description"><span class="exthemes-wp-license-bad">  <?php  echo $message; ?>
</span></span></p>
	<?php  } ?>
 
</form>		
   

<?php  if ($license) { if (in_array($status, array("\x76\x61\154\151\x64"))) { } elseif (in_array($status, array("\x73\x69\164\x65\137\x69\x6e\x61\143\164\151\x76\x65"))) { } else { } } else { ?>
<div class="card2">
	<h2 class="firstinfo2" style=" text-shadow: 1px 1px white;">How to Get a License Key <b style="color: blue;text-transform: uppercase;"><?php  echo THEMES_NAMES; ?>
</b> v.<?php  echo EXTHEMES_VERSION; ?>
 Wordpress Themes?</h2>
	<p class="firstinfo2">
		<ol class="firstinfo2" style="color:#a94442; text-shadow: 1px 1px white;">
			<li>if You ALREADY Buy , <i class="fa fa-hand-o-right" style="color:#3c763d"></i> <b><a href="<?php  echo EXTHEMES_MEMBER_URL; ?>
" target="_blank">Login to the member area</a></b></li>
			<li>if You Forget License Key , <i class="fa fa-hand-o-right" style="color:#3c763d"></i> <b><a href="<?php  echo EXTHEMES_HOW_TO; ?>
" target="_blank">See My License Key</a></b> </li>
			<li>if You haven't bought yet , <i class="fa fa-hand-o-right" style="color:#3c763d"></i> <b><a href="<?php  echo EXTHEMES_ITEMS_URL; ?>
" target="_blank">Buy <?php  echo EXTHEMES_NAME; ?>
</a></b> </li>
		</ol>
	</p>
</div>
<?php  } ?>

</div>  

<div class="col col-complementary" role="complementary">  
<?php  echo file_get_contents(WEBSCHANGELOGS); ?>
 
</div> 
   
</div>
</div>

<?php  } function get_hidden_license($license) { if (!$license) { return $license; } $start = substr($license, 0, 7); $finish = substr($license, -7); $license = "\x4c\151\x63\145\x6e\x73\x65\x2a\x2a\x2a\52\x2a\110\x69\144\145\156"; return $license; } function get_hidden_email($customer_email) { if (!$customer_email) { return $customer_email; } $start = substr($customer_email, 0, 7); $finish = substr($customer_email, -8); $customer_email = $start . "\52\52\52\x2a\x2a" . $finish; return $customer_email; } function register_option() { register_setting($this->theme_slug . '', $this->theme_slug . "\137\x6c\151\143\145\156\163\x65\137\x6b\145\171", array($this, "\163\141\x6e\151\164\151\172\x65\x5f\154\151\x63\x65\156\163\145")); } function sanitize_license($new) { $old = get_option($this->theme_slug . "\x5f\154\151\143\145\156\163\x65\137\x6b\145\171"); if ($old && $old != $new) { delete_option($this->theme_slug . "\x5f\154\x69\143\145\x6e\163\145\x5f\x6b\x65\x79\x5f\163\x74\141\164\165\163"); delete_transient($this->theme_slug . "\x5f\x6c\x69\143\x65\x6e\x73\x65\137\x6d\x65\x73\163\141\147\x65"); } return $new; } function get_api_response($api_params) { $response = wp_remote_post($this->remote_api_url, array("\x74\151\x6d\145\x6f\x75\164" => 15, "\163\x73\154\166\145\162\151\146\x79" => false, "\142\x6f\144\171" => $api_params)); return $response; } function activate_license() { $license = trim(get_option($this->theme_slug . "\137\x6c\x69\143\145\x6e\163\145\x5f\153\x65\171")); $api_params = array("\145\144\144\137\x61\x63\164\151\x6f\156" => "\x61\143\164\x69\x76\141\x74\145\137\154\151\143\x65\x6e\163\145", "\x6c\151\143\x65\156\x73\145" => $license, "\x69\164\145\x6d\137\156\141\155\145" => urlencode($this->item_name), "\165\162\x6c" => home_url("\57")); $response = $this->get_api_response($api_params); if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) { if (is_wp_error($response)) { $message = $response->get_error_message(); } else { $message = __("\101\156\x20\145\x72\162\157\162\x20\x6f\143\x63\165\x72\162\x65\x64\x2c\x20\160\154\145\141\163\145\x20\164\162\171\40\x61\147\x61\x69\x6e\x2e", TEXT_DOMAIN); } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if (false === $license_data->success) { switch ($license_data->error) { case "\145\x78\160\151\x72\x65\x64": $message = sprintf(__("\131\x6f\x75\162\x20\x6c\x69\143\145\156\x73\145\40\143\x6f\144\145\40\x68\x61\x73\40\145\x78\160\x69\x72\x65\x64\40\x6f\156\x25\163\56", TEXT_DOMAIN), date_i18n(get_option("\144\x61\164\x65\x5f\146\x6f\162\155\x61\x74"), strtotime($license_data->expires, current_time("\x74\151\x6d\145\x73\164\x61\x6d\x70")))); break; case "\162\145\x76\x6f\x6b\145\x64": $message = __("\131\157\x75\x72\40\154\151\143\145\x6e\163\x65\x20\x63\157\144\x65\x20\x68\x61\x73\x20\142\x65\145\x6e\40\x64\x69\163\141\x62\154\x65\144\x20\x61\x6e\144\x20\143\x61\156\40\156\157\40\x6c\157\156\x67\x65\x72\x20\142\x65\40\x75\x73\145\x64\x2e", TEXT_DOMAIN); break; case "\155\x69\x73\x73\151\x6e\x67": $message = __("\x49\x6e\166\141\154\x69\x64\x20\x6c\x69\x63\x65\156\163\x65\x2e", TEXT_DOMAIN); break; case "\x69\156\166\x61\154\151\x64": case "\163\151\x74\145\x5f\151\x6e\141\x63\164\151\x76\145": $message = __("\x59\x6f\x75\x72\40\154\x69\x63\145\156\x73\x65\40\x69\x73\40\x63\x75\162\162\145\x6e\x74\x6c\171\40\151\x6e\141\x63\164\151\166\x65\x20\157\x6e\x20\x74\150\x69\163\40\167\145\x62\x73\151\x74\x65\56", TEXT_DOMAIN); break; case "\151\x74\x65\x6d\137\156\x61\x6d\x65\x5f\155\151\x73\x6d\x61\164\143\150": $message = sprintf(__("\x54\150\151\163\40\154\151\143\x65\x6e\163\145\x20\x63\157\x64\x65\x20\x64\157\145\x73\40\x6e\x6f\x74\40\141\160\160\x65\141\x72\40\x74\157\x20\142\x65\40\x76\x61\x6c\151\144\40\146\157\x72\x20\45\163\x2e", TEXT_DOMAIN), $this->item_name); break; case "\156\x6f\137\141\143\x74\151\166\x61\164\151\x6f\156\x73\x5f\154\145\146\164": $message = __("\x59\157\x75\162\x20\x6c\151\x63\x65\156\x73\x65\x20\143\157\x64\x65\40\x68\141\x73\40\162\145\x61\x63\150\145\144\40\164\x68\x65\x20\154\x69\x6d\x69\164\40\x6f\146\x20\x6c\151\x63\145\156\163\x65\x20\141\143\164\151\166\141\x74\151\x6f\156\x2e", TEXT_DOMAIN); break; default: $message = __("\x41\x6e\x20\145\x72\x72\x6f\x72\x20\157\143\x63\x75\x72\x72\145\x64\54\40\160\x6c\x65\141\x73\145\x20\x74\162\x79\x20\x61\x67\x61\151\x6e\56", TEXT_DOMAIN); break; } if (!empty($message)) { $base_url = admin_url("\164\x68\x65\x6d\145\163\56\x70\x68\x70\x3f\160\x61\x67\x65\x3d" . $this->theme_slug . ''); $redirect = add_query_arg(array("\163\x6c\137\164\150\145\155\145\137\141\x63\164\x69\x76\141\x74\x69\x6f\156" => "\x66\x61\154\x73\x65", "\x6d\x65\x73\x73\141\x67\x65" => urlencode($message)), $base_url); wp_redirect($redirect); die; } } } if ($license_data && isset($license_data->license)) { update_option($this->theme_slug . "\x5f\154\x69\143\x65\156\x73\145\137\153\145\x79\137\163\164\141\x74\x75\163", $license_data->license); delete_transient($this->theme_slug . "\137\x6c\x69\x63\145\x6e\x73\145\x5f\x6d\x65\x73\163\141\147\145"); } wp_redirect(admin_url("\164\150\x65\155\x65\163\x2e\160\150\160\77\x70\141\147\145\75" . $this->theme_slug . '')); die; } function deactivate_license() { $license = trim(get_option($this->theme_slug . "\137\x6c\x69\x63\x65\156\163\x65\137\153\145\171")); $api_params = array("\145\x64\x64\137\141\x63\164\x69\x6f\156" => "\x64\x65\x61\x63\164\151\166\x61\164\x65\x5f\x6c\151\x63\145\x6e\163\x65", "\x6c\151\x63\x65\156\x73\145" => $license, "\151\x74\145\155\x5f\x6e\141\155\145" => urlencode($this->item_name), "\165\162\x6c" => home_url("\x2f")); $response = $this->get_api_response($api_params); if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) { if (is_wp_error($response)) { $message = $response->get_error_message(); } else { $message = __("\x41\x6e\x20\145\162\x72\157\162\40\x6f\x63\143\165\x72\x72\145\x64\x2c\40\160\x6c\x65\x61\163\x65\x20\x74\x72\x79\40\x61\x67\141\x69\x6e\x2e", TEXT_DOMAIN); } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if ($license_data && $license_data->license == "\x64\145\141\143\x74\151\x76\x61\164\x65\144") { delete_option($this->theme_slug . "\x5f\x6c\x69\143\145\156\163\x65\x5f\153\145\171"); delete_option($this->theme_slug . "\x5f\154\151\143\x65\156\163\x65\137\x6b\x65\x79\x5f\163\x74\x61\164\165\x73"); delete_transient($this->theme_slug . "\137\154\x69\x63\145\156\163\145\x5f\155\x65\x73\x73\141\147\145"); } } if (!empty($message)) { $base_url = admin_url("\x74\150\x65\x6d\x65\163\x2e\160\x68\160\77\160\x61\x67\x65\x3d" . $this->theme_slug . ''); $redirect = add_query_arg(array("\163\154\x5f\x74\150\145\x6d\x65\137\x61\143\164\151\166\141\x74\x69\x6f\156" => "\x66\141\x6c\x73\x65", "\x6d\145\x73\163\141\x67\x65" => urlencode($message)), $base_url); wp_redirect($redirect); die; } wp_redirect(admin_url("\164\x68\x65\155\145\163\56\160\x68\x70\77\x70\x61\x67\x65\x3d" . $this->theme_slug . '')); die; } function change_license() { delete_option($this->theme_slug . "\x5f\x6c\151\143\x65\156\x73\145\x5f\153\x65\171"); delete_option($this->theme_slug . "\x5f\154\x69\143\x65\x6e\x73\x65\137\153\x65\171\x5f\x73\164\x61\x74\165\x73"); delete_transient($this->theme_slug . "\x5f\154\151\x63\x65\x6e\163\145\x5f\155\145\163\x73\x61\x67\145"); wp_redirect(admin_url("\x74\x68\145\155\x65\163\56\160\150\x70\x3f\160\141\x67\145\x3d" . $this->theme_slug . '')); die; } function get_renewal_link() { if ('' != $this->renew_url) { return $this->renew_url; } $license_key = trim(get_option($this->theme_slug . "\x5f\x6c\151\x63\145\x6e\x73\x65\137\x6b\x65\x79", false)); if ('' != $this->download_id && $license_key) { $url = esc_url($this->remote_api_url); $url .= "\x2f\x63\x68\x65\x63\153\x6f\x75\164\x2f\x3f\145\144\144\137\154\151\143\145\156\163\145\x5f\153\x65\171\x3d" . $license_key . "\x26\144\x6f\x77\156\x6c\x6f\141\x64\137\x69\x64\x3d" . $this->download_id; return $url; } return $this->remote_api_url; } function license_action() { if (isset($_POST[$this->theme_slug . "\137\154\151\x63\x65\x6e\x73\145\137\x61\x63\x74\151\166\141\164\145"])) { if (check_admin_referer($this->theme_slug . "\x5f\x6e\x6f\156\143\x65", $this->theme_slug . "\x5f\156\157\x6e\143\145")) { $this->activate_license(); } } if (isset($_POST[$this->theme_slug . "\x5f\154\151\x63\x65\156\163\x65\137\144\145\x61\143\164\x69\166\141\x74\145"])) { if (check_admin_referer($this->theme_slug . "\x5f\x6e\x6f\x6e\x63\x65", $this->theme_slug . "\137\x6e\157\156\x63\145")) { $this->deactivate_license(); } } if (isset($_POST[$this->theme_slug . "\x5f\x6c\151\x63\x65\156\x73\x65\x5f\x63\x68\x61\x6e\x67\145"])) { if (check_admin_referer($this->theme_slug . "\x5f\x6e\x6f\156\x63\x65", $this->theme_slug . "\137\156\157\x6e\x63\145")) { $this->change_license(); } } } function check_license() { $license = trim(get_option($this->theme_slug . "\x5f\154\x69\143\145\156\x73\145\137\153\145\x79")); $strings = $this->strings; $api_params = array("\145\144\144\137\141\143\x74\151\x6f\156" => "\143\150\145\143\153\137\x6c\x69\143\145\156\x73\145", "\x6c\151\143\145\156\163\145" => $license, "\x69\164\145\x6d\137\x6e\x61\x6d\x65" => urlencode($this->item_name), "\x75\x72\x6c" => home_url("\x2f")); $response = $this->get_api_response($api_params); if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) { if (is_wp_error($response)) { $message = $response->get_error_message(); if (strpos($message, "\x43\157\165\x6c\144\40\156\x6f\164\40\162\145\x73\x6f\x6c\166\145\x20\150\157\x73\164") !== false) { $message = esc_html__("\103\157\x75\x6c\x64\x20\x6e\157\x74\x20\143\157\x6e\x6e\x65\x63\164\x20\x74\x6f\40\x6c\151\143\145\x6e\x73\x65\40\x73\x65\x72\x76\145\x72", TEXT_DOMAIN); } } else { $message = $strings["\154\x69\x63\145\x6e\x73\x65\x2d\x73\164\x61\164\x75\x73\55\165\x6e\x6b\156\x6f\x77\156"]; } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if (!isset($license_data->license)) { $message = $strings["\154\x69\x63\x65\x6e\x73\145\55\163\164\141\x74\165\163\55\165\156\x6b\156\157\167\x6e"]; return $message; } if ($license_data && isset($license_data->license)) { update_option($this->theme_slug . "\137\x6c\x69\x63\x65\156\163\x65\137\x6b\x65\171\137\163\x74\x61\x74\x75\x73", $license_data->license); } $expires = false; if (isset($license_data->expires) && "\154\x69\146\145\x74\151\x6d\x65" != $license_data->expires) { $expires = date_i18n(get_option("\144\141\164\x65\137\146\157\162\155\141\x74"), strtotime($license_data->expires, current_time("\164\x69\155\145\x73\x74\141\x6d\x70"))); $renew_link = "\74\x61\x20\150\x72\x65\x66\x3d\42" . esc_url($this->get_renewal_link()) . "\x22\40\x74\141\x72\x67\x65\164\75\x22\x5f\142\x6c\x61\156\x6b\42\76" . $strings["\162\145\x6e\145\x77"] . "\x3c\x2f\141\x3e"; } elseif (isset($license_data->expires) && "\154\151\146\145\x74\x69\155\145" == $license_data->expires) { $expires = "\154\151\146\145\164\x69\x6d\x65"; } $site_count = isset($license_data->site_count) ? $license_data->site_count : ''; $customer_name = isset($license_data->customer_name) ? $license_data->customer_name : ''; $customer_email = isset($license_data->customer_email) ? $license_data->customer_email : ''; $license_limit = isset($license_data->license_limit) ? $license_data->license_limit : ''; if (0 == $license_limit) { $license_limit = $strings["\165\x6e\x6c\151\x6d\x69\164\x65\144"]; } if ($license_data->license == "\x76\141\x6c\151\x64") { $message = $strings["\x6c\151\143\x65\x6e\163\145\55\153\145\171\x2d\x69\163\55\141\x63\x74\151\x76\145"] . "\40"; if (isset($expires) && "\154\151\146\145\164\x69\x6d\x65" != $expires) { $message .= "\40\74\142\x72\76" . sprintf($strings["\x65\x78\x70\151\162\145\163\x25\x73"], $expires) . "\40"; } if (isset($expires) && "\x6c\151\146\145\x74\x69\155\145" == $expires) { $message .= "\40\74\142\x72\x3e" . $strings["\x65\x78\x70\151\162\x65\163\x2d\x6e\145\x76\x65\162"]; } if ($site_count && $license_limit) { $message .= "\40\74\x62\x72\x3e\40" . sprintf($strings["\45\61\x24\x73\x2f\45\x32\44\55\x73\x69\164\x65\x73"], $site_count, $license_limit); } if ($customer_name && $license_limit) { $message .= "\40\x3c\x62\162\76\x20" . sprintf($strings["\x63\x75\163\164\x6f\155\x65\x72\55\156\x61\155\145\x2d\x25\61\44\x73"], $customer_name, $license_limit); } if ($customer_email && $license_limit) { $message .= "\40\74\142\162\x3e\40" . sprintf($strings["\143\x75\163\x74\x6f\155\x65\x72\x2d\x65\x6d\141\151\x6c\55\45\x31\44\x73"], $customer_email, $license_limit); } } else { if ($license_data->license == "\145\170\160\151\x72\x65\x64") { if ($expires) { $message = "\40\x3c\142\x72\x3e" . sprintf($strings["\154\x69\x63\145\156\163\x65\x2d\x6b\x65\171\x2d\x65\x78\x70\x69\x72\x65\144\x2d\x25\x73"], $expires); } else { $message = $strings["\154\151\143\x65\x6e\163\145\x2d\153\x65\x79\55\x65\x78\x70\x69\x72\x65\144"]; } if ($renew_link) { $message .= "\x20" . $renew_link; } } else { if ($license_data->license == "\151\156\166\x61\154\151\144") { $message = $strings["\154\x69\x63\145\x6e\x73\x65\x2d\x6b\145\171\163\55\144\157\55\x6e\157\x74\55\x6d\141\164\x63\x68"]; } else { if ($license_data->license == "\151\x6e\141\x63\164\x69\x76\x65") { $message = $strings["\x6c\x69\x63\x65\x6e\163\x65\x2d\x69\163\55\x69\156\141\x63\x74\x69\166\x65"]; } else { if ($license_data->license == "\144\x69\163\x61\x62\x6c\145\x64") { $message = $strings["\154\151\x63\x65\x6e\x73\145\x2d\x6b\x65\x79\55\151\163\55\144\x69\x73\x61\x62\x6c\145\144"]; } else { if ($license_data->license == "\x73\151\x74\145\137\151\x6e\x61\x63\164\x69\166\x65") { $message = $strings["\x73\x69\164\145\55\151\x73\55\x69\156\x61\143\164\151\166\145"]; } else { $message = $strings["\154\x69\143\145\156\163\x65\x2d\x73\164\x61\x74\x75\x73\55\165\x6e\x6b\x6e\x6f\167\156"]; } } } } } } } return $message; } function disable_wporg_request($r, $url) { if (0 !== strpos($url, "\x68\x74\x74\160\x73\72\x2f\57\x61\160\x69\56\167\157\x72\144\160\x72\x65\163\x73\x2e\x6f\162\x67\57\x74\x68\x65\155\145\x73\57\x75\160\144\x61\x74\x65\x2d\143\150\x65\143\153\x2f\61\x2e\x31\57")) { return $r; } $themes = json_decode($r["\142\x6f\144\171"]["\164\150\x65\x6d\145\163"]); $parent = get_option("\164\145\x6d\160\154\141\164\145"); $child = get_option("\x73\x74\171\154\x65\163\150\145\145\x74"); unset($themes->themes->{$parent}); unset($themes->themes->{$child}); $r["\x62\x6f\144\171"]["\x74\x68\x65\155\145\x73"] = json_encode($themes); return $r; } } goto zg9RV; gbjgc: if (!defined("\x41\x42\123\120\101\x54\110")) { die; } goto fidck; fidck: error_reporting(SALAH); goto Oa97k; TM4gY: 

Function Calls

None

Variables

None

Stats

MD5 d8e522de7d3c47cd833feeca120a258f
Eval Count 0
Decode Time 50 ms