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 App\Command; use Symfony\Component\Validator\Validator\ValidatorInterfac..

Decoded Output download

<?php 
 namespace App\Command; use Symfony\Component\Validator\Validator\ValidatorInterface; use Symfony\Component\Validator\ConstraintViolationList; use Doctrine\Common\Collections\ArrayCollection; use App\Command\Command as BaseCommand; use App\Entity\Site as SiteEntity; use App\Site\Site; use App\Site\NodejsSite; use App\Site\StaticSite; use App\Site\PhpSite; use App\Site\PythonSite; use App\Site\ReverseProxySite; use App\Site\Deleter as SiteDeleter; use App\Site\Updater as SiteUpdater; use App\Site\Updater\NodejsSite as NodejsSiteUpdater; use App\Site\Updater\StaticSite as StaticSiteUpdater; use App\Site\Updater\PhpSite as PhpSiteUpdater; use App\Site\Updater\PythonSite as PythonSiteUpdater; use App\Site\Updater\ReverseProxySite as ReverseProxySiteUpdater; use App\Site\Deleter\NodejsSite as NodejsSiteDeleter; use App\Site\Deleter\StaticSite as StaticSiteDeleter; use App\Site\Deleter\PhpSite as PhpSiteDeleter; use App\Site\Deleter\PythonSite as PythonSiteDeleter; use App\Site\Deleter\ReverseProxySite as ReverseProxySiteDeleter; use App\Site\Parser\DomainName as DomainNameParser; use App\Entity\Manager\SiteManager as SiteEntityManager; use App\Entity\Manager\CertificateManager as CertificateEntityManager; use App\Entity\Manager\VhostTemplateManager as VhostTemplateEntityManager; use App\Entity\Manager\DatabaseServerManager as DatabaseServerEntityManager; class SiteCommand extends BaseCommand { protected DomainNameParser $domainNameParser; protected SiteEntityManager $siteEntityManager; protected CertificateEntityManager $certificateEntityManager; protected DatabaseServerEntityManager $databaseServerEntityManager; protected VhostTemplateEntityManager $vhostTemplateEntityManager; protected ValidatorInterface $validator; public function __construct(DomainNameParser $domainNameParser, SiteEntityManager $siteEntityManager, CertificateEntityManager $certificateEntityManager, DatabaseServerEntityManager $databaseServerEntityManager, VhostTemplateEntityManager $vhostTemplateEntityManager, ValidatorInterface $validator) { goto f1547; f1547: $this->domainNameParser = $domainNameParser; goto d27e0; E6cab: $this->databaseServerEntityManager = $databaseServerEntityManager; goto fce0a; d0651: $this->validator = $validator; goto dc384; dc384: parent::__construct(); goto b078d; d27e0: $this->siteEntityManager = $siteEntityManager; goto a2861; fce0a: $this->vhostTemplateEntityManager = $vhostTemplateEntityManager; goto d0651; a2861: $this->certificateEntityManager = $certificateEntityManager; goto E6cab; b078d: } protected function configure() : void { $this->setName("site:tmp"); } protected function getSite(string $domainName) : ?Site { goto C8207; F8182: if (!(false === is_null($site))) { goto Bdac2; } goto B8094; D5b8f: $site->setCertificate($siteEntity->getCertificate()); goto c54f5; ebecf: C6993: goto F8182; F5f9e: B5e7d: goto ebecf; Eb561: $site->setBlockedIps($siteEntity->getBlockedIps()); goto D5b8f; A9336: $registrableDomain = $resolvedDomainName->registrableDomain()->toString(); goto B30c1; e71ae: $subdomain = false === empty($subdomain) ? $subdomain : null; goto b9b90; E8299: $site->setSubdomain($subdomain); goto Eb960; fd7c0: $siteEntity = $this->getSiteEntity($domainName); goto F1e1b; C8207: $site = null; goto fd7c0; B8094: $resolvedDomainName = $this->domainNameParser->resolveDomainName($domainName); goto A9336; Beb69: $site->setCronJobs($siteEntity->getCronJobs()); goto c1dbe; c54f5: $site->setCertificates($siteEntity->getCertificates()); goto Beb69; B30c1: $subdomain = $resolvedDomainName->subDomain()->toString(); goto e71ae; c1dbe: $site->setFtpUsers($siteEntity->getFtpUsers()); goto D8732; c64f3: $site->setDomainName($siteEntity->getDomainName()); goto df6db; Fe91a: $site->setAllowTrafficFromCloudflareOnly($siteEntity->allowTrafficFromCloudflareOnly()); goto f6a5c; F1544: $site->setPageSpeedSettings($siteEntity->getPageSpeedSettings()); goto ac9f3; D452a: goto Fff8a; goto d80c2; f8fbf: $site->setBlockedBots($siteEntity->getBlockedBots()); goto Eb561; df6db: $site->setRegistrableDomain($registrableDomain); goto E8299; b9b90: $siteDatabases = $this->getSiteDatabases($siteEntity); goto e5423; f6a5c: $site->setPageSpeedEnabled($siteEntity->getPageSpeedEnabled()); goto F1544; F20c9: Fff8a: goto c390a; D8732: $site->setSshUsers($siteEntity->getSshUsers()); goto Ef16b; Cdd92: switch ($siteType) { case SiteEntity::TYPE_NODEJS: goto D0c0c; B8749: $site->setNodejsSettings($siteEntity->getNodejsSettings()); goto ef215; ef215: goto C6993; goto fc179; D0c0c: $site = new NodejsSite(); goto B8749; fc179: case SiteEntity::TYPE_STATIC: $site = new StaticSite(); goto C6993; case SiteEntity::TYPE_PHP: goto b830d; F7a7a: $site->setPhpSettings($siteEntity->getPhpSettings()); goto c4903; c4903: $site->setVarnishCache($siteEntity->getVarnishCache()); goto e05e2; e05e2: goto C6993; goto c2952; b830d: $site = new PhpSite(); goto F7a7a; c2952: case SiteEntity::TYPE_PYTHON: goto Aced6; B32ec: $site->setPythonSettings($siteEntity->getPythonSettings()); goto D563b; Aced6: $site = new PythonSite(); goto B32ec; D563b: goto C6993; goto d1431; d1431: case SiteEntity::TYPE_REVERSE_PROXY: goto D00e1; D00e1: $site = new ReverseProxySite(); goto b4c0b; Ab963: goto C6993; goto fbc88; b4c0b: $site->setReverseProxyUrl($siteEntity->getReverseProxyUrl()); goto Ab963; fbc88: } goto F5f9e; de5cf: $site->setBasicAuth($siteEntity->getBasicAuth()); goto f8fbf; Df99f: throw new \Exception(sprintf("Site "%s" does not exist.", $domainName)); goto D452a; e4bc1: $site->setDatabases($siteDatabases); goto de5cf; Ecce5: $siteType = $siteEntity->getType(); goto Cdd92; d80c2: b27ae: goto Ecce5; Ef16b: $site->setVhostTemplate($siteEntity->getVhostTemplate()); goto Fe91a; e5423: $site->setUser($siteEntity->getUser()); goto c64f3; c390a: return $site; goto B5e5d; Eb960: $site->setRootDirectory($siteEntity->getRootDirectory()); goto e4bc1; ac9f3: Bdac2: goto F20c9; F1e1b: if (false === is_null($siteEntity)) { goto b27ae; } goto Df99f; B5e5d: } private function getSiteDatabases(SiteEntity $siteEntity) : ?ArrayCollection { goto Aef66; cfb46: return $siteDatabases; goto Aa171; de5fa: foreach ($databaseEntities as $databaseEntity) { goto F399d; befff: Bcb78: goto dca60; A46bb: if (!($databaseServerEntity->getId() == $activeDatabaseServerEntity->getId())) { goto Ee0f6; } goto b2718; F399d: $databaseServerEntity = $databaseEntity->getDatabaseServer(); goto A46bb; b2718: $siteDatabases->add($databaseEntity); goto C374f; C374f: Ee0f6: goto befff; dca60: } goto Ff4ca; Ff4ca: D83c4: goto cfb46; E4b06: $databaseEntities = $siteEntity->getDatabases(); goto de5fa; Aef66: $siteDatabases = new ArrayCollection(); goto F0b5e; F0b5e: $activeDatabaseServerEntity = $this->databaseServerEntityManager->getActiveDatabaseServer(); goto E4b06; Aa171: } protected function getSiteDeleter(Site $site) : ?SiteDeleter { goto Be581; Bbf32: Aed72: goto E02b8; A6478: ea304: goto Bbf32; fb3d7: $siteType = $site->getType(); goto Bc865; Be581: $siteDeleter = null; goto fb3d7; E02b8: return $siteDeleter; goto c0da0; Bc865: switch ($siteType) { case SiteEntity::TYPE_NODEJS: $siteDeleter = new NodejsSiteDeleter($site); goto Aed72; case SiteEntity::TYPE_STATIC: $siteDeleter = new StaticSiteDeleter($site); goto Aed72; case SiteEntity::TYPE_PHP: $siteDeleter = new PhpSiteDeleter($site); goto Aed72; case SiteEntity::TYPE_PYTHON: $siteDeleter = new PythonSiteDeleter($site); goto Aed72; case SiteEntity::TYPE_REVERSE_PROXY: $siteDeleter = new ReverseProxySiteDeleter($site); goto Aed72; } goto A6478; c0da0: } protected function getSiteUpdater(Site $site) : ?SiteUpdater { goto cfbd7; e9d01: dc1de: goto d6c6e; d6c6e: return $siteUpdater; goto Dd030; e8b4c: switch ($siteType) { case SiteEntity::TYPE_NODEJS: $siteUpdater = new NodejsSiteUpdater($site); goto dc1de; case SiteEntity::TYPE_STATIC: $siteUpdater = new StaticSiteUpdater($site); goto dc1de; case SiteEntity::TYPE_PHP: $siteUpdater = new PhpSiteUpdater($site); goto dc1de; case SiteEntity::TYPE_PYTHON: $siteUpdater = new PythonSiteUpdater($site); goto dc1de; case SiteEntity::TYPE_REVERSE_PROXY: $siteUpdater = new ReverseProxySiteUpdater($site); goto dc1de; } goto F9b31; F9b31: b85ca: goto e9d01; A8f01: $siteType = $site->getType(); goto e8b4c; cfbd7: $siteUpdater = null; goto A8f01; Dd030: } protected function getSiteEntity(string $domainName) : ?SiteEntity { $siteEntity = $this->siteEntityManager->findOneByDomainName($domainName); return $siteEntity; } protected function getSiteEntityBySiteUser(string $siteUser) : ?SiteEntity { $siteEntity = $this->siteEntityManager->findOneByUser($siteUser); return $siteEntity; } protected function prepareConstraints(ConstraintViolationList $constraints) : void { $this->changePropertyPath("user", "siteUser", $constraints); $this->changePropertyPath("userPassword", "siteUserPassword", $constraints); } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Command; use Symfony\Component\Validator\Validator\ValidatorInterface; use Symfony\Component\Validator\ConstraintViolationList; use Doctrine\Common\Collections\ArrayCollection; use App\Command\Command as BaseCommand; use App\Entity\Site as SiteEntity; use App\Site\Site; use App\Site\NodejsSite; use App\Site\StaticSite; use App\Site\PhpSite; use App\Site\PythonSite; use App\Site\ReverseProxySite; use App\Site\Deleter as SiteDeleter; use App\Site\Updater as SiteUpdater; use App\Site\Updater\NodejsSite as NodejsSiteUpdater; use App\Site\Updater\StaticSite as StaticSiteUpdater; use App\Site\Updater\PhpSite as PhpSiteUpdater; use App\Site\Updater\PythonSite as PythonSiteUpdater; use App\Site\Updater\ReverseProxySite as ReverseProxySiteUpdater; use App\Site\Deleter\NodejsSite as NodejsSiteDeleter; use App\Site\Deleter\StaticSite as StaticSiteDeleter; use App\Site\Deleter\PhpSite as PhpSiteDeleter; use App\Site\Deleter\PythonSite as PythonSiteDeleter; use App\Site\Deleter\ReverseProxySite as ReverseProxySiteDeleter; use App\Site\Parser\DomainName as DomainNameParser; use App\Entity\Manager\SiteManager as SiteEntityManager; use App\Entity\Manager\CertificateManager as CertificateEntityManager; use App\Entity\Manager\VhostTemplateManager as VhostTemplateEntityManager; use App\Entity\Manager\DatabaseServerManager as DatabaseServerEntityManager; class SiteCommand extends BaseCommand { protected DomainNameParser $domainNameParser; protected SiteEntityManager $siteEntityManager; protected CertificateEntityManager $certificateEntityManager; protected DatabaseServerEntityManager $databaseServerEntityManager; protected VhostTemplateEntityManager $vhostTemplateEntityManager; protected ValidatorInterface $validator; public function __construct(DomainNameParser $domainNameParser, SiteEntityManager $siteEntityManager, CertificateEntityManager $certificateEntityManager, DatabaseServerEntityManager $databaseServerEntityManager, VhostTemplateEntityManager $vhostTemplateEntityManager, ValidatorInterface $validator) { goto f1547; f1547: $this->domainNameParser = $domainNameParser; goto d27e0; E6cab: $this->databaseServerEntityManager = $databaseServerEntityManager; goto fce0a; d0651: $this->validator = $validator; goto dc384; dc384: parent::__construct(); goto b078d; d27e0: $this->siteEntityManager = $siteEntityManager; goto a2861; fce0a: $this->vhostTemplateEntityManager = $vhostTemplateEntityManager; goto d0651; a2861: $this->certificateEntityManager = $certificateEntityManager; goto E6cab; b078d: } protected function configure() : void { $this->setName("\x73\151\164\x65\x3a\x74\x6d\160"); } protected function getSite(string $domainName) : ?Site { goto C8207; F8182: if (!(false === is_null($site))) { goto Bdac2; } goto B8094; D5b8f: $site->setCertificate($siteEntity->getCertificate()); goto c54f5; ebecf: C6993: goto F8182; F5f9e: B5e7d: goto ebecf; Eb561: $site->setBlockedIps($siteEntity->getBlockedIps()); goto D5b8f; A9336: $registrableDomain = $resolvedDomainName->registrableDomain()->toString(); goto B30c1; e71ae: $subdomain = false === empty($subdomain) ? $subdomain : null; goto b9b90; E8299: $site->setSubdomain($subdomain); goto Eb960; fd7c0: $siteEntity = $this->getSiteEntity($domainName); goto F1e1b; C8207: $site = null; goto fd7c0; B8094: $resolvedDomainName = $this->domainNameParser->resolveDomainName($domainName); goto A9336; Beb69: $site->setCronJobs($siteEntity->getCronJobs()); goto c1dbe; c54f5: $site->setCertificates($siteEntity->getCertificates()); goto Beb69; B30c1: $subdomain = $resolvedDomainName->subDomain()->toString(); goto e71ae; c1dbe: $site->setFtpUsers($siteEntity->getFtpUsers()); goto D8732; c64f3: $site->setDomainName($siteEntity->getDomainName()); goto df6db; Fe91a: $site->setAllowTrafficFromCloudflareOnly($siteEntity->allowTrafficFromCloudflareOnly()); goto f6a5c; F1544: $site->setPageSpeedSettings($siteEntity->getPageSpeedSettings()); goto ac9f3; D452a: goto Fff8a; goto d80c2; f8fbf: $site->setBlockedBots($siteEntity->getBlockedBots()); goto Eb561; df6db: $site->setRegistrableDomain($registrableDomain); goto E8299; b9b90: $siteDatabases = $this->getSiteDatabases($siteEntity); goto e5423; f6a5c: $site->setPageSpeedEnabled($siteEntity->getPageSpeedEnabled()); goto F1544; F20c9: Fff8a: goto c390a; D8732: $site->setSshUsers($siteEntity->getSshUsers()); goto Ef16b; Cdd92: switch ($siteType) { case SiteEntity::TYPE_NODEJS: goto D0c0c; B8749: $site->setNodejsSettings($siteEntity->getNodejsSettings()); goto ef215; ef215: goto C6993; goto fc179; D0c0c: $site = new NodejsSite(); goto B8749; fc179: case SiteEntity::TYPE_STATIC: $site = new StaticSite(); goto C6993; case SiteEntity::TYPE_PHP: goto b830d; F7a7a: $site->setPhpSettings($siteEntity->getPhpSettings()); goto c4903; c4903: $site->setVarnishCache($siteEntity->getVarnishCache()); goto e05e2; e05e2: goto C6993; goto c2952; b830d: $site = new PhpSite(); goto F7a7a; c2952: case SiteEntity::TYPE_PYTHON: goto Aced6; B32ec: $site->setPythonSettings($siteEntity->getPythonSettings()); goto D563b; Aced6: $site = new PythonSite(); goto B32ec; D563b: goto C6993; goto d1431; d1431: case SiteEntity::TYPE_REVERSE_PROXY: goto D00e1; D00e1: $site = new ReverseProxySite(); goto b4c0b; Ab963: goto C6993; goto fbc88; b4c0b: $site->setReverseProxyUrl($siteEntity->getReverseProxyUrl()); goto Ab963; fbc88: } goto F5f9e; de5cf: $site->setBasicAuth($siteEntity->getBasicAuth()); goto f8fbf; Df99f: throw new \Exception(sprintf("\x53\x69\x74\x65\x20\x22\45\163\x22\x20\x64\157\x65\163\x20\156\157\164\40\145\x78\x69\x73\x74\56", $domainName)); goto D452a; e4bc1: $site->setDatabases($siteDatabases); goto de5cf; Ecce5: $siteType = $siteEntity->getType(); goto Cdd92; d80c2: b27ae: goto Ecce5; Ef16b: $site->setVhostTemplate($siteEntity->getVhostTemplate()); goto Fe91a; e5423: $site->setUser($siteEntity->getUser()); goto c64f3; c390a: return $site; goto B5e5d; Eb960: $site->setRootDirectory($siteEntity->getRootDirectory()); goto e4bc1; ac9f3: Bdac2: goto F20c9; F1e1b: if (false === is_null($siteEntity)) { goto b27ae; } goto Df99f; B5e5d: } private function getSiteDatabases(SiteEntity $siteEntity) : ?ArrayCollection { goto Aef66; cfb46: return $siteDatabases; goto Aa171; de5fa: foreach ($databaseEntities as $databaseEntity) { goto F399d; befff: Bcb78: goto dca60; A46bb: if (!($databaseServerEntity->getId() == $activeDatabaseServerEntity->getId())) { goto Ee0f6; } goto b2718; F399d: $databaseServerEntity = $databaseEntity->getDatabaseServer(); goto A46bb; b2718: $siteDatabases->add($databaseEntity); goto C374f; C374f: Ee0f6: goto befff; dca60: } goto Ff4ca; Ff4ca: D83c4: goto cfb46; E4b06: $databaseEntities = $siteEntity->getDatabases(); goto de5fa; Aef66: $siteDatabases = new ArrayCollection(); goto F0b5e; F0b5e: $activeDatabaseServerEntity = $this->databaseServerEntityManager->getActiveDatabaseServer(); goto E4b06; Aa171: } protected function getSiteDeleter(Site $site) : ?SiteDeleter { goto Be581; Bbf32: Aed72: goto E02b8; A6478: ea304: goto Bbf32; fb3d7: $siteType = $site->getType(); goto Bc865; Be581: $siteDeleter = null; goto fb3d7; E02b8: return $siteDeleter; goto c0da0; Bc865: switch ($siteType) { case SiteEntity::TYPE_NODEJS: $siteDeleter = new NodejsSiteDeleter($site); goto Aed72; case SiteEntity::TYPE_STATIC: $siteDeleter = new StaticSiteDeleter($site); goto Aed72; case SiteEntity::TYPE_PHP: $siteDeleter = new PhpSiteDeleter($site); goto Aed72; case SiteEntity::TYPE_PYTHON: $siteDeleter = new PythonSiteDeleter($site); goto Aed72; case SiteEntity::TYPE_REVERSE_PROXY: $siteDeleter = new ReverseProxySiteDeleter($site); goto Aed72; } goto A6478; c0da0: } protected function getSiteUpdater(Site $site) : ?SiteUpdater { goto cfbd7; e9d01: dc1de: goto d6c6e; d6c6e: return $siteUpdater; goto Dd030; e8b4c: switch ($siteType) { case SiteEntity::TYPE_NODEJS: $siteUpdater = new NodejsSiteUpdater($site); goto dc1de; case SiteEntity::TYPE_STATIC: $siteUpdater = new StaticSiteUpdater($site); goto dc1de; case SiteEntity::TYPE_PHP: $siteUpdater = new PhpSiteUpdater($site); goto dc1de; case SiteEntity::TYPE_PYTHON: $siteUpdater = new PythonSiteUpdater($site); goto dc1de; case SiteEntity::TYPE_REVERSE_PROXY: $siteUpdater = new ReverseProxySiteUpdater($site); goto dc1de; } goto F9b31; F9b31: b85ca: goto e9d01; A8f01: $siteType = $site->getType(); goto e8b4c; cfbd7: $siteUpdater = null; goto A8f01; Dd030: } protected function getSiteEntity(string $domainName) : ?SiteEntity { $siteEntity = $this->siteEntityManager->findOneByDomainName($domainName); return $siteEntity; } protected function getSiteEntityBySiteUser(string $siteUser) : ?SiteEntity { $siteEntity = $this->siteEntityManager->findOneByUser($siteUser); return $siteEntity; } protected function prepareConstraints(ConstraintViolationList $constraints) : void { $this->changePropertyPath("\x75\163\x65\162", "\163\151\x74\x65\125\163\145\x72", $constraints); $this->changePropertyPath("\x75\163\x65\x72\120\x61\163\163\167\157\x72\144", "\163\x69\164\145\x55\163\x65\x72\120\x61\x73\x73\x77\157\x72\144", $constraints); } }

Function Calls

None

Variables

None

Stats

MD5 33ee384e4539ef4aed083771a8b89dac
Eval Count 0
Decode Time 60 ms