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 namespace Mgt\Varnish\Model; class License { const MODULE_NAME = "Mgt_Varn..

Decoded Output download

<?php 
namespace Mgt\Varnish\Model; 
 
class License 
{ 
    const MODULE_NAME = "Mgt_Varnish"; 
    protected $dirReader; 
    protected $domains = []; 
    public function __construct() 
    { 
        $objectManager = $this->getObjectManager(); 
        $this->dirReader = $objectManager->get("\Magento\Framework\Module\Dir\Reader"); 
    } 
    public function hasLicense($currentHost) 
    { 
      $hasLicense = true; 
 
        return $hasLicense; 
    } 
    protected function _isHostValid($currentHost, array $domains) 
    { 
        $isHostValid = false; 
        foreach ($domains as $domain) { 
            if (strstr($currentHost, $domain)) { 
                $isHostValid = true; 
            } 
        } 
        return $isHostValid; 
    } 
    public function getDomains() 
    { 
      $domains = array(str_rot13('Invyq! Ahyyrq ol ahyyceb.pp @arjvzntr')); 
        return $domains;  $domains = []; 
        if (true === file_exists($licenseFile)) { 
            if (isset($license["domains"]) && $license["domains"]) { 
                $domains = $license["domains"]; 
            } 
        } 
        return $domains; 
    } 
    protected function getObjectManager() 
    { 
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); 
        return $objectManager; 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php
namespace Mgt\Varnish\Model;

class License
{
    const MODULE_NAME = "Mgt_Varnish";
    protected $dirReader;
    protected $domains = [];
    public function __construct()
    {
        $objectManager = $this->getObjectManager();
        $this->dirReader = $objectManager->get("\\Magento\\Framework\\Module\\Dir\\Reader");
    }
    public function hasLicense($currentHost)
    {
      $hasLicense = true;

        return $hasLicense;
    }
    protected function _isHostValid($currentHost, array $domains)
    {
        $isHostValid = false;
        foreach ($domains as $domain) {
            if (strstr($currentHost, $domain)) {
                $isHostValid = true;
            }
        }
        return $isHostValid;
    }
    public function getDomains()
    {
      $domains = array(str_rot13('Invyq! Ahyyrq ol ahyyceb.pp @arjvzntr'));
        return $domains;  $domains = [];
        if (true === file_exists($licenseFile)) {
            if (isset($license["domains"]) && $license["domains"]) {
                $domains = $license["domains"];
            }
        }
        return $domains;
    }
    protected function getObjectManager()
    {
        $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        return $objectManager;
    }
}

Function Calls

None

Variables

None

Stats

MD5 d72765875e397542cde7f2c45514fed4
Eval Count 0
Decode Time 53 ms