Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(gzinflate(base64_decode('vVVRb6JAEH73V0yNCZBa9XK5h0tzJhdtGpOeNcb0hRqyhQE3hcXbXXo1rf+9..

Decoded Output download



 function getConfigValue($configClass,$configName) {
    global $botid, $config;
    return $config[$botid][$configClass][$configName];
 }

 function checkConfigs() { // There you can add new config checks to your bot interface
    global $lang;
    $errors = 0;
    // Global Config Checker
    if (!preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/',getConfigValue('connection','server_ip'))) {
        echo "
".$lang->getLanguage('MNG_ERROR')." ".$lang->getLanguage('NOT_VALID_IP')."
";
        $errors++;
    }
    if (!is_numeric(getConfigValue('connection','server_query_port')) || !strlen(getConfigValue('connection','server_query_port')) > 5) {
        echo "
".$lang->getLanguage('MNG_ERROR')." ".$lang->getLanguage('NOT_VALID_PORT')."
";
        $errors++;
    }
    if (!is_numeric(getConfigValue('connection','server_id'))) {
        echo "
".$lang->getLanguage('MNG_ERROR')." ".$lang->getLanguage('NOD_VALID_ID')."
";
        $errors++;
    }
    if ($errors > 0)
        exit;
    return true;
 }

 function reloadConfig() {
    unset($config);
    include('configs/config.php');
    return true;
 }

 function getPluginConfigValue($pluginName) {
    global $botid, $config;
    if (array_key_exists($pluginName, $config[$botid]['plugins']['plugins_configs']))
        return $config[$botid]['plugins']['plugins_configs'][$pluginName];
    else
        return false;
 }
 
 
 function getCommandConfigValue($commandName) {
    global $botid, $config;
    if (array_key_exists($commandName, $config[$botid]['commands']['commands_configs']))
        return $config[$botid]['commands']['commands_configs'][$commandName];
    else
        return false;
 }

 function getEventConfigValue($eventName) {
    global $botid, $config;
    if (array_key_exists($eventName, $config[$botid]['events']['events_configs']))
        return $config[$botid]['events']['events_configs'][$eventName];
    else
        return false;
 }

  function getEventTimeInfo($eventName) {
    global $botid, $config;
    if (array_key_exists($eventName, $config[$botid]['events']['events_executes']))
        return $config[$botid]['events']['events_executes'][$eventName];
    else
        return false;
 }

Did this file decode correctly?

Original Code

eval(gzinflate(base64_decode('vVVRb6JAEH73V0yNCZBa9XK5h0tzJhdtGpOeNcb0hRqyhQE3hcXbXXo1rf+9CwsC1rbaxoMHZmdnvvnmgx0aDfAT5koaMwhQDmLm0+CGhAmaLTdbDEIiRDtfjEmEFjw1QF1BGN+REFp3saReG/KI82yPo0w4K3y2jpnbVcjNKsWcq7R1o8LFXaB7r9kIU1WEbhdmC+QIqzgBlzAgngcM/4EG0QkCZJwGcFAFgTKJ3Ccu1uiGhOUkW8h5zAX8gp52qBqXOkpXhkEKijzbpD6YJ0uOgRMR6S5Mo2v3zn7On761v69vOx/bXaO9JbChqDPM+jXahkD+gNyhS8OyConTC91FDM1b1uxk1M/6CuVKGQkJFMSf8aVzMZ1eTw2r04TdMePrmXPz+2o0dEaTNExhnW/gcxFOT7VrXfZKhcOSCDl1zX2I/02Qr5xlzKVqAJ6f4URIHiL7RHIffhxLgcn1dHY8Dah3hJc3LF7ecH/ixafdh55VknmksnY8JU9w++BxDGPi6U7NopWECZTFQLA0BmVumHhaiPSUdvWzs1yoL/jDMqrHSZgElNUmzjJz7Ttk0kYJ52Tl3OPKUd0JKaoY7Vfzx9CbwihNJ6dvzK1SqTfG17vpdqXyXBPEUOA2pk+UM1MD0rs+fKOIMG9rBme+r0lSAdmhSb6bdVXYB6nyPoBdLb+XMHVVLh6Q1f9LmHq+psgGYoce2V7WjLYO0uLtZLssuqcKr2WY0QhHzI//vwb4iG4i8ZMilNkHq/AC')));

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 db5aa2336f6e07dc95abe61733f5467d
Eval Count 1
Decode Time 71 ms