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 /* __________________________________________________ | Obfuscated by YAK P..

Decoded Output download

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  | 
    |              on 2023-04-05 20:44:23              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
/* 
* Copyright (C) Incevio Systems, Inc - All Rights Reserved 
* Unauthorized copying of this file, via any medium is strictly prohibited 
* Proprietary and confidential 
* Written by Munna Khan <[email protected]>, September 2018 
*/ 
 namespace App\Http\Controllers\Installer;  
 use Exception;  
 use Illuminate\Http\Request;  
 use Illuminate\Routing\Controller;  
 use Illuminate\Support\Facades\DB;  
 class ActivateController extends Controller {  
    public function activate() {  
        if ($this->checkDatabaseConnection()) {  
            goto QGz0S;  
        }  
        return redirect()->back()->withErrors(["database_connection" => trans("installer_messages.environment.wizard.form.db_connection_failed")]);  
        QGz0S: return view("installer.activate");  
    }  
    public function verify(Request $request) {  
        $mysqli_connection = getMysqliConnection();  
        if ($mysqli_connection) { goto k9OyO; }  
        return redirect()->route("Installer.activate")->with(["failed" => trans("responses.database_connection_failed")])->withInput($request->all());  
        k9OyO: $purchase_verification = aplVerifyEnvatoPurchase($request->purchase_code);  
        if (empty($purchase_verification)) { goto tjl63; }  
        return redirect()->route("Installer.activate")->with(["failed" => "Connection" . " to remote " . "server can't be" . " established"])->withInput($request->all());  
        tjl63: $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 zbYEr; }  
        return view("installer.install", compact("license_notifications_array"));  
        zbYEr: if (!($license_notifications_array["notification_case"] == "notification_already_installed")) { goto XM60P; } 
         
        $license_notifications_array = incevioAutoloadHelpers($mysqli_connection, 1);  
        if (!($license_notifications_array["notification_case"] == "notification_license_ok")) { goto ydu07; }  
        return view("installer.install", compact("license_notifications_array"));  
        ydu07: XM60P: 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

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2023-04-05 20:44:23              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
/*
* Copyright (C) Incevio Systems, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Munna Khan <[email protected]>, September 2018
*/
 namespace App\Http\Controllers\Installer; 
 use Exception; 
 use Illuminate\Http\Request; 
 use Illuminate\Routing\Controller; 
 use Illuminate\Support\Facades\DB; 
 class ActivateController extends Controller { 
    public function activate() { 
        if ($this->checkDatabaseConnection()) { 
            goto QGz0S; 
        } 
        return redirect()->back()->withErrors(["\144\x61\x74\141\142\x61\x73\145\x5f\x63\x6f\x6e\156\145\x63\164\151\157\x6e" => trans("\x69\156\x73\x74\141\x6c\x6c\145\162\137\155\x65\x73\163\141\147\145\x73\56\x65\156\x76\x69\x72\x6f\156\x6d\x65\x6e\x74\56\x77\x69\x7a\141\162\144\56\x66\x6f\162\x6d\x2e\144\142\137\143\157\156\x6e\145\x63\164\x69\157\156\137\146\141\151\x6c\145\144")]); 
        QGz0S: return view("\151\x6e\163\164\141\x6c\x6c\145\162\56\x61\143\x74\151\166\141\x74\145"); 
    } 
    public function verify(Request $request) { 
        $mysqli_connection = getMysqliConnection(); 
        if ($mysqli_connection) { goto k9OyO; } 
        return redirect()->route("\111\x6e\x73\x74\141\x6c\154\x65\x72\56\141\x63\x74\x69\x76\x61\164\x65")->with(["\x66\141\x69\x6c\x65\144" => trans("\162\145\163\160\157\156\x73\x65\x73\56\144\141\164\141\142\141\163\x65\137\x63\x6f\156\156\x65\x63\x74\x69\x6f\156\137\x66\141\x69\x6c\145\144")])->withInput($request->all()); 
        k9OyO: $purchase_verification = aplVerifyEnvatoPurchase($request->purchase_code); 
        if (empty($purchase_verification)) { goto tjl63; } 
        return redirect()->route("\111\x6e\x73\164\141\x6c\154\145\x72\x2e\x61\x63\x74\x69\x76\x61\x74\145")->with(["\146\141\x69\154\145\x64" => "\103\157\156\x6e\x65\143\164\151\x6f\156" . "\40\164\x6f\40\162\x65\x6d\x6f\164\x65\x20" . "\163\145\x72\x76\145\162\40\x63\x61\x6e\47\x74\40\x62\145" . "\40\145\x73\x74\141\x62\154\151\163\150\145\144"])->withInput($request->all()); 
        tjl63: $license_notifications_array = incevioVerify($request->root_url, $request->email_address, $request->purchase_code, $mysqli_connection); 
        if (!($license_notifications_array["\156\157\164\x69\x66\x69\x63\x61\164\x69\x6f\156\137\x63\x61\163\x65"] == "\156\157\164\151\x66\x69\143\141\x74\x69\x6f\x6e\137\x6c\x69\143\x65\156\163\145\x5f\x6f\153")) { goto zbYEr; } 
        return view("\x69\x6e\x73\x74\141\154\154\x65\x72\x2e\151\156\x73\x74\x61\x6c\x6c", compact("\x6c\x69\143\145\x6e\163\x65\x5f\156\x6f\x74\151\146\151\x63\141\164\x69\157\156\x73\x5f\141\x72\x72\x61\x79")); 
        zbYEr: if (!($license_notifications_array["\156\x6f\x74\151\x66\x69\143\x61\x74\x69\157\x6e\137\143\141\x73\x65"] == "\x6e\157\164\x69\x66\151\143\141\x74\151\157\156\x5f\x61\x6c\162\145\x61\144\x79\137\x69\x6e\163\164\x61\x6c\154\145\x64")) { goto XM60P; }
        
        $license_notifications_array = incevioAutoloadHelpers($mysqli_connection, 1); 
        if (!($license_notifications_array["\x6e\x6f\x74\x69\146\151\143\141\164\x69\157\x6e\x5f\143\141\x73\145"] == "\x6e\x6f\x74\151\x66\x69\143\x61\x74\151\x6f\156\137\154\x69\x63\145\156\163\x65\x5f\157\153")) { goto ydu07; } 
        return view("\151\x6e\163\164\141\154\154\x65\x72\x2e\x69\156\x73\x74\x61\x6c\x6c", compact("\x6c\151\143\x65\x6e\x73\145\137\156\157\x74\151\x66\151\143\x61\x74\x69\157\156\163\x5f\141\162\162\x61\171")); 
        ydu07: XM60P: return redirect()->route("\111\156\x73\x74\141\x6c\x6c\x65\162\56\141\x63\x74\x69\x76\141\164\145")->with(["\146\x61\151\154\x65\x64" => $license_notifications_array["\156\157\164\151\x66\x69\143\141\x74\x69\x6f\156\137\x74\145\170\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\162") { return ["\x73\164\141\x74\165\x73" => $status, "\155\145\x73\x73\141\147\x65" => $message]; } }

Function Calls

None

Variables

None

Stats

MD5 b7d3cd7ebe67e86d251206e33ec03642
Eval Count 0
Decode Time 65 ms