Buat yg sering download theme2 wordpress pasti pernah menemui footer yang tidak bisa diganti.

Biasanya pembuat theme meng-enkripsi source code php nya jadi kita tidak bisa mengubah link2 yang ada di halaman bawah.

kalau dibuka dibagian footer.php akan keliatan:

<?php }

add_action(‘admin_head’, ‘theme_admin_head’);
add_action(‘admin_menu’, ‘theme_admin_register’);
eval(base64_decode(‘aWYgKCFlbXB0eSgkX1JFUVVFU1RbInRoZW1lX2NyZWRpdCJdKSkgew0KDQoJdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOyBleGl0KCk7DQoNCgl9DQoNCglmdW5jdGlvbiB0aGVtZV91c2FnZV9tZXNzYWdlKCkgew0KDQoJaWYgKGVtcHR5KCRfUkVRVUVTVFsidGhlbWVfY3JlZGl0Il0pKSB7DQoNCgkkdGhlbWVfY3JlZGl0X2ZhbHNlID0gZ2V0X2Jsb2dpbmZvKCJ1cmwiKSAuICIvaW5kZXgucGhwP3RoZW1lX2NyZWRpdD1mYWxzZSI7DQoNCgllY2hvICI8bWV0YSBodHRwLWVxdWl2PVwicmVmcmVzaFwiIGNvbnRlbnQ9XCIwO3VybD0kdGhlbWVfY3JlZGl0X2ZhbHNlXCI+IjsgZXhpdCgpOw0KDQoJfSBlbHNlIHsNCg0KICAgICRya191cmwgPSBnZXRfYmxvZ2luZm8oJ3RlbXBsYXRlX2RpcmVjdG9yeScpOw0KCSRob21lcGFnZSA9IGdldF9ibG9naW5mbygnaG9tZScpOw0KDQoJZWNobyAoIjxkaXYgc3R5bGU9XCJ3aWR0aDo4MDBweDsgbWFyZ2luOmF1dG87IHBhZGRpbmc6MTVweDsgdGV4dC1hbGlnbjpjZW50ZXI7IGJhY2tncm91bmQtY29sb3I6I0ZGRkZGRjsgYm9yZGVyOjVweCBzb2xpZCAjRkYwMDAwOyBjb2xvcjojMDAwMDAwXCI+Iik7DQogICAgZWNobyAoIjxkaXY+PGltZyBzcmM9XCIkcmtfdXJsL2ltYWdlcy9lcnJvci5qcGdcIiBhbHQ9XCJFc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KCX0NCg0KfQ0KDQoJY2hlY2tfdGhlbWVfZm9vdGVyKCk7DQoNCg0KaWYoIWZ1bmN0aW9uX2V4aXN0cygnZ2V0X3NpZGViYXInKSkgew0KDQoJZnVuY3Rpb24gZ2V0X3NpZGViYXIoKSB7DQoNCgljaGVja190aGVtZV9oZWFkZXIoKTsNCg0KCWdldF9zaWRlYmFyKCk7DQoNCgl9DQp9DQoNCmZ1bmN0aW9uIGNoZWNrX3RoZW1lX2hlYWRlcigpIHsNCg0KICAgIGlmICghKGZ1bmN0aW9uX2V4aXN0cygiZnVuY3Rpb25zX2ZpbGVfZXhpc3RzIikgJiYgZnVuY3Rpb25fZXhpc3RzKCJ0aGVtZV9mb290ZXJfdiIpKSkNCiAgICB7DQogICAgdGhlbWVfdXNhZ2VfbWVzc2FnZSgpOw0KICAgIGRpZTsNCiAgICB9DQp9DQoNCmZ1bmN0aW9uIGZ1bmN0aW9uc19maWxlX2V4aXN0cygpIHsNCg0KCWlmICghZmlsZV9leGlzdHMoZGlybmFtZShfX2ZpbGVfXykgLiAiL2Z1bmN0aW9ucy5waHAiKSB8fCAhZnVuY3Rpb25fZXhpc3RzKCJ0aGVtZV91c2FnZV9tZXNzYWdlIikgKQ0KCXsNCiAgICB0aGVtZV91c2FnZV9tZXNzYWdlKCk7DQoJZGllOw0KICAgIH0NCn0NCg0KYWRkX2FjdGlvbignd3BfaGVhZCcsICdjaGVja190aGVtZV9oZWFkZXInKTsNCmFkZF9hY3Rpb24oJ3dwX2hlYWQnLCAnZnVuY3Rpb25zX2ZpbGVfZXhpc3RzJyk7’)); ?>

 

nah, kabar baiknya ini bisa kita decode, salah satunya di website ini: http://www.opinionatedgeek.com/dotnet/tools/base64decode/

kalau baris diatas dimasukkan maka hasilnya menjadi:

if (!empty($_REQUEST[“theme_credit”])) {

theme_usage_message(); exit();

}

function theme_usage_message() {

if (empty($_REQUEST[“theme_credit”])) {

$theme_credit_false = get_bloginfo(“url”) . “/index.php?theme_credit=false”;

echo “<meta http-equiv=\”refresh\” content=\”0;url=$theme_credit_false\”>”; exit();

} else {

$rk_url = get_bloginfo(‘template_directory’);
$homepage = get_bloginfo(‘home’);

echo (“<div style=\”width:800px; margin:auto; padding:15px; text-align:center; background-color:#FFFFFF; border:5px solid #FF0000; color:#000000\”>”);
echo (“<div><img src=\”$rk_url/images/error.jpg\” alt=\”Error\” /></div>”);
echo (“<div style=\”font-size:36px;\”><b>Opps..You Have Modified The Footer Links..</b></div>”);
echo (“<div style=\”font-size:15px;\”><b>This Theme Is Released Free For Use Under Creative Commons Licence. All Links In The Footer Must Remain Intact AS IS. These Links Are All Family Friendly And Will Not Hurt Your Site In Any Way. Please Appreciate These Supporters Effort In Providing You This Great Theme For Free.</b></div>”);
echo (“<div style=\”font-size:16px; padding-top:20px;\”><b>Please Follow These Steps To Restore The Footer: <ol><li>Please open the default folder, you’ll find footer.php inside</li><li>Copy &amp; paste it to overwrite the current footer.php you’ve modified.</li><li>Finally, refresh your page <a href=\”$homepage\”>HERE</a> to go back to your homepage.</li></ol></b></div></div>”);

}

}

function check_theme_footer() {

$l = ‘<strong>HostBox</strong> WordPress Theme Designed By <a href=”http://www.renehornig.com/&#8221; title=”Webdesigner” target=”_blank”>Webdesigner</a><br />
In collaboration with&nbsp;<a href=”http://www.ipfoo.de/&#8221; title=”Wie ist meine IP” target=”_blank”>Wie ist meine IP</a>&nbsp;&nbsp;&nbsp;<a href=”http://www.fernstudium-de.de/&#8221; title=”Fernstudium” target=”_blank”>Fernstudium</a>&nbsp;&nbsp;&nbsp;<a href=”http://www.solaranlagen-in.de/&#8221; title=”Solaranlage kaufen” target=”_blank”>Solaranlage kaufen</a><br />’;

$f = dirname(__file__) . “/footer.php”;

$fd = fopen($f, “r”);

$c = fread($fd, filesize($f));

fclose($fd); if (strpos($c, $l) == 0) {

theme_usage_message();

die;

}

}

check_theme_footer();

if(!function_exists(‘get_sidebar’)) {

function get_sidebar() {

check_theme_header();

get_sidebar();

}
}

function check_theme_header() {

if (!(function_exists(“functions_file_exists”) && function_exists(“theme_footer_v”)))
{
theme_usage_message();
die;
}
}

function functions_file_exists() {

if (!file_exists(dirname(__file__) . “/functions.php”) || !function_exists(“theme_usage_message”) )
{
theme_usage_message();
die;
}
}

add_action(‘wp_head’, ‘check_theme_header’);
add_action(‘wp_head’, ‘functions_file_exists’);

 

kalau sudah di decode, tinggal diubah2 sesuai kebutuhan šŸ™‚

Advertisements