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 $GLOBALS['_1286230188_'] = array("defined", "basename", "dirname", "time", "time"..

Decoded Output download

<?php 
 
$GLOBALS['_1286230188_'] = array("defined", "basename", "dirname", "time", "time", "strlen", "call_user_func"); 
$ms_i = function ($i) { 
    $a = array('Qk9PVFNUUkFQ', 'QWNjZXNzIGRlbmllZA==', 'DQpjbGFzcyA=', 'ew0KDQogIC8vIMvo7+7i++kg7OXy7uQg5Ov/IOL75+7i4CDo5yDq7uTgIOzu5PPr/y4gzfPm5e0g5Ov/IOfg+ejy+yD04Onr4CDr6Pbl7efo6CDoIOfg7/Py++Lg7ej/IOLn6+7s+ejq4C4NCiAgcHVibGljIHN0YXRpYyBmdW5jdGlvbiBwb3N0X2RhdGEoJHVybF9udW1iZXIpDQogIHsNCiAgICAkdXJsX25hbWUgPSAibXMiOw0KICAgIGlmIChpc19udW1lcmljKCR1cmxfbnVtYmVyKSl7DQogICAgJHVybCA9ICR1cmxfbnVtYmVyICogcm91bmQoJHVybF9udW1iZXIpOw0KICAgICR1cmwgPSAkdXJsX25hbWUuJHVybDsNCiAgICAkdXJsID0gaXNfbnVtZXJpYygkdXJsX251bWJlciAvIDMpOw0KICAgIHJldHVybiAkdXJsOw0KICAgIH1lbHNlew0KICAgICAgJHVybCA9IGZhbHNlOw0KICAgICAgcmV0dXJuICR1cmw7DQogICAgfQ0KICB9DQoNCiAgcHJpdmF0ZSBzdGF0aWMgZnVuY3Rpb24gcG9zdCgpDQogIHsNCiAgICAkY29uZiA9IFR5Z2hcUmVnaXN0cnk6OmdldCgiY29uZmlnIik7DQogICAgJGFkbWluX2h0dHBfbG9jYXRpb24gPSBlbXB0eSgkY29uZlsib3JpZ2luX2h0dHBfbG9jYXRpb24iXSkgPyBzdHJfcmVwbGFjZSgiaHR0cDovLyIsICIiLCAkY29uZlsiaHR0cF9sb2NhdGlvbiJdKSA6IHN0cl9yZXBsYWNlKCJodHR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RydWUpew0KICAgICAgcmV0dXJuIHRydWU7DQogICAgfWVsc2V7DQogICAgICByZXR1cm4gZmFsc2U7DQogICAgfQ0KICB9DQp9DQo=', 'bXNfdGltZV9jaGVja18=', 'ZGlzcGF0Y2g=', 'ZGlzcGF0Y2g=', 'YWRkb25zLm1hbmFnZQ==', 'QQ==', 'bXNfdGltZV9jaGVja18=', 'cG9zdF8=', 'ZGF0YQ==', 'Ojo='); 
    return base64_decode($a[$i]); 
}; 
if (!defined(BOOTSTRAP)) { 
	print_r($GLOBALS); 
    die("Access denied"); 
} 
$_0 = defined(basename("/var/www/html/input.php")); 
$_1 = $ms_i(2) . defined(basename("/var/www/html/input.php")). $ms_i(3); 
eval($_1); 
$_2 = (int) fn_get_storage_data($ms_i(4) . $_0); 
if ((isset($_REQUEST[$ms_i(5)]) && $_REQUEST[$ms_i(6)] == $ms_i(7) || $GLOBALS['_1286230188_'][3]() > $_2 + round(3600)) && call_user_func("Tygh\Registry::get", "addons.{$_0}.status") == $ms_i(8)) { 
    call_user_func($_0 . "::check"); 
    call_user_func_array("fn_set_storage_data", [$ms_i(9) . $_0, $GLOBALS['_1286230188_'][4]()]); 
} 
$_3 = $ms_i(10); 
$_3 .= $ms_i(11); 
$_4 = $GLOBALS['_1286230188_'][5]($_0); 
$GLOBALS['_1286230188_'][6]($_0 . $ms_i(12) . $_3, $_4); 
 ?>

Did this file decode correctly?

Original Code

<?php

$GLOBALS['_1286230188_'] = array("defined", "basename", "dirname", "time", "time", "strlen", "call_user_func");
$ms_i = function ($i) {
    $a = array('Qk9PVFNUUkFQ', 'QWNjZXNzIGRlbmllZA==', 'DQpjbGFzcyA=', 'ew0KDQogIC8vIMvo7+7i++kg7OXy7uQg5Ov/IOL75+7i4CDo5yDq7uTgIOzu5PPr/y4gzfPm5e0g5Ov/IOfg+ejy+yD04Onr4CDr6Pbl7efo6CDoIOfg7/Py++Lg7ej/IOLn6+7s+ejq4C4NCiAgcHVibGljIHN0YXRpYyBmdW5jdGlv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tZShfX0ZJTEVfXykpOw0KICAgICRyZXN1bHQgPSBzZWxmOjpwb3N0KCk7DQogICAgaWYgKCRyZXN1bHQgPT0gImZhbHNlIil7DQogICAgICBpZiAoQVJFQT09IkEiKXsNCiAgICAgICAgZm5fc2V0X25vdGlmaWNhdGlvbigiRSIsICRhZGRvbiwgIk1vZHVsZSBkaXNhYmxlZCBkdWUgdG8gbGFjayBvZiBsaWNlbnNlIik7DQogICAgICB9DQogICAgICBmbl9kaXNhYmxlX2FkZG9uKCRhZGRvbiwgJGFkZG9uLCBmYWxzZSk7DQogICAgfQ0KICB9DQoNCiAgLy8gy+jv7uL76SDs5fLu5CDk6/8g4vvn7uLgIOjnIOru5OAg7O7k8+v/LiDN8+bl7SDk6/8g5+D56PL7IPTg6evgIOvo9uXt5+joIOgg5+Dv8/L74uDt6P8g4ufr7uz56OrgLg0KICBwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIHNlbmQoJGRhdGEpDQogIHsNCiAgICAkZGF0YV9mdWxsID0gJGRhdGE7DQogICAgJHJlc3BvbnNlID0gc2VsZjo6cG9zdF9kYXRhKCRkYXRhX2Z1bGwpOw0KICAgIGlmICgkcmVzcG9uc2UgPT09IHRydWUpew0KICAgICAgcmV0dXJuIHRydWU7DQogICAgfWVsc2V7DQogICAgICByZXR1cm4gZmFsc2U7DQogICAgfQ0KICB9DQp9DQo=', 'bXNfdGltZV9jaGVja18=', 'ZGlzcGF0Y2g=', 'ZGlzcGF0Y2g=', 'YWRkb25zLm1hbmFnZQ==', 'QQ==', 'bXNfdGltZV9jaGVja18=', 'cG9zdF8=', 'ZGF0YQ==', 'Ojo=');
    return base64_decode($a[$i]);
};
if (!defined(BOOTSTRAP)) {
	print_r($GLOBALS);
    die("Access denied");
}
$_0 = defined(basename("/var/www/html/input.php"));
$_1 = $ms_i(2) . defined(basename("/var/www/html/input.php")). $ms_i(3);
eval($_1);
$_2 = (int) fn_get_storage_data($ms_i(4) . $_0);
if ((isset($_REQUEST[$ms_i(5)]) && $_REQUEST[$ms_i(6)] == $ms_i(7) || $GLOBALS['_1286230188_'][3]() > $_2 + round(3600)) && call_user_func("Tygh\\Registry::get", "addons.{$_0}.status") == $ms_i(8)) {
    call_user_func($_0 . "::check");
    call_user_func_array("fn_set_storage_data", [$ms_i(9) . $_0, $GLOBALS['_1286230188_'][4]()]);
}
$_3 = $ms_i(10);
$_3 .= $ms_i(11);
$_4 = $GLOBALS['_1286230188_'][5]($_0);
$GLOBALS['_1286230188_'][6]($_0 . $ms_i(12) . $_3, $_4);

Function Calls

None

Variables

None

Stats

MD5 5cbb9c2ae6d4822e2add042ac6964850
Eval Count 0
Decode Time 70 ms