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\Site\Creator; use App\Site\Creator as SiteCreator; use App\Site..

Decoded Output download

<?php 
 
namespace App\Site\Creator; 
 
use App\Site\Creator as SiteCreator; 
use App\Site\Nginx\Vhost\NodejsTemplate; 
use App\System\Command\CopyFileCommand; 
use App\System\Command\WriteFileCommand; 
use App\System\Command\ChownCommand; 
use App\System\Command\FindChmodCommand; 
use App\System\Command\NvmInstallNodejsCommand; 
 
class NodejsSite extends SiteCreator 
{ 
  public function createNvmDirectory(): void 
  { 
    goto D06cc; 
    B597b: 
    $chownCommand = new ChownCommand(); 
    goto e107a; 
    f38f9: 
    $this->commandExecutor->execute($chmodCommand); 
    goto C1166; 
    F757b: 
    $chmodCommand->setFileChmod(770); 
    goto eff0c; 
    ac586: 
    $copyNvmDirectoryCommand->setRecursive(true); 
    goto B71ad; 
    Adfdd: 
    $chmodCommand = new FindChmodCommand(); 
    goto C616c; 
    e107a: 
    $chownCommand->setFile($siteUserNvmDirectory); 
    goto be1a7; 
    Dc6b1: 
    $chownCommand->setUser($siteUser); 
    goto daef0; 
    ddc09: 
    $this->commandExecutor->execute($chownCommand); 
    goto f38f9; 
    B71ad: 
    $copyNvmDirectoryCommand->setSourceFile($nvmDirectory); 
    goto Fb72e; 
    Fb72e: 
    $copyNvmDirectoryCommand->setDestinationFile($siteUserNvmDirectory); 
    goto B597b; 
    C616c: 
    $chmodCommand->setFile($siteUserNvmDirectory); 
    goto Fba90; 
    eff0c: 
    $this->commandExecutor->execute($copyNvmDirectoryCommand); 
    goto ddc09; 
    B3008: 
    $copyNvmDirectoryCommand = new CopyFileCommand(); 
    goto ac586; 
    e96d4: 
    $siteUserNvmDirectory = sprintf("/home/%s/.nvm", $siteUser); 
    goto B3008; 
    D06cc: 
    $siteUser = $this->site->getUser(); 
    goto c05bc; 
    daef0: 
    $chownCommand->setGroup($siteUser); 
    goto Adfdd; 
    be1a7: 
    $chownCommand->setRecursive(true); 
    goto Dc6b1; 
    c05bc: 
    $nvmDirectory = realpath(dirname(__FILE__) . "/../../../resources/etc/skel/nvm/"); 
    goto e96d4; 
    Fba90: 
    $chmodCommand->setDirectoryChmod(770); 
    goto F757b; 
    C1166: 
  } 
  public function installNodejs() 
  { 
    goto daa7b; 
    F4ffd: 
    $this->commandExecutor->execute($installNodejsCommand, 180); 
    goto ebace; 
    ebace: 
    ea0d3: 
    goto A76e8; 
    cc4a1: 
    if (!("dev" != $_ENV["APP_ENV"])) { 
      goto ea0d3; 
    } 
    goto F4ffd; 
    Dd4e0: 
    $installNodejsCommand->setRunAsUser($siteUser); 
    goto d9442; 
    daa7b: 
    $siteUser = $this->site->getUser(); 
    goto A2fd9; 
    dccb6: 
    $installNodejsCommand = new NvmInstallNodejsCommand(); 
    goto Dd4e0; 
    A2fd9: 
    $nodejsSettings = $this->site->getNodejsSettings(); 
    goto b9e1d; 
    b9e1d: 
    $nodejsVersion = $nodejsSettings->getNodejsVersion(); 
    goto dccb6; 
    d9442: 
    $installNodejsCommand->setNodejsVersion($nodejsVersion); 
    goto cc4a1; 
    A76e8: 
  } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Site\Creator;

use App\Site\Creator as SiteCreator;
use App\Site\Nginx\Vhost\NodejsTemplate;
use App\System\Command\CopyFileCommand;
use App\System\Command\WriteFileCommand;
use App\System\Command\ChownCommand;
use App\System\Command\FindChmodCommand;
use App\System\Command\NvmInstallNodejsCommand;

class NodejsSite extends SiteCreator
{
  public function createNvmDirectory(): void
  {
    goto D06cc;
    B597b:
    $chownCommand = new ChownCommand();
    goto e107a;
    f38f9:
    $this->commandExecutor->execute($chmodCommand);
    goto C1166;
    F757b:
    $chmodCommand->setFileChmod(770);
    goto eff0c;
    ac586:
    $copyNvmDirectoryCommand->setRecursive(true);
    goto B71ad;
    Adfdd:
    $chmodCommand = new FindChmodCommand();
    goto C616c;
    e107a:
    $chownCommand->setFile($siteUserNvmDirectory);
    goto be1a7;
    Dc6b1:
    $chownCommand->setUser($siteUser);
    goto daef0;
    ddc09:
    $this->commandExecutor->execute($chownCommand);
    goto f38f9;
    B71ad:
    $copyNvmDirectoryCommand->setSourceFile($nvmDirectory);
    goto Fb72e;
    Fb72e:
    $copyNvmDirectoryCommand->setDestinationFile($siteUserNvmDirectory);
    goto B597b;
    C616c:
    $chmodCommand->setFile($siteUserNvmDirectory);
    goto Fba90;
    eff0c:
    $this->commandExecutor->execute($copyNvmDirectoryCommand);
    goto ddc09;
    B3008:
    $copyNvmDirectoryCommand = new CopyFileCommand();
    goto ac586;
    e96d4:
    $siteUserNvmDirectory = sprintf("\x2f\x68\x6f\x6d\145\x2f\45\163\x2f\x2e\x6e\166\155", $siteUser);
    goto B3008;
    D06cc:
    $siteUser = $this->site->getUser();
    goto c05bc;
    daef0:
    $chownCommand->setGroup($siteUser);
    goto Adfdd;
    be1a7:
    $chownCommand->setRecursive(true);
    goto Dc6b1;
    c05bc:
    $nvmDirectory = realpath(dirname(__FILE__) . "\57\x2e\x2e\x2f\x2e\56\57\56\56\57\162\x65\x73\x6f\x75\162\143\145\163\x2f\x65\164\x63\x2f\163\x6b\145\154\x2f\156\x76\155\57");
    goto e96d4;
    Fba90:
    $chmodCommand->setDirectoryChmod(770);
    goto F757b;
    C1166:
  }
  public function installNodejs()
  {
    goto daa7b;
    F4ffd:
    $this->commandExecutor->execute($installNodejsCommand, 180);
    goto ebace;
    ebace:
    ea0d3:
    goto A76e8;
    cc4a1:
    if (!("\144\145\x76" != $_ENV["\101\120\120\137\105\x4e\x56"])) {
      goto ea0d3;
    }
    goto F4ffd;
    Dd4e0:
    $installNodejsCommand->setRunAsUser($siteUser);
    goto d9442;
    daa7b:
    $siteUser = $this->site->getUser();
    goto A2fd9;
    dccb6:
    $installNodejsCommand = new NvmInstallNodejsCommand();
    goto Dd4e0;
    A2fd9:
    $nodejsSettings = $this->site->getNodejsSettings();
    goto b9e1d;
    b9e1d:
    $nodejsVersion = $nodejsSettings->getNodejsVersion();
    goto dccb6;
    d9442:
    $installNodejsCommand->setNodejsVersion($nodejsVersion);
    goto cc4a1;
    A76e8:
  }
}

Function Calls

None

Variables

None

Stats

MD5 9e7099fd3ea2d7b8a6dc76f4ee293feb
Eval Count 0
Decode Time 49 ms