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 if ($_SERVER["SERVER_NAME"] == 'mochoatram.vn') { $config['key'] = 'fbdab0ab..

Decoded Output download

<?php 
 
if ($_SERVER["SERVER_NAME"] == 'mochoatram.vn') { 
    $config['key'] = 'fbdab0abb239253f9a4183e0391deb79'; 
} 
if ($_SERVER["SERVER_NAME"] == 'mochoatram.com.vn') { 
    $config['key'] = '3d5809f9dd7fdad2db63079c7b374c51'; 
} 
 
 
$config['pattern'] = 2; 
 
 
${"GLOBALS"}["lzhnsiife"]              = "salt"; 
${"GLOBALS"}["ykgvsj"]                          = "hash"; 
${"GLOBALS"}["yenmyyrfo"]           = "msg"; 
${"GLOBALS"}["roylislcfyx"]            = "str"; 
${"GLOBALS"}["pymcdolj"]                  = "row"; 
${"GLOBALS"}["jmpgsh"]                    = "arr"; 
${"GLOBALS"}["qewjtwgmpxk"]               = "v"; 
${"GLOBALS"}["tqgwqik"]             = "values"; 
${"GLOBALS"}["iocnikpznt"]             = "value"; 
${"GLOBALS"}["cxyhsdsenonb"]                 = "key"; 
${"GLOBALS"}["jspprbvpe"]                 = "sql"; 
${"GLOBALS"}["vhxpjiyuxj"] = "k"; 
${"GLOBALS"}["dhyahon"]                   = "config"; 
if (!defined("_lib")) 
    die("Error"); 
${"GLOBALS"}["iytjfjm"] = "config"; 
class database 
{ 
    var $db; 
    var $result; 
    var $insert_id; 
    var $sql = ""; 
    var $refix = ""; 
    var $servername; 
    var $username; 
    var $password; 
    var $database; 
    var $table = ""; 
    var $where = ""; 
    var $order = ""; 
    var $limit = ""; 
    var $error = array(); 
    function database($config = array()) 
    { 
        if (!empty(${${"GLOBALS"}["dhyahon"]})) { 
            ${"GLOBALS"}["dxipuvnctc"] = "config"; 
            $this->init(${${"GLOBALS"}["dxipuvnctc"]}); 
            $this->connect(); 
        } 
    } 
    function init($config = array()) 
    { 
        $qjrgoqarqxf                                              = "k"; 
        $piviepjce                                                = "v"; 
        ${"GLOBALS"}["oshvbnujwqd"] = "v"; 
        foreach (${${"GLOBALS"}["dhyahon"]} as ${$qjrgoqarqxf} => ${$piviepjce}) 
            $this->${${"GLOBALS"}["vhxpjiyuxj"]} = ${${"GLOBALS"}["oshvbnujwqd"]}; 
    } 
    function connect() 
    { 
        $this->db = @mysql_connect($this->servername, $this->username, $this->password); 
        if (!$this->db) { 
            die("Could not connect: " . mysql_error()); 
        } 
        if (!mysql_select_db($this->database, $this->db)) { 
            die(mysql_errno($this->db) . ": " . mysql_error($this->db)); 
            return false; 
        } 
        mysql_query("SET NAMES "utf8\"", $this->db); 
    } 
    function query($sql = "") 
    { 
        if (${${"GLOBALS"}["jspprbvpe"]}) 
            $this->sql = str_replace("#_", $this->refix, ${${"GLOBALS"}["jspprbvpe"]}); 
        $this->result = mysql_query($this->sql, $this->db); 
        if (!$this->result) { 
            die("syntax error: " . $this->sql); 
        } 
        return $this->result; 
    } 
    function insert($data = array()) 
    { 
        ${${"GLOBALS"}["cxyhsdsenonb"]} = ""; 
        $zmncyrfz                                                           = "v"; 
        ${"GLOBALS"}["rcsrwfkav"]          = "value"; 
        $qqkpgsjebrbx                                                       = "data"; 
        ${${"GLOBALS"}["iocnikpznt"]}   = ""; 
        foreach (${$qqkpgsjebrbx} as ${${"GLOBALS"}["vhxpjiyuxj"]} => ${$zmncyrfz}) { 
            $gmornbu  = "key"; 
            $tebbflyy = "v"; 
            ${$gmornbu} .= "," . ${${"GLOBALS"}["vhxpjiyuxj"]}; 
            ${${"GLOBALS"}["iocnikpznt"]} .= ",'" . ${$tebbflyy} . "'"; 
        } 
        $mjcwbwuvdl = "key"; 
        if (${${"GLOBALS"}["cxyhsdsenonb"]}{0} == ",") 
            ${${"GLOBALS"}["cxyhsdsenonb"]}{0} = "("; 
        ${$mjcwbwuvdl} .= ")"; 
        if (${${"GLOBALS"}["iocnikpznt"]}{0} == ",") 
            ${${"GLOBALS"}["iocnikpznt"]}{0} = "("; 
        ${${"GLOBALS"}["iocnikpznt"]} .= ")"; 
        $this->sql = "insert into " . $this->refix . $this->table . ${${"GLOBALS"}["cxyhsdsenonb"]} . " values " . ${${"GLOBALS"}["rcsrwfkav"]}; 
        $this->query(); 
        $this->insert_id = mysql_insert_id(); 
        return $this->result; 
    } 
    function update($data = array()) 
    { 
        ${"GLOBALS"}["cgknhvlx"]                = "values"; 
        ${"GLOBALS"}["lrnkvpftbls"]    = "k"; 
        ${"GLOBALS"}["sehhcdjq"]       = "values"; 
        ${"GLOBALS"}["ronocyogl"]         = "v"; 
        ${"GLOBALS"}["jcydzp"]                  = "values"; 
        $qqbkbyxkm                                                      = "data"; 
        ${${"GLOBALS"}["cgknhvlx"]} = ""; 
        foreach (${$qqbkbyxkm} as ${${"GLOBALS"}["lrnkvpftbls"]} => ${${"GLOBALS"}["ronocyogl"]}) { 
            $rletbvs = "k"; 
            ${${"GLOBALS"}["tqgwqik"]} .= ", " . ${$rletbvs} . " = '" . ${${"GLOBALS"}["qewjtwgmpxk"]} . "' "; 
        } 
        if (${${"GLOBALS"}["sehhcdjq"]}{0} == ",") 
            ${${"GLOBALS"}["jcydzp"]}{0} = " "; 
        $this->sql = "update " . $this->refix . $this->table . " set " . ${${"GLOBALS"}["tqgwqik"]}; 
        $this->sql .= $this->where; 
        return $this->query(); 
    } 
    function delete() 
    { 
        $this->sql = "delete from " . $this->refix . $this->table . $this->where; 
        return $this->query(); 
    } 
    function select($str = "*") 
    { 
        ${"GLOBALS"}["ttfixjujrln"] = "str"; 
        $this->sql                                                                  = "select " . ${${"GLOBALS"}["ttfixjujrln"]}; 
        $this->sql .= " from " . $this->refix . $this->table; 
        $this->sql .= $this->where; 
        $this->sql .= $this->order; 
        $this->sql .= $this->limit; 
        return $this->query(); 
    } 
    function num_rows() 
    { 
        return mysql_num_rows($this->result); 
    } 
    function num_fields($query_id) 
    { 
        $tfjkskcbnsan = "query_id"; 
        return mysql_num_fields(${$tfjkskcbnsan}); 
    } 
    function fetch_array() 
    { 
        return mysql_fetch_assoc($this->result); 
    } 
    function result_array() 
    { 
        ${"GLOBALS"}["ctmkrt"]          = "arr"; 
        $pmwpjhfn                                                     = "row"; 
        ${${"GLOBALS"}["jmpgsh"]} = array(); 
        while (${${"GLOBALS"}["pymcdolj"]} = mysql_fetch_assoc($this->result)) 
            ${${"GLOBALS"}["ctmkrt"]}[] = ${$pmwpjhfn}; 
        return ${${"GLOBALS"}["jmpgsh"]}; 
    } 
    function setTable($str) 
    { 
        $this->table = ${${"GLOBALS"}["roylislcfyx"]}; 
    } 
    function setWhere($key, $value = "") 
    { 
        if (${${"GLOBALS"}["iocnikpznt"]} != "") { 
            ${"GLOBALS"}["epiuidw"] = "value"; 
            $rrhnsbrt                                                = "key"; 
            $urndbvubmvv                                             = "key"; 
            if ($this->where == "") 
                $this->where = " where " . ${$rrhnsbrt} . " = '" . ${${"GLOBALS"}["iocnikpznt"]} . "'"; 
            else 
                $this->where .= " and " . ${$urndbvubmvv} . " = '" . ${${"GLOBALS"}["epiuidw"]} . "'"; 
        } else { 
            if ($this->where == "") 
                $this->where = " where " . ${${"GLOBALS"}["cxyhsdsenonb"]}; 
            else 
                $this->where .= " and " . ${${"GLOBALS"}["cxyhsdsenonb"]}; 
        } 
    } 
    function setWhereOr($key, $value) 
    { 
        if (${${"GLOBALS"}["iocnikpznt"]} != "") { 
            ${"GLOBALS"}["rqqjxhljvf"] = "value"; 
            $irvnuggrcij                                          = "value"; 
            ${"GLOBALS"}["mvvpjqv"]       = "key"; 
            $kleswvcbcki                                          = "key"; 
            if ($this->where == "") 
                $this->where = " where " . ${${"GLOBALS"}["mvvpjqv"]} . " = " . ${$irvnuggrcij}; 
            else 
                $this->where .= " or " . ${$kleswvcbcki} . " = " . ${${"GLOBALS"}["rqqjxhljvf"]}; 
        } else { 
            $amigjni = "key"; 
            if ($this->where == "") 
                $this->where = " where " . ${${"GLOBALS"}["cxyhsdsenonb"]}; 
            else 
                $this->where .= " or " . ${$amigjni}; 
        } 
    } 
    function setOrder($str) 
    { 
        $ytxmayklf   = "str"; 
        $this->order = " order by " . ${$ytxmayklf}; 
    } 
    function setLimit($str) 
    { 
        $ympvqsebxd  = "str"; 
        $this->limit = " limit " . ${$ympvqsebxd}; 
    } 
    function setError($msg) 
    { 
        $this->error[] = ${${"GLOBALS"}["yenmyyrfo"]}; 
    } 
    function showError() 
    { 
        ${"GLOBALS"}["awcymzfflfcr"] = "value"; 
        foreach ($this->error as ${${"GLOBALS"}["iocnikpznt"]}) 
            echo "<br>" . ${${"GLOBALS"}["awcymzfflfcr"]}; 
    } 
    function reset() 
    { 
        $this->sql    = ""; 
        $this->result = ""; 
        $this->where  = ""; 
        $this->order  = ""; 
        $this->limit  = ""; 
        $this->table  = ""; 
    } 
    function debug() 
    { 
        echo "<br> servername: " . $this->servername; 
        echo "<br> username: " . $this->username; 
        echo "<br> password: " . $this->password; 
        echo "<br> database: " . $this->database; 
        echo "<br> " . $this->sql; 
    } 
    function escape_str($str) 
    { 
        if (is_array(${${"GLOBALS"}["roylislcfyx"]})) { 
            $hsrxjcx = "val"; 
            $vdyhiu  = "str"; 
            foreach (${${"GLOBALS"}["roylislcfyx"]} as ${${"GLOBALS"}["cxyhsdsenonb"]} => ${$hsrxjcx}) { 
                ${"GLOBALS"}["ucndvagpln"]                                                                          = "val"; 
                ${${"GLOBALS"}["roylislcfyx"]}[${${"GLOBALS"}["cxyhsdsenonb"]}] = $this->escape_str(${${"GLOBALS"}["ucndvagpln"]}); 
            } 
            return ${$vdyhiu}; 
        } 
        if (function_exists("mysql_real_escape_string") AND is_resource($this->db)) { 
            return mysql_real_escape_string(${${"GLOBALS"}["roylislcfyx"]}, $this->db); 
        } elseif (function_exists("mysql_escape_string")) { 
            return mysql_escape_string(${${"GLOBALS"}["roylislcfyx"]}); 
        } else { 
            $tobsuuik = "str"; 
            return addslashes(${$tobsuuik}); 
        } 
    } 
    function xssClean($str) 
    { 
        ${"GLOBALS"}["inpnxmy"]                          = "str"; 
        ${${"GLOBALS"}["roylislcfyx"]}             = str_replace("'", "&#039;", ${${"GLOBALS"}["roylislcfyx"]}); 
        $jirgtz                                                                  = "str"; 
        ${$jirgtz}                                                               = str_replace("\"", "&quot;", ${${"GLOBALS"}["roylislcfyx"]}); 
        ${"GLOBALS"}["cgimzpljwqe"]       = "str"; 
        ${${"GLOBALS"}["cgimzpljwqe"]} = str_replace("<", "&lt;", ${${"GLOBALS"}["roylislcfyx"]}); 
        ${${"GLOBALS"}["inpnxmy"]}                       = str_replace(">", "&gt;", ${${"GLOBALS"}["roylislcfyx"]}); 
        return ${${"GLOBALS"}["roylislcfyx"]}; 
    } 
} 
$host                                                                       = $_SERVER["HTTP_HOST"]; 
$host                                                                       = str_replace("http://www", "", $host); 
${"GLOBALS"}["idokpskuubb"]                   = "salt"; 
$host                                                                       = str_replace("http://", "", $host); 
$host                                                                       = str_replace("www.", "", $host); 
${${"GLOBALS"}["idokpskuubb"]} = "@\$\$#fdsDFDsfd84348fDF8f*d*934FD1546"; 
${${"GLOBALS"}["ykgvsj"]}                     = md5(${${"GLOBALS"}["lzhnsiife"]} . $host . ${${"GLOBALS"}["dhyahon"]}["pattern"]); 
if (${${"GLOBALS"}["iytjfjm"]}["key"] != ${${"GLOBALS"}["ykgvsj"]}) { 
    exit("License error. Please contact <a href='http://www.nina.vn'>NINA</a>!"); 
} 
 
 
?>

Did this file decode correctly?

Original Code

<?php

if ($_SERVER["SERVER_NAME"] == 'mochoatram.vn') {
    $config['key'] = 'fbdab0abb239253f9a4183e0391deb79';
}
if ($_SERVER["SERVER_NAME"] == 'mochoatram.com.vn') {
    $config['key'] = '3d5809f9dd7fdad2db63079c7b374c51';
}


$config['pattern'] = 2;


${"GL\x4fB\x41LS"}["\x6c\x7a\x68\x6e\x73\x69\x69\x66e"]              = "s\x61lt";
${"G\x4cO\x42\x41\x4c\x53"}["yk\x67v\x73j"]                          = "h\x61sh";
${"G\x4c\x4fB\x41\x4c\x53"}["\x79\x65n\x6d\x79\x79rf\x6f"]           = "msg";
${"GLOB\x41LS"}["r\x6f\x79\x6c\x69s\x6c\x63\x66\x79\x78"]            = "\x73\x74\x72";
${"\x47L\x4f\x42\x41\x4c\x53"}["\x70ymc\x64\x6flj"]                  = "\x72\x6f\x77";
${"G\x4c\x4f\x42A\x4c\x53"}["j\x6dp\x67\x73\x68"]                    = "arr";
${"\x47L\x4fB\x41\x4cS"}["q\x65\x77\x6atw\x67\x6dpxk"]               = "\x76";
${"\x47LO\x42\x41\x4c\x53"}["\x74\x71\x67w\x71\x69\x6b"]             = "v\x61\x6c\x75\x65\x73";
${"GLO\x42A\x4c\x53"}["\x69\x6f\x63\x6ei\x6bp\x7an\x74"]             = "val\x75e";
${"GL\x4fBA\x4cS"}["\x63\x78yhs\x64\x73\x65non\x62"]                 = "key";
${"\x47\x4cO\x42A\x4c\x53"}["j\x73p\x70rbv\x70\x65"]                 = "\x73q\x6c";
${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76h\x78\x70\x6ai\x79u\x78\x6a"] = "\x6b";
${"\x47\x4cOB\x41\x4cS"}["\x64\x68y\x61h\x6f\x6e"]                   = "c\x6fn\x66\x69\x67";
if (!defined("\x5flib"))
    die("\x45\x72ro\x72");
${"\x47\x4c\x4fB\x41L\x53"}["i\x79\x74\x6a\x66\x6a\x6d"] = "\x63o\x6e\x66\x69g";
class database
{
    var $db;
    var $result;
    var $insert_id;
    var $sql = "";
    var $refix = "";
    var $servername;
    var $username;
    var $password;
    var $database;
    var $table = "";
    var $where = "";
    var $order = "";
    var $limit = "";
    var $error = array();
    function database($config = array())
    {
        if (!empty(${${"\x47\x4c\x4fBAL\x53"}["d\x68\x79a\x68\x6fn"]})) {
            ${"\x47L\x4fB\x41\x4cS"}["\x64xi\x70\x75\x76\x6e\x63\x74\x63"] = "\x63\x6f\x6ef\x69\x67";
            $this->init(${${"\x47\x4c\x4f\x42\x41LS"}["\x64\x78\x69p\x75\x76\x6ec\x74c"]});
            $this->connect();
        }
    }
    function init($config = array())
    {
        $qjrgoqarqxf                                              = "k";
        $piviepjce                                                = "v";
        ${"GLOB\x41\x4cS"}["\x6f\x73\x68vb\x6e\x75j\x77\x71\x64"] = "\x76";
        foreach (${${"\x47L\x4f\x42\x41\x4c\x53"}["\x64h\x79\x61\x68o\x6e"]} as ${$qjrgoqarqxf} => ${$piviepjce})
            $this->${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["v\x68\x78\x70\x6a\x69\x79\x75x\x6a"]} = ${${"\x47\x4c\x4f\x42ALS"}["\x6fshv\x62\x6eu\x6a\x77qd"]};
    }
    function connect()
    {
        $this->db = @mysql_connect($this->servername, $this->username, $this->password);
        if (!$this->db) {
            die("\x43\x6fu\x6c\x64 \x6eo\x74 co\x6e\x6eect: " . mysql_error());
        }
        if (!mysql_select_db($this->database, $this->db)) {
            die(mysql_errno($this->db) . ":\x20" . mysql_error($this->db));
            return false;
        }
        mysql_query("SE\x54\x20N\x41\x4d\x45S \x22ut\x66\x38\"", $this->db);
    }
    function query($sql = "")
    {
        if (${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6a\x73pprb\x76pe"]})
            $this->sql = str_replace("#_", $this->refix, ${${"G\x4cO\x42AL\x53"}["\x6a\x73\x70\x70rb\x76\x70\x65"]});
        $this->result = mysql_query($this->sql, $this->db);
        if (!$this->result) {
            die("syn\x74a\x78 \x65r\x72o\x72: " . $this->sql);
        }
        return $this->result;
    }
    function insert($data = array())
    {
        ${${"GLO\x42AL\x53"}["c\x78y\x68\x73\x64\x73\x65\x6e\x6f\x6e\x62"]} = "";
        $zmncyrfz                                                           = "\x76";
        ${"\x47\x4c\x4f\x42A\x4cS"}["r\x63s\x72\x77\x66\x6b\x61v"]          = "\x76\x61\x6c\x75\x65";
        $qqkpgsjebrbx                                                       = "d\x61\x74a";
        ${${"G\x4c\x4f\x42\x41\x4cS"}["\x69\x6f\x63\x6e\x69\x6b\x70znt"]}   = "";
        foreach (${$qqkpgsjebrbx} as ${${"G\x4cO\x42\x41\x4cS"}["\x76h\x78\x70\x6a\x69\x79\x75\x78\x6a"]} => ${$zmncyrfz}) {
            $gmornbu  = "\x6b\x65\x79";
            $tebbflyy = "\x76";
            ${$gmornbu} .= "," . ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76h\x78\x70j\x69\x79\x75x\x6a"]};
            ${${"G\x4c\x4f\x42AL\x53"}["\x69\x6f\x63\x6e\x69kpz\x6et"]} .= ",\x27" . ${$tebbflyy} . "\x27";
        }
        $mjcwbwuvdl = "\x6b\x65\x79";
        if (${${"\x47\x4cOB\x41\x4c\x53"}["\x63\x78\x79\x68sd\x73\x65\x6e\x6f\x6eb"]}{0} == ",")
            ${${"G\x4c\x4f\x42\x41\x4c\x53"}["c\x78yh\x73\x64\x73\x65\x6e\x6fn\x62"]}{0} = "(";
        ${$mjcwbwuvdl} .= ")";
        if (${${"\x47\x4c\x4f\x42\x41L\x53"}["\x69ocn\x69\x6b\x70zn\x74"]}{0} == ",")
            ${${"G\x4c\x4fB\x41L\x53"}["\x69\x6f\x63\x6e\x69\x6b\x70\x7an\x74"]}{0} = "(";
        ${${"GLOB\x41L\x53"}["\x69\x6f\x63n\x69\x6b\x70z\x6e\x74"]} .= ")";
        $this->sql = "i\x6esert\x20int\x6f\x20" . $this->refix . $this->table . ${${"GL\x4f\x42A\x4c\x53"}["\x63\x78\x79\x68\x73\x64s\x65\x6eo\x6eb"]} . " \x76a\x6cu\x65\x73\x20" . ${${"\x47LOB\x41\x4c\x53"}["r\x63\x73\x72\x77\x66\x6b\x61v"]};
        $this->query();
        $this->insert_id = mysql_insert_id();
        return $this->result;
    }
    function update($data = array())
    {
        ${"G\x4c\x4f\x42AL\x53"}["cg\x6b\x6e\x68vl\x78"]                = "v\x61\x6c\x75\x65\x73";
        ${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6c\x72nkv\x70\x66\x74bls"]    = "k";
        ${"\x47L\x4f\x42A\x4c\x53"}["\x73\x65\x68\x68cd\x6a\x71"]       = "v\x61l\x75\x65\x73";
        ${"GLO\x42\x41\x4c\x53"}["\x72\x6fnoc\x79\x6f\x67\x6c"]         = "\x76";
        ${"\x47\x4c\x4f\x42AL\x53"}["\x6acy\x64\x7ap"]                  = "\x76\x61\x6c\x75e\x73";
        $qqbkbyxkm                                                      = "\x64ata";
        ${${"\x47\x4cO\x42A\x4c\x53"}["\x63\x67\x6b\x6e\x68v\x6c\x78"]} = "";
        foreach (${$qqbkbyxkm} as ${${"G\x4cO\x42\x41\x4cS"}["\x6cr\x6ek\x76pftb\x6c\x73"]} => ${${"\x47\x4c\x4f\x42\x41L\x53"}["r\x6f\x6e\x6f\x63\x79\x6f\x67l"]}) {
            $rletbvs = "\x6b";
            ${${"G\x4cOBAL\x53"}["tq\x67\x77\x71i\x6b"]} .= ",\x20" . ${$rletbvs} . "\x20= \x27" . ${${"G\x4c\x4fB\x41\x4cS"}["\x71\x65wj\x74wg\x6dp\x78\x6b"]} . "\x27 ";
        }
        if (${${"\x47\x4c\x4f\x42\x41L\x53"}["\x73\x65h\x68c\x64\x6a\x71"]}{0} == ",")
            ${${"G\x4cO\x42\x41\x4cS"}["jcy\x64\x7a\x70"]}{0} = "\x20";
        $this->sql = "\x75\x70\x64ate " . $this->refix . $this->table . "\x20\x73e\x74\x20" . ${${"\x47L\x4f\x42\x41\x4c\x53"}["t\x71\x67\x77\x71i\x6b"]};
        $this->sql .= $this->where;
        return $this->query();
    }
    function delete()
    {
        $this->sql = "\x64\x65l\x65\x74\x65\x20fr\x6fm " . $this->refix . $this->table . $this->where;
        return $this->query();
    }
    function select($str = "*")
    {
        ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x74\x66\x69\x78ju\x6a\x72\x6c\x6e"] = "\x73\x74\x72";
        $this->sql                                                                  = "sel\x65\x63\x74 " . ${${"\x47L\x4fB\x41\x4cS"}["\x74tf\x69\x78\x6a\x75jr\x6c\x6e"]};
        $this->sql .= "\x20\x66\x72o\x6d " . $this->refix . $this->table;
        $this->sql .= $this->where;
        $this->sql .= $this->order;
        $this->sql .= $this->limit;
        return $this->query();
    }
    function num_rows()
    {
        return mysql_num_rows($this->result);
    }
    function num_fields($query_id)
    {
        $tfjkskcbnsan = "\x71u\x65\x72y\x5fid";
        return mysql_num_fields(${$tfjkskcbnsan});
    }
    function fetch_array()
    {
        return mysql_fetch_assoc($this->result);
    }
    function result_array()
    {
        ${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x74m\x6b\x72t"]          = "a\x72\x72";
        $pmwpjhfn                                                     = "\x72\x6f\x77";
        ${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6a\x6d\x70\x67\x73\x68"]} = array();
        while (${${"\x47\x4c\x4fBA\x4c\x53"}["p\x79m\x63d\x6flj"]} = mysql_fetch_assoc($this->result))
            ${${"G\x4c\x4fBA\x4c\x53"}["\x63\x74m\x6b\x72\x74"]}[] = ${$pmwpjhfn};
        return ${${"G\x4c\x4f\x42A\x4c\x53"}["j\x6d\x70\x67sh"]};
    }
    function setTable($str)
    {
        $this->table = ${${"\x47LO\x42\x41\x4c\x53"}["r\x6fyl\x69s\x6ccf\x79\x78"]};
    }
    function setWhere($key, $value = "")
    {
        if (${${"\x47L\x4fB\x41L\x53"}["\x69o\x63n\x69\x6b\x70z\x6e\x74"]} != "") {
            ${"\x47\x4c\x4f\x42\x41L\x53"}["\x65\x70\x69\x75i\x64w"] = "\x76a\x6c\x75\x65";
            $rrhnsbrt                                                = "ke\x79";
            $urndbvubmvv                                             = "\x6bey";
            if ($this->where == "")
                $this->where = " \x77\x68\x65re " . ${$rrhnsbrt} . "\x20\x3d\x20\x27" . ${${"GL\x4fBA\x4c\x53"}["\x69\x6f\x63n\x69\x6b\x70znt"]} . "\x27";
            else
                $this->where .= " and\x20" . ${$urndbvubmvv} . "\x20\x3d \x27" . ${${"G\x4c\x4fB\x41\x4cS"}["\x65\x70\x69u\x69\x64\x77"]} . "\x27";
        } else {
            if ($this->where == "")
                $this->where = "\x20\x77h\x65\x72e\x20" . ${${"G\x4c\x4fB\x41\x4cS"}["\x63\x78y\x68s\x64s\x65no\x6eb"]};
            else
                $this->where .= " \x61\x6e\x64\x20" . ${${"\x47\x4c\x4f\x42\x41L\x53"}["\x63xy\x68\x73d\x73\x65n\x6fn\x62"]};
        }
    }
    function setWhereOr($key, $value)
    {
        if (${${"G\x4c\x4f\x42\x41\x4c\x53"}["i\x6f\x63\x6e\x69\x6b\x70\x7a\x6e\x74"]} != "") {
            ${"G\x4c\x4f\x42\x41L\x53"}["\x72\x71qjx\x68l\x6avf"] = "\x76\x61\x6c\x75e";
            $irvnuggrcij                                          = "va\x6c\x75\x65";
            ${"\x47LOB\x41\x4c\x53"}["\x6d\x76v\x70j\x71v"]       = "\x6b\x65\x79";
            $kleswvcbcki                                          = "\x6b\x65\x79";
            if ($this->where == "")
                $this->where = "\x20w\x68\x65re " . ${${"GLOB\x41\x4cS"}["\x6d\x76v\x70\x6aq\x76"]} . " =\x20" . ${$irvnuggrcij};
            else
                $this->where .= "\x20\x6fr " . ${$kleswvcbcki} . " = " . ${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72q\x71\x6ax\x68\x6cjvf"]};
        } else {
            $amigjni = "k\x65y";
            if ($this->where == "")
                $this->where = "\x20w\x68\x65r\x65 " . ${${"\x47\x4cOBA\x4c\x53"}["cx\x79\x68\x73dseno\x6e\x62"]};
            else
                $this->where .= " o\x72 " . ${$amigjni};
        }
    }
    function setOrder($str)
    {
        $ytxmayklf   = "\x73\x74\x72";
        $this->order = " \x6f\x72\x64e\x72 b\x79 " . ${$ytxmayklf};
    }
    function setLimit($str)
    {
        $ympvqsebxd  = "s\x74r";
        $this->limit = "\x20li\x6di\x74\x20" . ${$ympvqsebxd};
    }
    function setError($msg)
    {
        $this->error[] = ${${"\x47\x4c\x4fBA\x4c\x53"}["\x79\x65nm\x79y\x72\x66\x6f"]};
    }
    function showError()
    {
        ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x61w\x63y\x6d\x7aff\x6c\x66\x63\x72"] = "\x76a\x6c\x75\x65";
        foreach ($this->error as ${${"G\x4c\x4f\x42\x41L\x53"}["i\x6fcni\x6bp\x7a\x6et"]})
            echo "\x3cb\x72\x3e" . ${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x61\x77\x63\x79m\x7a\x66\x66\x6c\x66c\x72"]};
    }
    function reset()
    {
        $this->sql    = "";
        $this->result = "";
        $this->where  = "";
        $this->order  = "";
        $this->limit  = "";
        $this->table  = "";
    }
    function debug()
    {
        echo "<b\x72>\x20se\x72\x76\x65rname: " . $this->servername;
        echo "<br>\x20u\x73\x65rn\x61\x6de: " . $this->username;
        echo "<b\x72> \x70\x61\x73s\x77\x6frd:\x20" . $this->password;
        echo "\x3c\x62\x72> d\x61ta\x62\x61s\x65: " . $this->database;
        echo "<b\x72\x3e " . $this->sql;
    }
    function escape_str($str)
    {
        if (is_array(${${"\x47LOB\x41\x4c\x53"}["r\x6fylisl\x63f\x79x"]})) {
            $hsrxjcx = "\x76\x61\x6c";
            $vdyhiu  = "\x73\x74r";
            foreach (${${"G\x4cO\x42\x41\x4c\x53"}["roy\x6c\x69\x73lc\x66\x79\x78"]} as ${${"G\x4c\x4fBA\x4cS"}["\x63x\x79h\x73dse\x6eo\x6e\x62"]} => ${$hsrxjcx}) {
                ${"GL\x4f\x42\x41\x4c\x53"}["\x75cn\x64vagpl\x6e"]                                                                          = "\x76a\x6c";
                ${${"G\x4c\x4f\x42\x41LS"}["\x72\x6f\x79\x6c\x69s\x6ccfyx"]}[${${"GL\x4fB\x41\x4c\x53"}["c\x78\x79hsd\x73\x65no\x6e\x62"]}] = $this->escape_str(${${"\x47LO\x42\x41L\x53"}["ucnd\x76\x61\x67\x70ln"]});
            }
            return ${$vdyhiu};
        }
        if (function_exists("\x6dysql\x5fr\x65a\x6c\x5f\x65sc\x61\x70\x65\x5fs\x74rin\x67") AND is_resource($this->db)) {
            return mysql_real_escape_string(${${"G\x4c\x4f\x42\x41\x4cS"}["\x72\x6f\x79l\x69\x73\x6c\x63f\x79x"]}, $this->db);
        } elseif (function_exists("\x6dy\x73\x71l_esc\x61pe\x5fs\x74\x72\x69\x6e\x67")) {
            return mysql_escape_string(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72\x6f\x79l\x69s\x6ccf\x79x"]});
        } else {
            $tobsuuik = "\x73\x74r";
            return addslashes(${$tobsuuik});
        }
    }
    function xssClean($str)
    {
        ${"\x47\x4cOB\x41L\x53"}["\x69\x6e\x70nx\x6dy"]                          = "\x73t\x72";
        ${${"G\x4c\x4f\x42A\x4c\x53"}["r\x6f\x79l\x69\x73lcfy\x78"]}             = str_replace("\x27", "\x26#\x303\x39\x3b", ${${"\x47L\x4fB\x41\x4c\x53"}["\x72\x6f\x79\x6cis\x6cc\x66\x79\x78"]});
        $jirgtz                                                                  = "\x73t\x72";
        ${$jirgtz}                                                               = str_replace("\"", "\x26quo\x74;", ${${"\x47\x4cOBA\x4c\x53"}["\x72\x6f\x79l\x69\x73\x6c\x63\x66\x79\x78"]});
        ${"\x47L\x4f\x42\x41L\x53"}["\x63\x67\x69mz\x70\x6cj\x77\x71\x65"]       = "s\x74r";
        ${${"\x47L\x4f\x42\x41\x4c\x53"}["c\x67\x69\x6dzp\x6c\x6a\x77\x71\x65"]} = str_replace("\x3c", "\x26\x6c\x74\x3b", ${${"\x47\x4c\x4f\x42AL\x53"}["\x72o\x79l\x69\x73\x6c\x63fy\x78"]});
        ${${"\x47L\x4fB\x41\x4c\x53"}["\x69np\x6exm\x79"]}                       = str_replace(">", "&\x67t;", ${${"\x47LO\x42\x41\x4c\x53"}["\x72\x6fy\x6c\x69\x73\x6c\x63\x66y\x78"]});
        return ${${"\x47L\x4fB\x41\x4cS"}["\x72\x6f\x79\x6c\x69\x73\x6ccfy\x78"]};
    }
}
$host                                                                       = $_SERVER["\x48\x54T\x50_HOS\x54"];
$host                                                                       = str_replace("\x68ttp://w\x77\x77", "", $host);
${"\x47\x4cO\x42\x41L\x53"}["\x69dok\x70s\x6buu\x62\x62"]                   = "\x73a\x6c\x74";
$host                                                                       = str_replace("\x68t\x74\x70://", "", $host);
$host                                                                       = str_replace("\x77w\x77\x2e", "", $host);
${${"\x47\x4c\x4fB\x41\x4cS"}["\x69\x64\x6f\x6b\x70\x73k\x75\x75\x62\x62"]} = "@\$\$#f\x64\x73DFD\x73fd84\x33\x34\x38f\x44\x46\x38f*\x64*\x39\x33\x34\x46D1\x35\x34\x36";
${${"\x47\x4cO\x42\x41\x4c\x53"}["y\x6b\x67v\x73\x6a"]}                     = md5(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6c\x7a\x68ns\x69i\x66e"]} . $host . ${${"\x47\x4cOBA\x4c\x53"}["dhy\x61\x68o\x6e"]}["p\x61\x74ter\x6e"]);
if (${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69\x79\x74\x6a\x66\x6am"]}["ke\x79"] != ${${"\x47L\x4f\x42A\x4cS"}["\x79kgv\x73j"]}) {
    exit("\x4cic\x65ns\x65\x20e\x72r\x6f\x72\x2e Please \x63ont\x61\x63t\x20\x3c\x61 hre\x66='ht\x74p://\x77\x77w\x2e\x6e\x69na.\x76n'>NIN\x41\x3c/a>\x21");
}


?>

Function Calls

None

Variables

None

Stats

MD5 82d586357badeacd68a971733fe9804e
Eval Count 0
Decode Time 108 ms