Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
public function activate() { if ($this->checkDatabaseConnection()) { ..
Decoded Output download
<? public function activate()
{
if ($this->checkDatabaseConnection()) {
goto AdOUB;
}
return redirect()->back()->withErrors(["database_connection" => trans("installer_messages.environment.wizard.form.db_connection_failed")]);
AdOUB:
return view("installer.activate");
}
public function verify(Request $request)
{
$mysqli_connection = getMysqliConnection();
if ($mysqli_connection) {
goto ENyK8;
}
return redirect()->route("Installer.activate")->with(["failed" => trans("responses.database_connection_failed")])->withInput($request->all());
ENyK8:
$purchase_verification = aplVerifyEnvatoPurchase($request->purchase_code);
if (empty($purchase_verification)) {
goto NKNqE;
}
return redirect()->route("Installer.activate")->with(["failed" => "Connection" . " to remote " . "server can't be" . " established"])->withInput($request->all());
NKNqE:
$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 OT6CC;
}
return view("installer.install", compact("license_notifications_array"));
OT6CC:
if (!($license_notifications_array["notification_case"] == "notification_already_installed")) {
goto sdpbd;
}
$license_notifications_array = incevioAutoloadHelpers($mysqli_connection, 1);
if (!($license_notifications_array["notification_case"] == "notification_license_ok")) {
goto KDaAG;
}
return view("installer.install", compact("license_notifications_array"));
KDaAG:
sdpbd:
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
public function activate()
{
if ($this->checkDatabaseConnection()) {
goto AdOUB;
}
return redirect()->back()->withErrors(["\144\x61\x74\x61\142\x61\163\145\x5f\143\157\x6e\156\145\143\164\151\x6f\156" => trans("\x69\156\x73\164\141\154\x6c\x65\162\137\155\145\x73\x73\141\147\145\163\x2e\145\x6e\166\151\x72\x6f\156\x6d\145\x6e\164\56\x77\151\x7a\x61\x72\144\x2e\146\x6f\x72\155\56\144\x62\x5f\143\157\x6e\156\x65\x63\164\151\x6f\156\137\146\x61\x69\x6c\145\x64")]);
AdOUB:
return view("\x69\156\163\x74\x61\154\154\x65\162\56\141\143\x74\151\x76\141\x74\x65");
}
public function verify(Request $request)
{
$mysqli_connection = getMysqliConnection();
if ($mysqli_connection) {
goto ENyK8;
}
return redirect()->route("\111\156\163\164\141\154\154\145\162\x2e\141\x63\164\x69\x76\x61\x74\x65")->with(["\x66\141\151\x6c\x65\144" => trans("\x72\145\x73\x70\157\156\x73\145\x73\x2e\x64\141\x74\141\x62\x61\x73\x65\137\x63\157\x6e\x6e\x65\x63\164\x69\x6f\156\137\146\x61\x69\154\145\x64")])->withInput($request->all());
ENyK8:
$purchase_verification = aplVerifyEnvatoPurchase($request->purchase_code);
if (empty($purchase_verification)) {
goto NKNqE;
}
return redirect()->route("\x49\x6e\x73\x74\x61\x6c\x6c\x65\162\56\141\143\164\151\166\x61\164\x65")->with(["\x66\x61\151\x6c\x65\144" => "\103\x6f\156\156\145\143\164\x69\x6f\x6e" . "\x20\164\157\40\162\145\x6d\x6f\x74\145\x20" . "\x73\x65\162\x76\145\x72\40\143\141\x6e\x27\164\x20\142\x65" . "\x20\145\163\x74\141\142\x6c\151\x73\x68\x65\144"])->withInput($request->all());
NKNqE:
$license_notifications_array = incevioVerify($request->root_url, $request->email_address, $request->purchase_code, $mysqli_connection);
if (!($license_notifications_array["\x6e\157\x74\x69\146\x69\x63\141\164\x69\157\156\137\143\x61\163\145"] == "\156\x6f\164\151\x66\x69\x63\141\164\x69\157\x6e\137\x6c\x69\x63\145\156\x73\x65\x5f\x6f\153")) {
goto OT6CC;
}
return view("\x69\x6e\x73\x74\141\x6c\154\145\x72\x2e\x69\x6e\x73\x74\141\x6c\154", compact("\x6c\151\143\145\x6e\x73\145\x5f\156\x6f\x74\x69\x66\151\x63\141\164\151\157\156\163\137\x61\162\x72\141\171"));
OT6CC:
if (!($license_notifications_array["\156\x6f\164\151\146\x69\143\x61\164\151\157\156\137\143\x61\163\145"] == "\156\x6f\x74\x69\x66\x69\x63\x61\x74\151\157\156\137\141\x6c\162\145\x61\x64\171\137\x69\156\163\164\x61\154\x6c\145\x64")) {
goto sdpbd;
}
$license_notifications_array = incevioAutoloadHelpers($mysqli_connection, 1);
if (!($license_notifications_array["\x6e\157\x74\x69\146\151\x63\141\164\151\x6f\x6e\137\143\x61\163\145"] == "\156\x6f\x74\x69\146\151\143\141\x74\151\157\x6e\137\154\x69\x63\145\156\163\x65\x5f\157\x6b")) {
goto KDaAG;
}
return view("\151\x6e\163\x74\141\154\x6c\145\162\x2e\151\x6e\163\x74\x61\x6c\x6c", compact("\154\151\x63\x65\x6e\163\145\137\156\157\x74\151\x66\x69\143\x61\x74\x69\x6f\x6e\163\x5f\x61\162\x72\141\x79"));
KDaAG:
sdpbd:
return redirect()->route("\x49\156\163\164\x61\x6c\x6c\x65\162\x2e\141\143\x74\x69\x76\x61\x74\145")->with(["\x66\x61\151\x6c\x65\144" => $license_notifications_array["\156\157\x74\151\x66\x69\143\x61\x74\151\x6f\x6e\137\x74\x65\x78\x74"]])->withInput($request->all());
}
private function checkDatabaseConnection()
{
try {
DB::connection()->getPdo();
return true;
} catch (Exception $e) {
return false;
}
}
private function response($message, $status = "\144\141\x6e\147\145\x72")
{
return ["\x73\x74\141\164\x75\163" => $status, "\155\x65\163\x73\x61\147\145" => $message];
}
Function Calls
None |
Stats
MD5 | 22054792809d3e52286adc73d0d6e797 |
Eval Count | 0 |
Decode Time | 52 ms |