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 /** * Plugin Name: WooCommerce DPD Print Label * Plugin URI: Broke..
Decoded Output download
<?php
/**
* Plugin Name: WooCommerce DPD Print Label
* Plugin URI: BrokenByte.hr
* Description: Generate DPD PDF Label for woocommerce orders through an easy-to-use WordPress Plugin.
* Version: 2.1
* Author: Krunoslav Ris
* Author URI: BrokenByte.hr
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: woocommerce-dpd-print-label
* Domain Path: /i18n/languages/
*/
defined("ABSPATH") or exit;
function wp_dpd_print_label_activate()
{
if (get_option("activate_admin_dpd")) {
goto Zewws;
}
add_option("activate_admin_dpd", "0");
Zewws:
}
register_activation_hook(__FILE__, "wp_dpd_print_label_activate");
function activation_notice()
{
echo " <div class="error notice is-dismissible">
<p>";
_e("Please Activate plugin so it can work properly. Go to Woocommerce Settings > DPD Settings.", "woocommerce-dpd-print-label");
echo "</p>
</div>\xd\xa ";
}
function _wpdpd_load_plugin()
{
if (class_exists("WooCommerce")) {
goto QR1gx;
}
return;
QR1gx:
if (defined("WPDPDPL_URL")) {
goto cMHuO;
}
define("WPDPDPL_URL", untrailingslashit(plugin_dir_url(__FILE__)));
cMHuO:
if (defined("WPDPDPL_FILE")) {
goto fIqBz;
}
define("WPDPDPL_FILE", __FILE__);
fIqBz:
if (defined("WPDPDPL_DIR")) {
goto EBnzw;
}
define("WPDPDPL_DIR", untrailingslashit(plugin_dir_path(__FILE__)));
EBnzw:
$w3xot = get_option("activate_admin_dpd");
if (!($w3xot == 0)) {
goto eIXPZ;
}
add_action("admin_notices", "activation_notice");
eIXPZ:
load_plugin_textdomain("woocommerce-dpd-print-label", FALSE, basename(dirname(__FILE__)) . "/i18n/languages/");
if (!file_exists(WPDPDPL_DIR . "/admin/init.php")) {
goto l9CgK;
}
require_once WPDPDPL_DIR . "/admin/init.php";
l9CgK:
}
add_action("plugins_loaded", "_wpdpd_load_plugin", 10);
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: WooCommerce DPD Print Label
* Plugin URI: BrokenByte.hr
* Description: Generate DPD PDF Label for woocommerce orders through an easy-to-use WordPress Plugin.
* Version: 2.1
* Author: Krunoslav Ris
* Author URI: BrokenByte.hr
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: woocommerce-dpd-print-label
* Domain Path: /i18n/languages/
*/
defined("\x41\x42\x53\x50\x41\x54\x48") or exit;
function wp_dpd_print_label_activate()
{
if (get_option("\141\x63\x74\151\x76\141\164\145\137\141\x64\155\x69\x6e\137\144\x70\x64")) {
goto Zewws;
}
add_option("\141\x63\x74\151\166\141\x74\x65\x5f\x61\144\x6d\151\156\x5f\144\x70\144", "\60");
Zewws:
}
register_activation_hook(__FILE__, "\x77\160\x5f\144\160\144\x5f\160\162\x69\x6e\164\x5f\154\141\142\x65\x6c\x5f\141\x63\164\151\x76\141\164\x65");
function activation_notice()
{
echo "\x20\x20\40\x20\x3c\144\x69\x76\x20\x63\x6c\x61\163\163\x3d\x22\145\x72\162\x6f\x72\40\x6e\x6f\164\x69\x63\x65\40\x69\x73\55\x64\x69\x73\x6d\151\163\163\151\142\154\145\42\x3e\15\12\x20\40\40\40\40\40\40\40\x3c\160\76";
_e("\120\154\x65\x61\163\145\x20\101\143\x74\151\166\141\164\x65\40\x70\x6c\165\x67\x69\156\40\x73\x6f\x20\151\x74\x20\143\x61\156\x20\167\x6f\x72\x6b\x20\160\162\157\160\145\162\x6c\x79\56\x20\107\157\40\164\157\40\x57\157\x6f\143\157\155\x6d\145\x72\x63\x65\x20\123\x65\x74\x74\x69\x6e\x67\x73\x20\76\40\104\x50\x44\40\x53\x65\x74\164\151\156\x67\163\56", "\167\157\157\143\x6f\x6d\x6d\x65\162\143\x65\55\144\x70\x64\55\160\x72\x69\156\164\x2d\154\141\x62\145\154");
echo "\74\x2f\160\76\15\12\x20\40\x20\x20\74\57\144\151\166\x3e\xd\xa\x20\x20\40\40";
}
function _wpdpd_load_plugin()
{
if (class_exists("\x57\157\x6f\x43\x6f\155\x6d\145\162\143\145")) {
goto QR1gx;
}
return;
QR1gx:
if (defined("\x57\x50\104\x50\104\x50\114\137\125\x52\114")) {
goto cMHuO;
}
define("\x57\120\x44\x50\104\x50\114\137\125\x52\x4c", untrailingslashit(plugin_dir_url(__FILE__)));
cMHuO:
if (defined("\127\x50\x44\x50\104\120\x4c\137\106\111\114\105")) {
goto fIqBz;
}
define("\127\120\104\120\x44\x50\x4c\137\x46\x49\114\105", __FILE__);
fIqBz:
if (defined("\x57\120\x44\120\x44\120\114\x5f\104\x49\122")) {
goto EBnzw;
}
define("\127\x50\x44\x50\x44\x50\x4c\137\104\111\122", untrailingslashit(plugin_dir_path(__FILE__)));
EBnzw:
$w3xot = get_option("\x61\x63\164\151\x76\x61\164\x65\137\x61\144\x6d\x69\x6e\137\144\x70\x64");
if (!($w3xot == 0)) {
goto eIXPZ;
}
add_action("\x61\144\155\151\156\137\156\x6f\x74\x69\x63\x65\x73", "\x61\143\164\151\x76\x61\164\x69\157\x6e\137\x6e\x6f\x74\x69\143\145");
eIXPZ:
load_plugin_textdomain("\167\157\x6f\143\x6f\x6d\155\x65\162\x63\x65\55\144\160\144\x2d\160\162\x69\x6e\x74\x2d\154\141\x62\x65\x6c", FALSE, basename(dirname(__FILE__)) . "\57\151\x31\x38\x6e\x2f\154\141\x6e\147\165\x61\x67\145\x73\x2f");
if (!file_exists(WPDPDPL_DIR . "\57\141\144\155\151\x6e\57\151\156\151\164\56\x70\x68\160")) {
goto l9CgK;
}
require_once WPDPDPL_DIR . "\x2f\141\x64\x6d\151\x6e\x2f\151\x6e\x69\164\x2e\160\x68\160";
l9CgK:
}
add_action("\x70\x6c\x75\147\x69\x6e\x73\137\154\157\x61\x64\x65\x64", "\137\x77\x70\x64\x70\144\x5f\x6c\x6f\141\x64\x5f\160\x6c\x75\147\151\x6e", 10);
Function Calls
None |
Stats
MD5 | 359f1f2910fbe40d768112a59a6e6836 |
Eval Count | 0 |
Decode Time | 81 ms |