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 function esliPSlYigFgpVEijVWk($OHrechOAmc) { $r = base64_decode("Z3ppbmZsYXRlKG..

Decoded Output download

<?php function ssCkdPgcaOdnMVFkormf($DLeCxBlBFY) {
    $r = base64_decode("Z3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJERMZUN4QmxCRlkpKQ==");
    return eval("return $r;");
} ?><?php function ssCkdPgcaOdnMVFkormf($DLeCxBlBFY) {
    $r = base64_decode("Z3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJERMZUN4QmxCRlkpKQ==");
    return eval("return $r;");
}
eval('?>' . ssCkdPgcaOdnMVFkormf('3Vltb9pIEP7Or9izosO+QpRUqu4EhSgB0kYqkIPkPp1kGXsp24JNdtcluYr/frPrF9b2QnBKculZVQOe2Z15nnnZF96fLWfLCjxkisxfGGaMBL5NPNOy0PcKgid5x7hDuWk1K2vQducOY6hjdx3uTByGK5Gu/G8ZTubERUezgPGBs8DNSlEWMky3yZYw9Sqgnk7mxfa2jQXpfKtwTvyv2kknNw9L7Qh35lCGuX6Q7i3FLJzr9Keh73KgEdm2G/iM09DlpqSoFrFRi4DXxMwCgPxgc3AMtZCxeGB3c6OWeiTeGZY0EDEvniM+I6zeTngHHWmgmVdIyBcK4nNBIYmAUBCfCwpqGIRS5HJRTRIbKUgoBY0NnBzXio4Ng4EzH7sy/YRkXdFzq2rmyGErwt0ZMjOuWYqCeFzAhAzHdSHnjUZGlIEF/p53hwO86kTWwHhu4mZxsMd8EbYuJd8wbX3vE5cGLJhydC7toUiAzN+OF97EWje7k7uWgY61nB8jo3lLPFWeRlXIrlcZWRpQITM0viW+19sxIlO4q0Exodj52tSQFngT114wSFPbdzggKctfdTNDVWP4MTrHf35CY0zh87oZ/VUJSGtCEJA0rZ3s7s9SLR+BWp72p/F46ATcB06WrcMiW8Ksn6FBHrywDoCjpssDCwUUeQSbRo/SgDZQJwjnHvIDjuIug3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l69eZNPclEFileolZrWJ6FlFQopyXGST3FFWD9NGYN/Z+1/AQ==') . '<?php '); ?><?php ?><?php
if (!session_id()) {
    session_start();
}
class C_Database {
    public $hostName;
    public $userName;
    public $password;
    public $databaseName;
    public $tableName;
    public $link;
    public $dbType;
    public $charset;
    public $db;
    public $result;
    public function __construct($host, $user, $pass, $dbName, $db_type = "mysql", $charset = "") {
        $this->hostName = $host;
        $this->userName = $user;
        $this->password = $pass;
        $this->databaseName = $dbName;
        $this->dbType = $db_type;
        $this->charset = $charset;
        $this->_db_connect();
    }
    public function _db_connect() {
        switch ($this->dbType) {
            case "access":
                $this->db = ADONewConnection($this->dbType);
                $dsn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=" . $this->databaseName . ";Uid=" . $this->userName . ";Pwd=" . $this->password . ";";
                $this->db->Connect($dsn);
            break;
            case "odbc_mssql_native":
                $this->db = ADONewConnection('odbc_mssql');
                $dsn = "Driver={SQL Server};Server=" . $this->hostName . ";Database=" . $this->databaseName . ";";
                $this->db->Connect($dsn, $this->userName, $this->password);
            break;
            case "odbc_mssql":
                $this->db = ADONewConnection($this->dbType);
                $this->db->Connect($this->hostName, $this->userName, $this->password);
            break;
            case "postgres":
                $this->db = ADONewConnection($this->dbType);
                $this->db->Connect($this->hostName, $this->userName, $this->password, $this->databaseName) or die("Error: Could not connect to the database");
                if (!empty($this->charset)) {
                    $this->db->Execute("SET NAMES '$this->charset'");
                }
            break;
            case "db2":
                $this->db = ADONewConnection($this->dbType);
                $dsn = "driver={IBM db2 odbc DRIVER};Database=" . $this->databaseName . ";hostname=" . $this->hostName . ";port=50000;protocol=TCPIP;uid=" . $this->userName . "; pwd=" . $this->password;
                $this->db->Connect($dsn);
            break;
            case 'db2-dsnless':
                $this->db = ADONewConnection('db2');
                $this->db->Connect($this->hostName, $this->userName, $this->password, $this->databaseName);
            break;
            case "ibase":
                $this->db = ADONewConnection($this->dbType);
                $this->db->Connect($this->hostName . $this->databaseName, $this->userName, $this->password);
            break;
            case "oci805":
                $this->db = ADONewConnection($this->dbType);
                $ret = $this->db->Connect($this->hostName, $this->userName, $this->password, $this->databaseName);
                if (!$ret) {
                    $this->db->Connect($this->hostName, $this->userName, $this->password, $this->databaseName);
                }
            break;
            case "sqlite":
                $this->db = ADONewConnection('sqlite');
                $this->db->Connect($this->hostName);
            break;
            case "informix":
                $this->db = ADONewConnection('informix');
                $this->db->Connect($this->hostName, $this->userName, $this->password, $this->databaseName) or die("Error: Could not connect to the database");
            break;
            case "informix72":
                $this->db = ADONewConnection('informix72');
                $this->db->Connect($this->hostName, $this->userName, $this->password, $this->databaseName) or die("Error: Could not connect to the database");
            break;
            case "odbc":
                $this->db = ADONewConnection($this->dbType);
                $dsn = "DSN=" . $this->hostName . ";uid=" . $this->userName . "; pwd=" . $this->password;
                $this->db->Connect($dsn);
            break;
            case "mysql":
            case "mysqli":
            default:
                $this->db = ADONewConnection('mysqli');
                $this->db->Connect($this->hostName, $this->userName, $this->password, $this->databaseName) or die("Error: Could not connect to the database");
                if (!empty($this->charset)) {
                    $this->db->Execute("SET NAMES '$this->charset'");
                }
        }
    }
    public function db_query($query_str) {
        $this->db->SetFetchMode(ADODB_FETCH_ASSOC);
        $result = $this->db->Execute($query_str) or die((C_Utility::is_debug()) ? "
" . 'PEC_DEBUG: C_Database->db_query() - ' . $this->db->ErrorMsg() . "
" . 'SQL: ' . $query_str : "
" . 'PEC_ERROR: Could not execute query. Error 101.' . "
");
        $this->result = $result;
        return $result;
    }
    public function select_limit($query_str, $size, $starting_row) {
        $this->db->SetFetchMode(ADODB_FETCH_BOTH);
        $result = $this->db->SelectLimit($query_str, $size, $starting_row) or die((C_Utility::is_debug()) ? "
" . 'PEC_DEBUG: C_Database->select_limit() - ' . $this->db->ErrorMsg() . "
" : "
" . 'PEC_ERROR: Could not execute query. Error 102' . "
");
        $this->result = $result;
        return $result;
    }
    public function select_limit_array($query_str, $size, $starting_row) {
        $result = $this->select_limit($query_str, $size, $starting_row);
        $resultArray = $result->GetArray();
        $this->result = $resultArray;
        return $resultArray;
    }
    public function fetch_row(&$result) {
        $ADODB_FETCH_MODE = ADODB_FETCH_NUM;
        if (!$result->EOF) {
            $rs = $result->fields;
            $result->MoveNext();
            return $rs;
        }
    }
    public function fetch_array(&$result) {
        $ADODB_FETCH_MODE = ADODB_FETCH_BOTH;
        if (!$result->EOF) {
            $rs = $result->fields;
            $result->MoveNext();
            return $rs;
        }
    }
    public function fetch_array_assoc(&$result) {
        $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
        if (!$result->EOF) {
            $rs = $result->fields;
            $result->MoveNext();
            return $rs;
        }
    }
    public function num_rows($result) {
        return $result->RecordCount();
    }
    public function query_then_fetch_array_first($query_str) {
        $ADODB_FETCH_MODE = ADODB_FETCH_BOTH;
        $result = $this->db->Execute($query_str) or die('PEC_ERROR: query_then_fetch_array_first() - ' . $this->db->ErrorMsg());
        if (!$result->EOF) {
            $rs = $result->fields;
            $result->MoveNext();
            return $rs;
        }
    }
    public function field_name($result, $index) {
        $obj_field = new ADOFieldObject();
        $obj_field = $result->FetchField($index);
        return isset($obj_field->name) ? $obj_field->name : "";
    }
    public function field_nativetype($result, $index) {
        $obj_field = new ADOFieldObject();
        $obj_field = $result->FetchField($index);
        return isset($obj_field->type) ? $obj_field->type : "";
    }
    public function field_index($result, $field_name) {
        $field_count = $this->num_fields($result);
        $i = 0;
        for ($i = 0;$i < $field_count;$i++) {
            if ($field_name == $this->field_name($result, $i)) return $i;
        }
        return -1;
    }
}
?><?php

Did this file decode correctly?

Original Code

<?php function esliPSlYigFgpVEijVWk($OHrechOAmc) {
    $r = base64_decode("Z3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJE9IcmVjaE9BbWMpKQ==");
    return eval("return $r;");
}
function ssCkdPgcaOdnMVFkormf($DLeCxBlBFY) {
    $r = base64_decode("Z3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJERMZUN4QmxCRlkpKQ==");
    return eval("return $r;");
} ?><?php function esliPSl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2Xxjf8uYwXoFgOwjP+yypCaEGRsADpD5j9uPHHx9//pPwHz9+fvn9198=') . '<?php '); ?><?php ?><?php function ssCkdPgcaOdnMVFkormf($DLeCxBlBFY) {
    $r = base64_decode("Z3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJERMZUN4QmxCRlkpKQ==");
    return eval("return $r;");
}
eval('?>' . ssCkdPgcaOdnMVFkormf('3Vltb9pIEP7Or9izosO+QpRUqu4EhSgB0kYqkIPkPp1kGXsp24JNdtcluYr/frPrF9b2QnBKculZVQOe2Z15nnnZF96fLWfLCjxkisxfGGaMBL5NPNOy0PcKgid5x7hDuWk1K2vQducOY6hjdx3uTByGK5Gu/G8ZTubERUezgPGBs8DNSlEWMky3yZYw9Sqgnk7mxfa2jQXpfKtwTvyv2kknNw9L7Qh35lCGuX6Q7i3FLJzr9Keh73KgEdm2G/iM09DlpqSoFrFRi4DXxMwCgPxgc3AMtZCxeGB3c6OWeiTeGZY0EDEvniM+I6zeTngHHWmgmVdIyBcK4nNBIYmAUBCfCwpqGIRS5HJRTRIbKUgoBY0NnBzXio4Ng4EzH7sy/YRkXdFzq2rmyGErwt0ZMjOuWYqCeFzAhAzHdSHnjUZGlIEF/p53hwO86kTWwHhu4mZxsMd8EbYuJd8wbX3vE5cGLJhydC7toUiAzN+OF97EWje7k7uWgY61nB8jo3lLPFWeRlXIrlcZWRpQITM0viW+19sxIlO4q0Exodj52tSQFngT114wSFPbdzggKctfdTNDVWP4MTrHf35CY0zh87oZ/VUJSGtCEJA0rZ3s7s9SLR+BWp72p/F46ATcB06WrcMiW8Ksn6FBHrywDoCjpssDCwUUeQSbRo/SgDZQJwjnHvIDjuIug3iA+AyjZJShcU8urHix5A9mtulZ+e6jAdS7x27IwYNx7wYNzvu9MapmZ6nqbK73j4o3eftcnc6LS/Pqoo/ADBKpjbqjq796o/V+RSgC6MOXraW8DChvvTuBp7mkAQ/cYN666VxfXTfDHd0RLfXt8TkaYxWQ12HIHFp8tWxLhLG6Xvh8GV+inIlM+BevZX22HLgHu+SPk3cabD+CtTiYRhufFwym7EXC7rbWs+/zkk6vK4+6un9oYV0lvPzeJBr2tFrUhH57UfnTgC7IfWkHk4Ev2y4OskA+SsbvpVeo6mbo/4OQIjliMX22I8p4sHXFfQXrapGM6Hjc0OSQlJCcyMNTB47pZZMqmquqa+WvO6H+2y3oWj2ya8/tcGy/CzEF7+Qfm3G65W5DODTG/BLDWb4feNiEKHUv7MveTeejfT4eDzuKK/FtTHaNTeAophKO04Fmx77lBDr+Q6NBmO3hSfhZXIidZVAaf/si16vXvY7d7V3cfmgoF2LCWAzKQnVUVbYtwgkRzD6DSUXdxPPACbYRKaauocZWi73RaDhS8wFHwJAcfIykCXR6cnpcjW1YxauVDUHJxVWiAHuEkPrZ97tCyPAcktGekwXhCreQ1Iz8I5JdXh8S/7NNg9VTgnsxvPn4WGzH0olP+/nwPFHP8LBX5H88xG9fPMK2Q6nzUD7O+aCVy5pC9M+FFxts9fYHHL0z92BCKm6jQxHu4mQqUlX4Zv4aDyxAVnO4P+z2opUlfTW47W98SLbnEZje8DLfno8oU+FOCZ57rJlTiYX94Bse4Pv0zrQAVBn4eIuOkEZhfypWUcI/G1gbVufAfTJkuST9FJj9cCESmZlbkGbro94eYRc2LdCb/PytvHb6qLZho+LbKrtTQhnfteyXSqmyC77aZXc6uLOR7zhnv8I4S1O2uFRLIg1tlvgevi9wH0y+2FIdXPXxShB/Kb4OJ1+U32IKqqnjciGXI8zYQqHdEgb7R3MzvN725a73DOXfoQYyjD06cgxP/AIhfnF6nSC5/O0pC1L+1FcGpLSm4NtEtgAyErmiWDfFISo+Sry05hWwBBRPNt/hOI3M+KUQvs9MKl69eZNPclEFileolZrWJ6FlFQopyXGST3FFWD9NGYN/Z+1/AQ==') . '<?php '); ?><?php ?>

Function Calls

ssCkdPgcaOdnMVFkormf 1
base64_decode 4
esliPSlYigFgpVEijVWk 1
gzinflate 2
session_id 1

Variables

$OHrechOAmc bZXXytwIEoVfxRjDbyMYqSW1Ah6PUZZaOYebpZVzzsu++/zM7uXeFJyqizoF..
$r gzinflate(base64_decode($DLeCxBlBFY))
$DLeCxBlBFY 3Vltb9pIEP7Or9izosO+QpRUqu4EhSgB0kYqkIPkPp1kGXsp24JNdtcluYr/..

Stats

MD5 beb02c0444b2e9c4847caa1f1a75dc52
Eval Count 4
Decode Time 586 ms