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 define('EvolutionScript', 1); define('ENVIRONMENT', 'production'); // define('E..

Decoded Output download

<?php 
 
define('EvolutionScript', 1); 
define('ENVIRONMENT', 'production'); 
// define('ENVIRONMENT', 'development'); 
switch (ENVIRONMENT) { 
    case 'development': 
        error_reporting(-1); 
        ini_set('display_errors', 1); 
 
        break; 
    case 'testing': 
    case 'production': 
        ini_set('display_errors', 0); 
        if (version_compare(PHP_VERSION, '5.3', '>=')) { 
            error_reporting(32767 & ~8 & ~8192 & ~2048 & ~1024 & ~16384); 
        } else { 
            error_reporting(32767 & ~8 & ~2048 & ~1024); 
        } 
 
        break; 
    default: 
        header('HTTP/1.1 503 Service Unavailable.', true, 503); 
        echo 'The application environment is not set correctly.'; 
        exit(1); 
} 
define('BASEPATH', dirname(__FILE__).DIRECTORY_SEPARATOR); 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'constants.php'; 
include BASEPATH.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'Common.php'; 
if (!is_php('5.4')) { 
    ini_set('magic_quotes_runtime', 0); 
    if ((bool) ini_get('register_globals')) { 
        $_protected = ['_SERVER', '_GET', '_POST', '_FILES', '_REQUEST', '_SESSION', '_ENV', '_COOKIE', 'GLOBALS', 'HTTP_RAW_POST_DATA', 'system_path', 'application_folder', 'view_folder', '_protected', '_registered']; 
        $_registered = ini_get('variables_order'); 
        foreach (['E' => '_ENV', 'G' => '_GET', 'P' => '_POST', 'C' => '_COOKIE', 'S' => '_SERVER'] as $key => $superglobal) { 
            if (false === strpos($_registered, $key)) { 
                continue; 
            } 
            foreach (array_keys(${$superglobal}) as $var) { 
                if (isset($GLOBALS[$var]) && !in_array($var, $_protected, true)) { 
                    $GLOBALS[$var] = null; 
                } 
            } 
        } 
    } 
} 
set_error_handler('_error_handler'); 
set_exception_handler('_exception_handler'); 
register_shutdown_function('_shutdown_handler'); 
$charset = strtoupper(config_item('charset')); 
ini_set('default_charset', $charset); 
if (extension_loaded('mbstring')) { 
    define('MB_ENABLED', true); 
    @ini_set('mbstring.internal_encoding', $charset); 
    mb_substitute_character('none'); 
} else { 
    define('MB_ENABLED', false); 
} 
if (extension_loaded('iconv')) { 
    define('ICONV_ENABLED', true); 
    @ini_set('iconv.internal_encoding', $charset); 
} else { 
    define('ICONV_ENABLED', false); 
} 
if (is_php('5.6')) { 
    ini_set('php.internal_encoding', $charset); 
} 
require_once BASEPATH.'includes'.DIRECTORY_SEPARATOR.'compat'.DIRECTORY_SEPARATOR.'mbstring.php'; 
require_once BASEPATH.'includes'.DIRECTORY_SEPARATOR.'compat'.DIRECTORY_SEPARATOR.'hash.php'; 
require_once BASEPATH.'includes'.DIRECTORY_SEPARATOR.'compat'.DIRECTORY_SEPARATOR.'password.php'; 
require_once BASEPATH.'includes'.DIRECTORY_SEPARATOR.'compat'.DIRECTORY_SEPARATOR.'standard.php'; 
$UNI = new Evolution\Core\Utf8(); 
$session = new Evolution\Components\Session(); 
$input = new Evolution\Components\Input(); 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'url.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'form.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'file.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'string.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'bootstrap.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'template.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'language.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'ajax.php'; 
if (!file_exists(BASEPATH.'includes'.DIRECTORY_SEPARATOR.'locker'.DIRECTORY_SEPARATOR.'install.log')) { 
    if (!defined('INSTALL_PATH')) { 
        $base_url = (is_https() ? 'https' : 'http').'://'.$input->server('HTTP_HOST').'/'; 
        redirect($base_url.'install/install.php'); 
    } 
} else { 
    if (!file_exists(BASEPATH.'includes'.DIRECTORY_SEPARATOR.'locker'.DIRECTORY_SEPARATOR.'key.log')) { 
        exit(base64_decode('SW52YWxpZCBMaWNlbnNlIEtleQ==')); 
    } 
    $license_key = file_get_contents(BASEPATH.'includes'.DIRECTORY_SEPARATOR.'locker'.DIRECTORY_SEPARATOR.'key.log'); 
    define('LICENSE_KEY', $license_key); 
    if (LICENSE_KEY != '5.7E52E426A83E969EFF1CE0378C376E') { 
        exit(base64_decode('SW52YWxpZCBMaWNlbnNlIEtleQ==')); 
    } 
    $patch = new Evolution\Core\Patch(); 
    $patch->validateLicense(); 
} 
BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'language.php'; 
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'ajax.php'; 
if (!file_exists(BASEPATH.'includes'.DIRECTORY_SEPARATOR.'locker'.DIRECTORY_SEPARATOR.'install.log')) { 
    if (!defined('INSTALL_PATH')) { 
        $base_url = (is_https() ? 'https' : 'http').'://'.$input->server('HTTP_HOST').'/'; 
        redirect($base_url.'install/install. ?>

Did this file decode correctly?

Original Code

<?php

define('EvolutionScript', 1);
define('ENVIRONMENT', 'production');
// define('ENVIRONMENT', 'development');
switch (ENVIRONMENT) {
    case 'development':
        error_reporting(-1);
        ini_set('display_errors', 1);

        break;
    case 'testing':
    case 'production':
        ini_set('display_errors', 0);
        if (version_compare(PHP_VERSION, '5.3', '>=')) {
            error_reporting(32767 & ~8 & ~8192 & ~2048 & ~1024 & ~16384);
        } else {
            error_reporting(32767 & ~8 & ~2048 & ~1024);
        }

        break;
    default:
        header('HTTP/1.1 503 Service Unavailable.', true, 503);
        echo 'The application environment is not set correctly.';
        exit(1);
}
define('BASEPATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'constants.php';
include BASEPATH.'vendor'.DIRECTORY_SEPARATOR.'autoload.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'Common.php';
if (!is_php('5.4')) {
    ini_set('magic_quotes_runtime', 0);
    if ((bool) ini_get('register_globals')) {
        $_protected = ['_SERVER', '_GET', '_POST', '_FILES', '_REQUEST', '_SESSION', '_ENV', '_COOKIE', 'GLOBALS', 'HTTP_RAW_POST_DATA', 'system_path', 'application_folder', 'view_folder', '_protected', '_registered'];
        $_registered = ini_get('variables_order');
        foreach (['E' => '_ENV', 'G' => '_GET', 'P' => '_POST', 'C' => '_COOKIE', 'S' => '_SERVER'] as $key => $superglobal) {
            if (false === strpos($_registered, $key)) {
                continue;
            }
            foreach (array_keys(${$superglobal}) as $var) {
                if (isset($GLOBALS[$var]) && !in_array($var, $_protected, true)) {
                    $GLOBALS[$var] = null;
                }
            }
        }
    }
}
set_error_handler('_error_handler');
set_exception_handler('_exception_handler');
register_shutdown_function('_shutdown_handler');
$charset = strtoupper(config_item('charset'));
ini_set('default_charset', $charset);
if (extension_loaded('mbstring')) {
    define('MB_ENABLED', true);
    @ini_set('mbstring.internal_encoding', $charset);
    mb_substitute_character('none');
} else {
    define('MB_ENABLED', false);
}
if (extension_loaded('iconv')) {
    define('ICONV_ENABLED', true);
    @ini_set('iconv.internal_encoding', $charset);
} else {
    define('ICONV_ENABLED', false);
}
if (is_php('5.6')) {
    ini_set('php.internal_encoding', $charset);
}
require_once BASEPATH.'includes'.DIRECTORY_SEPARATOR.'compat'.DIRECTORY_SEPARATOR.'mbstring.php';
require_once BASEPATH.'includes'.DIRECTORY_SEPARATOR.'compat'.DIRECTORY_SEPARATOR.'hash.php';
require_once BASEPATH.'includes'.DIRECTORY_SEPARATOR.'compat'.DIRECTORY_SEPARATOR.'password.php';
require_once BASEPATH.'includes'.DIRECTORY_SEPARATOR.'compat'.DIRECTORY_SEPARATOR.'standard.php';
$UNI = new Evolution\Core\Utf8();
$session = new Evolution\Components\Session();
$input = new Evolution\Components\Input();
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'url.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'form.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'file.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'string.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'bootstrap.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'template.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'language.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'ajax.php';
if (!file_exists(BASEPATH.'includes'.DIRECTORY_SEPARATOR.'locker'.DIRECTORY_SEPARATOR.'install.log')) {
    if (!defined('INSTALL_PATH')) {
        $base_url = (is_https() ? 'https' : 'http').'://'.$input->server('HTTP_HOST').'/';
        redirect($base_url.'install/install.php');
    }
} else {
    if (!file_exists(BASEPATH.'includes'.DIRECTORY_SEPARATOR.'locker'.DIRECTORY_SEPARATOR.'key.log')) {
        exit(base64_decode('SW52YWxpZCBMaWNlbnNlIEtleQ=='));
    }
    $license_key = file_get_contents(BASEPATH.'includes'.DIRECTORY_SEPARATOR.'locker'.DIRECTORY_SEPARATOR.'key.log');
    define('LICENSE_KEY', $license_key);
    if (LICENSE_KEY != '5.7E52E426A83E969EFF1CE0378C376E') {
        exit(base64_decode('SW52YWxpZCBMaWNlbnNlIEtleQ=='));
    }
    $patch = new Evolution\Core\Patch();
    $patch->validateLicense();
}
BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'language.php';
include BASEPATH.'includes'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'ajax.php';
if (!file_exists(BASEPATH.'includes'.DIRECTORY_SEPARATOR.'locker'.DIRECTORY_SEPARATOR.'install.log')) {
    if (!defined('INSTALL_PATH')) {
        $base_url = (is_https() ? 'https' : 'http').'://'.$input->server('HTTP_HOST').'/';
        redirect($base_url.'install/install.

Function Calls

None

Variables

None

Stats

MD5 06f619858cd62a7ebf3b1db49e947b18
Eval Count 0
Decode Time 42 ms