Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
root@vps02-east:/home/clp/htdocs/app/files/src/Site# cat PhpSite.php <?php namespace Ap..
Decoded Output download
root@vps02-east:/home/clp/htdocs/app/files/src/Site# cat PhpSite.php
<?php
namespace App\Site; use App\Entity\PhpSettings; use App\System\CommandExecutor; use App\System\Command\CatFileCommand; class PhpSite extends Site { private const TYPE = "php"; protected string $type = self::TYPE; private ?PhpSettings $phpSettings = null; private bool $varnishCache = false; private ?string $varnishCacheSettingsFile = null; private array $varnishCacheSettings = []; public function setPhpSettings(PhpSettings $phpSettings) : void { $this->phpSettings = $phpSettings; } public function getPhpSettings() : ?PhpSettings { return $this->phpSettings; } public function setVarnishCache(bool $flag) : void { $this->varnishCache = $flag; } public function getVarnishCache() : bool { return $this->varnishCache; } public function setVarnishCacheSettings(array $varnishCacheSettings) : void { $this->varnishCacheSettings = $varnishCacheSettings; } public function getVarnishCacheSettings() : array { goto D6ee8; da909: return $this->varnishCacheSettings; goto cbc19; Bb5d0: c9cb6: goto da909; Edf0f: try { goto A3df0; Af57f: $varnishCacheSettingsFileCatCommand->setFile($varnishCacheSettingsFile); goto e931f; B660e: Fa1af: goto b2c2a; A3df0: $varnishCacheSettingsFile = $this->getVarnishCacheSettingsFile(); goto e8c6e; D27f8: $varnishCacheSettings = trim($varnishCacheSettingsFileCatCommand->getOutput()); goto be9dd; be9dd: if (!(false === empty($varnishCacheSettings))) { goto Fa1af; } goto ab447; e8c6e: $commandExecutor = new CommandExecutor(); goto eebd2; a3526: if (!(false === empty($varnishCacheSettings) && true === is_array($varnishCacheSettings))) { goto C311b; } goto Ac7f2; Ac7f2: $this->varnishCacheSettings = $varnishCacheSettings; goto d8028; d8028: C311b: goto B660e; eebd2: $varnishCacheSettingsFileCatCommand = new CatFileCommand(); goto Af57f; ab447: $varnishCacheSettings = @json_decode($varnishCacheSettings, true); goto a3526; e931f: $commandExecutor->execute($varnishCacheSettingsFileCatCommand, 10); goto D27f8; b2c2a: } catch (\Exception $e) { $errorMessage = $e->getMessage(); } goto Bb5d0; D6ee8: if (!(true === empty($this->varnishCacheSettings))) { goto c9cb6; } goto Edf0f; cbc19: } public function setVarnishCacheSettingsFile(?string $varnishCacheSettingsFile) : void { $this->varnishCacheSettingsFile = $varnishCacheSettingsFile; } public function getVarnishCacheSettingsFile() : ?string { goto De4b8; df7e9: $this->varnishCacheSettingsFile = sprintf("/home/%s/.varnish-cache/settings.json", $user); goto d7745; d7745: Eeb58: goto ec853; fdc92: $user = $this->getUser(); goto df7e9; ec853: return $this->varnishCacheSettingsFile; goto C216c; De4b8: if (!(true === is_null($this->varnishCacheSettingsFile))) { goto Eeb58; } goto fdc92; C216c: } } ?>
Did this file decode correctly?
Original Code
root@vps02-east:/home/clp/htdocs/app/files/src/Site# cat PhpSite.php
<?php
namespace App\Site; use App\Entity\PhpSettings; use App\System\CommandExecutor; use App\System\Command\CatFileCommand; class PhpSite extends Site { private const TYPE = "\160\x68\x70"; protected string $type = self::TYPE; private ?PhpSettings $phpSettings = null; private bool $varnishCache = false; private ?string $varnishCacheSettingsFile = null; private array $varnishCacheSettings = []; public function setPhpSettings(PhpSettings $phpSettings) : void { $this->phpSettings = $phpSettings; } public function getPhpSettings() : ?PhpSettings { return $this->phpSettings; } public function setVarnishCache(bool $flag) : void { $this->varnishCache = $flag; } public function getVarnishCache() : bool { return $this->varnishCache; } public function setVarnishCacheSettings(array $varnishCacheSettings) : void { $this->varnishCacheSettings = $varnishCacheSettings; } public function getVarnishCacheSettings() : array { goto D6ee8; da909: return $this->varnishCacheSettings; goto cbc19; Bb5d0: c9cb6: goto da909; Edf0f: try { goto A3df0; Af57f: $varnishCacheSettingsFileCatCommand->setFile($varnishCacheSettingsFile); goto e931f; B660e: Fa1af: goto b2c2a; A3df0: $varnishCacheSettingsFile = $this->getVarnishCacheSettingsFile(); goto e8c6e; D27f8: $varnishCacheSettings = trim($varnishCacheSettingsFileCatCommand->getOutput()); goto be9dd; be9dd: if (!(false === empty($varnishCacheSettings))) { goto Fa1af; } goto ab447; e8c6e: $commandExecutor = new CommandExecutor(); goto eebd2; a3526: if (!(false === empty($varnishCacheSettings) && true === is_array($varnishCacheSettings))) { goto C311b; } goto Ac7f2; Ac7f2: $this->varnishCacheSettings = $varnishCacheSettings; goto d8028; d8028: C311b: goto B660e; eebd2: $varnishCacheSettingsFileCatCommand = new CatFileCommand(); goto Af57f; ab447: $varnishCacheSettings = @json_decode($varnishCacheSettings, true); goto a3526; e931f: $commandExecutor->execute($varnishCacheSettingsFileCatCommand, 10); goto D27f8; b2c2a: } catch (\Exception $e) { $errorMessage = $e->getMessage(); } goto Bb5d0; D6ee8: if (!(true === empty($this->varnishCacheSettings))) { goto c9cb6; } goto Edf0f; cbc19: } public function setVarnishCacheSettingsFile(?string $varnishCacheSettingsFile) : void { $this->varnishCacheSettingsFile = $varnishCacheSettingsFile; } public function getVarnishCacheSettingsFile() : ?string { goto De4b8; df7e9: $this->varnishCacheSettingsFile = sprintf("\57\x68\157\155\145\57\x25\x73\x2f\x2e\x76\x61\x72\x6e\151\163\150\x2d\x63\141\143\150\145\x2f\163\x65\164\164\151\x6e\147\x73\x2e\x6a\163\x6f\x6e", $user); goto d7745; d7745: Eeb58: goto ec853; fdc92: $user = $this->getUser(); goto df7e9; ec853: return $this->varnishCacheSettingsFile; goto C216c; De4b8: if (!(true === is_null($this->varnishCacheSettingsFile))) { goto Eeb58; } goto fdc92; C216c: } }
Function Calls
None |
Stats
MD5 | 0389edc9ae863cb1861090be7e6b7217 |
Eval Count | 0 |
Decode Time | 44 ms |