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..
Decoded Output download
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2024-07-22 15:33:35 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
goto EZdrF;
mGk2S:
function t(string $phraseKey, array $variables = []) : string
{
goto CLX6f;
YsQBp:
return Gate\ServiceLocator::translations()->translate($phraseKey, $variables);
goto ojvFs;
CLX6f:
if (!str_starts_with($phraseKey, "!")) {
goto SB1XO;
}
goto J713J;
J713J:
throw new SDK\Framework\Exception\Translation("You can't start phrase tag with symbol '!'");
goto chkq5;
chkq5:
SB1XO:
goto YsQBp;
ojvFs:
}
goto aJ1wm;
HckG4:
function isNonEmptyString($value) : bool
{
return is_string($value) && $value !== '';
}
goto NHWGe;
aJ1wm:
function tm(string $phraseKey, ?string $moduleName = null, array $variables = []) : string
{
goto P_7ie;
D55zM:
$moduleName = "core";
goto D8qT0;
RV7qG:
return Gate\ServiceLocator::translations()->translate("!{$moduleName}|{$phraseKey}", $variables);
goto LVGXz;
P_7ie:
if (!($moduleName === null)) {
goto F0wDR;
}
goto D55zM;
D8qT0:
F0wDR:
goto RV7qG;
LVGXz:
}
goto J9WMe;
EZdrF:
function calcAssetChecksum(string $fileRelativePath) : string
{
goto ZASCY;
Y6fC2:
$QziyMzFsJx = "{$szrPJmKWyE}{$fileRelativePath}";
goto pnp3t;
ZASCY:
$szrPJmKWyE = $GLOBALS["config"]["web_server.public_dir"];
goto Y6fC2;
pnp3t:
return md5(file_get_contents($QziyMzFsJx));
goto EoSR8;
EoSR8:
}
goto mGk2S;
J9WMe:
function isBetaTest() : bool
{
return $_COOKIE["is_beta"] ?? false;
}
goto HckG4;
NHWGe:
function isProjectInFocusGroup(string $groupName) : bool
{
goto dZAWc;
y0MJo:
$GriFbmFxkP = $GLOBALS["config"]["focus_groups"][$groupName] ?? [];
goto cGoSJ;
cCX14:
if (!($xZYsySctqb === null)) {
goto IIz_w;
}
goto bLIET;
ieCm0:
IIz_w:
goto y0MJo;
cGoSJ:
return Gate\ServiceLocator::arrayUtils()->isInArray($GriFbmFxkP, $xZYsySctqb);
goto XfKcl;
dZAWc:
$xZYsySctqb = Gate\ServiceLocator::context()->getProject()?->id;
goto cCX14;
bLIET:
return false;
goto ieCm0;
XfKcl:
} ?>
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2024-07-22 15:33:35 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
goto EZdrF;
mGk2S:
function t(string $phraseKey, array $variables = []) : string
{
goto CLX6f;
YsQBp:
return Gate\ServiceLocator::translations()->translate($phraseKey, $variables);
goto ojvFs;
CLX6f:
if (!str_starts_with($phraseKey, "!")) {
goto SB1XO;
}
goto J713J;
J713J:
throw new SDK\Framework\Exception\Translation("You can't start phrase tag with symbol '!'");
goto chkq5;
chkq5:
SB1XO:
goto YsQBp;
ojvFs:
}
goto aJ1wm;
HckG4:
function isNonEmptyString($value) : bool
{
return is_string($value) && $value !== '';
}
goto NHWGe;
aJ1wm:
function tm(string $phraseKey, ?string $moduleName = null, array $variables = []) : string
{
goto P_7ie;
D55zM:
$moduleName = "core";
goto D8qT0;
RV7qG:
return Gate\ServiceLocator::translations()->translate("!{$moduleName}|{$phraseKey}", $variables);
goto LVGXz;
P_7ie:
if (!($moduleName === null)) {
goto F0wDR;
}
goto D55zM;
D8qT0:
F0wDR:
goto RV7qG;
LVGXz:
}
goto J9WMe;
EZdrF:
function calcAssetChecksum(string $fileRelativePath) : string
{
goto ZASCY;
Y6fC2:
$QziyMzFsJx = "{$szrPJmKWyE}{$fileRelativePath}";
goto pnp3t;
ZASCY:
$szrPJmKWyE = $GLOBALS["config"]["web_server.public_dir"];
goto Y6fC2;
pnp3t:
return md5(file_get_contents($QziyMzFsJx));
goto EoSR8;
EoSR8:
}
goto mGk2S;
J9WMe:
function isBetaTest() : bool
{
return $_COOKIE["is_beta"] ?? false;
}
goto HckG4;
NHWGe:
function isProjectInFocusGroup(string $groupName) : bool
{
goto dZAWc;
y0MJo:
$GriFbmFxkP = $GLOBALS["config"]["focus_groups"][$groupName] ?? [];
goto cGoSJ;
cCX14:
if (!($xZYsySctqb === null)) {
goto IIz_w;
}
goto bLIET;
ieCm0:
IIz_w:
goto y0MJo;
cGoSJ:
return Gate\ServiceLocator::arrayUtils()->isInArray($GriFbmFxkP, $xZYsySctqb);
goto XfKcl;
dZAWc:
$xZYsySctqb = Gate\ServiceLocator::context()->getProject()?->id;
goto cCX14;
bLIET:
return false;
goto ieCm0;
XfKcl:
}
Function Calls
None |
Stats
MD5 | 0f5b22dfa24a85bfa5f536931340e8c6 |
Eval Count | 0 |
Decode Time | 50 ms |