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 ySB1o; ySB1o: if (!defined("\x41\x42\123\120\101\124\110")) { die; } goto XNapb; Z..
Decoded Output download
<?
goto ySB1o; ySB1o: if (!defined("ABSPATH")) { die; } goto XNapb; ZP3T5: add_action("admin_notices", "exthemes_theme_license_admin_notices", 2); goto d0gE4; XNapb: class admin_updates { 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_API_URL, "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("tema_updates")) { include get_template_directory() . "/libs/update/license_dua.php"; } new tema_updates(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">
<?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 <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;"> <?php echo THEMES_NAMES; ?>
</strong>v.<?php echo EXTHEMES_VERSION; ?>
</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 class="card2" >
<h2 class="firstinfo" style="text-align: center;"> ~ Memory & PHP Infos ~ </h2>
</div>
<div class="layout">
<div class="col col-main">
<div style="padding-top: 1rem;">
<?php echo "Memory Limit : <b style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">" . ini_get("memory_limit") . "</b>"; echo "<br>"; echo "Post Max Size : <b style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">" . ini_get("post_max_size") . "</b>"; echo "<br>"; echo "PHP version : <b style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">" . phpversion() . "</b> ( <u class="cool-link f2">Required PHP 7.4+</u> )"; echo "<br>"; echo "OS : <b style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">" . php_uname() . "</b>"; echo " and <b style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">" . PHP_OS . "</b>"; if (ini_get("allow_url_fopen")) { echo "<br>allow_url_fopen is <b style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">ENABLED</b>\xa"; } else { echo "<br>allow_url_fopen is DISABLED. please make it <u class="cool-link f2"> ON </u> ( Required allow_url_fopen )
"; } if (!ini_get("allow_url_fopen")) { ?>
<h1>How to ENABLED allow_url_fopen</h1>
<h2>How to enable or disable allow_url_fopen in cPanel</h2>
<p>There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to enable or disable <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong>.</p>
<h3>What is allow_url_fopen?</h3>
<p>The <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> is a setting managed through the PHP Options which allows PHP file functions to retrieve data from remote locations over FTP or HTTP. This option is a significant security risk, thus, do not turn it on without necessity.</p>
<h3>How to Enable or Disable allow_url_fopen in cPanel</h3>
<p>The PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.</p>
<p>While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:</p>
<p><strong>1) </strong>Log into <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">cPanel</strong>.</p>
<p><strong>2)</strong> Look for the <em style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">SOFTWARE</em> section and click on <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">Select PHP version</strong></p>
<?php $image = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDGcqHRNxK9mTccGGH6-fCI4K50JLipaKkdXE2JbIJQbdGOihGxnbgzolTLrWTsgobiUWewVC8yRyu4nPQV6y88tIfNecPyImhCRmQBKF-pBAOh51huovf-PLaDILmv4sYcGembT_Tbj06_6JY3Yuq72VFz3wA_7STeblB2EDPPoHodNHbkjgbTqER/s1600/Software-Select-PHP-Version.png"; $imageData = base64_encode(file_get_contents($image)); $src = "data: png;base64," . $imageData; ?>
<figure style="width: 643px" class="caption alignnone">
<img class="size-large wp-image-7674" src="<?php echo $src; ?>
" alt="PHP Version" width="643" height="245" /><figcaption class="caption-text">Software > Select PHP Version</figcaption>
</figure>
<p><strong>3)</strong> Click on the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">Options</strong> link in the new window.</p>
<?php $image1 = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO_GXUoykbByxAzRBYS1ret9lTMfddU7Z4Kp9HeBBk_BfP_9U61phWnloXGti7VYduytWjvR68nseOUv4dHGCD-7ge1jbo2oA0wIwNcrqJQQjiAC0HZdAnaCbN4DO5edIntwujCvygkCQahkk2BYhDMJpOyLD0YhsAZwQ6R_wW6IUXES6YLAWAHApR/s1600/PHP-Selector-Options.png"; $imageData1 = base64_encode(file_get_contents($image1)); $src_a = "data: png;base64," . $imageData1; ?>
<figure style="width: 643px" class="caption alignnone">
<img decoding="async" loading="lazy" class="size-large wp-image-7720" src="<?php echo $src_a; ?>
" alt="" width="643" height="202" />
<figcaption class="caption-text">PHP Selector > Options</figcaption>
</figure>
<p><strong>4)</strong> You can locate the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> and tick on the box next to it to enable it or un-tick the box to disable it.</p>
<?php $image2 = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj21lWVmKXgJKBrLPqtqG6jlR4r6RRGAhxB812moNeDD6ED6YXtDQak7EfzrSVOsA8iHs08e1DesODVTbPwG97lP5ut2Ctntre0sYoFyY9kZWOxeu9zOuAH72yS9lqAi7P9FWVwv676hCWo_0OIbkmGiRW_zlGbJ0FHmg0pB-IgQGSstXmajxLzYpK7/s1600/allow_url_fopen.png"; $imageData2 = base64_encode(file_get_contents($image2)); $src_b = "data: png;base64," . $imageData2; ?>
<p><img decoding="async" loading="lazy" class="alignnone size-large wp-image-7719" src="<?php echo $src_b; ?>
" alt="allow_url_fopen" width="643" height="246" /></p>
<p><strong>5)</strong> Once you make any changes, please do a left-hand side click anywhere outside the dropdown or text input box. If the change were successful, you would see a green box with a message confirming that the change has been applied.</p>
<p>That’s all! Now you know how to enable or disable allow_url_fopen in cPanel.</p>
<h2>Using the allow_url_fopen directive</h2>
<p>The <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive is disabled by default. You should be aware of the security implications of enabling the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive. PHP scripts that can access remote files are potentially vulnerable to arbitrary code injection.</p>
<p>When the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive is enabled, you can write scripts that open remote files as if they are local files. For example, you can use the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">file_get_contents</strong> function to retrieve the contents of a web page.</p>
<p>To enable this functionality, use a text editor to modify the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive in the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">php.ini</strong> file as follows:</p>
<pre style="margin: 1.5em 0;padding: 15px;color: #212529;line-height: 1.2em;border: 1px solid #c9c9c9;border-radius: .2rem;box-shadow: 1px 1px 1px #d8d8d8;background: #fafafa;white-space: pre-wrap;">allow_url_fopen = on</pre>
<p>To disable this functionality, modify the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive in the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">php.ini</strong> file as follows:</p>
<pre style="margin: 1.5em 0;padding: 15px;color: #212529;line-height: 1.2em;border: 1px solid #c9c9c9;border-radius: .2rem;box-shadow: 1px 1px 1px #d8d8d8;background: #fafafa;white-space: pre-wrap;">allow_url_fopen = off</pre>
<p>To verify the current value of the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive and other directives, you can use the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">phpinfo()</strong> function. </p>
<?php } ?>
</div>
<div class="col col-complementary" role="complementary">
<div class="card2" >
<h2 class="firstinfo" style="text-align: center;"> ~ How to Import Demo ~ </h2>
</div>
<div style="padding-top: 1rem;width: 40%;">
<iframe style="" height="200" 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>
</div>
</div>
</div>
</div>
</div>
<div class="col col-complementary" role="complementary">
<style type="text/css" media="screen">
.iframe-wrap {position: relative;width: 100%;height: 0;padding-bottom: 129%;}.iframe-wrap iframe {position: absolute;top: 0;left: 0;width: 100%;height: 100%;}
</style>
<?php ?>
<div class="iframe-wrap">
<iframe width="853" height="680" src="<?php echo WEB_CHANGELOG; ?>
" frameborder="0" allowfullscreen></iframe>
</div>
</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("admin.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("admin.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("admin.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("admin.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("admin.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 dB6wR; d0gE4: function edd_sample_disable_theme_autoupdates($update, $theme) { if (PRODUCT_THEME_SLUG === $theme->theme) { return false; } return $update; } goto r0LZZ; dB6wR: 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 ZP3T5; r0LZZ: ?>
Did this file decode correctly?
Original Code
goto ySB1o; ySB1o: if (!defined("\x41\x42\123\120\101\124\110")) { die; } goto XNapb; ZP3T5: add_action("\141\144\155\x69\x6e\x5f\x6e\157\164\x69\143\x65\163", "\145\x78\164\x68\x65\155\145\163\137\164\x68\x65\x6d\145\x5f\x6c\151\143\145\x6e\x73\145\x5f\x61\x64\x6d\151\156\x5f\156\157\x74\151\143\x65\x73", 2); goto d0gE4; XNapb: class admin_updates { 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("\x72\x65\155\x6f\x74\x65\x5f\x61\160\151\x5f\165\162\154" => EXTHEMES_API_URL, "\x64\157\x77\156\154\x6f\141\x64\x5f\x69\144" => '', "\164\x68\145\155\x65\x5f\x73\154\165\147" => get_template(), "\151\164\x65\x6d\x5f\x6e\141\x6d\145" => '', "\x6c\151\x63\x65\x6e\x73\145" => '', "\x76\x65\162\x73\x69\157\156" => '', "\x61\165\x74\150\x6f\162" => '', "\x72\145\x6e\145\167\x5f\165\x72\x6c" => '', "\x62\x65\x74\141" => false)); $this->remote_api_url = $config["\162\x65\x6d\x6f\x74\x65\137\x61\160\151\x5f\x75\x72\154"]; $this->item_name = $config["\x69\164\145\x6d\x5f\x6e\x61\x6d\145"]; $this->theme_slug = sanitize_key($config["\164\150\145\x6d\145\137\x73\x6c\x75\x67"]); $this->version = $config["\x76\x65\162\163\x69\157\156"]; $this->author = $config["\x61\165\x74\x68\x6f\x72"]; $this->download_id = $config["\x64\157\167\x6e\154\157\x61\144\x5f\151\144"]; $this->renew_url = $config["\x72\145\156\x65\x77\137\165\162\154"]; $this->beta = $config["\142\x65\x74\141"]; if ('' == $config["\x76\145\x72\163\x69\x6f\x6e"]) { $theme = wp_get_theme($this->theme_slug); $this->version = $theme->get("\x56\145\x72\163\151\x6f\x6e"); } $this->strings = $strings; add_action("\x69\x6e\151\164", array($this, "\165\160\144\x61\x74\145\162\137\145\144\144\137\x74\150\x65\x6d\x65\x73")); add_action("\x61\x64\155\x69\x6e\137\151\x6e\151\164", array($this, "\x72\x65\x67\x69\163\x74\145\x72\137\x6f\x70\164\x69\157\156")); add_action("\x61\x64\x6d\151\156\137\151\x6e\x69\164", array($this, "\154\151\x63\x65\156\163\x65\137\141\143\x74\x69\157\156"), 20); add_action("\141\144\155\151\x6e\137\155\x65\x6e\165", array($this, "\x6c\151\x63\145\156\x73\x65\137\x6d\x65\156\165")); add_action("\141\x64\x64\137\x6f\160\164\151\x6f\156\x5f" . $this->theme_slug . "\x5f\154\151\x63\145\x6e\163\x65\137\x6b\x65\171", array($this, "\141\143\164\151\x76\141\x74\145\x5f\x6c\x69\x63\145\x6e\163\145"), 20, 2); add_action("\x75\x70\144\x61\164\x65\137\x6f\160\x74\x69\x6f\x6e\137" . $this->theme_slug . "\137\154\x69\x63\145\156\x73\x65\x5f\153\145\171", array($this, "\x61\143\164\x69\166\x61\164\145\137\x6c\151\x63\x65\156\163\145"), 20, 2); add_filter("\150\x74\x74\160\x5f\x72\x65\x71\x75\145\x73\x74\x5f\141\162\x67\163", array($this, "\x64\151\x73\141\142\x6c\x65\x5f\167\160\157\162\147\137\162\145\x71\x75\145\x73\164"), 5, 2); } function updater_edd_themes() { if (!current_user_can("\155\x61\156\x61\147\145\x5f\157\160\164\x69\x6f\x6e\x73")) { return; } if (get_option($this->theme_slug . "\137\x6c\x69\x63\145\156\163\x65\137\153\145\171\137\x73\x74\x61\164\x75\x73", false) != "\166\141\x6c\151\144") { return; } if (!class_exists("\x74\145\155\x61\137\165\x70\144\141\x74\x65\163")) { include get_template_directory() . "\57\x6c\x69\x62\x73\57\165\160\x64\141\164\x65\x2f\154\151\143\x65\156\163\145\x5f\144\165\x61\x2e\160\x68\x70"; } new tema_updates(array("\162\x65\x6d\157\x74\145\x5f\141\x70\x69\137\165\x72\154" => $this->remote_api_url, "\x76\x65\162\x73\x69\x6f\156" => $this->version, "\154\x69\143\145\x6e\x73\145" => trim(get_option($this->theme_slug . "\x5f\x6c\x69\x63\x65\x6e\163\145\137\153\x65\x79")), "\151\x74\x65\155\x5f\x6e\x61\x6d\145" => $this->item_name, "\141\x75\x74\150\157\162" => $this->author, "\x62\145\164\141" => $this->beta), $this->strings); } function license_menu() { $strings = $this->strings; add_menu_page($strings["\164\150\145\155\145\55\154\151\x63\145\x6e\x73\x65"], $strings["\x74\150\145\x6d\x65\55\x6c\x69\143\x65\x6e\x73\145"], "\x6d\x61\156\141\147\145\137\x6f\160\x74\x69\x6f\156\163", $this->theme_slug . '', array($this, "\154\151\x63\145\x6e\163\x65\x5f\160\x61\x67\145"), "\144\141\x73\150\x69\143\x6f\x6e\163\x2d\x61\144\x6d\151\x6e\x2d\x6e\145\x74\x77\157\162\153"); } function license_page() { $strings = $this->strings; $license = trim(get_option($this->theme_slug . "\137\154\151\x63\x65\x6e\x73\145\x5f\153\x65\171")); if (!$license) { $message = $strings["\145\156\164\145\162\x2d\x6b\145\x79"]; } else { delete_transient($this->theme_slug . "\137\154\x69\143\145\156\x73\145\x5f\155\x65\x73\163\141\x67\x65"); if (!get_transient($this->theme_slug . "\137\x6c\151\143\145\156\x73\x65\x5f\155\145\x73\x73\x61\147\145", false)) { set_transient($this->theme_slug . "\137\154\x69\143\145\x6e\x73\x65\137\x6d\145\163\x73\x61\x67\145", $this->check_license(), 60 * 60 * 24); } $message = get_transient($this->theme_slug . "\137\x6c\151\x63\145\156\163\145\137\155\145\163\163\141\x67\145"); } $status = get_option($this->theme_slug . "\x5f\154\151\143\145\x6e\x73\145\x5f\x6b\x65\x79\x5f\x73\164\x61\x74\x75\163", false); global $post; $license = trim(get_option($this->theme_slug . "\137\154\x69\143\145\x6e\x73\x65\x5f\x6b\145\x79")); $strings = $this->strings; $api_params = array("\x65\144\144\x5f\141\143\x74\151\157\156" => "\143\x68\145\x63\x6b\137\x6c\151\x63\145\156\163\x65", "\x6c\x69\x63\145\156\x73\145" => $license, "\151\164\x65\155\137\156\x61\x6d\x65" => urlencode($this->item_name), "\165\162\x6c" => 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\x69\146\145\164\x69\x6d\145" != $license_data->expires) { $expires = date_i18n(get_option("\144\x61\164\x65\x5f\x66\x6f\162\155\x61\x74"), strtotime($license_data->expires, current_time("\x74\151\x6d\145\x73\164\x61\155\160"))); $renew_link = "\74\141\40\x68\162\145\146\75\42" . esc_url($this->get_renewal_link()) . "\42\x20\164\x61\x72\x67\145\164\75\42\x5f\x62\154\x61\156\x6b\x22\76" . $strings["\x72\x65\156\145\167"] . "\x3c\57\x61\x3e"; } elseif (isset($license_data->expires) && "\154\x69\146\145\x74\151\155\x65" == $license_data->expires) { $expires = "\x6c\x69\146\x65\x74\151\x6d\x65"; } if (0 == $license_limit) { $license_limit = $strings["\x75\156\154\x69\x6d\x69\164\x65\x64"]; } $gravatar_link = "\x2f\x2f\x67\162\x61\166\x61\x74\x61\162\56\143\157\155\57\141\x76\x61\164\141\x72\57" . 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["\154\151\143\x65\156\163\145\x2d\x6b\145\171"]; ?>
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">
<?php if ($license) { if (in_array($status, array("\x76\141\154\151\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\61\x24\x73\x2f\45\x32\44\x2d\x73\151\164\145\x73"], $site_count, $license_limit); ?>
<br>
<?php echo sprintf($strings["\x63\165\x73\x74\x6f\155\x65\x72\55\x65\x6d\141\151\x6c\55\45\61\44\x73"], $this->get_hidden_email($customer_email), $license_limit); ?>
<br>
<?php echo sprintf($strings["\x65\170\160\151\x72\x65\x73\45\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 . "\137\156\157\156\x63\x65", $this->theme_slug . "\x5f\x6e\157\x6e\x63\x65"); if ($license) { if (in_array($status, array("\166\x61\154\x69\144"))) { } elseif (in_array($status, array("\163\151\x74\x65\x5f\x69\156\x61\143\x74\151\166\145"))) { } else { } } else { ?>
<p class="firstinfo">Hello <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;"> <?php echo THEMES_NAMES; ?>
</strong>v.<?php echo EXTHEMES_VERSION; ?>
</p>
<?php } if ($license) { if (in_array($status, array("\166\141\154\151\x64"))) { ?>
<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\x61\x63\x74\151\x76\141\x74\145\x2d\154\x69\143\145\x6e\x73\145"]); ?>
"/></p>
<?php } elseif (in_array($status, array("\163\151\x74\x65\x5f\x69\156\x61\143\x74\151\x76\145"))) { } 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\x6e\164\x65\x72\x2d\153\145\x79"]; ?>
" />
<input type="submit" class="button button-primary" name="submit" value="<?php echo esc_attr($strings["\141\143\x74\151\x76\x61\x74\145\x2d\x6c\x69\x63\145\x6e\x73\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["\x65\156\164\x65\162\55\153\x65\x79"]; ?>
" /><input type="submit" class="button button-primary" name="submit" value="<?php echo esc_attr($strings["\141\143\x74\151\x76\x61\x74\x65\55\x6c\151\143\x65\x6e\x73\x65"]); ?>
"/></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\141\x6c\x69\x64"))) { } elseif (in_array($status, array("\163\151\x74\x65\x5f\151\156\141\143\164\151\x76\145"))) { } 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 class="card2" >
<h2 class="firstinfo" style="text-align: center;"> ~ Memory & PHP Infos ~ </h2>
</div>
<div class="layout">
<div class="col col-main">
<div style="padding-top: 1rem;">
<?php echo "\115\145\155\157\162\171\x20\114\151\155\151\164\40\x3a\x20\x3c\x62\40\163\164\171\154\145\75\42\x66\157\x6e\164\x2d\x73\x69\172\x65\x3a\x20\x38\x37\x2e\x35\x25\x3b\x63\157\154\x6f\162\x3a\x20\43\x65\x38\x33\x65\x38\x63\73\167\157\x72\144\x2d\x77\162\x61\x70\x3a\40\142\x72\145\x61\x6b\x2d\x77\x6f\x72\x64\x3b\x22\76" . ini_get("\155\x65\155\157\x72\x79\x5f\154\151\155\x69\x74") . "\74\x2f\x62\76"; echo "\74\142\162\x3e"; echo "\120\x6f\163\x74\x20\115\141\170\x20\123\151\x7a\145\x20\x3a\40\x3c\x62\x20\x73\x74\171\154\145\x3d\42\x66\x6f\156\x74\x2d\x73\x69\172\145\72\40\70\67\x2e\x35\45\x3b\143\x6f\154\157\x72\72\40\x23\145\70\x33\145\x38\143\x3b\167\157\162\x64\x2d\x77\x72\x61\160\x3a\40\x62\x72\145\x61\153\55\167\157\162\x64\x3b\42\76" . ini_get("\x70\x6f\163\x74\137\155\141\x78\x5f\x73\151\x7a\x65") . "\x3c\57\142\x3e"; echo "\74\x62\x72\76"; echo "\120\x48\120\40\x76\145\162\x73\x69\157\x6e\x20\72\40\x3c\142\40\x73\164\171\x6c\145\x3d\42\x66\157\x6e\164\55\163\x69\172\x65\x3a\40\x38\67\56\x35\45\73\x63\157\154\157\x72\x3a\x20\x23\145\70\63\145\x38\143\x3b\167\x6f\x72\x64\x2d\x77\162\x61\160\x3a\x20\142\162\x65\141\x6b\x2d\167\157\x72\x64\73\x22\x3e" . phpversion() . "\74\x2f\x62\x3e\x20\50\x20\x3c\x75\40\143\154\141\163\x73\x3d\x22\143\157\x6f\x6c\55\x6c\151\156\153\x20\146\x32\42\x3e\x52\145\x71\165\151\x72\x65\x64\40\x50\x48\x50\x20\x37\56\x34\x2b\x3c\x2f\x75\x3e\40\x29"; echo "\74\x62\x72\x3e"; echo "\x4f\x53\40\x3a\x20\x3c\142\40\x73\164\x79\x6c\145\x3d\42\x66\x6f\x6e\164\x2d\x73\151\x7a\x65\x3a\40\70\x37\56\x35\45\x3b\143\157\154\157\x72\x3a\x20\x23\x65\x38\63\x65\70\x63\x3b\x77\x6f\162\x64\55\167\x72\x61\x70\x3a\x20\x62\x72\145\141\x6b\x2d\167\157\162\x64\x3b\x22\76" . php_uname() . "\74\57\x62\76"; echo "\x20\141\156\144\x20\74\142\x20\x73\x74\x79\x6c\x65\75\42\x66\157\x6e\164\x2d\x73\151\172\145\72\40\70\x37\x2e\65\x25\x3b\143\157\154\x6f\x72\x3a\x20\x23\x65\70\x33\145\x38\143\73\167\157\x72\x64\55\167\x72\x61\160\72\40\x62\x72\x65\x61\x6b\55\167\157\162\144\73\x22\76" . PHP_OS . "\74\x2f\142\76"; if (ini_get("\x61\x6c\154\157\167\x5f\165\x72\154\x5f\146\x6f\160\x65\x6e")) { echo "\x3c\142\x72\x3e\141\154\x6c\157\x77\x5f\165\x72\154\137\146\x6f\x70\145\156\40\x69\163\x20\74\x62\40\x73\164\x79\x6c\145\75\42\146\x6f\x6e\x74\55\x73\151\172\145\x3a\40\x38\67\56\65\x25\73\x63\x6f\x6c\x6f\x72\72\x20\43\x65\70\63\145\70\x63\73\167\x6f\162\144\x2d\167\162\x61\160\72\x20\142\162\x65\x61\x6b\55\167\157\162\144\73\42\76\x45\116\101\102\x4c\105\104\x3c\x2f\x62\x3e\xa"; } else { echo "\x3c\x62\162\x3e\x61\154\154\x6f\x77\x5f\165\162\x6c\x5f\x66\x6f\x70\x65\156\40\151\x73\40\104\111\123\101\x42\x4c\x45\104\56\x20\x70\154\x65\141\x73\145\x20\x6d\141\x6b\145\40\151\164\x20\x3c\x75\x20\143\154\x61\163\163\x3d\x22\143\157\157\154\x2d\x6c\x69\156\153\x20\x66\x32\x22\76\46\156\x62\x73\x70\73\46\x6e\x62\163\160\73\117\x4e\x26\156\x62\163\x70\73\x26\x6e\142\x73\x70\73\x26\x6e\142\x73\x70\73\x3c\x2f\165\76\40\x28\x20\x52\145\x71\165\x69\x72\145\x64\40\x61\x6c\x6c\157\x77\137\x75\x72\x6c\x5f\x66\x6f\x70\145\156\40\51\12"; } if (!ini_get("\141\x6c\x6c\157\167\137\165\162\x6c\x5f\146\157\160\x65\156")) { ?>
<h1>How to ENABLED allow_url_fopen</h1>
<h2>How to enable or disable allow_url_fopen in cPanel</h2>
<p>There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to enable or disable <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong>.</p>
<h3>What is allow_url_fopen?</h3>
<p>The <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> is a setting managed through the PHP Options which allows PHP file functions to retrieve data from remote locations over FTP or HTTP. This option is a significant security risk, thus, do not turn it on without necessity.</p>
<h3>How to Enable or Disable allow_url_fopen in cPanel</h3>
<p>The PHP Selector is omitted by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account’s cPanel.</p>
<p>While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:</p>
<p><strong>1) </strong>Log into <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">cPanel</strong>.</p>
<p><strong>2)</strong> Look for the <em style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">SOFTWARE</em> section and click on <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">Select PHP version</strong></p>
<?php $image = "\150\164\164\160\x73\x3a\57\57\x62\154\157\147\147\x65\x72\x2e\147\x6f\x6f\x67\x6c\x65\x75\163\x65\162\143\157\x6e\x74\x65\x6e\x74\56\143\157\x6d\57\151\x6d\x67\x2f\142\57\x52\62\x39\166\132\62\170\154\x2f\101\x56\x76\130\163\x45\147\104\x47\x63\161\x48\122\x4e\170\113\x39\155\124\143\143\107\x47\110\66\55\x66\103\x49\64\113\x35\60\112\114\151\x70\141\113\x6b\144\130\x45\62\x4a\x62\x49\112\121\x62\144\x47\x4f\151\150\x47\x78\x6e\142\147\x7a\157\154\x54\x4c\x72\x57\x54\x73\x67\157\x62\x69\x55\127\x65\167\126\103\70\x79\x52\x79\x75\x34\x6e\120\x51\126\x36\171\x38\x38\164\111\x66\116\145\x63\x50\x79\x49\x6d\x68\x43\122\x6d\x51\x42\113\106\55\x70\102\x41\x4f\150\65\61\x68\x75\157\166\146\x2d\x50\x4c\141\x44\x49\114\x6d\166\x34\163\131\x63\x47\145\x6d\142\x54\137\124\142\152\x30\x36\137\66\x4a\131\x33\131\165\161\x37\x32\126\x46\x7a\x33\x77\101\x5f\x37\x53\x54\145\x62\x6c\102\62\105\104\x50\x50\x6f\110\157\144\x4e\x48\x62\153\152\147\142\124\161\x45\x52\57\163\x31\66\60\x30\57\123\x6f\146\164\167\141\x72\x65\x2d\x53\x65\x6c\145\143\x74\55\x50\x48\x50\x2d\126\145\162\163\x69\157\156\56\160\x6e\x67"; $imageData = base64_encode(file_get_contents($image)); $src = "\x64\141\164\x61\x3a\x20\160\156\147\73\142\x61\163\x65\x36\x34\x2c" . $imageData; ?>
<figure style="width: 643px" class="caption alignnone">
<img class="size-large wp-image-7674" src="<?php echo $src; ?>
" alt="PHP Version" width="643" height="245" /><figcaption class="caption-text">Software > Select PHP Version</figcaption>
</figure>
<p><strong>3)</strong> Click on the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">Options</strong> link in the new window.</p>
<?php $image1 = "\x68\x74\164\x70\163\72\57\57\142\x6c\157\x67\147\x65\x72\x2e\x67\x6f\x6f\x67\x6c\145\165\163\145\x72\143\157\156\164\x65\x6e\164\x2e\143\157\155\57\151\155\147\x2f\142\57\x52\x32\x39\166\132\x32\x78\x6c\x2f\x41\x56\x76\130\163\x45\151\x4f\137\107\130\125\x6f\x79\153\142\x42\171\x78\x41\172\122\x42\x59\x53\61\x72\145\164\x39\154\x54\115\146\x64\x64\125\67\132\64\x4b\x70\x39\110\x65\x42\x42\153\137\102\x66\120\137\x39\x55\66\x31\160\x68\x57\x6e\x6c\x6f\130\x47\x74\151\67\126\x59\144\165\x79\164\127\152\x76\x52\x36\x38\x6e\163\x65\117\x55\166\64\x64\110\x47\103\104\x2d\x37\x67\145\61\152\x62\x6f\x32\157\101\60\x77\111\x77\x4e\143\162\161\112\121\121\152\x69\101\103\x30\x48\x5a\144\x41\x6e\x61\103\142\x4e\64\104\x4f\65\x65\x64\111\x6e\x74\x77\165\152\103\166\x79\x67\x6b\103\121\141\x68\x6b\x6b\62\102\131\150\x44\115\112\x70\x4f\x79\114\x44\60\131\x68\x73\101\x5a\x77\121\x36\122\137\167\x57\66\111\125\130\105\x53\66\x59\x4c\x41\127\x41\110\101\160\122\57\x73\x31\66\x30\60\x2f\x50\x48\120\55\123\145\154\x65\x63\x74\x6f\x72\55\x4f\160\164\151\x6f\156\x73\x2e\160\x6e\147"; $imageData1 = base64_encode(file_get_contents($image1)); $src_a = "\144\x61\164\141\x3a\x20\x70\156\147\73\x62\x61\x73\145\x36\x34\x2c" . $imageData1; ?>
<figure style="width: 643px" class="caption alignnone">
<img decoding="async" loading="lazy" class="size-large wp-image-7720" src="<?php echo $src_a; ?>
" alt="" width="643" height="202" />
<figcaption class="caption-text">PHP Selector > Options</figcaption>
</figure>
<p><strong>4)</strong> You can locate the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> and tick on the box next to it to enable it or un-tick the box to disable it.</p>
<?php $image2 = "\150\x74\164\x70\x73\72\57\57\x62\154\x6f\x67\147\145\x72\x2e\x67\x6f\157\x67\154\145\x75\x73\x65\162\x63\157\156\x74\145\156\x74\x2e\x63\157\155\x2f\151\155\147\x2f\142\57\x52\62\71\x76\132\x32\170\x6c\x2f\101\x56\166\x58\x73\105\152\x32\x31\154\127\x56\x6d\113\x58\x67\x4a\x4b\102\x72\x4c\120\161\164\161\x47\x36\x6a\154\122\x34\x72\x36\122\122\x47\x41\x68\x78\102\70\x31\x32\155\157\x4e\145\104\x44\66\x45\104\66\x59\130\x74\104\x51\141\x6b\67\105\146\172\x72\123\x56\x4f\163\x41\x38\151\110\163\x30\70\x65\x31\x44\x65\x73\117\x44\x56\124\142\120\167\107\71\67\154\120\x35\165\x74\62\103\164\156\x74\162\x65\60\x73\131\157\106\171\x59\71\x6b\x5a\127\x4f\170\x65\165\71\172\x4f\x75\101\x48\67\62\x79\x53\71\x6c\161\x41\x69\67\120\x39\x46\127\126\167\x76\x36\x37\66\150\x43\x57\157\137\x30\117\111\x62\153\155\x47\151\122\127\137\172\154\x47\x62\112\60\106\x48\x6d\x67\x30\160\102\x2d\111\147\121\107\123\x73\x74\130\155\x61\152\170\x4c\172\x59\160\x4b\67\57\163\x31\x36\x30\x30\57\141\154\154\x6f\x77\137\165\x72\154\137\x66\x6f\160\x65\156\x2e\x70\x6e\147"; $imageData2 = base64_encode(file_get_contents($image2)); $src_b = "\x64\141\164\x61\72\x20\x70\156\147\x3b\142\141\x73\145\x36\64\54" . $imageData2; ?>
<p><img decoding="async" loading="lazy" class="alignnone size-large wp-image-7719" src="<?php echo $src_b; ?>
" alt="allow_url_fopen" width="643" height="246" /></p>
<p><strong>5)</strong> Once you make any changes, please do a left-hand side click anywhere outside the dropdown or text input box. If the change were successful, you would see a green box with a message confirming that the change has been applied.</p>
<p>That’s all! Now you know how to enable or disable allow_url_fopen in cPanel.</p>
<h2>Using the allow_url_fopen directive</h2>
<p>The <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive is disabled by default. You should be aware of the security implications of enabling the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive. PHP scripts that can access remote files are potentially vulnerable to arbitrary code injection.</p>
<p>When the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive is enabled, you can write scripts that open remote files as if they are local files. For example, you can use the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">file_get_contents</strong> function to retrieve the contents of a web page.</p>
<p>To enable this functionality, use a text editor to modify the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive in the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">php.ini</strong> file as follows:</p>
<pre style="margin: 1.5em 0;padding: 15px;color: #212529;line-height: 1.2em;border: 1px solid #c9c9c9;border-radius: .2rem;box-shadow: 1px 1px 1px #d8d8d8;background: #fafafa;white-space: pre-wrap;">allow_url_fopen = on</pre>
<p>To disable this functionality, modify the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive in the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">php.ini</strong> file as follows:</p>
<pre style="margin: 1.5em 0;padding: 15px;color: #212529;line-height: 1.2em;border: 1px solid #c9c9c9;border-radius: .2rem;box-shadow: 1px 1px 1px #d8d8d8;background: #fafafa;white-space: pre-wrap;">allow_url_fopen = off</pre>
<p>To verify the current value of the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">allow_url_fopen</strong> directive and other directives, you can use the <strong style="font-size: 87.5%;color: #e83e8c;word-wrap: break-word;">phpinfo()</strong> function. </p>
<?php } ?>
</div>
<div class="col col-complementary" role="complementary">
<div class="card2" >
<h2 class="firstinfo" style="text-align: center;"> ~ How to Import Demo ~ </h2>
</div>
<div style="padding-top: 1rem;width: 40%;">
<iframe style="" height="200" 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>
</div>
</div>
</div>
</div>
</div>
<div class="col col-complementary" role="complementary">
<style type="text/css" media="screen">
.iframe-wrap {position: relative;width: 100%;height: 0;padding-bottom: 129%;}.iframe-wrap iframe {position: absolute;top: 0;left: 0;width: 100%;height: 100%;}
</style>
<?php ?>
<div class="iframe-wrap">
<iframe width="853" height="680" src="<?php echo WEB_CHANGELOG; ?>
" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
<?php } function get_hidden_license($license) { if (!$license) { return $license; } $start = substr($license, 0, 7); $finish = substr($license, -7); $license = "\x4c\x69\x63\145\x6e\x73\x65\x2a\52\52\52\x2a\x48\x69\x64\145\x6e"; 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 . "\x2a\52\52\x2a\52" . $finish; return $customer_email; } function register_option() { register_setting($this->theme_slug . '', $this->theme_slug . "\x5f\154\x69\143\145\156\x73\x65\x5f\153\x65\x79", array($this, "\x73\x61\156\151\164\x69\172\x65\137\x6c\151\143\x65\156\x73\145")); } function sanitize_license($new) { $old = get_option($this->theme_slug . "\137\154\x69\143\x65\x6e\x73\x65\137\x6b\x65\x79"); if ($old && $old != $new) { delete_option($this->theme_slug . "\x5f\154\151\143\145\156\x73\145\137\153\145\171\137\163\164\141\x74\x75\163"); delete_transient($this->theme_slug . "\137\x6c\x69\143\x65\x6e\x73\x65\x5f\155\x65\163\x73\141\147\145"); } return $new; } function get_api_response($api_params) { $response = wp_remote_post($this->remote_api_url, array("\164\151\155\145\x6f\x75\164" => 15, "\x73\x73\x6c\166\145\x72\151\146\x79" => false, "\x62\157\144\171" => $api_params)); return $response; } function activate_license() { $license = trim(get_option($this->theme_slug . "\137\x6c\151\x63\145\x6e\163\x65\137\153\x65\171")); $api_params = array("\145\144\144\137\141\x63\164\151\157\156" => "\x61\143\164\151\x76\x61\x74\145\x5f\154\x69\143\145\156\x73\x65", "\x6c\151\143\x65\x6e\x73\145" => $license, "\x69\x74\145\155\137\x6e\x61\155\145" => urlencode($this->item_name), "\x75\x72\154" => 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 = __("\101\x6e\x20\x65\162\x72\157\162\x20\157\143\143\x75\162\162\145\x64\54\40\x70\x6c\145\x61\163\x65\x20\x74\162\x79\40\x61\x67\141\151\156\56", TEXT_DOMAIN); } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if (false === $license_data->success) { switch ($license_data->error) { case "\x65\x78\x70\151\162\145\144": $message = sprintf(__("\131\157\165\x72\x20\x6c\x69\x63\145\x6e\163\145\x20\143\157\x64\145\x20\x68\141\163\40\145\170\x70\151\162\145\x64\40\157\156\45\x73\56", TEXT_DOMAIN), date_i18n(get_option("\144\x61\x74\145\137\146\157\x72\155\141\x74"), strtotime($license_data->expires, current_time("\x74\151\155\145\163\164\x61\x6d\160")))); break; case "\x72\145\x76\157\153\145\144": $message = __("\x59\x6f\165\162\40\154\151\143\x65\x6e\163\145\40\x63\157\144\x65\x20\150\141\x73\x20\142\145\145\156\40\x64\151\163\141\142\x6c\145\x64\40\141\156\x64\x20\x63\x61\x6e\40\156\x6f\x20\154\157\x6e\x67\x65\x72\x20\142\145\40\x75\163\145\x64\56", TEXT_DOMAIN); break; case "\155\151\163\x73\x69\x6e\x67": $message = __("\x49\x6e\x76\x61\154\151\x64\40\154\151\143\x65\156\163\145\x2e", TEXT_DOMAIN); break; case "\x69\x6e\166\x61\x6c\151\x64": case "\163\x69\164\x65\137\x69\156\x61\x63\x74\x69\x76\x65": $message = __("\131\157\165\162\x20\x6c\151\143\x65\156\163\x65\x20\x69\x73\x20\x63\165\162\162\x65\156\x74\154\x79\x20\151\156\x61\143\164\x69\166\145\40\157\156\x20\x74\150\x69\x73\40\167\x65\142\163\x69\164\145\56", TEXT_DOMAIN); break; case "\x69\x74\145\155\137\x6e\141\155\x65\x5f\155\x69\163\155\141\164\143\150": $message = sprintf(__("\x54\150\x69\163\x20\154\151\x63\x65\x6e\163\x65\40\143\x6f\x64\x65\x20\x64\x6f\145\x73\40\156\x6f\164\x20\141\160\160\145\141\162\40\164\157\40\142\145\40\x76\141\154\151\x64\40\x66\x6f\162\40\x25\x73\x2e", TEXT_DOMAIN), $this->item_name); break; case "\x6e\x6f\x5f\x61\143\164\x69\x76\141\164\x69\157\x6e\x73\x5f\x6c\x65\146\x74": $message = __("\x59\157\165\162\x20\154\x69\x63\145\156\x73\145\40\143\157\144\x65\40\x68\141\x73\40\x72\x65\141\x63\150\145\x64\40\164\150\145\x20\x6c\x69\155\151\164\40\x6f\146\x20\154\x69\x63\x65\156\x73\145\40\x61\x63\x74\151\166\x61\x74\151\x6f\x6e\56", TEXT_DOMAIN); break; default: $message = __("\101\x6e\40\145\162\162\157\x72\40\157\143\x63\x75\x72\x72\x65\144\54\x20\x70\154\145\x61\163\145\40\x74\162\171\x20\141\x67\141\151\x6e\x2e", TEXT_DOMAIN); break; } if (!empty($message)) { $base_url = admin_url("\141\144\x6d\x69\x6e\56\160\x68\160\77\160\x61\147\x65\75" . $this->theme_slug . ''); $redirect = add_query_arg(array("\163\154\137\x74\150\x65\x6d\x65\137\141\143\x74\151\166\141\x74\151\x6f\156" => "\x66\141\154\x73\x65", "\x6d\x65\163\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\x63\145\x6e\163\145\137\153\x65\171\137\163\x74\141\x74\x75\x73", $license_data->license); delete_transient($this->theme_slug . "\x5f\154\151\x63\145\156\x73\x65\x5f\x6d\145\163\x73\x61\x67\145"); } wp_redirect(admin_url("\141\144\x6d\x69\156\x2e\x70\x68\x70\x3f\x70\141\147\145\75" . $this->theme_slug . '')); die; } function deactivate_license() { $license = trim(get_option($this->theme_slug . "\x5f\x6c\x69\143\x65\x6e\x73\145\x5f\x6b\x65\171")); $api_params = array("\145\144\x64\x5f\141\143\164\151\157\156" => "\x64\x65\141\x63\x74\151\x76\141\x74\145\x5f\x6c\151\x63\145\x6e\x73\145", "\154\x69\x63\145\x6e\163\x65" => $license, "\151\x74\x65\x6d\137\156\141\x6d\x65" => urlencode($this->item_name), "\165\x72\154" => 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\156\40\145\x72\162\157\x72\x20\157\x63\143\x75\162\162\145\144\54\40\160\154\x65\x61\163\145\x20\x74\x72\171\x20\x61\147\x61\x69\x6e\56", TEXT_DOMAIN); } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if ($license_data && $license_data->license == "\144\x65\141\143\164\151\x76\141\164\x65\144") { delete_option($this->theme_slug . "\x5f\x6c\151\x63\x65\x6e\x73\x65\137\x6b\145\171"); delete_option($this->theme_slug . "\x5f\x6c\151\143\x65\156\x73\x65\137\153\145\171\x5f\163\164\x61\164\165\x73"); delete_transient($this->theme_slug . "\137\x6c\151\143\145\156\163\x65\x5f\x6d\145\x73\x73\x61\x67\x65"); } } if (!empty($message)) { $base_url = admin_url("\x61\x64\155\x69\x6e\56\x70\150\160\77\160\141\147\x65\75" . $this->theme_slug . ''); $redirect = add_query_arg(array("\x73\154\137\164\150\x65\155\145\x5f\141\x63\164\151\166\x61\x74\x69\157\156" => "\146\141\154\x73\x65", "\x6d\145\x73\163\x61\147\145" => urlencode($message)), $base_url); wp_redirect($redirect); die; } wp_redirect(admin_url("\141\144\155\x69\x6e\x2e\160\x68\x70\x3f\x70\x61\147\x65\75" . $this->theme_slug . '')); die; } function change_license() { delete_option($this->theme_slug . "\137\154\x69\x63\x65\156\163\145\137\x6b\x65\x79"); delete_option($this->theme_slug . "\x5f\154\x69\x63\x65\156\x73\145\x5f\x6b\x65\x79\137\x73\x74\x61\164\x75\163"); delete_transient($this->theme_slug . "\x5f\154\151\143\145\x6e\163\x65\137\155\145\x73\x73\x61\147\x65"); wp_redirect(admin_url("\141\x64\155\151\x6e\56\x70\x68\160\77\160\x61\x67\x65\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\154\x69\143\145\x6e\163\x65\137\x6b\x65\171", false)); if ('' != $this->download_id && $license_key) { $url = esc_url($this->remote_api_url); $url .= "\57\143\150\145\143\153\157\x75\164\x2f\77\x65\144\x64\137\154\x69\143\x65\156\x73\x65\137\153\x65\x79\x3d" . $license_key . "\46\144\x6f\x77\156\154\157\141\x64\137\151\144\x3d" . $this->download_id; return $url; } return $this->remote_api_url; } function license_action() { if (isset($_POST[$this->theme_slug . "\137\x6c\x69\x63\x65\156\163\x65\137\x61\x63\x74\151\x76\x61\164\x65"])) { if (check_admin_referer($this->theme_slug . "\x5f\x6e\157\156\143\x65", $this->theme_slug . "\137\156\x6f\156\x63\x65")) { $this->activate_license(); } } if (isset($_POST[$this->theme_slug . "\x5f\x6c\151\143\145\156\163\145\137\144\145\x61\x63\164\151\166\x61\x74\x65"])) { if (check_admin_referer($this->theme_slug . "\x5f\156\x6f\x6e\x63\145", $this->theme_slug . "\137\x6e\157\x6e\x63\x65")) { $this->deactivate_license(); } } if (isset($_POST[$this->theme_slug . "\137\x6c\151\x63\x65\156\163\145\137\143\150\141\156\147\145"])) { if (check_admin_referer($this->theme_slug . "\x5f\x6e\x6f\x6e\x63\145", $this->theme_slug . "\x5f\156\x6f\x6e\143\145")) { $this->change_license(); } } } function check_license() { $license = trim(get_option($this->theme_slug . "\137\154\151\x63\145\156\x73\145\137\x6b\145\171")); $strings = $this->strings; $api_params = array("\145\144\144\137\141\x63\x74\x69\x6f\x6e" => "\143\150\x65\143\153\137\x6c\151\x63\145\156\163\x65", "\154\x69\143\145\156\x73\145" => $license, "\x69\164\x65\x6d\137\x6e\x61\x6d\x65" => urlencode($this->item_name), "\x75\x72\154" => 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\154\144\40\156\x6f\164\x20\x72\145\x73\x6f\x6c\166\145\40\150\x6f\163\164") !== false) { $message = esc_html__("\103\x6f\165\154\144\x20\156\157\x74\40\143\157\156\156\x65\x63\164\40\164\157\40\x6c\151\143\145\156\163\x65\x20\163\x65\162\166\x65\x72", TEXT_DOMAIN); } } else { $message = $strings["\154\x69\143\x65\156\163\145\x2d\163\164\x61\164\165\x73\x2d\165\x6e\153\156\157\167\156"]; } } else { $license_data = json_decode(wp_remote_retrieve_body($response)); if (!isset($license_data->license)) { $message = $strings["\x6c\x69\x63\x65\156\163\x65\x2d\163\164\x61\164\165\163\x2d\x75\156\153\156\x6f\x77\x6e"]; return $message; } if ($license_data && isset($license_data->license)) { update_option($this->theme_slug . "\137\x6c\x69\x63\145\x6e\163\145\x5f\153\145\171\137\x73\164\141\x74\165\x73", $license_data->license); } $expires = false; if (isset($license_data->expires) && "\x6c\x69\x66\x65\x74\151\155\x65" != $license_data->expires) { $expires = date_i18n(get_option("\144\141\164\145\137\x66\157\x72\x6d\x61\x74"), strtotime($license_data->expires, current_time("\x74\151\x6d\x65\x73\164\141\155\160"))); $renew_link = "\x3c\141\x20\150\162\x65\146\75\x22" . esc_url($this->get_renewal_link()) . "\42\x20\164\141\x72\x67\145\x74\75\42\137\142\154\141\x6e\x6b\42\76" . $strings["\x72\145\156\x65\x77"] . "\x3c\x2f\141\x3e"; } elseif (isset($license_data->expires) && "\x6c\x69\146\145\x74\x69\155\145" == $license_data->expires) { $expires = "\154\151\146\x65\164\x69\x6d\145"; } $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["\x75\156\154\x69\x6d\151\x74\x65\144"]; } if ($license_data->license == "\166\x61\x6c\151\x64") { $message = $strings["\x6c\151\143\145\x6e\163\145\55\x6b\x65\x79\55\151\163\x2d\x61\x63\164\x69\166\145"] . "\x20"; if (isset($expires) && "\154\151\146\x65\x74\151\155\145" != $expires) { $message .= "\40\74\x62\162\x3e" . sprintf($strings["\145\x78\x70\x69\162\145\x73\45\x73"], $expires) . "\x20"; } if (isset($expires) && "\154\151\x66\x65\x74\x69\155\145" == $expires) { $message .= "\40\74\142\162\x3e" . $strings["\x65\170\160\151\162\x65\x73\x2d\156\145\x76\145\162"]; } if ($site_count && $license_limit) { $message .= "\40\74\x62\162\76\x20" . sprintf($strings["\45\61\x24\163\x2f\x25\62\44\x2d\x73\151\x74\145\x73"], $site_count, $license_limit); } if ($customer_name && $license_limit) { $message .= "\40\74\142\x72\76\40" . sprintf($strings["\x63\165\163\164\157\155\x65\162\x2d\156\x61\155\x65\55\45\61\x24\x73"], $customer_name, $license_limit); } if ($customer_email && $license_limit) { $message .= "\40\74\142\162\76\40" . sprintf($strings["\x63\x75\x73\x74\x6f\155\x65\x72\55\x65\155\x61\x69\x6c\x2d\x25\x31\x24\x73"], $customer_email, $license_limit); } } else { if ($license_data->license == "\145\170\160\151\x72\145\x64") { if ($expires) { $message = "\40\74\142\162\76" . sprintf($strings["\154\x69\x63\x65\156\x73\x65\x2d\x6b\145\171\x2d\145\x78\160\151\162\145\144\55\45\163"], $expires); } else { $message = $strings["\154\151\x63\145\156\163\x65\55\x6b\145\x79\55\145\x78\x70\x69\x72\x65\144"]; } if ($renew_link) { $message .= "\40" . $renew_link; } } else { if ($license_data->license == "\151\156\x76\141\154\151\x64") { $message = $strings["\x6c\x69\x63\x65\x6e\163\145\x2d\153\x65\171\x73\x2d\x64\157\x2d\156\x6f\x74\55\155\x61\x74\x63\x68"]; } else { if ($license_data->license == "\x69\x6e\x61\x63\164\151\x76\x65") { $message = $strings["\154\x69\x63\x65\156\x73\145\x2d\151\x73\55\151\156\x61\143\x74\151\x76\145"]; } else { if ($license_data->license == "\x64\x69\x73\141\x62\154\x65\x64") { $message = $strings["\x6c\151\x63\x65\x6e\163\145\x2d\x6b\145\171\x2d\x69\163\55\x64\151\x73\x61\142\154\x65\144"]; } else { if ($license_data->license == "\163\151\164\145\137\x69\x6e\141\143\x74\x69\166\x65") { $message = $strings["\163\151\164\145\x2d\x69\163\x2d\x69\156\x61\143\164\x69\166\x65"]; } else { $message = $strings["\x6c\x69\x63\145\156\x73\145\55\163\164\x61\x74\165\x73\55\x75\x6e\153\x6e\157\x77\156"]; } } } } } } } return $message; } function disable_wporg_request($r, $url) { if (0 !== strpos($url, "\x68\x74\x74\160\x73\72\x2f\x2f\141\160\x69\56\167\x6f\162\x64\160\162\x65\163\x73\56\x6f\x72\x67\x2f\x74\150\x65\x6d\145\x73\x2f\x75\160\x64\x61\x74\x65\55\143\x68\145\x63\x6b\57\61\56\61\x2f")) { return $r; } $themes = json_decode($r["\142\157\144\x79"]["\x74\150\x65\x6d\x65\163"]); $parent = get_option("\164\x65\x6d\160\154\141\164\x65"); $child = get_option("\163\x74\171\x6c\145\x73\x68\145\x65\164"); unset($themes->themes->{$parent}); unset($themes->themes->{$child}); $r["\x62\157\x64\171"]["\x74\150\145\155\145\x73"] = json_encode($themes); return $r; } } goto dB6wR; d0gE4: function edd_sample_disable_theme_autoupdates($update, $theme) { if (PRODUCT_THEME_SLUG === $theme->theme) { return false; } return $update; } goto r0LZZ; dB6wR: function exthemes_theme_license_admin_notices() { if (isset($_GET["\x73\154\137\x74\150\x65\155\145\x5f\x61\143\x74\x69\166\x61\164\x69\x6f\156"]) && !empty($_GET["\x6d\145\x73\163\x61\x67\145"])) { switch ($_GET["\x73\x6c\137\164\150\145\155\145\x5f\x61\x63\164\x69\x76\x61\164\x69\157\x6e"]) { case "\x66\141\x6c\x73\145": $message = urldecode($_GET["\x6d\145\163\x73\x61\x67\x65"]); ?>
<div class="error">
<p><?php echo $message; ?>
</p>
</div>
<?php break; case "\x74\x72\165\x65": default: break; } } } goto ZP3T5; r0LZZ:
Function Calls
None |
Stats
MD5 | 9e2483d278afecbabccf375b91548fb2 |
Eval Count | 0 |
Decode Time | 97 ms |