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 use app\models\settings\CachedSettings; use yii\gii\Module; use yii\log\FileTarget;..

Decoded Output download

<?php 
use app\models\settings\CachedSettings; use yii\gii\Module; use yii\log\FileTarget; use app\models\debug\Helper; goto bkUxW; Qi99U: gobwJ: goto DZSYn; h3DOt: $modules = array_combine($modules, array_map(static function ($item) { goto xapFP; NoRAn: if (!preg_match("/\$sort\s*=\s*(\d+)/", $code, $matches)) { goto HnhQa; } goto FWD7A; I2Pga: HnhQa: goto KgfGl; KgfGl: return ["class" => "pp\modules\" . $item . "\Module", "sort" => $sort]; goto  
vpo27; PtuJQ: $sort = 10000; goto NoRAn; FWD7A: $sort = $matches[1]; goto I2Pga; xapFP: $code = file_get_contents(__DIR__ . "/../modules/" . $item . "/Module.php"); goto PtuJQ; vpo27: }, $modules)); goto CNVHG; L6o6T: $cache = (require __DIR__ . "/cache.php"); goto yEdwl; MKxBM: if (!YII_ENV_DEV) { goto LjbCs; } goto XqHCd; DZSYn: $config = ["id" => "av-console", "name" => "-", "basePath" => dirname(__DIR__), "language" => "ru", "sourceLanguage" => "ru", "bootstrap" => ["log"], "controllerNamespace" => "app\commands", "aliases" => ["@bower" => "@vendor/bower-asset", "@npm" => "@vendor/npm-asset", "@tests" => "@app/tests", "@data" => "@app/data"], "components" => ["cache" => $cache, "log" => ["targets" => [["class" => FileTarget::class, "levels" => ["error",  
"warning"]]]], "db" => $db, "urlManager" => ["baseUrl" => "/", "scriptUrl" => "index.php", "enablePrettyUrl" => true, "showScriptName" => false, "enableStrictParsing" => false, "hostInfo" => $consoleParams["home"], "rules" => ['' => "site/index", "<action:(login|logout|register|ajax-login|search|ajax-error|reset-password)>" => "site/<action>", "<controller:api>/<action:(call)>/<module:[\w\-]+>/<method:[\w\-]+>" => "api/call", "<module:\w+>/lists/<table:\w+>/<id:\d+>/<action:\w+>" => "<module>/lists/<action>", "<module:\w+>/lists/<table:\w+>/<action:\w+>" => "<module>/lists/<action>", "<controller:\w+>/<id:\d+>" => "<controller>/view", "<controller:\w+>/<id:\d+>/list" => "<controller>/index", "<controller:\w+>" => "<controller>/index", "<controller:\w+>/<id:\d+>/<action:\w+>" => "<controller>/<action>", "<controller:\w+>/<action:\w+>" => "<controller>/<action>", "<module:\w+>/<controller:\w+>/<id:-?\d+>" => "<module>/<controller>/view", "<module:\w+>/<controller:\w+>/<id:-?\d+>/index" => "<module>/<controller>/index", "<module:\w+>/<controller:\w+>" => "<module>/<controller>/index", "<module:\w+>/<controller:\w+>/<id:-?\d+>/<action:\w+>" => "<module>/<controller>/<action>", "<module:\w+>/<controller:\w+>/<action:\w+>" => "<module>/<controller>/<action>"]]], "on afterAction" => static function () { Helper::saveData(); }, "params" => ["bsVersion" => "4.x"]]; goto rM_pm; CNVHG: uasort($modules, static function ($a, $b) { return $a["sort"] - $b["sort"]; }); goto yfkKj; v08g6: $config["modules"]["gii"] = ["class" => Module::class]; goto NLgss; Wj_ag: $consoleParams = CachedSettings::getValue("system.console.params"); goto jNzaL; rM_pm: $modules = array_map(static function ($item) { return basename($item); }, glob(dirname(__DIR__) . "/modules" . "/*")); goto h3DOt; jNzaL: if (is_array($consoleParams)) { goto gobwJ; } goto OWRgd; yEdwl: require_once __DIR__ . "/../models/settings/CachedSettings.php"; goto Wj_ag; yfkKj: $config["modules"] = (empty($config["modules"]) ? [] : $config["modules"]) + $modules; goto MKxBM; OWRgd: $consoleParams = []; goto Qi99U; bkUxW: $db = (require __DIR__ . "/db.php"); goto L6o6T; NLgss: LjbCs: goto QdBOh; XqHCd: $config["bootstrap"][] = "gii"; goto v08g6; QdBOh: return $config; ?>

Did this file decode correctly?

Original Code

<?php
use app\models\settings\CachedSettings; use yii\gii\Module; use yii\log\FileTarget; use app\models\debug\Helper; goto bkUxW; Qi99U: gobwJ: goto DZSYn; h3DOt: $modules = array_combine($modules, array_map(static function ($item) { goto xapFP; NoRAn: if (!preg_match("\x2f\134\x24\x73\x6f\x72\164\x5c\163\x2a\x3d\x5c\163\52\50\x5c\144\x2b\x29\x2f", $code, $matches)) { goto HnhQa; } goto FWD7A; I2Pga: HnhQa: goto KgfGl; KgfGl: return ["\x63\154\x61\x73\163" => "\x5c\x61\x70\160\134\155\x6f\144\165\154\145\163\134" . $item . "\134\x4d\157\x64\165\x6c\145", "\x73\157\162\x74" => $sort]; goto 
vpo27; PtuJQ: $sort = 10000; goto NoRAn; FWD7A: $sort = $matches[1]; goto I2Pga; xapFP: $code = file_get_contents(__DIR__ . "\57\56\x2e\57\155\157\144\x75\x6c\x65\x73\57" . $item . "\57\115\x6f\x64\165\154\x65\56\x70\x68\160"); goto PtuJQ; vpo27: }, $modules)); goto CNVHG; L6o6T: $cache = (require __DIR__ . "\x2f\x63\x61\x63\x68\145\56\160\150\160"); goto yEdwl; MKxBM: if (!YII_ENV_DEV) { goto LjbCs; } goto XqHCd; DZSYn: $config = ["\x69\144" => "\x61\x76\x2d\x63\157\156\x73\157\154\x65", "\156\141\155\x65" => "\xd0\220\xd0\xbf\xd0\265\xd0\272\321\x81\55\320\x92\320\243\xd0\227", "\x62\x61\163\145\120\x61\x74\x68" => dirname(__DIR__), "\x6c\141\156\x67\165\141\147\x65" => "\162\165", "\163\x6f\165\162\143\145\x4c\x61\x6e\x67\x75\141\147\145" => "\162\x75", "\x62\x6f\157\x74\x73\164\162\141\160" => ["\x6c\x6f\x67"], "\143\157\156\x74\162\157\154\x6c\x65\162\x4e\x61\155\x65\163\x70\141\143\145" => "\x61\x70\160\134\143\x6f\155\155\x61\x6e\x64\163", "\141\154\151\x61\x73\145\x73" => ["\100\x62\x6f\x77\145\162" => "\x40\166\x65\x6e\x64\157\x72\x2f\142\157\x77\x65\x72\x2d\141\163\163\x65\164", "\100\156\x70\155" => "\x40\x76\x65\x6e\x64\x6f\162\x2f\156\x70\155\55\x61\x73\x73\145\164", "\x40\x74\x65\163\164\x73" => "\x40\x61\x70\x70\x2f\164\x65\x73\x74\x73", "\100\144\141\164\141" => "\x40\x61\x70\160\x2f\x64\141\164\x61"], "\143\157\x6d\x70\x6f\156\x65\156\164\163" => ["\143\x61\x63\150\x65" => $cache, "\154\x6f\x67" => ["\x74\x61\x72\x67\145\x74\x73" => [["\x63\154\141\x73\x73" => FileTarget::class, "\154\x65\166\145\x6c\x73" => ["\145\x72\162\x6f\x72", 
"\x77\x61\x72\x6e\x69\x6e\x67"]]]], "\144\x62" => $db, "\165\162\x6c\115\x61\x6e\141\x67\x65\x72" => ["\x62\141\x73\145\x55\x72\154" => "\57", "\163\x63\x72\x69\160\x74\125\162\154" => "\x69\x6e\x64\x65\170\56\160\x68\x70", "\145\x6e\x61\142\x6c\145\x50\162\145\x74\164\x79\125\x72\154" => true, "\x73\x68\x6f\167\x53\x63\162\x69\160\x74\116\x61\x6d\145" => false, "\x65\156\x61\x62\154\145\x53\164\x72\151\143\x74\x50\x61\162\x73\x69\x6e\147" => false, "\150\157\x73\x74\111\156\146\x6f" => $consoleParams["\x68\x6f\x6d\145"], "\x72\165\154\x65\x73" => ['' => "\x73\151\x74\x65\x2f\151\x6e\144\x65\x78", "\74\141\143\164\x69\157\x6e\72\x28\154\x6f\x67\x69\x6e\x7c\x6c\x6f\x67\x6f\165\164\174\x72\x65\147\x69\x73\164\x65\x72\x7c\141\152\x61\x78\55\x6c\157\x67\x69\x6e\174\x73\x65\x61\x72\x63\150\x7c\x61\152\x61\170\55\145\x72\162\157\x72\x7c\x72\x65\x73\145\164\55\x70\141\163\163\167\157\x72\x64\x29\76" => "\x73\151\164\x65\57\x3c\x61\x63\164\x69\157\x6e\76", "\x3c\x63\157\x6e\164\x72\x6f\154\154\x65\162\x3a\141\x70\x69\76\x2f\74\141\x63\x74\151\157\x6e\x3a\x28\x63\x61\154\154\x29\76\57\x3c\155\x6f\x64\165\x6c\145\x3a\x5b\x5c\x77\x5c\55\135\53\76\57\74\155\145\164\x68\x6f\144\72\x5b\x5c\167\x5c\55\x5d\x2b\76" => "\141\x70\151\x2f\143\x61\x6c\x6c", "\74\x6d\157\144\165\154\145\72\134\167\53\x3e\x2f\x6c\x69\163\164\163\x2f\x3c\x74\141\142\154\145\72\134\167\x2b\76\x2f\x3c\151\144\x3a\x5c\144\53\76\x2f\x3c\x61\143\164\x69\157\156\72\134\167\x2b\x3e" => "\x3c\x6d\157\144\x75\x6c\x65\x3e\57\x6c\x69\163\x74\x73\57\74\x61\x63\x74\151\x6f\x6e\76", "\x3c\x6d\157\x64\165\x6c\145\x3a\x5c\167\x2b\x3e\57\x6c\151\163\164\163\x2f\x3c\x74\141\x62\x6c\145\x3a\134\x77\53\x3e\x2f\x3c\x61\143\164\151\157\x6e\72\134\167\53\76" => "\74\155\157\x64\165\154\145\76\57\154\x69\163\x74\163\57\x3c\141\x63\164\x69\x6f\x6e\x3e", "\74\143\157\156\164\162\157\154\154\145\x72\72\x5c\x77\x2b\76\57\x3c\x69\x64\x3a\134\x64\53\76" => "\x3c\x63\x6f\156\x74\x72\x6f\x6c\x6c\145\x72\76\57\166\x69\x65\x77", "\74\x63\x6f\156\164\x72\157\154\154\x65\x72\72\134\x77\x2b\76\x2f\x3c\x69\x64\x3a\x5c\x64\x2b\x3e\x2f\x6c\151\163\164" => "\74\143\x6f\156\164\162\x6f\154\154\145\x72\x3e\57\x69\x6e\x64\145\170", "\x3c\143\157\x6e\164\162\x6f\154\x6c\x65\162\72\x5c\x77\53\x3e" => "\x3c\x63\157\x6e\x74\162\157\x6c\154\x65\162\76\x2f\151\x6e\144\x65\x78", "\x3c\x63\157\156\164\x72\x6f\154\154\145\x72\72\x5c\167\x2b\76\x2f\x3c\x69\144\72\134\x64\53\76\57\x3c\141\143\164\151\157\x6e\72\x5c\x77\53\76" => "\74\x63\157\156\164\162\x6f\x6c\x6c\x65\162\76\57\74\141\x63\x74\151\x6f\x6e\76", "\74\x63\157\x6e\164\162\157\x6c\154\145\x72\x3a\x5c\x77\x2b\x3e\x2f\74\x61\143\164\x69\157\156\x3a\x5c\x77\x2b\76" => "\x3c\x63\x6f\156\x74\162\x6f\x6c\x6c\145\162\76\x2f\x3c\x61\x63\164\x69\x6f\x6e\76", "\74\155\157\144\x75\x6c\x65\x3a\x5c\x77\x2b\x3e\x2f\74\143\x6f\x6e\164\162\157\154\154\145\x72\72\134\167\53\76\x2f\x3c\x69\x64\72\x2d\77\x5c\x64\x2b\x3e" => "\74\x6d\157\144\165\x6c\145\x3e\57\74\143\157\156\x74\162\157\x6c\x6c\x65\x72\x3e\57\x76\x69\x65\167", "\x3c\155\x6f\144\x75\x6c\x65\x3a\134\167\53\x3e\x2f\x3c\x63\x6f\156\164\162\x6f\154\x6c\x65\x72\x3a\134\x77\53\76\57\x3c\151\x64\x3a\x2d\77\x5c\144\x2b\x3e\57\151\x6e\x64\x65\x78" => "\74\x6d\x6f\144\x75\x6c\145\x3e\57\x3c\x63\157\x6e\x74\x72\157\x6c\x6c\x65\162\x3e\57\151\x6e\x64\x65\170", "\x3c\155\x6f\x64\x75\154\145\72\134\x77\x2b\x3e\x2f\x3c\x63\x6f\x6e\164\x72\x6f\154\x6c\x65\x72\72\134\167\53\x3e" => "\74\x6d\157\144\165\x6c\145\x3e\57\74\143\157\156\164\x72\157\x6c\x6c\145\x72\76\57\x69\156\x64\x65\x78", "\74\x6d\157\x64\x75\x6c\x65\x3a\x5c\167\x2b\x3e\57\x3c\x63\157\x6e\164\x72\x6f\154\154\x65\162\72\134\x77\53\76\57\x3c\151\x64\x3a\55\77\x5c\144\53\x3e\57\x3c\141\x63\164\x69\157\x6e\72\x5c\167\53\x3e" => "\x3c\155\157\x64\165\x6c\x65\x3e\x2f\74\143\157\156\164\162\x6f\x6c\154\145\162\76\57\74\x61\x63\x74\151\x6f\156\x3e", "\x3c\x6d\157\x64\x75\154\145\72\134\167\53\76\x2f\x3c\x63\157\x6e\164\162\x6f\x6c\154\145\x72\x3a\134\167\53\x3e\57\74\x61\143\164\x69\x6f\156\72\x5c\167\53\x3e" => "\74\155\x6f\x64\165\x6c\x65\76\x2f\x3c\x63\157\156\x74\x72\x6f\154\x6c\x65\162\76\x2f\74\x61\143\164\x69\x6f\156\76"]]], "\157\x6e\40\x61\x66\x74\x65\x72\101\x63\x74\151\x6f\x6e" => static function () { Helper::saveData(); }, "\160\141\162\x61\x6d\x73" => ["\x62\x73\x56\x65\x72\x73\151\157\x6e" => "\x34\x2e\x78"]]; goto rM_pm; CNVHG: uasort($modules, static function ($a, $b) { return $a["\163\x6f\162\x74"] - $b["\163\157\x72\164"]; }); goto yfkKj; v08g6: $config["\155\157\x64\165\x6c\145\163"]["\x67\151\x69"] = ["\x63\154\141\x73\x73" => Module::class]; goto NLgss; Wj_ag: $consoleParams = CachedSettings::getValue("\x73\x79\163\x74\145\x6d\56\143\157\156\163\157\154\145\56\x70\x61\162\141\155\x73"); goto jNzaL; rM_pm: $modules = array_map(static function ($item) { return basename($item); }, glob(dirname(__DIR__) . "\57\155\x6f\144\165\154\x65\x73" . "\57\x2a")); goto h3DOt; jNzaL: if (is_array($consoleParams)) { goto gobwJ; } goto OWRgd; yEdwl: require_once __DIR__ . "\x2f\56\x2e\x2f\155\157\x64\145\154\x73\x2f\163\x65\x74\x74\x69\x6e\147\163\57\103\141\x63\x68\145\x64\123\x65\x74\164\151\156\x67\x73\56\160\150\x70"; goto Wj_ag; yfkKj: $config["\155\157\x64\x75\x6c\145\x73"] = (empty($config["\x6d\157\x64\165\154\145\163"]) ? [] : $config["\155\157\144\x75\x6c\x65\163"]) + $modules; goto MKxBM; OWRgd: $consoleParams = []; goto Qi99U; bkUxW: $db = (require __DIR__ . "\57\x64\x62\x2e\x70\150\x70"); goto L6o6T; NLgss: LjbCs: goto QdBOh; XqHCd: $config["\x62\157\x6f\164\163\x74\162\x61\160"][] = "\147\151\151"; goto v08g6; QdBOh: return $config;

Function Calls

None

Variables

None

Stats

MD5 00684882c99cc5523b63834d7bbb1414
Eval Count 0
Decode Time 60 ms