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\Extension\Core\Type\TextareaType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\FormEvents; use Symfony\Component\Validator\Constraints as Assert; class SiteSshUserType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) : void { goto b10df; b10df: $builder->add("userName", TextType::class, ["required" => true, "mapped" => true, "attr" => ["class" => "form-control form-control-lg", "placeholder" => "john-ssh"], "label" => "User Name"]); goto b41c5; ce3c3: $builder->add("sshKeys", TextareaType::class, ["required" => false, "attr" => ["class" => "form-control form-control-lg", "rows" => 5], "label" => "SSH Keys"]); goto b54cf; b41c5: $builder->add("password", TextType::class, ["required" => true, "mapped" => false, "attr" => ["class" => "form-control form-control-lg"], "label" => "Password", "constraints" => [new Assert\NotBlank(), new Assert\Length(["min" => 8]), new Assert\Length(["max" => 40])]]); goto ce3c3; b54cf: $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { goto ca033; ca033: $data = $event->getData(); goto E6dfb; E6dfb: $data["userName"] = true === isset($data["userName"]) ? strtolower($data["userName"]) : ''; goto E75e7; E75e7: $event->setData($data); goto ec5e4; ec5e4: }); goto ad23c; ad23c: } public function getName() : string { return "clp_site_ssh_user"; } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormEvent; use Symfony\Component\Form\FormEvents; use Symfony\Component\Validator\Constraints as Assert; class SiteSshUserType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) : void { goto b10df; b10df: $builder->add("\x75\163\145\x72\116\x61\155\145", TextType::class, ["\x72\145\161\x75\151\162\x65\x64" => true, "\155\141\x70\x70\145\x64" => true, "\141\164\164\162" => ["\143\x6c\141\163\163" => "\146\x6f\162\155\55\x63\x6f\x6e\164\162\157\x6c\x20\146\x6f\162\155\x2d\x63\157\x6e\x74\162\157\154\x2d\154\x67", "\160\154\x61\x63\x65\x68\x6f\x6c\144\x65\162" => "\x6a\x6f\150\x6e\55\163\163\150"], "\154\x61\x62\x65\x6c" => "\125\163\x65\162\x20\x4e\141\x6d\x65"]); goto b41c5; ce3c3: $builder->add("\163\x73\150\113\x65\171\163", TextareaType::class, ["\162\x65\161\x75\x69\x72\x65\144" => false, "\x61\x74\x74\162" => ["\x63\x6c\x61\163\163" => "\146\x6f\162\x6d\x2d\143\157\156\x74\x72\157\154\x20\146\x6f\x72\x6d\55\143\157\156\164\x72\x6f\154\x2d\154\x67", "\162\157\x77\163" => 5], "\154\x61\142\x65\154" => "\123\123\x48\40\x4b\145\x79\163"]); goto b54cf; b41c5: $builder->add("\x70\141\163\163\167\157\x72\x64", TextType::class, ["\x72\145\x71\x75\x69\x72\145\144" => true, "\155\141\160\160\145\144" => false, "\141\x74\164\162" => ["\x63\x6c\141\163\163" => "\x66\x6f\162\x6d\55\143\x6f\x6e\x74\162\x6f\x6c\40\146\x6f\x72\x6d\55\143\x6f\156\164\162\x6f\154\55\154\147"], "\x6c\x61\x62\x65\154" => "\120\x61\163\x73\167\157\162\144", "\x63\157\156\163\x74\162\141\x69\156\164\163" => [new Assert\NotBlank(), new Assert\Length(["\155\x69\156" => 8]), new Assert\Length(["\155\x61\170" => 40])]]); goto ce3c3; b54cf: $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { goto ca033; ca033: $data = $event->getData(); goto E6dfb; E6dfb: $data["\x75\x73\145\x72\116\141\155\145"] = true === isset($data["\x75\163\x65\x72\x4e\141\155\145"]) ? strtolower($data["\165\163\x65\162\116\141\x6d\x65"]) : ''; goto E75e7; E75e7: $event->setData($data); goto ec5e4; ec5e4: }); goto ad23c; ad23c: } public function getName() : string { return "\143\154\x70\137\163\x69\x74\x65\x5f\163\x73\x68\x5f\165\x73\145\x72"; } }

Function Calls

None

Variables

None

Stats

MD5 d16fb6277dd67305d3f23569ad4f6be5
Eval Count 0
Decode Time 43 ms