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

Signing you up...

Thank you for signing up!

PHP Decode

class ActivateController extends Controller { public function activate() { if ($th..

Decoded Output download

<?  class ActivateController extends Controller 
 { public function activate() 
     { if ($this->checkDatabaseConnection()) 
     { goto v7C12; } 
 
     return redirect() 
         ->back() 
         ->withErrors(["database_connection" 
     => trans("installer_messages.environment.wizard.form.db_connection_failed")]); 
 
     v7C12: return view("installer.activate"); } 
 
     public function verify(Request $request) 
     { $mysqli_connection = getMysqliConnection(); 
     if ($mysqli_connection) 
     { goto myePw; } 
     return redirect() 
         ->route("Installer.activate") 
         ->with(["failed" 
         => trans("responses.database_connection_failed")]) 
         ->withInput($request->all()); 
 
     myePw: $purchase_verification = aplVerifyEnvatoPurchase($request->purchase_code); 
     if (empty($purchase_verification)) 
     { goto mK7Rv; } 
     return redirect()->route("Installer.activate") 
         ->with(["failed" => "Connection to remote server can't be established"]) 
         ->withInput($request->all()); 
 
     mK7Rv: $license_notifications_array = incevioVerify($request->root_url, $request->email_address, $request->purchase_code, $mysqli_connection); 
 
     if (!($license_notifications_array["notification_case"] == 
         "notification_license_ok")) 
     { goto mO9EK; } 
     return view("installer.install", 
         compact("license_notifications_array")); 
 
     mO9EK: if (!($license_notifications_array["notification_case"] == 
         "notification_already_installed")) 
     { goto dM9tx; } 
 
     $license_notifications_array = incevioAutoloadHelpers($mysqli_connection, 1); 
 
     if (!($license_notifications_array["notification_case"] == "notification_license_ok")) 
     { goto G2N60; } 
     return view("installer.install", 
         compact("license_notifications_array")); 
 
     G2N60: dM9tx: return redirect() 
         ->route("Installer.activate") 
         ->with(["failed" => $license_notifications_array["notification_text"]]) 
         ->withInput($request->all()); } 
 
     private function checkDatabaseConnection() 
     { try { DB::connection()->getPdo(); return true; } catch (Exception $e) { return false; } } 
 
     private function response($message, $status = "danger") { return ["status" => $status, "message" => $message]; } } 
 ?>

Did this file decode correctly?

Original Code

class ActivateController extends Controller
 { public function activate()
     { if ($this->checkDatabaseConnection())
     { goto v7C12; }

     return redirect()
         ->back()
         ->withErrors(["\144\141\x74\141\142\x61\163\145\x5f\143\x6f\156\156\145\x63\x74\x69\157\x6e"
     => trans("\151\x6e\163\x74\x61\x6c\x6c\145\x72\137\x6d\145\x73\x73\141\x67\145\x73\x2e\x65\156\x76\x69\162\x6f\x6e\155\x65\x6e\164\x2e\x77\x69\x7a\141\x72\x64\x2e\x66\157\162\155\x2e\144\142\x5f\x63\x6f\x6e\156\145\143\164\151\x6f\x6e\x5f\x66\x61\151\154\x65\144")]);

     v7C12: return view("\x69\156\163\164\x61\x6c\154\145\x72\x2e\x61\143\x74\x69\x76\141\x74\145"); }

     public function verify(Request $request)
     { $mysqli_connection = getMysqliConnection();
     if ($mysqli_connection)
     { goto myePw; }
     return redirect()
         ->route("\x49\156\x73\x74\141\x6c\154\145\162\56\141\x63\x74\x69\x76\x61\x74\x65")
         ->with(["\x66\141\x69\154\145\144"
         => trans("\x72\x65\163\x70\x6f\156\x73\145\x73\56\x64\x61\x74\141\142\x61\x73\145\x5f\x63\x6f\156\156\145\143\164\x69\x6f\x6e\137\x66\141\151\154\145\144")])
         ->withInput($request->all());

     myePw: $purchase_verification = aplVerifyEnvatoPurchase($request->purchase_code);
     if (empty($purchase_verification))
     { goto mK7Rv; }
     return redirect()->route("\111\156\x73\164\x61\x6c\x6c\x65\162\x2e\141\143\164\151\x76\x61\x74\x65")
         ->with(["\x66\x61\x69\154\145\144" => "\x43\157\156\x6e\145\143\164\151\157\x6e\x20\x74\157\x20\162\x65\x6d\157\164\145\x20\x73\145\x72\166\145\x72\40\x63\x61\156\x27\x74\40\142\x65\40\145\163\164\141\x62\154\x69\163\x68\145\144"])
         ->withInput($request->all());

     mK7Rv: $license_notifications_array = incevioVerify($request->root_url, $request->email_address, $request->purchase_code, $mysqli_connection);

     if (!($license_notifications_array["\156\157\x74\x69\146\x69\143\x61\164\151\157\x6e\x5f\143\x61\x73\x65"] ==
         "\x6e\x6f\x74\151\x66\x69\x63\141\164\x69\157\x6e\137\154\x69\x63\x65\x6e\x73\x65\x5f\157\153"))
     { goto mO9EK; }
     return view("\x69\x6e\x73\164\141\154\154\145\x72\x2e\x69\156\163\164\x61\x6c\154",
         compact("\x6c\151\143\145\156\163\145\x5f\x6e\x6f\x74\151\x66\x69\143\141\x74\151\x6f\156\x73\x5f\141\162\162\141\x79"));

     mO9EK: if (!($license_notifications_array["\x6e\157\164\151\x66\151\x63\x61\164\151\x6f\x6e\137\143\141\x73\x65"] ==
         "\156\x6f\164\151\146\x69\143\x61\164\x69\157\156\x5f\x61\x6c\162\145\141\x64\x79\137\151\x6e\163\x74\x61\154\x6c\x65\144"))
     { goto dM9tx; }

     $license_notifications_array = incevioAutoloadHelpers($mysqli_connection, 1);

     if (!($license_notifications_array["\x6e\157\164\x69\146\151\143\x61\x74\151\157\x6e\137\x63\141\163\145"] == "\156\x6f\x74\151\146\151\x63\x61\x74\151\x6f\156\137\x6c\x69\x63\145\156\x73\x65\x5f\x6f\x6b"))
     { goto G2N60; }
     return view("\151\156\163\164\x61\x6c\x6c\145\x72\x2e\x69\156\163\x74\141\154\x6c",
         compact("\x6c\x69\143\145\x6e\163\145\137\156\x6f\164\x69\146\x69\x63\141\164\151\157\x6e\163\x5f\141\x72\162\x61\x79"));

     G2N60: dM9tx: return redirect()
         ->route("\111\156\163\x74\x61\154\x6c\145\162\x2e\141\x63\164\151\166\x61\164\145")
         ->with(["\146\x61\151\x6c\145\x64" => $license_notifications_array["\156\x6f\x74\x69\x66\151\x63\141\x74\151\x6f\156\x5f\164\145\170\164"]])
         ->withInput($request->all()); }

     private function checkDatabaseConnection()
     { try { DB::connection()->getPdo(); return true; } catch (Exception $e) { return false; } }

     private function response($message, $status = "\144\141\156\x67\145\162") { return ["\163\164\141\164\165\x73" => $status, "\155\x65\163\163\x61\x67\145" => $message]; } }

Function Calls

None

Variables

None

Stats

MD5 295fc6014f28306aecfb79e1998e3278
Eval Count 0
Decode Time 95 ms