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 /* * @ https://ioncubedecoder.net - IonCube v11 Decoder Online * @ PHP 5.3 * ..

Decoded Output download

<?php 
/* 
 * @ https://ioncubedecoder.net - IonCube v11 Decoder Online 
 * @ PHP 5.3 
 * @ Decoder version: 1.0.4 
 * @ Release: 02/06/2020 
 * 
 * @ ZendGuard Decoder PHP 5.3 
 */ 
 
if (isset($domainLicenseByDl)) { 
    unset($domainLicenseByDl); 
} 
$domainLicenseByDl[] = "*evall.net"; 
$serverInfoByDl = requestmyservinfo(); 
if (!inarraywildcard($serverInfoByDl["HOST"], $domainLicenseByDl)) { 
    exit("Error c709: invalid license for domain222222 : " . $serverInfoByDl["HOST"]); 
} 
session_start(); 
if (VIEW == "site") { 
    require_once "./config/config.php"; 
    require_once "./class/db.php"; 
    require_once "./class/time.php"; 
    require_once "./class/template.php"; 
    require_once "./class/app.php"; 
    require_once "./class/form.php"; 
    require_once "./class/text.php"; 
    require_once "./class/setting.php"; 
    require_once "./class/storage.php"; 
    require_once "./class/miscellaneous.php"; 
    require_once "./class/search.php"; 
    require_once "./class/lang.php"; 
    $settingData = setting::getSettingArray(); 
    $langData = lang::getLangArray($settingData["system"]["lang"]); 
    date_default_timezone_set($settingData["system"]["timeZone"]); 
    miscellaneous::validateRequesturl(); 
    if ($settingData["system"]["environment"] == "development") { 
        template::compileLessToCssDevelopmentEnvironment(); 
    } 
    $myApps = new app(); 
    $allApps = $myApps->getAllAppList(); 
    for ($a = 0; $a < count($allApps); $a++) { 
        $currentAppPath = "./app/" . $allApps[$a]; 
        $currentAppPackage = $allApps[$a]; 
        if (file_exists((string) $currentAppPath . "/" . $allApps[$a] . ".class.php")) { 
            require_once (string) $currentAppPath . "/" . $allApps[$a] . ".class.php"; 
        } 
    } 
    if ($_GET["account"]) { 
        $user = new user(); 
        $user->loginRequired(); 
    } 
    $section["all"] = true; 
    if (!$_GET["app"]) { 
        $section["index"] = true; 
    } 
    if ($_GET["app"]) { 
        $explode_app = explode(".", $_GET["app"]); 
        list($getApp["package"], $getApp["oper"], $getApp["data"], $getApp["page"]) = $explode_app; 
        if (empty($getApp["page"])) { 
            $getApp["page"] = 1; 
        } 
    } 
    for ($a = 0; $a < count($allApps); $a++) { 
        $currentAppName = $langData[$allApps[$a]]["app_name"]; 
        $currentAppPackage = (string) $allApps[$a]; 
        $currentAppPath = "./app/" . $allApps[$a]; 
        if ($currentAppPackage == $getApp["package"] || $currentAppPackage == $_GET["forApp"]) { 
            $currentAppActive = "active"; 
        } else { 
            $currentAppActive = NULL; 
        } 
        if (file_exists((string) $currentAppPath . "/site.php")) { 
            if ($getApp["package"] == $currentAppPackage) { 
                $section["app"] = true; 
            } else { 
                $section["app"] = false; 
            } 
            require_once (string) $currentAppPath . "/site.php"; 
        } 
        $siteData["content"] .= text::ShowPreviousPageNote(); 
        if ($currentAppPackage == $getApp["package"] && $getApp["oper"] != "") { 
            if (file_exists((string) $currentAppPath . "/siteOper/" . $getApp["oper"] . ".php")) { 
                require_once (string) $currentAppPath . "/siteOper/" . $getApp["oper"] . ".php"; 
            } else { 
                http_response_code(404); 
                $siteData["content"] .= text::warmNote("Error c700: No file in the oper path @ " . $currentAppPath . "/siteOper/" . $getApp["oper"] . ".php "); 
            } 
        } 
    } 
    app::runAtExtractSite(); 
    if (empty($siteData["title"]) || !isset($_GET["app"])) { 
        $siteData["title"] = $settingData["system"]["name"]; 
    } 
    if (empty($siteData["meta"]) || !isset($_GET["app"])) { 
        $siteData["meta"] .= seo::metaDescription((string) $settingData[seo][metaDescription]); 
        $siteData["meta"] .= seo::openGraph((string) $settingData[system][name], NULL, $settingData["system"]["url"]); 
    } 
    if (empty($siteData["contentTop"])) { 
        $siteData["contentTop"] = ""; 
    } 
    if (empty($siteData["head"])) { 
        $siteData["head"] = ""; 
    } 
    if (empty($siteData["searchForm"])) { 
        $siteData["searchForm"] = ""; 
    } 
    if (empty($siteData["content"])) { 
        $siteData["content"] = ""; 
    } 
    if (empty($siteData["siteList"])) { 
        $siteData["siteList"] = ""; 
    } 
    $template = new template(); 
    $SMV["breadcrumb"] = template::getBreadcrumb(); 
    $SMV["socialButton"] = template::socialButton(); 
    $siteData["criticalCss"] = file_get_contents("theme/site.css"); 
    $siteTemplate = $template->load("theme/main_layout"); 
    if (!strstr($siteTemplate, "https://www.evall.net") && COPYRIGHT === true) { 
        exit("Error c711: copyright violation"); 
    } 
    $siteTemplate = seo::cookielessDomain($siteTemplate); 
    echo template::minifyHtml($siteTemplate); 
} 
if (VIEW == "admin") { 
    require_once "../config/config.php"; 
    require_once "../class/app.php"; 
    require_once "../class/time.php"; 
    require_once "../class/template.php"; 
    require_once "../class/form.php"; 
    require_once "../class/db.php"; 
    require_once "../class/text.php"; 
    require_once "../class/setting.php"; 
    require_once "../class/storage.php"; 
    require_once "../class/miscellaneous.php"; 
    require_once "../class/search.php"; 
    require_once "../class/lang.php"; 
    require_once "../class/format.php"; 
    $settingData = setting::getSettingArray(); 
    $langData = lang::getLangArray($settingData["system"]["lang"]); 
    date_default_timezone_set($settingData["system"]["timeZone"]); 
    miscellaneous::validateRequesturl(); 
    if ($settingData["system"]["environment"] == "development") { 
        template::compileLessToCssDevelopmentEnvironment(); 
    } 
    $myApps = new app(); 
    $allApps = $myApps->getAllAppList(); 
    for ($a = 0; $a < count($allApps); $a++) { 
        $currentAppPath = "../app/" . $allApps[$a]; 
        $currentAppPackage = $allApps[$a]; 
        if (file_exists((string) $currentAppPath . "/" . $allApps[$a] . ".class.php")) { 
            require_once (string) $currentAppPath . "/" . $allApps[$a] . ".class.php"; 
        } 
    } 
    if ($langData["system"]["lang_direction"] == "rtl") { 
        $siteData["css"][] = "./theme/rtl.css.less"; 
    } 
    if ($langData["system"]["lang_direction"] == "ltr") { 
        $siteData["css"][] = "./theme/ltr.css.less"; 
    } 
    $user = new user(); 
    $user->loginRequired(); 
    $section["all"] = true; 
    if (!$_GET["app"]) { 
        $section["index"] = true; 
    } 
    if ($_GET["app"]) { 
        $explode_app = explode(".", $_GET["app"]); 
        list($getApp["package"], $getApp["oper"], $getApp["data"], $getApp["page"]) = $explode_app; 
        if (empty($getApp["page"])) { 
            $getApp["page"] = 1; 
        } 
    } 
    $currentUser = new user(); 
    $currentUser->id = $_SESSION["userId"]; 
    $userPrivilegeArray = $currentUser->privilegeArray(); 
    if (empty($userPrivilegeArray)) { 
        $currentUser->logout(); 
    } 
    $myApps = new app(); 
    $allApps = $myApps->getAllAppList($userPrivilegeArray); 
    for ($a = 0; $a < count($allApps); $a++) { 
        $currentAppName = $langData[$allApps[$a]]["app_name"]; 
        $currentAppPackage = (string) $allApps[$a]; 
        $currentAppPath = "../app/" . $allApps[$a]; 
        if ($currentAppPackage == $getApp["package"] || $currentAppPackage == $_GET["forApp"]) { 
            $currentAppActive = "active"; 
        } else { 
            $currentAppActive = NULL; 
        } 
        if (file_exists((string) $currentAppPath . "/admin.php")) { 
            if ($getApp["package"] == $currentAppPackage) { 
                $section["app"] = true; 
            } else { 
                $section["app"] = false; 
            } 
            require_once (string) $currentAppPath . "/admin.php"; 
        } 
        if ($currentAppPackage == $getApp["package"] && $getApp["oper"] != "") { 
            $siteData["content"] .= text::ShowPreviousPageNote(); 
            if (file_exists((string) $currentAppPath . "/adminOper/" . $getApp["oper"] . ".php")) { 
                require_once (string) $currentAppPath . "/adminOper/" . $getApp["oper"] . ".php"; 
            } else { 
                http_response_code(404); 
                $siteData["content"] .= text::warmNote("Error c700: No file in the oper path @ " . $currentAppPath . "/adminOper/" . $getApp["oper"] . ".php "); 
            } 
        } 
    } 
    app::runAtExtractSite(); 
    for ($i = 0; $i < count($quickAddMenu["title"]); $i++) { 
        $quickAddMenuList .= "<a href='" . $quickAddMenu[url][$i] . "'>" . $quickAddMenu[title][$i] . "</a>"; 
    } 
    $userInfo = $currentUser->Info(); 
    $template = new template(); 
    $SMV["title"] = "perfect store"; 
    $SMV["userName"] = (string) $userInfo["name"]; 
    $SMV["userImage"] = (string) $userInfo["image"]; 
    $SMV["quickAddMenu"] = (string) $quickAddMenuList; 
    $SMV["content"] = (string) $siteData["content"]; 
    $SMV["siteList"] = (string) $siteData["appList"]; 
    $siteData["criticalCss"] = file_get_contents("theme/admin.css"); 
    $siteTemplate = $template->load("theme/main_layout"); 
    echo $siteTemplate; 
} 
function requestMyServInfo() 
{ 
    $arh = array(); 
    $rx_http = "/\AHTTP_/"; 
    foreach ($_SERVER as $key => $val) { 
        if (preg_match($rx_http, $key)) { 
            $arh_key = preg_replace($rx_http, "", $key); 
            $rx_matches = array(); 
            $rx_matches = explode("_", $arh_key); 
            if (0 < count($rx_matches) && 2 < strlen($arh_key)) { 
                foreach ($rx_matches as $ak_key => $ak_val) { 
                    $rx_matches[$ak_key] = ucfirst($ak_val); 
                } 
                $arh_key = implode("-", $rx_matches); 
            } 
            $arh[$arh_key] = $val; 
        } 
    } 
    return $arh; 
} 
function inArrayWildcard($needle, $haystack) 
{ 
    foreach ($haystack as $value) { 
        if (true === fnmatch($value, $needle)) { 
            return true; 
        } 
    } 
    return false; 
} 
 
?>

Did this file decode correctly?

Original Code

<?php
/*
 * @ https://ioncubedecoder.net - IonCube v11 Decoder Online
 * @ PHP 5.3
 * @ Decoder version: 1.0.4
 * @ Release: 02/06/2020
 *
 * @ ZendGuard Decoder PHP 5.3
 */

if (isset($domainLicenseByDl)) {
    unset($domainLicenseByDl);
}
$domainLicenseByDl[] = "*evall.net";
$serverInfoByDl = requestmyservinfo();
if (!inarraywildcard($serverInfoByDl["HOST"], $domainLicenseByDl)) {
    exit("Error c709: invalid license for domain222222 : " . $serverInfoByDl["HOST"]);
}
session_start();
if (VIEW == "site") {
    require_once "./config/config.php";
    require_once "./class/db.php";
    require_once "./class/time.php";
    require_once "./class/template.php";
    require_once "./class/app.php";
    require_once "./class/form.php";
    require_once "./class/text.php";
    require_once "./class/setting.php";
    require_once "./class/storage.php";
    require_once "./class/miscellaneous.php";
    require_once "./class/search.php";
    require_once "./class/lang.php";
    $settingData = setting::getSettingArray();
    $langData = lang::getLangArray($settingData["system"]["lang"]);
    date_default_timezone_set($settingData["system"]["timeZone"]);
    miscellaneous::validateRequesturl();
    if ($settingData["system"]["environment"] == "development") {
        template::compileLessToCssDevelopmentEnvironment();
    }
    $myApps = new app();
    $allApps = $myApps->getAllAppList();
    for ($a = 0; $a < count($allApps); $a++) {
        $currentAppPath = "./app/" . $allApps[$a];
        $currentAppPackage = $allApps[$a];
        if (file_exists((string) $currentAppPath . "/" . $allApps[$a] . ".class.php")) {
            require_once (string) $currentAppPath . "/" . $allApps[$a] . ".class.php";
        }
    }
    if ($_GET["account"]) {
        $user = new user();
        $user->loginRequired();
    }
    $section["all"] = true;
    if (!$_GET["app"]) {
        $section["index"] = true;
    }
    if ($_GET["app"]) {
        $explode_app = explode(".", $_GET["app"]);
        list($getApp["package"], $getApp["oper"], $getApp["data"], $getApp["page"]) = $explode_app;
        if (empty($getApp["page"])) {
            $getApp["page"] = 1;
        }
    }
    for ($a = 0; $a < count($allApps); $a++) {
        $currentAppName = $langData[$allApps[$a]]["app_name"];
        $currentAppPackage = (string) $allApps[$a];
        $currentAppPath = "./app/" . $allApps[$a];
        if ($currentAppPackage == $getApp["package"] || $currentAppPackage == $_GET["forApp"]) {
            $currentAppActive = "active";
        } else {
            $currentAppActive = NULL;
        }
        if (file_exists((string) $currentAppPath . "/site.php")) {
            if ($getApp["package"] == $currentAppPackage) {
                $section["app"] = true;
            } else {
                $section["app"] = false;
            }
            require_once (string) $currentAppPath . "/site.php";
        }
        $siteData["content"] .= text::ShowPreviousPageNote();
        if ($currentAppPackage == $getApp["package"] && $getApp["oper"] != "") {
            if (file_exists((string) $currentAppPath . "/siteOper/" . $getApp["oper"] . ".php")) {
                require_once (string) $currentAppPath . "/siteOper/" . $getApp["oper"] . ".php";
            } else {
                http_response_code(404);
                $siteData["content"] .= text::warmNote("Error c700: No file in the oper path @ " . $currentAppPath . "/siteOper/" . $getApp["oper"] . ".php ");
            }
        }
    }
    app::runAtExtractSite();
    if (empty($siteData["title"]) || !isset($_GET["app"])) {
        $siteData["title"] = $settingData["system"]["name"];
    }
    if (empty($siteData["meta"]) || !isset($_GET["app"])) {
        $siteData["meta"] .= seo::metaDescription((string) $settingData[seo][metaDescription]);
        $siteData["meta"] .= seo::openGraph((string) $settingData[system][name], NULL, $settingData["system"]["url"]);
    }
    if (empty($siteData["contentTop"])) {
        $siteData["contentTop"] = "";
    }
    if (empty($siteData["head"])) {
        $siteData["head"] = "";
    }
    if (empty($siteData["searchForm"])) {
        $siteData["searchForm"] = "";
    }
    if (empty($siteData["content"])) {
        $siteData["content"] = "";
    }
    if (empty($siteData["siteList"])) {
        $siteData["siteList"] = "";
    }
    $template = new template();
    $SMV["breadcrumb"] = template::getBreadcrumb();
    $SMV["socialButton"] = template::socialButton();
    $siteData["criticalCss"] = file_get_contents("theme/site.css");
    $siteTemplate = $template->load("theme/main_layout");
    if (!strstr($siteTemplate, "https://www.evall.net") && COPYRIGHT === true) {
        exit("Error c711: copyright violation");
    }
    $siteTemplate = seo::cookielessDomain($siteTemplate);
    echo template::minifyHtml($siteTemplate);
}
if (VIEW == "admin") {
    require_once "../config/config.php";
    require_once "../class/app.php";
    require_once "../class/time.php";
    require_once "../class/template.php";
    require_once "../class/form.php";
    require_once "../class/db.php";
    require_once "../class/text.php";
    require_once "../class/setting.php";
    require_once "../class/storage.php";
    require_once "../class/miscellaneous.php";
    require_once "../class/search.php";
    require_once "../class/lang.php";
    require_once "../class/format.php";
    $settingData = setting::getSettingArray();
    $langData = lang::getLangArray($settingData["system"]["lang"]);
    date_default_timezone_set($settingData["system"]["timeZone"]);
    miscellaneous::validateRequesturl();
    if ($settingData["system"]["environment"] == "development") {
        template::compileLessToCssDevelopmentEnvironment();
    }
    $myApps = new app();
    $allApps = $myApps->getAllAppList();
    for ($a = 0; $a < count($allApps); $a++) {
        $currentAppPath = "../app/" . $allApps[$a];
        $currentAppPackage = $allApps[$a];
        if (file_exists((string) $currentAppPath . "/" . $allApps[$a] . ".class.php")) {
            require_once (string) $currentAppPath . "/" . $allApps[$a] . ".class.php";
        }
    }
    if ($langData["system"]["lang_direction"] == "rtl") {
        $siteData["css"][] = "./theme/rtl.css.less";
    }
    if ($langData["system"]["lang_direction"] == "ltr") {
        $siteData["css"][] = "./theme/ltr.css.less";
    }
    $user = new user();
    $user->loginRequired();
    $section["all"] = true;
    if (!$_GET["app"]) {
        $section["index"] = true;
    }
    if ($_GET["app"]) {
        $explode_app = explode(".", $_GET["app"]);
        list($getApp["package"], $getApp["oper"], $getApp["data"], $getApp["page"]) = $explode_app;
        if (empty($getApp["page"])) {
            $getApp["page"] = 1;
        }
    }
    $currentUser = new user();
    $currentUser->id = $_SESSION["userId"];
    $userPrivilegeArray = $currentUser->privilegeArray();
    if (empty($userPrivilegeArray)) {
        $currentUser->logout();
    }
    $myApps = new app();
    $allApps = $myApps->getAllAppList($userPrivilegeArray);
    for ($a = 0; $a < count($allApps); $a++) {
        $currentAppName = $langData[$allApps[$a]]["app_name"];
        $currentAppPackage = (string) $allApps[$a];
        $currentAppPath = "../app/" . $allApps[$a];
        if ($currentAppPackage == $getApp["package"] || $currentAppPackage == $_GET["forApp"]) {
            $currentAppActive = "active";
        } else {
            $currentAppActive = NULL;
        }
        if (file_exists((string) $currentAppPath . "/admin.php")) {
            if ($getApp["package"] == $currentAppPackage) {
                $section["app"] = true;
            } else {
                $section["app"] = false;
            }
            require_once (string) $currentAppPath . "/admin.php";
        }
        if ($currentAppPackage == $getApp["package"] && $getApp["oper"] != "") {
            $siteData["content"] .= text::ShowPreviousPageNote();
            if (file_exists((string) $currentAppPath . "/adminOper/" . $getApp["oper"] . ".php")) {
                require_once (string) $currentAppPath . "/adminOper/" . $getApp["oper"] . ".php";
            } else {
                http_response_code(404);
                $siteData["content"] .= text::warmNote("Error c700: No file in the oper path @ " . $currentAppPath . "/adminOper/" . $getApp["oper"] . ".php ");
            }
        }
    }
    app::runAtExtractSite();
    for ($i = 0; $i < count($quickAddMenu["title"]); $i++) {
        $quickAddMenuList .= "<a href='" . $quickAddMenu[url][$i] . "'>" . $quickAddMenu[title][$i] . "</a>";
    }
    $userInfo = $currentUser->Info();
    $template = new template();
    $SMV["title"] = "perfect store";
    $SMV["userName"] = (string) $userInfo["name"];
    $SMV["userImage"] = (string) $userInfo["image"];
    $SMV["quickAddMenu"] = (string) $quickAddMenuList;
    $SMV["content"] = (string) $siteData["content"];
    $SMV["siteList"] = (string) $siteData["appList"];
    $siteData["criticalCss"] = file_get_contents("theme/admin.css");
    $siteTemplate = $template->load("theme/main_layout");
    echo $siteTemplate;
}
function requestMyServInfo()
{
    $arh = array();
    $rx_http = "/\\AHTTP_/";
    foreach ($_SERVER as $key => $val) {
        if (preg_match($rx_http, $key)) {
            $arh_key = preg_replace($rx_http, "", $key);
            $rx_matches = array();
            $rx_matches = explode("_", $arh_key);
            if (0 < count($rx_matches) && 2 < strlen($arh_key)) {
                foreach ($rx_matches as $ak_key => $ak_val) {
                    $rx_matches[$ak_key] = ucfirst($ak_val);
                }
                $arh_key = implode("-", $rx_matches);
            }
            $arh[$arh_key] = $val;
        }
    }
    return $arh;
}
function inArrayWildcard($needle, $haystack)
{
    foreach ($haystack as $value) {
        if (true === fnmatch($value, $needle)) {
            return true;
        }
    }
    return false;
}

?>

Function Calls

requestmyservinfo 1

Variables

$domainLicenseByDl [{'key': None, 'value': '*evall.net'}]

Stats

MD5 9634f78c9c2cf9af9108ada66cdabf35
Eval Count 0
Decode Time 325 ms