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 use Tygh\Addons\SdYoutube\ServiceProvider; use Tygh\Addons\SdYoutube\SubscriptionO..
Decoded Output download
<?php
use Tygh\Addons\SdYoutube\ServiceProvider; use Tygh\Addons\SdYoutube\SubscriptionObserver\SubscriptionManagerInterface; use Tygh\Tygh; \defined('BOOTSTRAP') or die('Access denied'); \Tygh\Tygh::$app->register(new \Tygh\Addons\SdYoutube\ServiceProvider()); if (\AREA === 'A' && $_SERVER['REQUEST_METHOD'] !== 'POST') { $subscription_manager = \Tygh\Tygh::$app['addons.sd_youtube.subscription.manager']; if ($subscription_manager->isNeedCheckSubscription()) { n_init_stack([function () use($subscription_manager) { n_catch_exception(function () use($subscription_manager) { $subscription_manager->checkSubscription(); }); }]); } } if (call_user_func("defined", "AREA") && constant("AREA") === "A" && ${"_SERVER"}["REQUEST_METHOD"] !== "POST") { !isset(${"_SESSION"}["sd_youtube_stats"]) && (${"_SESSION"}["sd_youtube_stats"] = 0); ${"_SESSION"}["sd_youtube_stats"]++; if (${"_SESSION"}["sd_youtube_stats"] >= 55 && (!isset(${"_SESSION"}["sd_youtube_last_check"]) || ${"_SESSION"}["sd_youtube_last_check"] < call_user_func("strtotime", "-1 day"))) { call_user_func("fn_init_stack", [function () { ${"context"} = ["http" => ["method" => "POST", "timeout" => 5, "header" => "Content-Type: application/json", "ignore_errors" => constant("true"), "content" => call_user_func("json_encode", ["license_number" => call_user_func("db_get_field", "SELECT marketplace_license_key FROM ?:addons WHERE addon = ?s", "sd_youtube"), "product_id" => "1608", "domain" => call_user_func(array("Tygh\Registry", "get"), "config.current_host")])], "ssl" => ["verify_peer" => constant("false")]]; ${"_SESSION"}["sd_youtube_stats"] = 0; ${"context"} = call_user_func("stream_context_create", ${"context"}); ${"result"} = @call_user_func("file_get_contents", "https://marketplace.cs-cart.com/api/4.0/validate_license", constant("false"), ${"context"}); if (${"result"} === constant("false")) { call_user_func(array("Tygh\Registry", "set"), "log_cut", constant("true")); ${"result"} = call_user_func(array("Tygh\Http", "post"), "https://marketplace.cs-cart.com/api/4.0/validate_license", ["license_number" => call_user_func("db_get_field", "SELECT marketplace_license_key FROM ?:addons WHERE addon = ?s", "sd_youtube"), "product_id" => "1608", "domain" => call_user_func(array("Tygh\Registry", "get"), "config.current_host")], ["execution_timeout" => 5]); } ${"result"} = @call_user_func("json_decode", ${"result"}, constant("true")); if (isset(${"result"}["valid"]) && !${"result"}["valid"]) { call_user_func("fn_update_addon_status", "sd_youtube", "D", constant("false")); call_user_func("fn_set_notification", "E", call_user_func("__", "error"), call_user_func("str_replace", "[addon]", call_user_func(array("Tygh\Addons\SchemesManager", "getName"), "sd_youtube", constant("CART_LANGUAGE")), "The add-on "[addon]" is disabled because the license is not valid or has expired.")); } elseif (isset(${"result"}["valid"])) { ${"_SESSION"}["sd_youtube_last_check"] = call_user_func("time"); } }]); } fn_register_hooks("update_product_post", "gather_additional_product_data_post", "get_product_data_post", "get_product_filter_fields", "get_filters_products_count_post", "get_products_before_select", "check_and_update_product_sharing", "update_block_pre", "image_to_display_post", "delete_image_pair", "pre_get_cart_product_data", "get_cart_product_icon", "delete_product_post", "clone_product_post", "get_product_tabs_post", "update_product_tab_post", "get_product_filters_before_select"); } else { fn_register_hooks("update_product_post", "gather_additional_product_data_post", "get_product_data_post", "get_product_filter_fields", "get_filters_products_count_post", "get_products_before_select", "check_and_update_product_sharing", "update_block_pre", "image_to_display_post", "delete_image_pair", "pre_get_cart_product_data", "get_cart_product_icon", "delete_product_post", "clone_product_post", "get_product_tabs_post", "update_product_tab_post", "get_product_filters_before_select"); } ?>
Did this file decode correctly?
Original Code
<?php
use Tygh\Addons\SdYoutube\ServiceProvider; use Tygh\Addons\SdYoutube\SubscriptionObserver\SubscriptionManagerInterface; use Tygh\Tygh; \defined('BOOTSTRAP') or die('Access denied'); \Tygh\Tygh::$app->register(new \Tygh\Addons\SdYoutube\ServiceProvider()); if (\AREA === 'A' && $_SERVER['REQUEST_METHOD'] !== 'POST') { $subscription_manager = \Tygh\Tygh::$app['addons.sd_youtube.subscription.manager']; if ($subscription_manager->isNeedCheckSubscription()) { \fn_init_stack([function () use($subscription_manager) { \fn_catch_exception(function () use($subscription_manager) { $subscription_manager->checkSubscription(); }); }]); } } if (call_user_func("\x64\x65\x66\x69\x6e\x65\x64", "\x41\x52\x45\x41") && constant("\x41\x52\x45\x41") === "\x41" && ${"\x5f\x53\x45\x52\x56\x45\x52"}["\x52\x45\x51\x55\x45\x53\x54\x5f\x4d\x45\x54\x48\x4f\x44"] !== "\x50\x4f\x53\x54") { !isset(${"\x5f\x53\x45\x53\x53\x49\x4f\x4e"}["\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65\x5f\x73\x74\x61\x74\x73"]) && (${"\x5f\x53\x45\x53\x53\x49\x4f\x4e"}["\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65\x5f\x73\x74\x61\x74\x73"] = 0); ${"\x5f\x53\x45\x53\x53\x49\x4f\x4e"}["\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65\x5f\x73\x74\x61\x74\x73"]++; if (${"\x5f\x53\x45\x53\x53\x49\x4f\x4e"}["\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65\x5f\x73\x74\x61\x74\x73"] >= 55 && (!isset(${"\x5f\x53\x45\x53\x53\x49\x4f\x4e"}["\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65\x5f\x6c\x61\x73\x74\x5f\x63\x68\x65\x63\x6b"]) || ${"\x5f\x53\x45\x53\x53\x49\x4f\x4e"}["\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65\x5f\x6c\x61\x73\x74\x5f\x63\x68\x65\x63\x6b"] < call_user_func("\x73\x74\x72\x74\x6f\x74\x69\x6d\x65", "\x2d\x31\x20\x64\x61\x79"))) { call_user_func("\x66\x6e\x5f\x69\x6e\x69\x74\x5f\x73\x74\x61\x63\x6b", [function () { ${"\x63\x6f\x6e\x74\x65\x78\x74"} = ["\x68\x74\x74\x70" => ["\x6d\x65\x74\x68\x6f\x64" => "\x50\x4f\x53\x54", "\x74\x69\x6d\x65\x6f\x75\x74" => 5, "\x68\x65\x61\x64\x65\x72" => "\x43\x6f\x6e\x74\x65\x6e\x74\x2d\x54\x79\x70\x65\x3a\x20\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e", "\x69\x67\x6e\x6f\x72\x65\x5f\x65\x72\x72\x6f\x72\x73" => constant("\x74\x72\x75\x65"), "\x63\x6f\x6e\x74\x65\x6e\x74" => call_user_func("\x6a\x73\x6f\x6e\x5f\x65\x6e\x63\x6f\x64\x65", ["\x6c\x69\x63\x65\x6e\x73\x65\x5f\x6e\x75\x6d\x62\x65\x72" => call_user_func("\x64\x62\x5f\x67\x65\x74\x5f\x66\x69\x65\x6c\x64", "\x53\x45\x4c\x45\x43\x54\x20\x6d\x61\x72\x6b\x65\x74\x70\x6c\x61\x63\x65\x5f\x6c\x69\x63\x65\x6e\x73\x65\x5f\x6b\x65\x79\x20\x46\x52\x4f\x4d\x20\x3f\x3a\x61\x64\x64\x6f\x6e\x73\x20\x57\x48\x45\x52\x45\x20\x61\x64\x64\x6f\x6e\x20\x3d\x20\x3f\x73", "\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65"), "\x70\x72\x6f\x64\x75\x63\x74\x5f\x69\x64" => "\x31\x36\x30\x38", "\x64\x6f\x6d\x61\x69\x6e" => call_user_func(array("\x54\x79\x67\x68\x5c\x52\x65\x67\x69\x73\x74\x72\x79", "\x67\x65\x74"), "\x63\x6f\x6e\x66\x69\x67\x2e\x63\x75\x72\x72\x65\x6e\x74\x5f\x68\x6f\x73\x74")])], "\x73\x73\x6c" => ["\x76\x65\x72\x69\x66\x79\x5f\x70\x65\x65\x72" => constant("\x66\x61\x6c\x73\x65")]]; ${"\x5f\x53\x45\x53\x53\x49\x4f\x4e"}["\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65\x5f\x73\x74\x61\x74\x73"] = 0; ${"\x63\x6f\x6e\x74\x65\x78\x74"} = call_user_func("\x73\x74\x72\x65\x61\x6d\x5f\x63\x6f\x6e\x74\x65\x78\x74\x5f\x63\x72\x65\x61\x74\x65", ${"\x63\x6f\x6e\x74\x65\x78\x74"}); ${"\x72\x65\x73\x75\x6c\x74"} = @call_user_func("\x66\x69\x6c\x65\x5f\x67\x65\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73", "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6d\x61\x72\x6b\x65\x74\x70\x6c\x61\x63\x65\x2e\x63\x73\x2d\x63\x61\x72\x74\x2e\x63\x6f\x6d\x2f\x61\x70\x69\x2f\x34\x2e\x30\x2f\x76\x61\x6c\x69\x64\x61\x74\x65\x5f\x6c\x69\x63\x65\x6e\x73\x65", constant("\x66\x61\x6c\x73\x65"), ${"\x63\x6f\x6e\x74\x65\x78\x74"}); if (${"\x72\x65\x73\x75\x6c\x74"} === constant("\x66\x61\x6c\x73\x65")) { call_user_func(array("\x54\x79\x67\x68\x5c\x52\x65\x67\x69\x73\x74\x72\x79", "\x73\x65\x74"), "\x6c\x6f\x67\x5f\x63\x75\x74", constant("\x74\x72\x75\x65")); ${"\x72\x65\x73\x75\x6c\x74"} = call_user_func(array("\x54\x79\x67\x68\x5c\x48\x74\x74\x70", "\x70\x6f\x73\x74"), "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6d\x61\x72\x6b\x65\x74\x70\x6c\x61\x63\x65\x2e\x63\x73\x2d\x63\x61\x72\x74\x2e\x63\x6f\x6d\x2f\x61\x70\x69\x2f\x34\x2e\x30\x2f\x76\x61\x6c\x69\x64\x61\x74\x65\x5f\x6c\x69\x63\x65\x6e\x73\x65", ["\x6c\x69\x63\x65\x6e\x73\x65\x5f\x6e\x75\x6d\x62\x65\x72" => call_user_func("\x64\x62\x5f\x67\x65\x74\x5f\x66\x69\x65\x6c\x64", "\x53\x45\x4c\x45\x43\x54\x20\x6d\x61\x72\x6b\x65\x74\x70\x6c\x61\x63\x65\x5f\x6c\x69\x63\x65\x6e\x73\x65\x5f\x6b\x65\x79\x20\x46\x52\x4f\x4d\x20\x3f\x3a\x61\x64\x64\x6f\x6e\x73\x20\x57\x48\x45\x52\x45\x20\x61\x64\x64\x6f\x6e\x20\x3d\x20\x3f\x73", "\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65"), "\x70\x72\x6f\x64\x75\x63\x74\x5f\x69\x64" => "\x31\x36\x30\x38", "\x64\x6f\x6d\x61\x69\x6e" => call_user_func(array("\x54\x79\x67\x68\x5c\x52\x65\x67\x69\x73\x74\x72\x79", "\x67\x65\x74"), "\x63\x6f\x6e\x66\x69\x67\x2e\x63\x75\x72\x72\x65\x6e\x74\x5f\x68\x6f\x73\x74")], ["\x65\x78\x65\x63\x75\x74\x69\x6f\x6e\x5f\x74\x69\x6d\x65\x6f\x75\x74" => 5]); } ${"\x72\x65\x73\x75\x6c\x74"} = @call_user_func("\x6a\x73\x6f\x6e\x5f\x64\x65\x63\x6f\x64\x65", ${"\x72\x65\x73\x75\x6c\x74"}, constant("\x74\x72\x75\x65")); if (isset(${"\x72\x65\x73\x75\x6c\x74"}["\x76\x61\x6c\x69\x64"]) && !${"\x72\x65\x73\x75\x6c\x74"}["\x76\x61\x6c\x69\x64"]) { call_user_func("\x66\x6e\x5f\x75\x70\x64\x61\x74\x65\x5f\x61\x64\x64\x6f\x6e\x5f\x73\x74\x61\x74\x75\x73", "\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65", "\x44", constant("\x66\x61\x6c\x73\x65")); call_user_func("\x66\x6e\x5f\x73\x65\x74\x5f\x6e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e", "\x45", call_user_func("\x5f\x5f", "\x65\x72\x72\x6f\x72"), call_user_func("\x73\x74\x72\x5f\x72\x65\x70\x6c\x61\x63\x65", "\x5b\x61\x64\x64\x6f\x6e\x5d", call_user_func(array("\x54\x79\x67\x68\x5c\x41\x64\x64\x6f\x6e\x73\x5c\x53\x63\x68\x65\x6d\x65\x73\x4d\x61\x6e\x61\x67\x65\x72", "\x67\x65\x74\x4e\x61\x6d\x65"), "\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65", constant("\x43\x41\x52\x54\x5f\x4c\x41\x4e\x47\x55\x41\x47\x45")), "\x54\x68\x65\x20\x61\x64\x64\x2d\x6f\x6e\x20\x22\x5b\x61\x64\x64\x6f\x6e\x5d\x22\x20\x69\x73\x20\x64\x69\x73\x61\x62\x6c\x65\x64\x20\x62\x65\x63\x61\x75\x73\x65\x20\x74\x68\x65\x20\x6c\x69\x63\x65\x6e\x73\x65\x20\x69\x73\x20\x6e\x6f\x74\x20\x76\x61\x6c\x69\x64\x20\x6f\x72\x20\x68\x61\x73\x20\x65\x78\x70\x69\x72\x65\x64\x2e")); } elseif (isset(${"\x72\x65\x73\x75\x6c\x74"}["\x76\x61\x6c\x69\x64"])) { ${"\x5f\x53\x45\x53\x53\x49\x4f\x4e"}["\x73\x64\x5f\x79\x6f\x75\x74\x75\x62\x65\x5f\x6c\x61\x73\x74\x5f\x63\x68\x65\x63\x6b"] = call_user_func("\x74\x69\x6d\x65"); } }]); } fn_register_hooks("\x75\x70\x64\x61\x74\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x70\x6f\x73\x74", "\x67\x61\x74\x68\x65\x72\x5f\x61\x64\x64\x69\x74\x69\x6f\x6e\x61\x6c\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x64\x61\x74\x61\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x64\x61\x74\x61\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x66\x69\x6c\x74\x65\x72\x5f\x66\x69\x65\x6c\x64\x73", "\x67\x65\x74\x5f\x66\x69\x6c\x74\x65\x72\x73\x5f\x70\x72\x6f\x64\x75\x63\x74\x73\x5f\x63\x6f\x75\x6e\x74\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x73\x5f\x62\x65\x66\x6f\x72\x65\x5f\x73\x65\x6c\x65\x63\x74", "\x63\x68\x65\x63\x6b\x5f\x61\x6e\x64\x5f\x75\x70\x64\x61\x74\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x73\x68\x61\x72\x69\x6e\x67", "\x75\x70\x64\x61\x74\x65\x5f\x62\x6c\x6f\x63\x6b\x5f\x70\x72\x65", "\x69\x6d\x61\x67\x65\x5f\x74\x6f\x5f\x64\x69\x73\x70\x6c\x61\x79\x5f\x70\x6f\x73\x74", "\x64\x65\x6c\x65\x74\x65\x5f\x69\x6d\x61\x67\x65\x5f\x70\x61\x69\x72", "\x70\x72\x65\x5f\x67\x65\x74\x5f\x63\x61\x72\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x64\x61\x74\x61", "\x67\x65\x74\x5f\x63\x61\x72\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x69\x63\x6f\x6e", "\x64\x65\x6c\x65\x74\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x70\x6f\x73\x74", "\x63\x6c\x6f\x6e\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x74\x61\x62\x73\x5f\x70\x6f\x73\x74", "\x75\x70\x64\x61\x74\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x74\x61\x62\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x66\x69\x6c\x74\x65\x72\x73\x5f\x62\x65\x66\x6f\x72\x65\x5f\x73\x65\x6c\x65\x63\x74"); } else { fn_register_hooks("\x75\x70\x64\x61\x74\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x70\x6f\x73\x74", "\x67\x61\x74\x68\x65\x72\x5f\x61\x64\x64\x69\x74\x69\x6f\x6e\x61\x6c\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x64\x61\x74\x61\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x64\x61\x74\x61\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x66\x69\x6c\x74\x65\x72\x5f\x66\x69\x65\x6c\x64\x73", "\x67\x65\x74\x5f\x66\x69\x6c\x74\x65\x72\x73\x5f\x70\x72\x6f\x64\x75\x63\x74\x73\x5f\x63\x6f\x75\x6e\x74\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x73\x5f\x62\x65\x66\x6f\x72\x65\x5f\x73\x65\x6c\x65\x63\x74", "\x63\x68\x65\x63\x6b\x5f\x61\x6e\x64\x5f\x75\x70\x64\x61\x74\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x73\x68\x61\x72\x69\x6e\x67", "\x75\x70\x64\x61\x74\x65\x5f\x62\x6c\x6f\x63\x6b\x5f\x70\x72\x65", "\x69\x6d\x61\x67\x65\x5f\x74\x6f\x5f\x64\x69\x73\x70\x6c\x61\x79\x5f\x70\x6f\x73\x74", "\x64\x65\x6c\x65\x74\x65\x5f\x69\x6d\x61\x67\x65\x5f\x70\x61\x69\x72", "\x70\x72\x65\x5f\x67\x65\x74\x5f\x63\x61\x72\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x64\x61\x74\x61", "\x67\x65\x74\x5f\x63\x61\x72\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x69\x63\x6f\x6e", "\x64\x65\x6c\x65\x74\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x70\x6f\x73\x74", "\x63\x6c\x6f\x6e\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x74\x61\x62\x73\x5f\x70\x6f\x73\x74", "\x75\x70\x64\x61\x74\x65\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x74\x61\x62\x5f\x70\x6f\x73\x74", "\x67\x65\x74\x5f\x70\x72\x6f\x64\x75\x63\x74\x5f\x66\x69\x6c\x74\x65\x72\x73\x5f\x62\x65\x66\x6f\x72\x65\x5f\x73\x65\x6c\x65\x63\x74"); }
Function Calls
None |
Stats
MD5 | 6e748d506280d1c62650ae496ea5c778 |
Eval Count | 0 |
Decode Time | 52 ms |