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 /* __________________________________________________ | Copyright by admorr..

Decoded Output download

<?php 
/*   __________________________________________________ 
    |  Copyright by admorris.pro  | 
    |__________________________________________________| 
*/ 
namespace Plugindmorris_pro; 
use JTL\Plugin\PluginInterface; 
use JTL\Services\Container; 
use JTL\Shop; 
function container(): 
    Container 
    { 
        return Shop::Container(); 
    } 
    function getSetting(string $settingName, PluginInterface $plugin): 
        string 
        { 
            return $plugin->getConfig() 
                ->getValue("admorris_pro_" . $settingName); 
        } 
        function getSettingsGroup(string $groupName, PluginInterface $plugin) 
        { 
            return fn($settingName) => getSetting($groupName . "_" . $settingName, $plugin); 
        } 
        function getTranslation($name, PluginInterface $plugin): 
            string 
            { 
                return $plugin->getLocalization() 
                    ->getTranslation("admorris_pro_" . $name); 
            } 
            function getTranslationGroup($groupName, PluginInterface $plugin) 
            { 
                return fn($name) => getTranslation($groupName . "_" . $name, $plugin); 
            } 
            function isTemplateActive() 
            { 
                static $active = null; 
                if (!is_null($active)) 
                { 
                    gotoyMpIY; 
                } 
                $template = Shop::Container()->getTemplateService() 
                    ->getActiveTemplate(); 
                if ($template->getName() == "admorris Pro" || $template->getName() == "admorris Pro Child" || !empty($template->getParent()) && $template->getParent() == "admorris_pro") 
                { 
                    gotoIeFuq; 
                } 
                $active = false; 
                gotoocFc1; 
                IeFuq: 
                    $active = true; 
                    ocFc1: 
                        yMpIY: 
                            return $active; 
                        } 
                         
 ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Copyright by admorris.pro  |
    |__________________________________________________|
*/
namespace Plugin\admorris_pro;
use JTL\Plugin\PluginInterface;
use JTL\Services\Container;
use JTL\Shop;
function container():
    Container
    {
        return Shop::Container();
    }
    function getSetting(string $settingName, PluginInterface $plugin):
        string
        {
            return $plugin->getConfig()
                ->getValue("\141\144\155\157\162\162\x69\163\137\x70\162\157\x5f" . $settingName);
        }
        function getSettingsGroup(string $groupName, PluginInterface $plugin)
        {
            return fn($settingName) => getSetting($groupName . "\137" . $settingName, $plugin);
        }
        function getTranslation($name, PluginInterface $plugin):
            string
            {
                return $plugin->getLocalization()
                    ->getTranslation("\x61\x64\155\157\x72\162\x69\x73\x5f\x70\162\157\x5f" . $name);
            }
            function getTranslationGroup($groupName, PluginInterface $plugin)
            {
                return fn($name) => getTranslation($groupName . "\137" . $name, $plugin);
            }
            function isTemplateActive()
            {
                static $active = null;
                if (!is_null($active))
                {
                    gotoyMpIY;
                }
                $template = Shop::Container()->getTemplateService()
                    ->getActiveTemplate();
                if ($template->getName() == "\141\x64\x6d\x6f\x72\162\151\163\x20\120\162\x6f" || $template->getName() == "\141\144\x6d\x6f\162\162\151\163\x20\120\162\x6f\x20\103\x68\151\x6c\x64" || !empty($template->getParent()) && $template->getParent() == "\141\144\155\157\x72\162\x69\163\137\160\x72\157")
                {
                    gotoIeFuq;
                }
                $active = false;
                gotoocFc1;
                IeFuq:
                    $active = true;
                    ocFc1:
                        yMpIY:
                            return $active;
                        }
                        

Function Calls

None

Variables

None

Stats

MD5 6b44848e0a7a8da6492816119c7220f6
Eval Count 0
Decode Time 61 ms