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 $db = null; function uIk3v() { global $cfg_database_name; global $db; if (isset($d..

Decoded Output download

<?php 
 $db = null; function uIk3v() { global $cfg_database_name; global $db; if (isset($db)) { goto Xin7b; } if (extension_loaded("interbase")) { goto GiTRy; } throw new Exception("Error interno: La extensi\303\263n interbase/firebird no est\303\xa1 disponible."); GiTRy: $db = ibase_connect($cfg_database_name, "SYSDBA", "masterkey", "ISO8859_1"); if ($db) { goto hz4G1; } throw new Exception("Error de base de datos " . ibase_errcode() . ": " . ibase_errmsg()); hz4G1: Xin7b: } function is2xE($sql, $params = null) { global $cfg_debug; global $db; UIk3V(); QAB5G($sql); if (!$cfg_debug) { goto VZ4aY; } file_put_contents("ibdata.log", date("Y-m-d H:i:s ") . $sql . " params:" . print_r($params, true) . "
\xa", FILE_APPEND); VZ4aY: if ($params === null) { goto ukHud; } QAB5g($params); array_unshift($params, $db, $sql); $query = call_user_func_array("ibase_query", $params); goto iLXcA; ukHud: $query = ibase_query($db, $sql); iLXcA: if ($query) { goto IJDYj; } throw new Exception("Error de base de datos " . ibase_errcode() . ": " . ibase_errmsg()); IJDYj: return $query; } function I0kLo($sql, $params = null) { $query = Is2Xe($sql, $params); $result = array(); DqKEC: if (!($row = ibase_fetch_object($query, IBASE_TEXT))) { goto weU1o; } mw77A($row); $result[] = $row; goto DqKEC; weU1o: ibase_free_result($query); return $result; } function ZLGIg($sql, $params = null) { $query = I0klO($sql, $params); if ($query) { goto kuasy; } return null; goto wCOAj; kuasy: $arecord = get_object_vars($query[0]); return array_shift($arecord); wCOAj: } function Mw77A(&$input) { if (is_string($input)) { goto APKZd; } if (is_array($input)) { goto hWTnK; } if (!is_object($input)) { goto nTixO; } $items = array_keys(get_object_vars($input)); foreach ($items as $item) { Mw77A($input->{$item}); UBiiI: } nZoar: nTixO: goto NInHk; hWTnK: foreach ($input as &$item) { mW77A($item); vBB9h: } kQ2V4: NInHk: goto V8Ah1; APKZd: $input = utf8_encode($input); V8Ah1: } function QAb5g(&$input) { if (is_string($input)) { goto uzWXW; } if (is_array($input)) { goto qVb9B; } if (!is_object($input)) { goto yrx80; } $items = array_keys(get_object_vars($input)); foreach ($items as $item) { QAB5g($input->{$item}); Y0uRD: } L1Jpt: yrx80: goto I0IhL; qVb9B: foreach ($input as &$item) { QaB5g($item); MQLm1: } nAHiT: I0IhL: goto srGSS; uzWXW: $input = utf8_decode($input); srGSS: } function P4EAP($value) { if ($value === null) { goto BTTW5; } return $value; goto XlBMb; BTTW5: return ''; XlBMb: } function fj8hn($value) { global $cfg_format_date; if ($value === null) { goto txCdF; } return date($cfg_format_date, strtotime($value)); goto r_m38; txCdF: return ''; r_m38: } function i0yxj($value) { global $cfg_format_time; if ($value === null) { goto mcVP7; } return date($cfg_format_time, strtotime($value)); goto F3Wn_; mcVP7: return ''; F3Wn_: } function Cy02t($value, $decimals = 2) { if ($value === null) { goto Fi9_2; } return number_format($value, $decimals, ",", ''); goto HwBkb; Fi9_2: return ''; HwBkb: } function jomHH($value) { $value = str_replace("/", "-", $value); return date("Y-m-d", strtotime($value)); } function QEx2f($value) { $value = str_replace("/", "-", $value); return date("H:i:s", strtotime($value)); } function t2Apf($date, $time = '') { $date = str_replace("/", "-", $date); return date("Y-m-d H:i:s", strtotime($date . " " . $time)); } function vs0aC($value) { return floatval(str_replace(",", ".", $value)); } 
 ?>

Did this file decode correctly?

Original Code

<?php
 $db = null; function uIk3v() { global $cfg_database_name; global $db; if (isset($db)) { goto Xin7b; } if (extension_loaded("\151\156\164\145\162\x62\141\x73\145")) { goto GiTRy; } throw new Exception("\105\x72\x72\157\x72\x20\151\156\164\x65\x72\156\x6f\72\40\114\141\x20\x65\170\164\x65\x6e\x73\x69\303\263\x6e\40\x69\x6e\x74\145\162\x62\x61\163\145\57\146\x69\162\x65\x62\151\x72\x64\x20\x6e\157\x20\x65\163\164\303\xa1\40\144\x69\x73\160\x6f\x6e\151\142\x6c\145\x2e"); GiTRy: $db = ibase_connect($cfg_database_name, "\123\131\123\x44\x42\101", "\x6d\141\x73\x74\145\162\x6b\x65\x79", "\111\123\x4f\70\70\x35\71\137\x31"); if ($db) { goto hz4G1; } throw new Exception("\x45\162\x72\157\162\x20\144\x65\40\142\141\163\145\40\x64\x65\40\x64\x61\164\x6f\163\x20" . ibase_errcode() . "\x3a\x20" . ibase_errmsg()); hz4G1: Xin7b: } function is2xE($sql, $params = null) { global $cfg_debug; global $db; UIk3V(); QAB5G($sql); if (!$cfg_debug) { goto VZ4aY; } file_put_contents("\x69\142\x64\x61\x74\x61\x2e\154\157\x67", date("\131\55\x6d\55\144\40\110\72\x69\x3a\x73\x20") . $sql . "\40\x70\141\x72\x61\x6d\163\72" . print_r($params, true) . "\15\xa", FILE_APPEND); VZ4aY: if ($params === null) { goto ukHud; } QAB5g($params); array_unshift($params, $db, $sql); $query = call_user_func_array("\151\142\141\163\145\x5f\161\x75\x65\162\x79", $params); goto iLXcA; ukHud: $query = ibase_query($db, $sql); iLXcA: if ($query) { goto IJDYj; } throw new Exception("\105\x72\x72\157\x72\x20\x64\145\40\x62\141\x73\145\x20\x64\145\40\144\141\x74\157\x73\x20" . ibase_errcode() . "\72\40" . ibase_errmsg()); IJDYj: return $query; } function I0kLo($sql, $params = null) { $query = Is2Xe($sql, $params); $result = array(); DqKEC: if (!($row = ibase_fetch_object($query, IBASE_TEXT))) { goto weU1o; } mw77A($row); $result[] = $row; goto DqKEC; weU1o: ibase_free_result($query); return $result; } function ZLGIg($sql, $params = null) { $query = I0klO($sql, $params); if ($query) { goto kuasy; } return null; goto wCOAj; kuasy: $arecord = get_object_vars($query[0]); return array_shift($arecord); wCOAj: } function Mw77A(&$input) { if (is_string($input)) { goto APKZd; } if (is_array($input)) { goto hWTnK; } if (!is_object($input)) { goto nTixO; } $items = array_keys(get_object_vars($input)); foreach ($items as $item) { Mw77A($input->{$item}); UBiiI: } nZoar: nTixO: goto NInHk; hWTnK: foreach ($input as &$item) { mW77A($item); vBB9h: } kQ2V4: NInHk: goto V8Ah1; APKZd: $input = utf8_encode($input); V8Ah1: } function QAb5g(&$input) { if (is_string($input)) { goto uzWXW; } if (is_array($input)) { goto qVb9B; } if (!is_object($input)) { goto yrx80; } $items = array_keys(get_object_vars($input)); foreach ($items as $item) { QAB5g($input->{$item}); Y0uRD: } L1Jpt: yrx80: goto I0IhL; qVb9B: foreach ($input as &$item) { QaB5g($item); MQLm1: } nAHiT: I0IhL: goto srGSS; uzWXW: $input = utf8_decode($input); srGSS: } function P4EAP($value) { if ($value === null) { goto BTTW5; } return $value; goto XlBMb; BTTW5: return ''; XlBMb: } function fj8hn($value) { global $cfg_format_date; if ($value === null) { goto txCdF; } return date($cfg_format_date, strtotime($value)); goto r_m38; txCdF: return ''; r_m38: } function i0yxj($value) { global $cfg_format_time; if ($value === null) { goto mcVP7; } return date($cfg_format_time, strtotime($value)); goto F3Wn_; mcVP7: return ''; F3Wn_: } function Cy02t($value, $decimals = 2) { if ($value === null) { goto Fi9_2; } return number_format($value, $decimals, "\x2c", ''); goto HwBkb; Fi9_2: return ''; HwBkb: } function jomHH($value) { $value = str_replace("\x2f", "\55", $value); return date("\x59\55\x6d\55\144", strtotime($value)); } function QEx2f($value) { $value = str_replace("\57", "\55", $value); return date("\110\x3a\151\72\x73", strtotime($value)); } function t2Apf($date, $time = '') { $date = str_replace("\57", "\55", $date); return date("\131\x2d\155\x2d\x64\40\110\72\151\x3a\x73", strtotime($date . "\40" . $time)); } function vs0aC($value) { return floatval(str_replace("\54", "\x2e", $value)); }

Function Calls

None

Variables

None

Stats

MD5 db5eed1b09e0f2c51451ba002d49bf76
Eval Count 0
Decode Time 62 ms