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\Http\Controllers\Installer\Helpers; use Exception; use Illuminate\Htt..

Decoded Output download

<?php 
namespace App\Http\Controllers\Installer\Helpers; use Exception; use Illuminate\Http\Request; class EnvironmentManager { private $envPath; private $envExamplePath; public function __construct() { $this->envPath = base_path(".env"); $this->envExamplePath = base_path(".env.example"); } public function getEnvContent() { if (file_exists($this->envPath)) { goto PynEc; } if (file_exists($this->envExamplePath)) { goto kcAfI; } touch($this->envPath); goto FAprO; kcAfI: copy($this->envExamplePath, $this->envPath); FAprO: PynEc: return file_get_contents($this->envPath); } public function getEnvPath() { return $this->envPath; } public function getEnvExamplePath() { return $this->envExamplePath; } public function saveFileClassic(Request $input) { $message = trans("installer_messages.environment.success"); try { file_put_contents($this->envPath, $input->get("envConfig")); } catch (Exception $e) { $message = trans("installer_messages.environment.errors"); } return $message; } } 
 ?>

Did this file decode correctly?

Original Code

<?php
namespace App\Http\Controllers\Installer\Helpers; use Exception; use Illuminate\Http\Request; class EnvironmentManager { private $envPath; private $envExamplePath; public function __construct() { $this->envPath = base_path("\x2e\145\x6e\166"); $this->envExamplePath = base_path("\56\x65\x6e\x76\x2e\145\x78\x61\x6d\x70\154\145"); } public function getEnvContent() { if (file_exists($this->envPath)) { goto PynEc; } if (file_exists($this->envExamplePath)) { goto kcAfI; } touch($this->envPath); goto FAprO; kcAfI: copy($this->envExamplePath, $this->envPath); FAprO: PynEc: return file_get_contents($this->envPath); } public function getEnvPath() { return $this->envPath; } public function getEnvExamplePath() { return $this->envExamplePath; } public function saveFileClassic(Request $input) { $message = trans("\151\156\163\164\x61\154\154\x65\162\137\x6d\145\x73\163\x61\x67\145\163\56\x65\x6e\x76\151\x72\x6f\x6e\x6d\x65\156\x74\x2e\x73\x75\x63\x63\145\x73\163"); try { file_put_contents($this->envPath, $input->get("\145\156\x76\103\x6f\156\x66\x69\x67")); } catch (Exception $e) { $message = trans("\151\156\163\x74\141\x6c\154\x65\x72\x5f\155\x65\163\x73\x61\147\x65\x73\x2e\145\156\166\151\x72\157\156\x6d\145\x6e\x74\56\x65\x72\x72\x6f\162\x73"); } return $message; } }

Function Calls

None

Variables

None

Stats

MD5 3a49d6e782fabc97d53cbeeeb5db76c1
Eval Count 0
Decode Time 59 ms