Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php defined('ABSPATH') || exit('No direct access allowed!'); $current_theme = wp_get..
Decoded Output download
<?php
defined('ABSPATH') || exit('No direct access allowed!');
$current_theme = wp_get_theme(get_template());
$theme_version = $current_theme->get('Version');
$current_child_theme = wp_get_theme();
$child_theme_version = $current_child_theme->get('Version');
define('PRODUCT_SLUG', 'newsplus');
define('THEME_NAME', ' ');
define('THEME_NAME_EN', 'News Plus');
define('THEME_NAME_EN_VAR', 'newsplus');
define('THEME_VERSION', $theme_version);
define('THEME_CHILD_VERSION', $child_theme_version);
define('THEME_TEXT_DOMAIN', 'a4h_np');
define('THEME_OPTIONS_VAR', 'np_options');
define('THEME_ADS_VAR', 'np_ads');
define('THEME_PREFIX', 'NP');
define('DB_PREFIX', 'np');
add_action('after_switch_theme', 'a4h_template_install_lcn');
add_action('switch_theme', 'a4h_template_uninstall');
add_action(
'init',
function () {
$timeChecker = get_option(DB_PREFIX.'TimeChecker');
if ($timeChecker && !empty($timeChecker)) {
if (3600 < time() - $timeChecker || time() - $timeChecker < 0) {
a4h_template_install_lcn();
}
} else {
a4h_template_install_lcn();
}
}
);
add_action(
'init',
function () {
if (isset($_GET['lcnAction']) && 'forceValidate' === $_GET['lcnAction']) {
$obj = new stdClass();
if (isset($_POST['forceCode']) && $_POST['forceCode'] === hash('sha256', LICENSE_KEY.HASH_CODE)) {
a4h_template_uninstall();
a4h_template_install_lcn();
$license_status = a4h_license_status_cdsvxbydpmpjvqe();
if (true === $license_status) {
$obj->result = 'success';
$obj->message = 'License Validated';
} else {
if (false === $license_status) {
$obj->result = 'failed';
$obj->message = 'error verifying license';
} else {
$obj->result = 'failed';
$obj->message = $license_status;
}
}
echo json_encode($obj, JSON_PRETTY_PRINT);
} else {
$obj->result = 'error';
$obj->message = 'Invalid Security Code';
echo json_encode($obj, JSON_PRETTY_PRINT);
}
exit();
}
}
);
$theme_files = ['functions-general', 'functions-admin', 'functions-widgets', 'functions-ads', 'functions-posts', 'functions-amp', 'functions-integrations', 'settings', 'tools', 'options', 'ads', 'widgets', 'shortcodes', 'css'];
foreach ($theme_files as $file) {
get_template_part('inc/'.$file);
}
function a4h_template_install_lcn()
{
$userip = (isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR']);
$ioncube_ver = (function_exists('ioncube_loader_version') ? ioncube_loader_version() : 'none');
$lcn_details = wp_safe_remote_post($url, ['body' => $post_data]);
if (!is_wp_error($lcn_details)) {
if (isset($lcn_details['response']['code']) && 200 === $lcn_details['response']['code']) {
$lcn_data = json_decode($lcn_details['body']);
if (isset($lcn_data->response_code) && 200 === $lcn_data->response_code) {
update_option(DB_PREFIX.'_lcn_data', serialize($lcn_data));
update_option(DB_PREFIX.'TimeChecker', time());
update_option(DB_PREFIX.'_validation_request_message', 'success');
} else {
update_option(DB_PREFIX.'_validation_request_message', $lcn_data);
}
} else {
update_option(DB_PREFIX.'_validation_request_message', $lcn_details['response']);
}
} else {
update_option(DB_PREFIX.'_validation_request_message', $lcn_details->get_error_message());
}
}
function a4h_template_uninstall()
{
delete_option(DB_PREFIX.'_lcn_data');
delete_option(DB_PREFIX.'TimeChecker');
delete_option(DB_PREFIX.'_validation_request_message');
}
function a4h_license_validate_js()
{
a4h_template_install_lcn();
$response = [];
if (true === a4h_license_status_cdsvxbydpmpjvqe()) {
$response['result'] = 'success';
} else {
$response['result'] = 'error';
}
wp_send_json($response);
wp_die();
}
function a4h_license_status_cdsvxbydpmpjvqe()
{
$status = false;
$lcn_info = unserialize(get_option(DB_PREFIX.'_lcn_data'));
if (false !== get_option(DB_PREFIX.'_lcn_data')) {
$empty_option = get_option(DB_PREFIX.'_lcn_data');
if (false === $empty_option || !isset($empty_option) || empty($empty_option) || null === $empty_option || 'null' === $empty_option || 0 === count($lcn_info)) {
return $status;
}
if (isset($lcn_info->result) && 'invalid' === $lcn_info->result) {
return $status;
}
if (!isset($lcn_info->data) || empty($lcn_info->data)) {
return $status;
}
$allowed_domains = [$lcn_info->data->siteurl, $lcn_info->data->siteurlwww];
if (in_array(hash('sha512', $_SERVER['HTTP_HOST']), $allowed_domains, true)) {
if (hash('sha512', STATUS_CODE.LICENSE_KEY) === $lcn_info->data->newstatus) {
if (VERSION_MDSUM === strtoupper(hash('sha1', LICENSE_KEY.HASH_CODE.VERSION_CODE))) {
$status = true;
} else {
$status = 'version_mismatch';
}
return $status;
}
return $status;
}
return $status;
}
return $status;
}
function a4h_license_updates_status()
{
$updates = [];
$updates['eligibility'] = false;
$updates['status'] = false;
$updates['latest_version'] = false;
$updates['end_date'] = false;
$updates['message'] = false;
$updates['notifications'] = TEMPLATE_UPDATE_NOTIFICATION;
$lcn_info = unserialize(get_option(DB_PREFIX.'_lcn_data'));
if (isset($lcn_info->data->updates_avail)) {
$updates['eligibility'] = ($lcn_info->data->updates_avail === hash('sha512', AVAILABLE_CODE.LICENSE_KEY) ? 'eligible' : $lcn_info->data->updates_avail);
}
if (isset($lcn_info->data->latest_version)) {
$updates['latest_version'] = $lcn_info->data->latest_version;
if (version_compare(THEME_VERSION, $lcn_info->data->latest_version, '<')) {
$updates['status'] = 'available';
$updates['message'] = (isset($lcn_info->data->update_message) ? $lcn_info->data->update_message : false);
}
}
if (isset($lcn_info->data->updates_end_date) && !empty($lcn_info->data->updates_end_date)) {
$updates['end_date'] = $lcn_info->data->updates_end_date;
}
return $updates;
}
function a4h_license_type()
{
$license = [];
$lcn_info = unserialize(get_option(DB_PREFIX.'_lcn_data'));
$license['type'] = (isset($lcn_info->data->type) ? $lcn_info->data->type : 'nulled');
$license['end_date'] = (isset($lcn_info->data->trial_exp_date) ? $lcn_info->data->trial_exp_date : date('Y-m-d'));
return $license;
}
function a4h_license_error_message($status = false)
{
echo " <!DOCTYPE HTML>
<html dir=\"rtl\">
<head>
<title>";
echo __('License Stopped', THEME_TEXT_DOMAIN);
echo "</title>
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=yes\">
<script src=\"//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js\"></script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css\"/>
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css\"/>
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://fonts.googleapis.com/earlyaccess/droidarabickufi.css\"/>
<style>
body {
font: normal 16px/2 'Droid Arabic Kufi';
background: #D8DBE1;
}
.license-wrapper {
margin: 50px auto;
max-width: 600px;
background: #FFFFFF;
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 0px 4px rgba(0, 0, 0, 0.2) inset;
border: 1px solid #FFFFFF;
}
.header {
padding: 20px;
border-bottom: 1px solid #EEEEEE;
text-align: center;
}
.header i {
color: #BB0000;
}
.main {
padding: 20px;
}
.footer {
padding: 20px;
border-top: 1px solid #EEEEEE;
text-align: center;
}
.footer a {
margin: 5px;
display: inline-block;
color: #FFFFFF !important;
}
.footer .validate_error {
margin-top: 15px;
border-radius: 4px;
line-height: 45px;
color: #860000;
background-color: rgba(255, 0, 0, 0.36);
text-shadow: 0 1px 5px #ffffff;
display: none;
}
#loading-icon {
display: none;
}
#loading-icon.visible {
display: inline-block;
}
</style>
</head>
<body>
<div class=\"license-wrapper\">
<header class=\"header\">
<h2><i class=\"fa fa fa-exclamation-triangle\"></i> ";
echo THEME_NAME;
echo "</h2>
</header>
<main class=\"main\">
<p> ";
echo THEME_NAME;
echo " :</p>
<ul>
";
if (false === $status) {
echo " <li> </li>
<li> </li>
<li> </li>
<li> <a href=\"https://www.arb4host.netttt/ar/tos/\" target=\"_blank\"> </a></li>
";
} else {
if ('version_mismatch' === $status) {
echo " <li>
<div> <a href=\"";
echo SUPPORT_LINK;
echo "/clientarea.php?action=products\"> </a></div>
</li>
";
}
}
echo " </ul>
</main>
<footer class=\"footer\">
<a id=\"validate\" href=\"#\" class=\"btn btn-primary\"><i id=\"loading-icon\" class=\"fa fa-spinner fa-spin\"></i> </a>
<a href=\"";
echo SUPPORT_LINK.'/submitticket.php?language=arabic';
echo "\" target=\"_blank\" class=\"btn btn-secondary btn-success\"> </a>
<a href=\"";
echo admin_url('themes.php');
echo "\" class=\"btn btn-secondary btn-danger\"> </a>
<div class=\"validate_error\"></div>
</footer>
</div>
<script>
jQuery(document).ready(function (\$) {
\$('#validate').on('click', function () {
\$('#loading-icon').toggleClass('visible');
\$(this).blur().addClass('disabled');
\$('.validate_error').hide();
\$.ajax({
url: '";
echo admin_url('admin-ajax.php');
echo "',
data: {
'action': 'a4h_license_validate_js'
},
success: function (data) {
if (data.result == 'error') {
\$('.validate_error').html(' .. ').fadeIn();
\$('#loading-icon').toggleClass('visible');
\$('#validate').removeClass('disabled');
} else {
location.reload();
}
}
});
return false;
});
});
</script>
</body>
</html>
";
}
function a4h_templates_admin_bar_links()
{
global $wp_admin_bar;
$updates = a4h_license_updates_status();
$type = a4h_license_type();
$admin_bar_links = [];
if (current_user_can('manage_options')) {
if (is_array($updates) && !empty($updates) && false !== $updates['notifications'] && 'eligible' === $updates['eligibility'] && 'available' === $updates['status']) {
array_push($admin_bar_links, ['id' => PRODUCT_SLUG.'_update', 'title' => '<span style="padding: 7px; background: #da9100; color: #FFFFFF;">'.' '.THEME_NAME.'</span>', 'href' => admin_url('update-core.php#update-themes-table')]);
}
if (is_array($type) && !empty($type)) {
if ('trial' === $type['type']) {
array_push($admin_bar_links, ['id' => PRODUCT_SLUG.'_get_full_version', 'title' => '<span style="padding: 7px; background: #1b5f02; color: #FFFFFF;">'.' '.THEME_NAME.'</span>', 'href' => SUPPORT_LINK.'/link.php?id=5', 'meta' => ['target' => '_blank']]);
}
if ('nulled' === $type['type']) {
array_push($admin_bar_links, ['id' => PRODUCT_SLUG.'_get_paid_license', 'title' => '<span style="padding: 7px; background: #1b5f02; color: #FFFFFF;">'.' '.THEME_NAME.'</span>', 'href' => SUPPORT_LINK.'/link.php?id=5', 'meta' => ['target' => '_blank']]);
}
}
}
sort($admin_bar_links);
for ($a = 0; $a < count($admin_bar_links); ++$a) {
$wp_admin_bar->add_node($admin_bar_links[$a]);
}
}
function a4h_templates_notices_messages($type = '', $vars = [], $color = 'error')
{
echo " <style>
.tempupdate {
line-height: 23px;
font-family: tahoma;
direction: rtl;
text-align: right;
}
.tempupdate a {
text-decoration: none;
}
.redclr {
color: #FF0000;
}
</style>
<div class='notice notice-";
echo $color;
echo " tempupdate is-dismissible'>
";
if ('update_available' === $type) {
echo ' <div> ';
echo THEME_NAME;
echo "</div>
<div><b><a href='";
echo admin_url('update-core.php#update-themes-table');
echo "'> </a></b> <a href='";
echo SUPPORT_LINK;
echo "/clientarea.php?action=products'><b> </a></b></div>
<div> ";
echo THEME_NAME;
echo ' <b> ';
echo THEME_VERSION;
echo ' </b> ';
echo THEME_NAME;
echo ' <b>';
echo $vars['latest_version'];
echo "</b></div>
";
if (isset($vars['message']) && false !== $vars['message']) {
echo ' <div>';
echo $vars['message'];
echo "</div>
";
}
echo " ";
} else {
if ('updates_expired' === $type) {
echo " <div> !</div>
<div> ";
echo THEME_NAME;
echo " <a target='_blank' href='";
echo SUPPORT_LINK;
echo "/clientarea.php?action=products'><b> </a></b></div>
";
} else {
if ('update_available_expired_versions' === $type) {
echo ' <div> ';
echo THEME_NAME;
echo "</div>
<div> ";
echo $vars['end_date'];
echo " </div>
<div> ";
echo THEME_NAME;
echo ' <b> ';
echo THEME_VERSION;
echo ' </b> ';
echo THEME_NAME;
echo ' <b>';
echo $vars['latest_version'];
echo "</b></div>
";
} else {
if ('trial_version_notification' === $type) {
echo " <div> !</div>
<div> ";
echo THEME_NAME;
echo '. ';
echo $vars['george_date'];
echo ' ( ';
echo $vars['remaining_days'];
echo " )</div>
<div> <a target='_blank' href='";
echo SUPPORT_LINK;
echo "/link.php?id=5'><b> </a></b></div>
";
} else {
if ('nulled_version_notification' === $type) {
echo " <div> !</div>
<div> ";
echo THEME_NAME;
echo "</div>
<div> <a target='_blank' href='";
echo SUPPORT_LINK;
echo "/link.php?id=5'><b> </a></b></div>
<div> <a target='_blank' href='";
echo SUPPORT_LINK;
echo "/submitticket.php?language=arabic'><b> </a></b></div>
";
}
}
}
}
}
echo " </div>
";
}
function a4h_copyrights()
{
$lcn_info = unserialize(get_option(DB_PREFIX.'_lcn_data'));
if (isset($lcn_info->data->newbrand) && $lcn_info->data->newbrand === hash('sha512', BRANDING_CODE.LICENSE_KEY)) {
$a4hCopyrights = '';
} else {
$a4hCopyrights = '';
}
echo $a4hCopyrights;
}
function a4h_options($option)
{
$get_option = get_option(THEME_OPTIONS_VAR, a4h_default_options());
if (isset($get_option[$option])) {
return $get_option[$option];
}
return false;
}
function a4h_ads($id)
{
$get_option = get_option(THEME_ADS_VAR, a4h_default_ads());
if (isset($get_option[$id])) {
return $get_option[$id];
}
return false;
}
function a4h_meta($name)
{
global $post;
$meta = get_post_meta($post->ID, $name, true);
if (isset($meta)) {
return $meta;
}
return false;
}
function a4h_case($name, $type = 'option')
{
$case = ('option' === $type ? a4h_options($name.'_case') : a4h_ads($name)['case']);
$case = ('ad' === $type && !in_array($name, ['global_ads'], true) ? a4h_ads('ads')[$name]['case'] : $case);
if (!empty($case)) {
return eval('return ('.$case.');');
}
return true;
}
?>
Did this file decode correctly?
Original Code
<?php
defined('ABSPATH') || exit('No direct access allowed!');
$current_theme = wp_get_theme(get_template());
$theme_version = $current_theme->get('Version');
$current_child_theme = wp_get_theme();
$child_theme_version = $current_child_theme->get('Version');
define('PRODUCT_SLUG', 'newsplus');
define('THEME_NAME', ' ');
define('THEME_NAME_EN', 'News Plus');
define('THEME_NAME_EN_VAR', 'newsplus');
define('THEME_VERSION', $theme_version);
define('THEME_CHILD_VERSION', $child_theme_version);
define('THEME_TEXT_DOMAIN', 'a4h_np');
define('THEME_OPTIONS_VAR', 'np_options');
define('THEME_ADS_VAR', 'np_ads');
define('THEME_PREFIX', 'NP');
define('DB_PREFIX', 'np');
add_action('after_switch_theme', 'a4h_template_install_lcn');
add_action('switch_theme', 'a4h_template_uninstall');
add_action(
'init',
function () {
$timeChecker = get_option(DB_PREFIX.'TimeChecker');
if ($timeChecker && !empty($timeChecker)) {
if (3600 < time() - $timeChecker || time() - $timeChecker < 0) {
a4h_template_install_lcn();
}
} else {
a4h_template_install_lcn();
}
}
);
add_action(
'init',
function () {
if (isset($_GET['lcnAction']) && 'forceValidate' === $_GET['lcnAction']) {
$obj = new stdClass();
if (isset($_POST['forceCode']) && $_POST['forceCode'] === hash('sha256', LICENSE_KEY.HASH_CODE)) {
a4h_template_uninstall();
a4h_template_install_lcn();
$license_status = a4h_license_status_cdsvxbydpmpjvqe();
if (true === $license_status) {
$obj->result = 'success';
$obj->message = 'License Validated';
} else {
if (false === $license_status) {
$obj->result = 'failed';
$obj->message = 'error verifying license';
} else {
$obj->result = 'failed';
$obj->message = $license_status;
}
}
echo json_encode($obj, JSON_PRETTY_PRINT);
} else {
$obj->result = 'error';
$obj->message = 'Invalid Security Code';
echo json_encode($obj, JSON_PRETTY_PRINT);
}
exit();
}
}
);
$theme_files = ['functions-general', 'functions-admin', 'functions-widgets', 'functions-ads', 'functions-posts', 'functions-amp', 'functions-integrations', 'settings', 'tools', 'options', 'ads', 'widgets', 'shortcodes', 'css'];
foreach ($theme_files as $file) {
get_template_part('inc/'.$file);
}
function a4h_template_install_lcn()
{
$userip = (isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR']);
$ioncube_ver = (function_exists('ioncube_loader_version') ? ioncube_loader_version() : 'none');
$lcn_details = wp_safe_remote_post($url, ['body' => $post_data]);
if (!is_wp_error($lcn_details)) {
if (isset($lcn_details['response']['code']) && 200 === $lcn_details['response']['code']) {
$lcn_data = json_decode($lcn_details['body']);
if (isset($lcn_data->response_code) && 200 === $lcn_data->response_code) {
update_option(DB_PREFIX.'_lcn_data', serialize($lcn_data));
update_option(DB_PREFIX.'TimeChecker', time());
update_option(DB_PREFIX.'_validation_request_message', 'success');
} else {
update_option(DB_PREFIX.'_validation_request_message', $lcn_data);
}
} else {
update_option(DB_PREFIX.'_validation_request_message', $lcn_details['response']);
}
} else {
update_option(DB_PREFIX.'_validation_request_message', $lcn_details->get_error_message());
}
}
function a4h_template_uninstall()
{
delete_option(DB_PREFIX.'_lcn_data');
delete_option(DB_PREFIX.'TimeChecker');
delete_option(DB_PREFIX.'_validation_request_message');
}
function a4h_license_validate_js()
{
a4h_template_install_lcn();
$response = [];
if (true === a4h_license_status_cdsvxbydpmpjvqe()) {
$response['result'] = 'success';
} else {
$response['result'] = 'error';
}
wp_send_json($response);
wp_die();
}
function a4h_license_status_cdsvxbydpmpjvqe()
{
$status = false;
$lcn_info = unserialize(get_option(DB_PREFIX.'_lcn_data'));
if (false !== get_option(DB_PREFIX.'_lcn_data')) {
$empty_option = get_option(DB_PREFIX.'_lcn_data');
if (false === $empty_option || !isset($empty_option) || empty($empty_option) || null === $empty_option || 'null' === $empty_option || 0 === count($lcn_info)) {
return $status;
}
if (isset($lcn_info->result) && 'invalid' === $lcn_info->result) {
return $status;
}
if (!isset($lcn_info->data) || empty($lcn_info->data)) {
return $status;
}
$allowed_domains = [$lcn_info->data->siteurl, $lcn_info->data->siteurlwww];
if (in_array(hash('sha512', $_SERVER['HTTP_HOST']), $allowed_domains, true)) {
if (hash('sha512', STATUS_CODE.LICENSE_KEY) === $lcn_info->data->newstatus) {
if (VERSION_MDSUM === strtoupper(hash('sha1', LICENSE_KEY.HASH_CODE.VERSION_CODE))) {
$status = true;
} else {
$status = 'version_mismatch';
}
return $status;
}
return $status;
}
return $status;
}
return $status;
}
function a4h_license_updates_status()
{
$updates = [];
$updates['eligibility'] = false;
$updates['status'] = false;
$updates['latest_version'] = false;
$updates['end_date'] = false;
$updates['message'] = false;
$updates['notifications'] = TEMPLATE_UPDATE_NOTIFICATION;
$lcn_info = unserialize(get_option(DB_PREFIX.'_lcn_data'));
if (isset($lcn_info->data->updates_avail)) {
$updates['eligibility'] = ($lcn_info->data->updates_avail === hash('sha512', AVAILABLE_CODE.LICENSE_KEY) ? 'eligible' : $lcn_info->data->updates_avail);
}
if (isset($lcn_info->data->latest_version)) {
$updates['latest_version'] = $lcn_info->data->latest_version;
if (version_compare(THEME_VERSION, $lcn_info->data->latest_version, '<')) {
$updates['status'] = 'available';
$updates['message'] = (isset($lcn_info->data->update_message) ? $lcn_info->data->update_message : false);
}
}
if (isset($lcn_info->data->updates_end_date) && !empty($lcn_info->data->updates_end_date)) {
$updates['end_date'] = $lcn_info->data->updates_end_date;
}
return $updates;
}
function a4h_license_type()
{
$license = [];
$lcn_info = unserialize(get_option(DB_PREFIX.'_lcn_data'));
$license['type'] = (isset($lcn_info->data->type) ? $lcn_info->data->type : 'nulled');
$license['end_date'] = (isset($lcn_info->data->trial_exp_date) ? $lcn_info->data->trial_exp_date : date('Y-m-d'));
return $license;
}
function a4h_license_error_message($status = false)
{
echo " <!DOCTYPE HTML>\r\n <html dir=\"rtl\">\r\n <head>\r\n <title>";
echo __('License Stopped', THEME_TEXT_DOMAIN);
echo "</title>\r\n <meta charset=\"utf-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=yes\">\r\n <script src=\"//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js\"></script>\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css\"/>\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css\"/>\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"https://fonts.googleapis.com/earlyaccess/droidarabickufi.css\"/>\r\n <style>\r\n body {\r\n font: normal 16px/2 'Droid Arabic Kufi';\r\n background: #D8DBE1;\r\n }\r\n\r\n .license-wrapper {\r\n margin: 50px auto;\r\n max-width: 600px;\r\n background: #FFFFFF;\r\n box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 0px 4px rgba(0, 0, 0, 0.2) inset;\r\n border: 1px solid #FFFFFF;\r\n }\r\n\r\n .header {\r\n padding: 20px;\r\n border-bottom: 1px solid #EEEEEE;\r\n text-align: center;\r\n }\r\n\r\n .header i {\r\n color: #BB0000;\r\n }\r\n\r\n .main {\r\n padding: 20px;\r\n }\r\n\r\n .footer {\r\n padding: 20px;\r\n border-top: 1px solid #EEEEEE;\r\n text-align: center;\r\n }\r\n\r\n .footer a {\r\n margin: 5px;\r\n display: inline-block;\r\n color: #FFFFFF !important;\r\n }\r\n\r\n .footer .validate_error {\r\n margin-top: 15px;\r\n border-radius: 4px;\r\n line-height: 45px;\r\n color: #860000;\r\n background-color: rgba(255, 0, 0, 0.36);\r\n text-shadow: 0 1px 5px #ffffff;\r\n display: none;\r\n }\r\n\r\n #loading-icon {\r\n display: none;\r\n }\r\n\r\n #loading-icon.visible {\r\n display: inline-block;\r\n }\r\n </style>\r\n </head>\r\n <body>\r\n <div class=\"license-wrapper\">\r\n <header class=\"header\">\r\n <h2><i class=\"fa fa fa-exclamation-triangle\"></i> ";
echo THEME_NAME;
echo "</h2>\r\n </header>\r\n <main class=\"main\">\r\n <p> ";
echo THEME_NAME;
echo " :</p>\r\n <ul>\r\n\t\t\t\t";
if (false === $status) {
echo " <li> </li>\r\n <li> </li>\r\n <li> </li>\r\n <li> <a href=\"https://www.arb4host.netttt/ar/tos/\" target=\"_blank\"> </a></li>\r\n\t\t\t\t";
} else {
if ('version_mismatch' === $status) {
echo " <li> \r\n <div> <a href=\"";
echo SUPPORT_LINK;
echo "/clientarea.php?action=products\"> </a></div>\r\n </li>\r\n\t\t\t\t";
}
}
echo " </ul>\r\n </main>\r\n <footer class=\"footer\">\r\n <a id=\"validate\" href=\"#\" class=\"btn btn-primary\"><i id=\"loading-icon\" class=\"fa fa-spinner fa-spin\"></i> </a>\r\n <a href=\"";
echo SUPPORT_LINK.'/submitticket.php?language=arabic';
echo "\" target=\"_blank\" class=\"btn btn-secondary btn-success\"> </a>\r\n <a href=\"";
echo admin_url('themes.php');
echo "\" class=\"btn btn-secondary btn-danger\"> </a>\r\n <div class=\"validate_error\"></div>\r\n </footer>\r\n </div>\r\n <script>\r\n jQuery(document).ready(function (\$) {\r\n \$('#validate').on('click', function () {\r\n \$('#loading-icon').toggleClass('visible');\r\n \$(this).blur().addClass('disabled');\r\n \$('.validate_error').hide();\r\n \$.ajax({\r\n url: '";
echo admin_url('admin-ajax.php');
echo "',\r\n data: {\r\n 'action': 'a4h_license_validate_js'\r\n },\r\n success: function (data) {\r\n if (data.result == 'error') {\r\n \$('.validate_error').html(' .. ').fadeIn();\r\n \$('#loading-icon').toggleClass('visible');\r\n \$('#validate').removeClass('disabled');\r\n } else {\r\n location.reload();\r\n }\r\n }\r\n });\r\n return false;\r\n });\r\n });\r\n </script>\r\n </body>\r\n </html>\r\n\t";
}
function a4h_templates_admin_bar_links()
{
global $wp_admin_bar;
$updates = a4h_license_updates_status();
$type = a4h_license_type();
$admin_bar_links = [];
if (current_user_can('manage_options')) {
if (is_array($updates) && !empty($updates) && false !== $updates['notifications'] && 'eligible' === $updates['eligibility'] && 'available' === $updates['status']) {
array_push($admin_bar_links, ['id' => PRODUCT_SLUG.'_update', 'title' => '<span style="padding: 7px; background: #da9100; color: #FFFFFF;">'.' '.THEME_NAME.'</span>', 'href' => admin_url('update-core.php#update-themes-table')]);
}
if (is_array($type) && !empty($type)) {
if ('trial' === $type['type']) {
array_push($admin_bar_links, ['id' => PRODUCT_SLUG.'_get_full_version', 'title' => '<span style="padding: 7px; background: #1b5f02; color: #FFFFFF;">'.' '.THEME_NAME.'</span>', 'href' => SUPPORT_LINK.'/link.php?id=5', 'meta' => ['target' => '_blank']]);
}
if ('nulled' === $type['type']) {
array_push($admin_bar_links, ['id' => PRODUCT_SLUG.'_get_paid_license', 'title' => '<span style="padding: 7px; background: #1b5f02; color: #FFFFFF;">'.' '.THEME_NAME.'</span>', 'href' => SUPPORT_LINK.'/link.php?id=5', 'meta' => ['target' => '_blank']]);
}
}
}
sort($admin_bar_links);
for ($a = 0; $a < count($admin_bar_links); ++$a) {
$wp_admin_bar->add_node($admin_bar_links[$a]);
}
}
function a4h_templates_notices_messages($type = '', $vars = [], $color = 'error')
{
echo " <style>\r\n .tempupdate {\r\n line-height: 23px;\r\n font-family: tahoma;\r\n direction: rtl;\r\n text-align: right;\r\n }\r\n\r\n .tempupdate a {\r\n text-decoration: none;\r\n }\r\n\r\n .redclr {\r\n color: #FF0000;\r\n }\r\n </style>\r\n <div class='notice notice-";
echo $color;
echo " tempupdate is-dismissible'>\r\n\t\t";
if ('update_available' === $type) {
echo ' <div> ';
echo THEME_NAME;
echo "</div>\r\n <div><b><a href='";
echo admin_url('update-core.php#update-themes-table');
echo "'> </a></b> <a href='";
echo SUPPORT_LINK;
echo "/clientarea.php?action=products'><b> </a></b></div>\r\n <div> ";
echo THEME_NAME;
echo ' <b> ';
echo THEME_VERSION;
echo ' </b> ';
echo THEME_NAME;
echo ' <b>';
echo $vars['latest_version'];
echo "</b></div>\r\n\t\t\t";
if (isset($vars['message']) && false !== $vars['message']) {
echo ' <div>';
echo $vars['message'];
echo "</div>\r\n\t\t\t";
}
echo "\t\t";
} else {
if ('updates_expired' === $type) {
echo " <div> !</div>\r\n <div> ";
echo THEME_NAME;
echo " <a target='_blank' href='";
echo SUPPORT_LINK;
echo "/clientarea.php?action=products'><b> </a></b></div>\r\n\t\t";
} else {
if ('update_available_expired_versions' === $type) {
echo ' <div> ';
echo THEME_NAME;
echo "</div>\r\n <div> ";
echo $vars['end_date'];
echo " </div>\r\n <div> ";
echo THEME_NAME;
echo ' <b> ';
echo THEME_VERSION;
echo ' </b> ';
echo THEME_NAME;
echo ' <b>';
echo $vars['latest_version'];
echo "</b></div>\r\n\t\t";
} else {
if ('trial_version_notification' === $type) {
echo " <div> !</div>\r\n <div> ";
echo THEME_NAME;
echo '. ';
echo $vars['george_date'];
echo ' ( ';
echo $vars['remaining_days'];
echo " )</div>\r\n <div> <a target='_blank' href='";
echo SUPPORT_LINK;
echo "/link.php?id=5'><b> </a></b></div>\r\n\t\t";
} else {
if ('nulled_version_notification' === $type) {
echo " <div> !</div>\r\n <div> ";
echo THEME_NAME;
echo "</div>\r\n <div> <a target='_blank' href='";
echo SUPPORT_LINK;
echo "/link.php?id=5'><b> </a></b></div>\r\n <div> <a target='_blank' href='";
echo SUPPORT_LINK;
echo "/submitticket.php?language=arabic'><b> </a></b></div>\r\n\t\t";
}
}
}
}
}
echo " </div>\r\n\t";
}
function a4h_copyrights()
{
$lcn_info = unserialize(get_option(DB_PREFIX.'_lcn_data'));
if (isset($lcn_info->data->newbrand) && $lcn_info->data->newbrand === hash('sha512', BRANDING_CODE.LICENSE_KEY)) {
$a4hCopyrights = '';
} else {
$a4hCopyrights = '';
}
echo $a4hCopyrights;
}
function a4h_options($option)
{
$get_option = get_option(THEME_OPTIONS_VAR, a4h_default_options());
if (isset($get_option[$option])) {
return $get_option[$option];
}
return false;
}
function a4h_ads($id)
{
$get_option = get_option(THEME_ADS_VAR, a4h_default_ads());
if (isset($get_option[$id])) {
return $get_option[$id];
}
return false;
}
function a4h_meta($name)
{
global $post;
$meta = get_post_meta($post->ID, $name, true);
if (isset($meta)) {
return $meta;
}
return false;
}
function a4h_case($name, $type = 'option')
{
$case = ('option' === $type ? a4h_options($name.'_case') : a4h_ads($name)['case']);
$case = ('ad' === $type && !in_array($name, ['global_ads'], true) ? a4h_ads('ads')[$name]['case'] : $case);
if (!empty($case)) {
return eval('return ('.$case.');');
}
return true;
}
?>
Function Calls
None |
Stats
MD5 | 78c5a453aae54a57c0873eba2702a864 |
Eval Count | 0 |
Decode Time | 122 ms |