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\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component..

Decoded Output download

<?php 
 namespace App\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormInterface; use S 
ymfony\Component\Form\FormEvents; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\ 
Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Validator\Constraints as Assert; use App\Validat 
or\Constraints as AppAssert; class SiteNewWordPressType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) : void 
 { goto Daeb8; B9a7e: $builder->add("siteTitle", TextType::class, ["required" => true, "attr" = 
> ["class" => "form-control form-control-lg", "pla\ 
x63eholder" => "Site Title"], "label" => "Site Title", "d\x6 
1ta" => "Site Title", "constraints" => [new Assert\NotBlank()]]); goto ccb70; Bed40: $buil 
der->add("adminUserName", TextType::class, ["required" => true, "attr" => ["c\x6 
cass" => "form-control form-control-lg"], "label" 
=> "Admin User Name", "data" => "admin", "constraints 
" => [new Assert\NotBlank(), new Assert\Length(["min" => 3])]]); goto Ddca4; a991f: $builder->add("siteUserPass\1 
67ord", TextType::class, ["required" => true, "attr" => ["class" => "form-co\ 
x6etrol form-control-lg"], "label" => "Site User P\1 
41ssword", "constraints" => [new Assert\NotBlank(), new Assert\Length(["min" => 8, "max" 
=> 200])]]); goto Bed40; da30e: $multiSiteChoices = ["No" => false, "Yes" => true]; goto D025d; Ddca4: $builder->add("adminP\ 
141ssword", TextType::class, ["required" => true, "attr" => ["class" => "form 
-control form-control-lg"], "label" => "Admin Pa\x 
73sword", "constraints" => [new Assert\NotBlank()]]); goto F5014; F6215: $builder->addEventListener(FormEvents 
::PRE_SUBMIT, function (FormEvent $event) { goto d8f38; d8f38: $data = $event->getData(); goto cb66d; cd7aa: $data["domainName"] 
 = str_replace(["https://", "http://"], ['', ''], $data["domainName"]); goto A8004; cb6 
6d: $data["domainName"] = true === isset($data["domainName"]) ? strtolower($data["doma 
inName"]) : ''; goto cd7aa; A8004: $event->setData($data); goto C7f0d; C7f0d: }); goto c7880; Daeb8: $builder->add("domain 
Name", TextType::class, ["required" => true, "attr" => ["class" => "form-c\x6 
fntrol form-control-lg", "placeholder" => "www. 
4omain.com"], "label" => "Domain Name", "constraint\16 
3" => [new Assert\NotBlank(), new AppAssert\DomainName(), new AppAssert\UniqueDomainName()]]); goto B9a7e; D025d: $builder->add("multiSi\ 
x74e", ChoiceType::class, ["required" => true, "attr" => ["class" => "form-sel\x 
65ct form-select-lg"], "label" => "Multisite", "choi\1 
43es" => $multiSiteChoices, "data" => false]); goto F6215; ccb70: $builder->add("siteUser", TextType::class, ["r\ 
x65quired" => true, "attr" => ["class" => "form-control form\5 
5control-lg", "placeholder" => "site-user"], "label" = 
> "Site User", "constraints" => [new Assert\NotBlank(), new Assert\Regex("/^[a-z\ 
135[-a-z0-9_]+$/iu"), new Assert\Length(["min" => 3, "max" => 32]), new AppAssert\UniqueSystemUser() 
]]); goto a991f; F5014: $builder->add("adminEmail", EmailType::class, ["required" => true, "att 
r" => ["class" => "form-control form-control-lg", "p\ 
154aceholder" => "[email protected]"], "label" => "A 
4min E-Mail", "constraints" => [new Assert\NotBlank(), new Assert\Email()]]); goto da30e; c7880 
: } public function getName() : string { return "clp_site_new_wordpress"; } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormInterface; use S
ymfony\Component\Form\FormEvents; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\
Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Validator\Constraints as Assert; use App\Validat
or\Constraints as AppAssert; class SiteNewWordPressType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) : void
 { goto Daeb8; B9a7e: $builder->add("\163\151\x74\x65\x54\x69\164\x6c\145", TextType::class, ["\162\145\161\x75\x69\x72\x65\144" => true, "\141\164\x74\x72" =
> ["\143\154\141\x73\x73" => "\x66\157\x72\155\x2d\143\157\156\164\x72\x6f\x6c\40\x66\x6f\162\x6d\x2d\x63\x6f\156\x74\162\157\x6c\x2d\x6c\x67", "\160\154\141\
x63\145\x68\x6f\x6c\x64\145\x72" => "\123\x69\164\x65\40\124\x69\x74\x6c\x65"], "\154\141\x62\x65\x6c" => "\x53\151\x74\145\x20\124\x69\164\x6c\x65", "\x64\x6
1\164\141" => "\123\151\164\x65\40\x54\151\x74\154\145", "\143\x6f\x6e\163\164\162\141\x69\156\164\163" => [new Assert\NotBlank()]]); goto ccb70; Bed40: $buil
der->add("\141\144\x6d\151\156\125\x73\x65\x72\x4e\141\x6d\x65", TextType::class, ["\162\145\161\x75\151\162\x65\x64" => true, "\141\164\164\162" => ["\x63\x6
c\x61\163\x73" => "\x66\x6f\x72\x6d\x2d\x63\157\x6e\164\x72\x6f\154\x20\x66\x6f\162\x6d\x2d\143\x6f\156\164\162\x6f\154\x2d\154\x67"], "\154\x61\142\x65\154"
=> "\x41\144\155\151\156\x20\x55\x73\145\162\x20\116\x61\155\145", "\x64\x61\x74\141" => "\x61\x64\155\151\x6e", "\143\x6f\156\163\164\162\x61\x69\156\164\163
" => [new Assert\NotBlank(), new Assert\Length(["\x6d\x69\x6e" => 3])]]); goto Ddca4; a991f: $builder->add("\163\151\x74\145\x55\163\x65\162\x50\x61\163\x73\1
67\157\x72\x64", TextType::class, ["\162\x65\161\165\x69\x72\x65\x64" => true, "\x61\164\164\x72" => ["\x63\154\x61\x73\x73" => "\146\x6f\162\155\x2d\x63\157\
x6e\164\x72\x6f\154\x20\146\x6f\x72\x6d\x2d\x63\x6f\x6e\164\x72\157\x6c\55\x6c\x67"], "\154\141\x62\x65\x6c" => "\123\x69\x74\x65\x20\x55\x73\145\x72\40\120\1
41\x73\163\167\157\x72\x64", "\x63\x6f\156\163\164\x72\141\151\x6e\164\163" => [new Assert\NotBlank(), new Assert\Length(["\x6d\151\156" => 8, "\x6d\141\x78"
=> 200])]]); goto Bed40; da30e: $multiSiteChoices = ["\116\157" => false, "\x59\x65\x73" => true]; goto D025d; Ddca4: $builder->add("\x61\144\155\x69\x6e\x50\
141\163\x73\x77\157\162\x64", TextType::class, ["\x72\x65\x71\165\x69\x72\145\144" => true, "\141\164\164\x72" => ["\143\154\x61\x73\x73" => "\146\x6f\162\x6d
\x2d\x63\157\156\164\162\157\x6c\40\146\x6f\x72\155\55\143\157\x6e\164\162\157\154\x2d\154\147"], "\x6c\141\142\x65\154" => "\x41\x64\x6d\151\x6e\40\x50\141\x
73\163\167\x6f\162\144", "\x63\157\156\x73\x74\162\x61\151\156\x74\163" => [new Assert\NotBlank()]]); goto F5014; F6215: $builder->addEventListener(FormEvents
::PRE_SUBMIT, function (FormEvent $event) { goto d8f38; d8f38: $data = $event->getData(); goto cb66d; cd7aa: $data["\x64\x6f\x6d\141\x69\x6e\x4e\x61\155\145"]
 = str_replace(["\150\164\164\160\x73\72\57\x2f", "\150\x74\x74\x70\72\x2f\57"], ['', ''], $data["\144\x6f\155\141\x69\x6e\x4e\141\x6d\x65"]); goto A8004; cb6
6d: $data["\144\x6f\155\x61\151\156\116\x61\x6d\x65"] = true === isset($data["\144\x6f\155\x61\151\156\x4e\x61\155\x65"]) ? strtolower($data["\x64\x6f\x6d\x61
\x69\156\x4e\141\155\x65"]) : ''; goto cd7aa; A8004: $event->setData($data); goto C7f0d; C7f0d: }); goto c7880; Daeb8: $builder->add("\144\x6f\155\141\151\x6e
\x4e\141\155\145", TextType::class, ["\162\145\161\x75\x69\162\x65\x64" => true, "\141\x74\164\162" => ["\x63\154\x61\x73\x73" => "\x66\157\162\x6d\x2d\143\x6
f\x6e\164\162\x6f\x6c\x20\x66\x6f\x72\155\x2d\x63\157\x6e\x74\162\157\154\x2d\154\147", "\160\x6c\x61\143\145\150\157\154\144\x65\x72" => "\x77\x77\167\x2e\14
4\x6f\155\x61\x69\x6e\56\x63\157\155"], "\x6c\141\x62\x65\x6c" => "\x44\157\x6d\x61\151\x6e\x20\x4e\x61\x6d\x65", "\143\157\156\x73\164\162\141\x69\156\164\16
3" => [new Assert\NotBlank(), new AppAssert\DomainName(), new AppAssert\UniqueDomainName()]]); goto B9a7e; D025d: $builder->add("\155\x75\x6c\164\151\x53\x69\
x74\x65", ChoiceType::class, ["\x72\145\x71\165\x69\x72\x65\x64" => true, "\141\x74\x74\162" => ["\143\154\x61\x73\x73" => "\146\157\162\155\x2d\163\145\x6c\x
65\x63\x74\x20\146\157\x72\x6d\55\163\145\154\145\143\164\x2d\154\x67"], "\x6c\141\x62\x65\154" => "\115\165\x6c\x74\151\163\x69\164\145", "\x63\x68\157\x69\1
43\x65\163" => $multiSiteChoices, "\144\x61\164\x61" => false]); goto F6215; ccb70: $builder->add("\x73\151\164\x65\x55\163\145\x72", TextType::class, ["\x72\
x65\161\x75\x69\x72\145\x64" => true, "\141\x74\x74\x72" => ["\143\x6c\x61\163\163" => "\146\x6f\162\155\x2d\x63\x6f\156\164\x72\x6f\x6c\x20\x66\157\x72\155\5
5\143\x6f\x6e\164\162\x6f\x6c\55\154\147", "\x70\x6c\141\143\145\150\x6f\154\x64\145\x72" => "\x73\x69\164\145\x2d\165\163\145\162"], "\154\x61\x62\x65\154" =
> "\x53\x69\164\145\x20\x55\163\x65\162", "\x63\157\x6e\163\164\x72\x61\151\x6e\164\x73" => [new Assert\NotBlank(), new Assert\Regex("\57\x5e\133\x61\x2d\x7a\
135\x5b\55\x61\55\172\60\x2d\71\137\135\x2b\44\x2f\151\x75"), new Assert\Length(["\x6d\151\x6e" => 3, "\x6d\141\170" => 32]), new AppAssert\UniqueSystemUser()
]]); goto a991f; F5014: $builder->add("\x61\x64\155\151\156\x45\155\x61\x69\154", EmailType::class, ["\162\x65\161\165\x69\162\145\x64" => true, "\141\x74\x74
\162" => ["\x63\x6c\141\163\163" => "\146\157\x72\x6d\x2d\x63\x6f\x6e\x74\x72\x6f\154\x20\146\157\162\x6d\x2d\143\157\x6e\164\162\157\154\x2d\154\147", "\160\
154\x61\143\145\150\157\x6c\144\x65\162" => "\152\157\x68\x6e\56\144\x6f\145\x40\x64\157\155\141\x69\x6e\x2e\x63\x6f\155"], "\154\141\142\145\154" => "\101\14
4\x6d\151\x6e\x20\x45\x2d\115\x61\151\154", "\x63\x6f\156\163\x74\x72\141\x69\156\164\x73" => [new Assert\NotBlank(), new Assert\Email()]]); goto da30e; c7880
: } public function getName() : string { return "\x63\154\x70\x5f\x73\x69\x74\x65\137\156\145\x77\137\x77\157\x72\x64\160\x72\145\x73\163"; } }

Function Calls

None

Variables

None

Stats

MD5 6dced2c19945ec47573dabf3561764c9
Eval Count 0
Decode Time 43 ms