Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

namespace App\Controller\Admin; use Symfony\Component\Form\FormError; use Symfony\Componen..

Decoded Output download

<?  namespace App\Controller\Admin; use Symfony\Component\Form\FormError; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Contracts\Translation\TranslatorInterface; use Symfony\Component\Form\Form; use App\Controller\Controller; use App\Event\EventQueue; use App\Service\Crypto; use App\Service\Logger; use App\Entity\Manager\DatabaseServerManager as DatabaseServerEntityManager; use App\Database\Connection as DatabaseConnection; use App\Entity\Manager\ConfigManager; use App\Entity\Certificate as CertificateEntity; use App\Entity\DatabaseServer as DatabaseServerEntity; use App\Security\Admin\CustomDomain as AdminCustomDomain; use App\Site\Ssl\DistinguishedName; use App\Site\Ssl\Generator\RsaKeyGenerator; use App\Site\Ssl\Generator\CsrGenerator; use App\Site\Ssl\PrivateKey; use App\Site\Ssl\Certificate; use App\Site\Ssl\LetsEncryptClient; use App\Site\Ssl\Util\Openssl; class SettingsController extends Controller { private ConfigManager $configManager; private DatabaseServerEntityManager $databaseServerEntityManager; public function __construct(ConfigManager $configManager, DatabaseServerEntityManager $databaseServerEntityManager, TranslatorInterface $translator, Logger $logger) { goto E33f3; E33f3: $this->configManager = $configManager; goto b88a6; b88a6: $this->databaseServerEntityManager = $databaseServerEntityManager; goto e9787; e9787: parent::__construct($translator, $logger); goto C0906; C0906: } public function settings(Request $request) : Response { goto F0392; ee748: fdf2c: goto C7e55; Cd525: $customDomainForm->handleRequest($request); goto fc5e1; be402: $response = $this->render("Admin/Settings/index.html.twig", ["customDomainForm" => $customDomainForm->createView(), "formErrors" => $this->formErrors]); goto a1964; ccd55: $customDomainForm = $this->createCustomDomainForm($customDomainData); goto F6583; a1964: return $response; goto e7971; C7e55: Dd546: goto Fbb92; b0c59: $response = $this->handleCustomDomainForm($request, $customDomainForm); goto ce995; ce995: if (!(false === is_null($response))) { goto fdf2c; } goto A0d5a; F0392: $customDomainName = $this->configManager->get("custom_domain"); goto e61fa; fc5e1: if (!(true === $customDomainForm->isSubmitted())) { goto Dd546; } goto b0c59; F6583: if (!(true === $request->isMethod("POST"))) { goto Fa1ce; } goto Cd525; A0d5a: return $response; goto ee748; e61fa: $customDomainData = ["domainName" => false === is_null($customDomainName) ? $customDomainName : '']; goto ccd55; Fbb92: Fa1ce: goto be402; e7971: } private function createCustomDomainForm(array $data) : Form { goto B6025; B8e4f: $form->add("submit", SubmitType::class, ["attr" => ["class" => "btn btn-blue btn-lg"], "label" => "Save"]); goto aae55; aae55: return $form; goto c1ea9; B6025: $form = $this->createForm("App\Form\AdminCustomDomainSettingsType", $data, ["action" => $this->generateUrl("clp_admin_settings"), "method" => "POST", "attr" => []]); goto B8e4f; c1ea9: } private function handleCustomDomainForm(Request $request, Form $form) { goto Cb0a9; Cb0a9: if (true === $form->isValid()) { goto Da7dd; } goto E2eb4; fd575: Da7dd: goto cb1dc; E2eb4: $this->formErrors = $this->getErrorMessages($form); goto Aa3e5; efaef: E7aba: goto A781e; cb1dc: try { goto Cb01d; d2ba5: $adminCustomDomain->delete(); goto a3833; b5cf6: $distinguishedName = new DistinguishedName($commonName, $distinguishedNameDomains); goto E6fea; a3833: $this->configManager->delete("custom_domain"); goto a8478; b14d2: $certificate->setPrivateKey($privateKey->getPEM()); goto Fb7f9; B00af: $letsEncryptClient = new LetsEncryptClient($privateKey); goto C1d7e; b65f1: $domains = [$domainName]; goto ae950; c7beb: $vhostTemplate = file_get_contents($vhostTemplateFile); goto a4f76; fd85f: $adminCustomDomain->createLetsEncryptChallengeFiles($certificateOrder); goto cbedd; De4c3: $session = $request->getSession(); goto e7025; dcb65: return $response; goto Dfaef; f7598: $adminCustomDomain->writeMotdFile($domainName); goto B414d; F25ca: dc028: goto F314c; ce185: Fa53f: goto afc6e; ef0ec: $selfSignedCertificate = Openssl::createSelfSignedCertificate($privateKey, $csr); goto af05d; D34c1: $session->getFlashBag()->set("success", $this->translator->trans("CloudPanel Custom Domain has been saved.")); goto dc40b; af05d: $certificate = new Certificate(); goto b14d2; Dfaef: a9842: goto ce185; F314c: $certificate = $letsEncryptClient->finalizeOrder($certificateOrder, $privateKey, $csr); goto aafa1; e7025: $domainName = $form->get("domainName")->getData(); goto f4739; f75dc: $vhostTemplateFile = realpath(dirname(__FILE__) . "/../../../resources/nginx/vhost_template/custom-domain"); goto c7beb; F2ca2: $adminCustomDomain->writeVhostFile($domainName, $vhostTemplate); goto f7598; feae9: $csrGenerator = new CsrGenerator($privateKey, $distinguishedName); goto Ba0db; b5e2b: if (true === empty($validationErrors)) { goto dc028; } goto e070f; a4f76: $distinguishedNameDomains = $domains; goto F3861; F640e: return $response; goto Fac55; Bf7db: $session->getFlashBag()->set("success", $this->translator->trans("CloudPanel Custom Domain has been saved.")); goto Aaa8a; Fa0c4: efa0d: goto b65f1; Cb01d: $user = $this->getUser(); goto De4c3; Fb7f9: $certificate->setCertificate($selfSignedCertificate); goto b68f0; Ba0db: $csr = $csrGenerator->generate(); goto ef0ec; Bdaac: $privateKey = new PrivateKey($letsEncryptPrivateKey); goto B00af; b68f0: $adminCustomDomain->deleteLetsEncryptChallengeFiles(); goto fd85f; e163a: if (false === empty($domainName)) { goto efa0d; } goto f9dfd; C4a7d: $certificateOrder = $letsEncryptClient->requestOrder($domains); goto f75dc; bc350: foreach ($validationErrors as $domain => $validationErrorMessage) { $form->addError(new FormError(sprintf("%s: %s", $domain, $validationErrorMessage))); c33c0: } goto C7def; Fac55: goto Fa53f; goto Fa0c4; Aaa8a: $response = $this->redirect($this->generateUrl("clp_admin_settings")); goto dcb65; a8478: EventQueue::addEvent(EventQueue::EVENT_ADMIN_CUSTOM_DOMAIN_DISABLE, $user, [], $request); goto D34c1; B414d: $adminCustomDomain->reloadNginx(); goto a2a56; ae950: $letsEncryptPrivateKey = $this->configManager->get("le_private_key"); goto Bdaac; e7edd: $this->formErrors = $this->getErrorMessages($form); goto Aa7c9; a2a56: $this->configManager->set("custom_domain", $domainName); goto eda72; F3861: $commonName = array_shift($distinguishedNameDomains); goto b5cf6; Ce484: $privateKey = $rsaKeyGenerator->generatePrivateKey(); goto feae9; C7def: D52e6: goto e7edd; aafa1: $adminCustomDomain->writePrivateKeyAndCertificate($certificate); goto F2ca2; f9dfd: $adminCustomDomain = new AdminCustomDomain(); goto d2ba5; c6ca7: $adminCustomDomain->writeVhostFile($domainName, $vhostTemplate); goto b267a; Cddd1: EventQueue::addEvent(EventQueue::EVENT_ADMIN_CUSTOM_DOMAIN_ENABLE, $user, $eventData, $request); goto Bf7db; F4388: $validationErrors = $letsEncryptClient->validateDomains($certificateOrder); goto b5e2b; E6fea: $rsaKeyGenerator = new RsaKeyGenerator(); goto Ce484; eda72: $eventData = ["domainName" => $domainName]; goto Cddd1; e070f: $adminCustomDomain = new AdminCustomDomain(); goto a6ceb; Aa7c9: goto a9842; goto F25ca; cbedd: $adminCustomDomain->writePrivateKeyAndCertificate($certificate); goto c6ca7; C1d7e: $letsEncryptClient->registerAccount(); goto C4a7d; b267a: $adminCustomDomain->reloadNginx(); goto F4388; a6ceb: $adminCustomDomain->delete(); goto bc350; dc40b: $response = $this->redirect($this->generateUrl("clp_admin_settings")); goto F640e; f4739: $adminCustomDomain = new AdminCustomDomain(); goto e163a; afc6e: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("danger", $this->translator->trans("An error has occurred, error message: %errorMessage%", ["%errorMessage%" => $e->getMessage()])); } finally { if (!(true === isset($adminCustomDomain))) { goto F4059; } $adminCustomDomain->deleteLetsEncryptChallengeFiles(); F4059: } goto efaef; Aa3e5: goto E7aba; goto fd575; A781e: } public function databaseServers(Request $request) : Response { goto e936d; Ed4aa: $response = $this->render("Admin/Settings/Database-Servers/index.html.twig", ["databaseServers" => $databaseServers]); goto F1add; F1add: return $response; goto A8690; e936d: $databaseServers = $this->databaseServerEntityManager->findAll([], ["host" => "ASC"]); goto Ed4aa; A8690: } public function addDatabaseServer(Request $request) : Response { goto Aa1d7; Aee4e: return $response; goto d2d42; De17a: b6248: goto C6a42; C6a42: ae25c: goto e2bd6; Aa1d7: $databaseServerEntity = $this->databaseServerEntityManager->createEntity(); goto F0171; Cac4c: if (!(true === $form->isSubmitted())) { goto b6248; } goto Bce81; e4ee5: return $response; goto e559c; aee40: $form->handleRequest($request); goto Cac4c; b9218: if (!(true === $request->isMethod("POST"))) { goto ae25c; } goto aee40; F0171: $form = $this->createDatabaseServerForm($databaseServerEntity); goto b9218; e2bd6: $response = $this->render("Admin/Settings/Database-Servers/add.html.twig", ["form" => $form->createView(), "formErrors" => $this->formErrors]); goto e4ee5; B5db4: if (!(false === is_null($response))) { goto A2112; } goto Aee4e; d2d42: A2112: goto De17a; Bce81: $response = $this->handleDatabaseServerForm($request, $form); goto B5db4; e559c: } private function createDatabaseServerForm(DatabaseServerEntity $databaseServerEntity) : Form { goto f60d4; Cd81c: $form->add("submit", SubmitType::class, ["attr" => ["class" => "btn btn-blue btn-lg"], "label" => "Add Database Server"]); goto E0906; f60d4: $form = $this->createForm("App\Form\AdminDatabaseServerType", $databaseServerEntity, ["action" => $this->generateUrl("clp_admin_database_server_add"), "method" => "POST", "attr" => []]); goto Cd81c; E0906: return $form; goto b3139; b3139: } private function handleDatabaseServerForm(Request $request, Form $form) { goto e39db; D740c: e7f63: goto a4f93; fc128: try { goto B83cc; a46ef: $databaseServerEntity->setVersion($version); goto ef5bc; fcf5a: $encryptedPassword = Crypto::encrypt($password); goto Cf40d; eafae: $this->databaseServerEntityManager->updateEntity($databaseServerEntity); goto D26cf; a57ee: $version = $databaseConnection->getVersion(); goto B7aaf; ef5bc: $databaseServerEntity->setIsDefault(false); goto ef173; Eb9b6: EventQueue::addEvent(EventQueue::EVENT_DATABASE_SERVER_ADD, $user, $eventData, $request); goto eafae; a5814: $databaseConnection = new DatabaseConnection($databaseServerEntity); goto a753e; a3f3d: $password = $databaseServerEntity->getPassword(); goto fcf5a; Ca2df: $databaseServerEntity = $form->getData(); goto a3f3d; ef173: $eventData = ["host" => $databaseServerEntity->getHost(), "userName" => $databaseServerEntity->getUserName(), "port" => $databaseServerEntity->getPort(), "engine" => $engine, "version" => $version]; goto Eb9b6; D26cf: $session->getFlashBag()->set("success", $this->translator->trans("Database Server has been added.")); goto F47d2; B7aaf: $databaseServerEntity->setEngine($engine); goto a46ef; B83cc: $user = $this->getUser(); goto D0ef9; a753e: $engine = $databaseConnection->getEngine(); goto a57ee; Cf40d: $databaseServerEntity->setPassword($encryptedPassword); goto a5814; D0ef9: $session = $request->getSession(); goto Ca2df; A281a: return $response; goto A8e3c; F47d2: $response = $this->redirect($this->generateUrl("clp_admin_database_servers")); goto A281a; A8e3c: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("danger", $this->translator->trans("An error has occurred, error message: %errorMessage%", ["%errorMessage%" => $e->getMessage()])); } goto D740c; e39db: if (true === $form->isValid()) { goto da25c; } goto Dbe34; d366f: da25c: goto fc128; Dbe34: $this->formErrors = $this->getErrorMessages($form); goto F7c2d; F7c2d: goto e7f63; goto d366f; a4f93: } public function editDatabaseServer(Request $request) : Response { goto Ad8d8; b8d14: $form->handleRequest($request); goto bca9a; deff6: B569e: goto Db47c; caaf6: $response = $this->handleDatabaseServerEditForm($request, $form); goto Ecd9b; B2b63: d343a: goto e443e; Af964: e8853: goto D4099; cf653: $response = $this->render("Admin/Settings/Database-Servers/edit.html.twig", ["databaseServer" => $databaseServerEntity, "form" => $form->createView(), "formErrors" => $this->formErrors]); goto aad71; a013b: return $response; goto B2b63; F1ece: if (true === is_null($databaseServerEntity)) { goto e8853; } goto ea60a; Ad8d8: $id = (int) $request->get("id"); goto F0472; aad71: return $response; goto C39f2; e443e: afaaa: goto F92d7; F92d7: Faa04: goto cf653; Df616: return $response; goto deff6; F0472: $databaseServerEntity = $this->databaseServerEntityManager->findOneById($id); goto F1ece; D4099: $response = $this->redirect($this->generateUrl("clp_admin_database_servers")); goto Df616; ea60a: $databaseServerEntity->setPassword(''); goto a3938; A6c96: if (!(true === $request->isMethod("POST"))) { goto Faa04; } goto b8d14; bca9a: if (!(true === $form->isSubmitted())) { goto afaaa; } goto caaf6; Ecd9b: if (!(false === is_null($response))) { goto d343a; } goto a013b; a3938: $form = $this->createDatabaseServerEditForm($databaseServerEntity); goto A6c96; C39f2: goto B569e; goto Af964; Db47c: } private function createDatabaseServerEditForm(DatabaseServerEntity $databaseServerEntity) : Form { goto c9ae3; b4f13: return $form; goto c2eaf; C2c9f: $form->add("submit", SubmitType::class, ["attr" => ["class" => "btn btn-blue btn-lg"], "label" => "Save"]); goto b4f13; c9ae3: $form = $this->createForm("App\Form\AdminDatabaseServerEditType", $databaseServerEntity, ["action" => $this->generateUrl("clp_admin_database_server_edit", ["id" => $databaseServerEntity->getId()]), "method" => "POST", "attr" => []]); goto C2c9f; c2eaf: } private function handleDatabaseServerEditForm(Request $request, Form $form) { goto e9408; F1603: try { goto f58be; bca19: $databaseServerEntity->setIsDefault(false); goto b3e27; fe191: EventQueue::addEvent(EventQueue::EVENT_DATABASE_SERVER_EDIT, $user, $eventData, $request); goto fb0dd; e1208: $session->getFlashBag()->set("success", $this->translator->trans("Database Server has been updated.")); goto b0e68; a07f1: $databaseConnection = new DatabaseConnection($databaseServerEntity); goto D4400; b3e27: $eventData = ["host" => $databaseServerEntity->getHost(), "userName" => $databaseServerEntity->getUserName(), "port" => $databaseServerEntity->getPort(), "engine" => $engine, "version" => $version]; goto fe191; C2df9: $version = $databaseConnection->getVersion(); goto ecef7; fb0dd: $this->databaseServerEntityManager->updateEntity($databaseServerEntity); goto e1208; b0e68: $response = $this->redirect($this->generateUrl("clp_admin_database_servers")); goto fe0c6; Cca39: $databaseServerEntity->setVersion($version); goto bca19; f58be: $user = $this->getUser(); goto b713c; ecef7: $databaseServerEntity->setEngine($engine); goto Cca39; fe0c6: return $response; goto dc755; Aefef: $databaseServerEntity = $form->getData(); goto F6d6f; F6d6f: $password = $databaseServerEntity->getPassword(); goto dca4a; D4400: $engine = $databaseConnection->getEngine(); goto C2df9; b713c: $session = $request->getSession(); goto Aefef; dca4a: $encryptedPassword = Crypto::encrypt($password); goto a765e; a765e: $databaseServerEntity->setPassword($encryptedPassword); goto a07f1; dc755: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("danger", $this->translator->trans("An error has occurred, error message: %errorMessage%", ["%errorMessage%" => $e->getMessage()])); } goto B3339; B3339: Eadb0: goto Ecce6; e9408: if (true === $form->isValid()) { goto d3286; } goto e818c; e818c: $this->formErrors = $this->getErrorMessages($form); goto d60b6; D63d7: d3286: goto F1603; d60b6: goto Eadb0; goto D63d7; Ecce6: } public function setDatabaseServerActive(Request $request) : Response { goto a46d8; a46d8: $id = (int) $request->get("id"); goto D4a12; D1384: $response = $this->redirect($this->generateUrl("clp_admin_database_servers")); goto Daeab; d3e5b: c4fbe: goto f09a1; D4a12: $databaseServerEntity = $this->databaseServerEntityManager->findOneById($id); goto Daf68; Bb65f: if (!($databaseServerEntity->getId() != $activeDatabaseServerEntity->getId())) { goto c4fbe; } goto E866b; Daeab: return $response; goto Df086; Daf68: if (!(false === is_null($databaseServerEntity))) { goto Ceec4; } goto A40d4; A40d4: $activeDatabaseServerEntity = $this->databaseServerEntityManager->getActiveDatabaseServer(); goto Bb65f; f09a1: Ceec4: goto D1384; E866b: try { goto E9aba; b3427: $session->getFlashBag()->set("success", $this->translator->trans("Database Server has been changed.")); goto Dfa03; dce19: $this->databaseServerEntityManager->updateEntity($databaseServerEntity); goto B1ab5; E9aba: $user = $this->getUser(); goto f3eb3; f3eb3: $session = $request->getSession(); goto Bd506; D7fcd: EventQueue::addEvent(EventQueue::EVENT_DATABASE_SERVER_CHANGE, $user, $eventData, $request); goto b3427; Ad776: $activeDatabaseServerEntity->setIsActive(false); goto dce19; afa70: $eventData = ["oldHost" => $activeDatabaseServerEntity->getHost(), "oldUserName" => $activeDatabaseServerEntity->getUserName(), "newHost" => $databaseServerEntity->getHost(), "newUserName" => $databaseServerEntity->getUserName()]; goto D7fcd; B1ab5: $this->databaseServerEntityManager->updateEntity($activeDatabaseServerEntity); goto afa70; Bd506: $databaseServerEntity->setIsActive(true); goto Ad776; Dfa03: } catch (\Exception $e) { $session->getFlashBag()->set("danger", $this->translator->trans("Database Server credentials are not valid.")); } goto d3e5b; Df086: } public function deleteDatabaseServer(Request $request) : Response { goto B2694; B2694: $id = (int) $request->get("id"); goto cca37; A6f26: if (!(false === is_null($databaseServerEntity) && false === $databaseServerEntity->isDefault() && false === $databaseServerEntity->isActive())) { goto B173f; } goto D0008; cca37: $databaseServerEntity = $this->databaseServerEntityManager->findOneById($id); goto A6f26; D0008: try { goto d8d05; f696b: $eventData = ["host" => $databaseServerEntity->getHost(), "userName" => $databaseServerEntity->getUserName()]; goto e8878; e8878: EventQueue::addEvent(EventQueue::EVENT_DATABASE_SERVER_DELETE, $user, $eventData, $request); goto bd84c; bd84c: $session->getFlashBag()->set("success", $this->translator->trans("Database Server has been deleted.")); goto B80df; F89ef: $this->databaseServerEntityManager->deleteEntity($databaseServerEntity); goto f696b; d9a33: $session = $request->getSession(); goto F89ef; d8d05: $user = $this->getUser(); goto d9a33; B80df: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("danger", $this->translator->trans("An error has occurred, error message: %errorMessage%", ["%errorMessage%" => $e->getMessage()])); } goto F82da; F82da: B173f: goto Dd5d6; A8dfa: return $response; goto E0d84; Dd5d6: $response = $this->redirect($this->generateUrl("clp_admin_database_servers")); goto A8dfa; E0d84: } } ?>

Did this file decode correctly?

Original Code

namespace App\Controller\Admin; use Symfony\Component\Form\FormError; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Contracts\Translation\TranslatorInterface; use Symfony\Component\Form\Form; use App\Controller\Controller; use App\Event\EventQueue; use App\Service\Crypto; use App\Service\Logger; use App\Entity\Manager\DatabaseServerManager as DatabaseServerEntityManager; use App\Database\Connection as DatabaseConnection; use App\Entity\Manager\ConfigManager; use App\Entity\Certificate as CertificateEntity; use App\Entity\DatabaseServer as DatabaseServerEntity; use App\Security\Admin\CustomDomain as AdminCustomDomain; use App\Site\Ssl\DistinguishedName; use App\Site\Ssl\Generator\RsaKeyGenerator; use App\Site\Ssl\Generator\CsrGenerator; use App\Site\Ssl\PrivateKey; use App\Site\Ssl\Certificate; use App\Site\Ssl\LetsEncryptClient; use App\Site\Ssl\Util\Openssl; class SettingsController extends Controller { private ConfigManager $configManager; private DatabaseServerEntityManager $databaseServerEntityManager; public function __construct(ConfigManager $configManager, DatabaseServerEntityManager $databaseServerEntityManager, TranslatorInterface $translator, Logger $logger) { goto E33f3; E33f3: $this->configManager = $configManager; goto b88a6; b88a6: $this->databaseServerEntityManager = $databaseServerEntityManager; goto e9787; e9787: parent::__construct($translator, $logger); goto C0906; C0906: } public function settings(Request $request) : Response { goto F0392; ee748: fdf2c: goto C7e55; Cd525: $customDomainForm->handleRequest($request); goto fc5e1; be402: $response = $this->render("\x41\x64\155\x69\x6e\57\123\145\x74\164\x69\156\147\163\57\151\x6e\144\145\x78\56\150\164\155\x6c\56\x74\167\151\x67", ["\x63\x75\x73\164\157\x6d\104\157\155\141\x69\x6e\106\157\162\155" => $customDomainForm->createView(), "\146\157\x72\155\105\162\x72\157\162\x73" => $this->formErrors]); goto a1964; ccd55: $customDomainForm = $this->createCustomDomainForm($customDomainData); goto F6583; a1964: return $response; goto e7971; C7e55: Dd546: goto Fbb92; b0c59: $response = $this->handleCustomDomainForm($request, $customDomainForm); goto ce995; ce995: if (!(false === is_null($response))) { goto fdf2c; } goto A0d5a; F0392: $customDomainName = $this->configManager->get("\143\165\x73\164\157\x6d\137\x64\157\155\x61\x69\156"); goto e61fa; fc5e1: if (!(true === $customDomainForm->isSubmitted())) { goto Dd546; } goto b0c59; F6583: if (!(true === $request->isMethod("\120\x4f\x53\x54"))) { goto Fa1ce; } goto Cd525; A0d5a: return $response; goto ee748; e61fa: $customDomainData = ["\x64\x6f\155\x61\x69\156\x4e\141\x6d\145" => false === is_null($customDomainName) ? $customDomainName : '']; goto ccd55; Fbb92: Fa1ce: goto be402; e7971: } private function createCustomDomainForm(array $data) : Form { goto B6025; B8e4f: $form->add("\163\165\142\155\x69\x74", SubmitType::class, ["\141\x74\x74\x72" => ["\143\x6c\141\163\x73" => "\x62\164\156\40\x62\x74\156\55\x62\x6c\165\x65\40\x62\x74\x6e\55\x6c\147"], "\x6c\141\x62\x65\154" => "\123\141\x76\145"]); goto aae55; aae55: return $form; goto c1ea9; B6025: $form = $this->createForm("\x41\160\160\x5c\106\x6f\x72\x6d\134\101\x64\155\151\156\103\165\163\164\157\x6d\x44\x6f\155\x61\x69\x6e\123\x65\164\164\151\156\147\x73\x54\x79\160\x65", $data, ["\141\143\164\151\157\x6e" => $this->generateUrl("\143\x6c\160\x5f\x61\x64\155\151\x6e\x5f\163\x65\164\164\151\x6e\147\x73"), "\x6d\145\164\x68\x6f\144" => "\120\x4f\123\124", "\x61\x74\164\x72" => []]); goto B8e4f; c1ea9: } private function handleCustomDomainForm(Request $request, Form $form) { goto Cb0a9; Cb0a9: if (true === $form->isValid()) { goto Da7dd; } goto E2eb4; fd575: Da7dd: goto cb1dc; E2eb4: $this->formErrors = $this->getErrorMessages($form); goto Aa3e5; efaef: E7aba: goto A781e; cb1dc: try { goto Cb01d; d2ba5: $adminCustomDomain->delete(); goto a3833; b5cf6: $distinguishedName = new DistinguishedName($commonName, $distinguishedNameDomains); goto E6fea; a3833: $this->configManager->delete("\143\x75\x73\164\x6f\x6d\x5f\x64\x6f\155\141\151\156"); goto a8478; b14d2: $certificate->setPrivateKey($privateKey->getPEM()); goto Fb7f9; B00af: $letsEncryptClient = new LetsEncryptClient($privateKey); goto C1d7e; b65f1: $domains = [$domainName]; goto ae950; c7beb: $vhostTemplate = file_get_contents($vhostTemplateFile); goto a4f76; fd85f: $adminCustomDomain->createLetsEncryptChallengeFiles($certificateOrder); goto cbedd; De4c3: $session = $request->getSession(); goto e7025; dcb65: return $response; goto Dfaef; f7598: $adminCustomDomain->writeMotdFile($domainName); goto B414d; F25ca: dc028: goto F314c; ce185: Fa53f: goto afc6e; ef0ec: $selfSignedCertificate = Openssl::createSelfSignedCertificate($privateKey, $csr); goto af05d; D34c1: $session->getFlashBag()->set("\163\x75\143\x63\145\x73\x73", $this->translator->trans("\x43\x6c\157\165\144\120\x61\156\145\154\x20\x43\x75\163\x74\x6f\155\x20\x44\x6f\x6d\141\x69\156\40\x68\141\163\40\142\x65\145\x6e\40\163\x61\x76\145\144\x2e")); goto dc40b; af05d: $certificate = new Certificate(); goto b14d2; Dfaef: a9842: goto ce185; F314c: $certificate = $letsEncryptClient->finalizeOrder($certificateOrder, $privateKey, $csr); goto aafa1; e7025: $domainName = $form->get("\x64\157\155\x61\151\156\x4e\x61\155\x65")->getData(); goto f4739; f75dc: $vhostTemplateFile = realpath(dirname(__FILE__) . "\57\x2e\x2e\57\x2e\56\x2f\x2e\56\57\x72\145\x73\x6f\165\x72\x63\145\163\x2f\156\147\x69\156\170\57\x76\150\x6f\163\164\x5f\x74\145\155\x70\x6c\141\x74\x65\x2f\x63\165\x73\164\x6f\x6d\x2d\x64\157\155\141\151\156"); goto c7beb; F2ca2: $adminCustomDomain->writeVhostFile($domainName, $vhostTemplate); goto f7598; feae9: $csrGenerator = new CsrGenerator($privateKey, $distinguishedName); goto Ba0db; b5e2b: if (true === empty($validationErrors)) { goto dc028; } goto e070f; a4f76: $distinguishedNameDomains = $domains; goto F3861; F640e: return $response; goto Fac55; Bf7db: $session->getFlashBag()->set("\163\165\x63\x63\145\x73\163", $this->translator->trans("\103\154\x6f\x75\x64\x50\141\x6e\x65\x6c\40\103\x75\163\x74\157\x6d\x20\104\157\x6d\141\151\156\x20\x68\x61\x73\40\x62\145\145\156\x20\x73\x61\166\x65\144\56")); goto Aaa8a; Fa0c4: efa0d: goto b65f1; Cb01d: $user = $this->getUser(); goto De4c3; Fb7f9: $certificate->setCertificate($selfSignedCertificate); goto b68f0; Ba0db: $csr = $csrGenerator->generate(); goto ef0ec; Bdaac: $privateKey = new PrivateKey($letsEncryptPrivateKey); goto B00af; b68f0: $adminCustomDomain->deleteLetsEncryptChallengeFiles(); goto fd85f; e163a: if (false === empty($domainName)) { goto efa0d; } goto f9dfd; C4a7d: $certificateOrder = $letsEncryptClient->requestOrder($domains); goto f75dc; bc350: foreach ($validationErrors as $domain => $validationErrorMessage) { $form->addError(new FormError(sprintf("\45\x73\x3a\40\45\163", $domain, $validationErrorMessage))); c33c0: } goto C7def; Fac55: goto Fa53f; goto Fa0c4; Aaa8a: $response = $this->redirect($this->generateUrl("\143\154\160\x5f\x61\144\x6d\151\x6e\x5f\x73\145\164\164\x69\x6e\147\163")); goto dcb65; a8478: EventQueue::addEvent(EventQueue::EVENT_ADMIN_CUSTOM_DOMAIN_DISABLE, $user, [], $request); goto D34c1; B414d: $adminCustomDomain->reloadNginx(); goto a2a56; ae950: $letsEncryptPrivateKey = $this->configManager->get("\x6c\145\137\160\x72\x69\x76\141\x74\x65\x5f\153\145\171"); goto Bdaac; e7edd: $this->formErrors = $this->getErrorMessages($form); goto Aa7c9; a2a56: $this->configManager->set("\x63\165\163\164\x6f\x6d\137\x64\x6f\155\x61\151\156", $domainName); goto eda72; F3861: $commonName = array_shift($distinguishedNameDomains); goto b5cf6; Ce484: $privateKey = $rsaKeyGenerator->generatePrivateKey(); goto feae9; C7def: D52e6: goto e7edd; aafa1: $adminCustomDomain->writePrivateKeyAndCertificate($certificate); goto F2ca2; f9dfd: $adminCustomDomain = new AdminCustomDomain(); goto d2ba5; c6ca7: $adminCustomDomain->writeVhostFile($domainName, $vhostTemplate); goto b267a; Cddd1: EventQueue::addEvent(EventQueue::EVENT_ADMIN_CUSTOM_DOMAIN_ENABLE, $user, $eventData, $request); goto Bf7db; F4388: $validationErrors = $letsEncryptClient->validateDomains($certificateOrder); goto b5e2b; E6fea: $rsaKeyGenerator = new RsaKeyGenerator(); goto Ce484; eda72: $eventData = ["\144\157\155\x61\151\156\116\141\x6d\x65" => $domainName]; goto Cddd1; e070f: $adminCustomDomain = new AdminCustomDomain(); goto a6ceb; Aa7c9: goto a9842; goto F25ca; cbedd: $adminCustomDomain->writePrivateKeyAndCertificate($certificate); goto c6ca7; C1d7e: $letsEncryptClient->registerAccount(); goto C4a7d; b267a: $adminCustomDomain->reloadNginx(); goto F4388; a6ceb: $adminCustomDomain->delete(); goto bc350; dc40b: $response = $this->redirect($this->generateUrl("\x63\x6c\x70\x5f\x61\144\x6d\151\156\137\x73\145\x74\x74\x69\156\147\x73")); goto F640e; f4739: $adminCustomDomain = new AdminCustomDomain(); goto e163a; afc6e: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("\x64\x61\156\x67\x65\162", $this->translator->trans("\101\x6e\x20\x65\162\162\x6f\x72\x20\x68\x61\x73\40\157\x63\x63\165\x72\162\x65\x64\x2c\40\x65\x72\162\157\162\x20\x6d\145\163\x73\141\x67\x65\x3a\x20\45\x65\162\162\157\x72\x4d\145\x73\163\x61\147\x65\45", ["\x25\145\162\x72\157\162\x4d\145\x73\163\x61\x67\x65\x25" => $e->getMessage()])); } finally { if (!(true === isset($adminCustomDomain))) { goto F4059; } $adminCustomDomain->deleteLetsEncryptChallengeFiles(); F4059: } goto efaef; Aa3e5: goto E7aba; goto fd575; A781e: } public function databaseServers(Request $request) : Response { goto e936d; Ed4aa: $response = $this->render("\101\144\x6d\151\156\x2f\x53\x65\164\x74\x69\x6e\x67\163\57\104\x61\x74\x61\x62\141\x73\x65\55\123\x65\x72\x76\145\162\163\x2f\x69\156\144\x65\170\56\150\164\x6d\154\56\164\167\151\147", ["\144\x61\164\x61\x62\141\163\145\x53\x65\x72\166\x65\x72\163" => $databaseServers]); goto F1add; F1add: return $response; goto A8690; e936d: $databaseServers = $this->databaseServerEntityManager->findAll([], ["\150\x6f\163\164" => "\101\123\103"]); goto Ed4aa; A8690: } public function addDatabaseServer(Request $request) : Response { goto Aa1d7; Aee4e: return $response; goto d2d42; De17a: b6248: goto C6a42; C6a42: ae25c: goto e2bd6; Aa1d7: $databaseServerEntity = $this->databaseServerEntityManager->createEntity(); goto F0171; Cac4c: if (!(true === $form->isSubmitted())) { goto b6248; } goto Bce81; e4ee5: return $response; goto e559c; aee40: $form->handleRequest($request); goto Cac4c; b9218: if (!(true === $request->isMethod("\x50\x4f\x53\x54"))) { goto ae25c; } goto aee40; F0171: $form = $this->createDatabaseServerForm($databaseServerEntity); goto b9218; e2bd6: $response = $this->render("\x41\144\155\x69\x6e\57\x53\x65\x74\x74\151\156\147\x73\57\x44\141\x74\x61\142\141\x73\x65\55\x53\145\162\x76\145\162\x73\x2f\141\144\x64\x2e\150\164\155\154\56\x74\167\x69\147", ["\x66\157\162\x6d" => $form->createView(), "\146\157\x72\x6d\x45\162\x72\157\x72\x73" => $this->formErrors]); goto e4ee5; B5db4: if (!(false === is_null($response))) { goto A2112; } goto Aee4e; d2d42: A2112: goto De17a; Bce81: $response = $this->handleDatabaseServerForm($request, $form); goto B5db4; e559c: } private function createDatabaseServerForm(DatabaseServerEntity $databaseServerEntity) : Form { goto f60d4; Cd81c: $form->add("\x73\165\x62\155\151\164", SubmitType::class, ["\x61\164\x74\162" => ["\143\154\141\163\x73" => "\142\x74\x6e\x20\142\x74\156\x2d\x62\154\x75\145\x20\142\x74\156\55\x6c\147"], "\154\x61\x62\x65\154" => "\x41\x64\x64\x20\104\141\x74\141\142\141\x73\x65\x20\123\145\x72\166\x65\162"]); goto E0906; f60d4: $form = $this->createForm("\101\x70\x70\x5c\x46\157\162\x6d\134\101\x64\x6d\x69\156\x44\x61\x74\141\142\x61\163\x65\123\145\162\x76\145\162\124\171\x70\x65", $databaseServerEntity, ["\141\143\x74\x69\157\x6e" => $this->generateUrl("\x63\x6c\x70\x5f\141\x64\155\151\x6e\x5f\144\x61\x74\x61\142\x61\163\145\x5f\163\x65\x72\166\145\162\137\141\144\x64"), "\155\x65\164\150\157\x64" => "\x50\x4f\123\124", "\141\164\x74\162" => []]); goto Cd81c; E0906: return $form; goto b3139; b3139: } private function handleDatabaseServerForm(Request $request, Form $form) { goto e39db; D740c: e7f63: goto a4f93; fc128: try { goto B83cc; a46ef: $databaseServerEntity->setVersion($version); goto ef5bc; fcf5a: $encryptedPassword = Crypto::encrypt($password); goto Cf40d; eafae: $this->databaseServerEntityManager->updateEntity($databaseServerEntity); goto D26cf; a57ee: $version = $databaseConnection->getVersion(); goto B7aaf; ef5bc: $databaseServerEntity->setIsDefault(false); goto ef173; Eb9b6: EventQueue::addEvent(EventQueue::EVENT_DATABASE_SERVER_ADD, $user, $eventData, $request); goto eafae; a5814: $databaseConnection = new DatabaseConnection($databaseServerEntity); goto a753e; a3f3d: $password = $databaseServerEntity->getPassword(); goto fcf5a; Ca2df: $databaseServerEntity = $form->getData(); goto a3f3d; ef173: $eventData = ["\150\157\x73\164" => $databaseServerEntity->getHost(), "\x75\163\x65\x72\x4e\141\155\x65" => $databaseServerEntity->getUserName(), "\160\157\162\164" => $databaseServerEntity->getPort(), "\145\156\147\151\156\x65" => $engine, "\x76\145\162\x73\x69\157\156" => $version]; goto Eb9b6; D26cf: $session->getFlashBag()->set("\163\x75\143\143\145\163\163", $this->translator->trans("\x44\x61\x74\141\142\141\163\x65\40\x53\145\x72\166\x65\162\40\150\x61\163\40\x62\x65\145\x6e\x20\x61\x64\144\145\x64\x2e")); goto F47d2; B7aaf: $databaseServerEntity->setEngine($engine); goto a46ef; B83cc: $user = $this->getUser(); goto D0ef9; a753e: $engine = $databaseConnection->getEngine(); goto a57ee; Cf40d: $databaseServerEntity->setPassword($encryptedPassword); goto a5814; D0ef9: $session = $request->getSession(); goto Ca2df; A281a: return $response; goto A8e3c; F47d2: $response = $this->redirect($this->generateUrl("\x63\154\x70\x5f\141\144\x6d\151\156\x5f\x64\x61\x74\141\142\141\163\x65\137\x73\x65\x72\x76\145\162\x73")); goto A281a; A8e3c: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("\x64\141\156\x67\x65\x72", $this->translator->trans("\101\156\x20\145\162\162\x6f\162\40\150\141\163\40\x6f\143\143\165\162\x72\x65\x64\54\40\145\162\x72\157\x72\40\155\x65\x73\x73\141\147\x65\x3a\x20\45\145\162\162\x6f\x72\115\145\163\163\141\147\x65\x25", ["\x25\x65\162\x72\157\162\x4d\x65\163\x73\141\x67\145\x25" => $e->getMessage()])); } goto D740c; e39db: if (true === $form->isValid()) { goto da25c; } goto Dbe34; d366f: da25c: goto fc128; Dbe34: $this->formErrors = $this->getErrorMessages($form); goto F7c2d; F7c2d: goto e7f63; goto d366f; a4f93: } public function editDatabaseServer(Request $request) : Response { goto Ad8d8; b8d14: $form->handleRequest($request); goto bca9a; deff6: B569e: goto Db47c; caaf6: $response = $this->handleDatabaseServerEditForm($request, $form); goto Ecd9b; B2b63: d343a: goto e443e; Af964: e8853: goto D4099; cf653: $response = $this->render("\101\144\x6d\x69\x6e\57\123\x65\164\x74\151\x6e\x67\163\x2f\x44\141\x74\141\x62\141\x73\x65\x2d\123\x65\x72\x76\145\x72\163\57\145\144\x69\164\x2e\150\164\x6d\x6c\56\x74\167\x69\x67", ["\144\x61\x74\141\142\141\163\145\123\145\162\x76\x65\x72" => $databaseServerEntity, "\146\157\162\x6d" => $form->createView(), "\x66\157\x72\x6d\x45\x72\x72\x6f\162\163" => $this->formErrors]); goto aad71; a013b: return $response; goto B2b63; F1ece: if (true === is_null($databaseServerEntity)) { goto e8853; } goto ea60a; Ad8d8: $id = (int) $request->get("\x69\144"); goto F0472; aad71: return $response; goto C39f2; e443e: afaaa: goto F92d7; F92d7: Faa04: goto cf653; Df616: return $response; goto deff6; F0472: $databaseServerEntity = $this->databaseServerEntityManager->findOneById($id); goto F1ece; D4099: $response = $this->redirect($this->generateUrl("\143\x6c\x70\x5f\x61\x64\x6d\151\x6e\137\144\x61\x74\x61\142\x61\x73\145\137\x73\145\162\x76\145\162\x73")); goto Df616; ea60a: $databaseServerEntity->setPassword(''); goto a3938; A6c96: if (!(true === $request->isMethod("\x50\117\123\x54"))) { goto Faa04; } goto b8d14; bca9a: if (!(true === $form->isSubmitted())) { goto afaaa; } goto caaf6; Ecd9b: if (!(false === is_null($response))) { goto d343a; } goto a013b; a3938: $form = $this->createDatabaseServerEditForm($databaseServerEntity); goto A6c96; C39f2: goto B569e; goto Af964; Db47c: } private function createDatabaseServerEditForm(DatabaseServerEntity $databaseServerEntity) : Form { goto c9ae3; b4f13: return $form; goto c2eaf; C2c9f: $form->add("\x73\x75\x62\x6d\x69\x74", SubmitType::class, ["\x61\x74\164\162" => ["\x63\154\141\163\x73" => "\x62\164\x6e\x20\x62\164\156\x2d\142\x6c\x75\x65\x20\x62\164\x6e\55\154\147"], "\x6c\141\x62\x65\154" => "\x53\141\166\145"]); goto b4f13; c9ae3: $form = $this->createForm("\x41\160\x70\134\x46\x6f\162\155\x5c\x41\x64\155\151\x6e\104\x61\x74\x61\142\141\163\x65\123\145\x72\x76\145\162\x45\144\151\x74\x54\x79\x70\145", $databaseServerEntity, ["\141\143\164\x69\x6f\156" => $this->generateUrl("\143\154\x70\137\x61\144\155\151\x6e\137\144\141\x74\141\x62\141\x73\x65\137\x73\145\x72\166\145\162\137\145\x64\151\x74", ["\151\x64" => $databaseServerEntity->getId()]), "\x6d\145\164\x68\157\144" => "\120\117\123\124", "\141\x74\164\x72" => []]); goto C2c9f; c2eaf: } private function handleDatabaseServerEditForm(Request $request, Form $form) { goto e9408; F1603: try { goto f58be; bca19: $databaseServerEntity->setIsDefault(false); goto b3e27; fe191: EventQueue::addEvent(EventQueue::EVENT_DATABASE_SERVER_EDIT, $user, $eventData, $request); goto fb0dd; e1208: $session->getFlashBag()->set("\x73\x75\143\x63\145\x73\x73", $this->translator->trans("\x44\x61\164\141\142\x61\163\145\x20\x53\145\162\x76\x65\x72\40\150\x61\x73\x20\142\x65\x65\156\40\x75\x70\144\x61\164\145\144\56")); goto b0e68; a07f1: $databaseConnection = new DatabaseConnection($databaseServerEntity); goto D4400; b3e27: $eventData = ["\x68\x6f\163\164" => $databaseServerEntity->getHost(), "\165\x73\x65\162\116\141\x6d\x65" => $databaseServerEntity->getUserName(), "\x70\157\162\x74" => $databaseServerEntity->getPort(), "\x65\x6e\147\x69\x6e\145" => $engine, "\x76\145\162\x73\151\157\156" => $version]; goto fe191; C2df9: $version = $databaseConnection->getVersion(); goto ecef7; fb0dd: $this->databaseServerEntityManager->updateEntity($databaseServerEntity); goto e1208; b0e68: $response = $this->redirect($this->generateUrl("\x63\x6c\x70\x5f\141\144\x6d\x69\x6e\137\144\x61\x74\141\142\141\163\x65\x5f\163\x65\x72\x76\145\162\x73")); goto fe0c6; Cca39: $databaseServerEntity->setVersion($version); goto bca19; f58be: $user = $this->getUser(); goto b713c; ecef7: $databaseServerEntity->setEngine($engine); goto Cca39; fe0c6: return $response; goto dc755; Aefef: $databaseServerEntity = $form->getData(); goto F6d6f; F6d6f: $password = $databaseServerEntity->getPassword(); goto dca4a; D4400: $engine = $databaseConnection->getEngine(); goto C2df9; b713c: $session = $request->getSession(); goto Aefef; dca4a: $encryptedPassword = Crypto::encrypt($password); goto a765e; a765e: $databaseServerEntity->setPassword($encryptedPassword); goto a07f1; dc755: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("\144\141\156\x67\145\x72", $this->translator->trans("\x41\x6e\40\x65\x72\162\157\162\x20\150\141\163\x20\x6f\x63\x63\165\162\x72\x65\x64\x2c\x20\x65\162\x72\157\x72\40\155\145\x73\163\141\147\x65\72\40\x25\145\162\162\157\162\x4d\145\163\163\x61\147\145\45", ["\x25\x65\162\x72\x6f\x72\x4d\145\x73\x73\141\x67\145\45" => $e->getMessage()])); } goto B3339; B3339: Eadb0: goto Ecce6; e9408: if (true === $form->isValid()) { goto d3286; } goto e818c; e818c: $this->formErrors = $this->getErrorMessages($form); goto d60b6; D63d7: d3286: goto F1603; d60b6: goto Eadb0; goto D63d7; Ecce6: } public function setDatabaseServerActive(Request $request) : Response { goto a46d8; a46d8: $id = (int) $request->get("\x69\x64"); goto D4a12; D1384: $response = $this->redirect($this->generateUrl("\x63\x6c\160\x5f\x61\144\x6d\x69\156\x5f\144\141\x74\x61\x62\x61\163\x65\137\163\x65\162\x76\x65\162\x73")); goto Daeab; d3e5b: c4fbe: goto f09a1; D4a12: $databaseServerEntity = $this->databaseServerEntityManager->findOneById($id); goto Daf68; Bb65f: if (!($databaseServerEntity->getId() != $activeDatabaseServerEntity->getId())) { goto c4fbe; } goto E866b; Daeab: return $response; goto Df086; Daf68: if (!(false === is_null($databaseServerEntity))) { goto Ceec4; } goto A40d4; A40d4: $activeDatabaseServerEntity = $this->databaseServerEntityManager->getActiveDatabaseServer(); goto Bb65f; f09a1: Ceec4: goto D1384; E866b: try { goto E9aba; b3427: $session->getFlashBag()->set("\x73\x75\143\x63\x65\x73\x73", $this->translator->trans("\x44\x61\x74\141\x62\141\x73\145\40\123\x65\x72\166\x65\162\x20\150\x61\163\x20\142\x65\145\156\40\x63\x68\141\156\147\145\144\x2e")); goto Dfa03; dce19: $this->databaseServerEntityManager->updateEntity($databaseServerEntity); goto B1ab5; E9aba: $user = $this->getUser(); goto f3eb3; f3eb3: $session = $request->getSession(); goto Bd506; D7fcd: EventQueue::addEvent(EventQueue::EVENT_DATABASE_SERVER_CHANGE, $user, $eventData, $request); goto b3427; Ad776: $activeDatabaseServerEntity->setIsActive(false); goto dce19; afa70: $eventData = ["\x6f\154\x64\x48\x6f\x73\164" => $activeDatabaseServerEntity->getHost(), "\157\x6c\144\x55\x73\145\x72\116\x61\155\x65" => $activeDatabaseServerEntity->getUserName(), "\x6e\x65\x77\110\x6f\163\x74" => $databaseServerEntity->getHost(), "\156\145\x77\125\163\145\162\x4e\x61\155\x65" => $databaseServerEntity->getUserName()]; goto D7fcd; B1ab5: $this->databaseServerEntityManager->updateEntity($activeDatabaseServerEntity); goto afa70; Bd506: $databaseServerEntity->setIsActive(true); goto Ad776; Dfa03: } catch (\Exception $e) { $session->getFlashBag()->set("\x64\141\156\147\x65\162", $this->translator->trans("\x44\x61\164\x61\142\141\x73\x65\x20\123\145\162\166\x65\162\x20\143\162\x65\144\145\x6e\164\x69\141\154\x73\x20\141\162\145\40\156\157\164\x20\x76\x61\154\x69\x64\56")); } goto d3e5b; Df086: } public function deleteDatabaseServer(Request $request) : Response { goto B2694; B2694: $id = (int) $request->get("\x69\x64"); goto cca37; A6f26: if (!(false === is_null($databaseServerEntity) && false === $databaseServerEntity->isDefault() && false === $databaseServerEntity->isActive())) { goto B173f; } goto D0008; cca37: $databaseServerEntity = $this->databaseServerEntityManager->findOneById($id); goto A6f26; D0008: try { goto d8d05; f696b: $eventData = ["\150\x6f\163\164" => $databaseServerEntity->getHost(), "\x75\163\x65\x72\116\x61\x6d\145" => $databaseServerEntity->getUserName()]; goto e8878; e8878: EventQueue::addEvent(EventQueue::EVENT_DATABASE_SERVER_DELETE, $user, $eventData, $request); goto bd84c; bd84c: $session->getFlashBag()->set("\x73\165\x63\143\145\163\163", $this->translator->trans("\104\141\x74\x61\x62\141\x73\145\40\x53\145\162\x76\x65\x72\x20\x68\x61\x73\x20\142\145\145\x6e\40\x64\x65\154\x65\164\x65\x64\x2e")); goto B80df; F89ef: $this->databaseServerEntityManager->deleteEntity($databaseServerEntity); goto f696b; d9a33: $session = $request->getSession(); goto F89ef; d8d05: $user = $this->getUser(); goto d9a33; B80df: } catch (\Exception $e) { $this->logger->exception($e); $session->getFlashBag()->set("\144\x61\x6e\x67\x65\162", $this->translator->trans("\101\x6e\40\145\162\x72\x6f\x72\x20\x68\141\163\40\157\143\x63\x75\x72\162\x65\x64\54\x20\x65\x72\162\x6f\x72\x20\x6d\x65\x73\163\141\147\x65\72\40\x25\x65\x72\162\x6f\162\x4d\x65\163\x73\x61\147\x65\x25", ["\45\145\x72\162\157\x72\115\x65\x73\x73\x61\x67\x65\x25" => $e->getMessage()])); } goto F82da; F82da: B173f: goto Dd5d6; A8dfa: return $response; goto E0d84; Dd5d6: $response = $this->redirect($this->generateUrl("\143\154\x70\x5f\x61\144\x6d\151\x6e\137\144\141\x74\141\142\x61\x73\145\x5f\x73\145\x72\x76\145\x72\x73")); goto A8dfa; E0d84: } }

Function Calls

None

Variables

None

Stats

MD5 d4921bd2196aa930a02b9ee1737a644d
Eval Count 0
Decode Time 89 ms