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 defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open'); class mysql { p..

Decoded Output download

<?php 
defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open'); 
class mysql 
{ 
private $; 
private  $; 
function __construct() 
{ 
$this->connect(); 
} 
function connect() 
{ 
$=explode(":", DBHOST); 
if (isset($[1])) { 
$Y=$[0]; 
$=$[1]; 
} else { 
$Y=DBHOST; 
$='3306'; 
} 
try { 
$this->=mysqli_connect($Y, DBUSER, DBPASS, DBTABLE, $) or die(::while_SERVER('MySQL', "MySQL(IP/)/  <BR/> :chm.bsphp.com  <BR/>: <BR/>" . mysqli_error($this->))); 
} catch (mysqli_sql_exception $e) { 
echo "Error:  IP MYSQL " . $e->getMessage() . " (Code: " . $e->getCode() . ") SQL:" . mysqli_error($this->); 
exit; 
} 
mysqli_query($this->, "set names 'utf8'"); 
} 
function __destruct() 
{ 
} 
function destruct() 
{ 
#@mysqli_close($this->); 
} 
function ($) 
{ 
$=str_replace('bs_php_', DBQIANHUAN, $); 
try { 
$this->=mysqli_query($this->, $); 
} catch (mysqli_sql_exception $e) { 
mysql::($); 
} 
if ($this->) { 
return $this->; 
} else { 
return false; 
} 
} 
function if($) 
{ 
$=str_replace('bs_php_', DBQIANHUAN, $); 
$this->=mysqli_execute_query($this->, $); 
if ($this->) { 
return $this->; 
} else { 
mysql::($); 
return false; 
} 
} 
function ($) 
{ 
$= . 'Data/log/mysql_db.php'; 
if (@file_exists($)) { 
} else { 
@file_put_contents($, '<?php exit; ?>'); 
} 
if (::(3(114).3(101).3(110).3(119).3(117),  3(109).3(121).3(115).3(113).3(108).3(95).3(100).3(98).3(95).3(108).3(111).3(103)) !=date('YmdH')) { 
$while=filesize($); 
if ($while > 10485760) { 
@file_put_contents($, '<?php exit; ?>' . substr(file_get_contents($), -5242880)); 
$V=::_(3(112).3(117).3(114).3(99).3(111).3(110).3(102).3(105).3(103), 3(112).3(117).3(114).3(99).3(111).3(110).3(102).3(105).3(103)); 
$V->(3(114).3(101).3(110).3(119).3(117), array('mysql_db_log'=> date('YmdH'))); 
} 
} 
$=@fopen($, 'a'); 
if (!$) { 
return false; 
} 
if (@fwrite($, "<?php exit; ?>
" . $ . "
")===false) { 
return false; 
} 
@fclose($); 
return true; 
} 
function my_rc_rows() 
{ 
return mysqli_num_rows($this->); 
} 
function my_rows($elseif) 
{ 
if ($elseif) { 
return mysqli_num_rows($elseif); 
} else { 
return 0; 
} 
} 
function ($) 
{ 
$elseif=$this->($); 
if (!$elseif) 
return false; 
$case=mysqli_fetch_assoc($elseif); 
if (!is_array($case)) 
return false; 
return $case; 
} 
function return($) 
{ 
$elseif=$this->($); 
if (!$elseif) 
return false; 
$case=mysqli_fetch_assoc($elseif); 
if (!is_array($case)) 
return false; 
return $case; 
} 
function my_tmp_array($elseif) 
{ 
$case=mysqli_fetch_assoc($elseif); 
if (!is_array($case)) 
return false; 
return $case; 
} 
function Theexistenceof($, $function, $) 
{ 
$=3(83).3(69).3(76).3(69).3(67).3(84).3(96).$function.3(96).3(70).3(82).3(79).3(77).3(96).$.3(96).3(87).3(72).3(69).3(82).3(69).3(32).3(67).3(79).3(78).3(67).3(65).3(84).3(95).3(87).3(83).3(40).3(39).3(45).3(39).3(44).3(96).$function.3(96).3(41).3(61).3(39).$.3(39); 
$elseif=$this->($); 
if (!$elseif) 
return false; 
$=$this->my_tmp_array($elseif); 
if (!is_array($)) 
return false; 
if (in_array($, $)==true) 
return true; 
return false; 
} 
function U($, $function, $elseif, $) 
{ 
$=3(83).3(69).3(76).3(69).3(67).3(84).$.3(70).3(82).3(79).3(77).3(96).$.3(96).3(87).3(72).3(69).3(82).3(69).3(96).$function.3(96).3(61).3(39).$elseif.3(39); 
$=$this->return($); 
if (strpos($, ',')) 
return $; 
if (strpos($, '*')) 
return $; 
if (is_array($)) 
return reset($); 
return false; 
} 
function ($, $function, $switchM) 
{ 
$=3(100).3(101).3(108).3(101).3(116).3(101).3(32).3(102).3(114).3(111).3(109).3(96).$.3(96).3(119).3(104).3(101).3(114).3(101).3(96).$function.3(96).3(105).3(110).3(40).$switchM.3(41).3(59); 
$elseif=$this->($); 
return $elseif; 
} 
function while($, $function, $switchM, $, $) 
{ 
$=3(85).3(80).3(68).3(65).3(84).3(69).3(96).$.3(96).3(83).3(69).3(84).3(96).$.3(96).3(61).3(39).$.3(39).3(87).3(72).3(69).3(82).3(69).3(96).$.3(96).3(46).3(96).$function.3(96).3(105).3(110).3(40).$switchM.3(41).3(59); 
$elseif=$this->($); 
return $elseif; 
} 
function my_insert_id() 
{ 
$=mysqli_insert_id($this->); 
return $; 
} 
} 

Did this file decode correctly?

Original Code

<?php
defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open');
class mysql
{
private $;
private  $;
function __construct()
{
$this->connect();
}
function connect()
{
$=explode(":", DBHOST);
if (isset($[1])) {
$Y=$[0];
$=$[1];
} else {
$Y=DBHOST;
$='3306';
}
try {
$this->=mysqli_connect($Y, DBUSER, DBPASS, DBTABLE, $) or die(::while_SERVER('MySQL', "MySQL(IP/)/  <BR/> :chm.bsphp.com  <BR/>: <BR/>" . mysqli_error($this->)));
} catch (mysqli_sql_exception $e) {
echo "Error:  IP MYSQL " . $e->getMessage() . " (Code: " . $e->getCode() . ") SQL:" . mysqli_error($this->);
exit;
}
mysqli_query($this->, "set names 'utf8'");
}
function __destruct()
{
}
function destruct()
{
#@mysqli_close($this->);
}
function ($)
{
$=str_replace('bs_php_', DBQIANHUAN, $);
try {
$this->=mysqli_query($this->, $);
} catch (mysqli_sql_exception $e) {
mysql::($);
}
if ($this->) {
return $this->;
} else {
return false;
}
}
function if($)
{
$=str_replace('bs_php_', DBQIANHUAN, $);
$this->=mysqli_execute_query($this->, $);
if ($this->) {
return $this->;
} else {
mysql::($);
return false;
}
}
function ($)
{
$= . 'Data/log/mysql_db.php';
if (@file_exists($)) {
} else {
@file_put_contents($, '<?php exit; ?>');
}
if (::(3(114).3(101).3(110).3(119).3(117),  3(109).3(121).3(115).3(113).3(108).3(95).3(100).3(98).3(95).3(108).3(111).3(103)) !=date('YmdH')) {
$while=filesize($);
if ($while > 10485760) {
@file_put_contents($, '<?php exit; ?>' . substr(file_get_contents($), -5242880));
$V=::_(3(112).3(117).3(114).3(99).3(111).3(110).3(102).3(105).3(103), 3(112).3(117).3(114).3(99).3(111).3(110).3(102).3(105).3(103));
$V->(3(114).3(101).3(110).3(119).3(117), array('mysql_db_log'=> date('YmdH')));
}
}
$=@fopen($, 'a');
if (!$) {
return false;
}
if (@fwrite($, "<?php exit; ?>\n" . $ . "\n")===false) {
return false;
}
@fclose($);
return true;
}
function my_rc_rows()
{
return mysqli_num_rows($this->);
}
function my_rows($elseif)
{
if ($elseif) {
return mysqli_num_rows($elseif);
} else {
return 0;
}
}
function ($)
{
$elseif=$this->($);
if (!$elseif)
return false;
$case=mysqli_fetch_assoc($elseif);
if (!is_array($case))
return false;
return $case;
}
function return($)
{
$elseif=$this->($);
if (!$elseif)
return false;
$case=mysqli_fetch_assoc($elseif);
if (!is_array($case))
return false;
return $case;
}
function my_tmp_array($elseif)
{
$case=mysqli_fetch_assoc($elseif);
if (!is_array($case))
return false;
return $case;
}
function Theexistenceof($, $function, $)
{
$=3(83).3(69).3(76).3(69).3(67).3(84).3(96).$function.3(96).3(70).3(82).3(79).3(77).3(96).$.3(96).3(87).3(72).3(69).3(82).3(69).3(32).3(67).3(79).3(78).3(67).3(65).3(84).3(95).3(87).3(83).3(40).3(39).3(45).3(39).3(44).3(96).$function.3(96).3(41).3(61).3(39).$.3(39);
$elseif=$this->($);
if (!$elseif)
return false;
$=$this->my_tmp_array($elseif);
if (!is_array($))
return false;
if (in_array($, $)==true)
return true;
return false;
}
function U($, $function, $elseif, $)
{
$=3(83).3(69).3(76).3(69).3(67).3(84).$.3(70).3(82).3(79).3(77).3(96).$.3(96).3(87).3(72).3(69).3(82).3(69).3(96).$function.3(96).3(61).3(39).$elseif.3(39);
$=$this->return($);
if (strpos($, ','))
return $;
if (strpos($, '*'))
return $;
if (is_array($))
return reset($);
return false;
}
function ($, $function, $switchM)
{
$=3(100).3(101).3(108).3(101).3(116).3(101).3(32).3(102).3(114).3(111).3(109).3(96).$.3(96).3(119).3(104).3(101).3(114).3(101).3(96).$function.3(96).3(105).3(110).3(40).$switchM.3(41).3(59);
$elseif=$this->($);
return $elseif;
}
function while($, $function, $switchM, $, $)
{
$=3(85).3(80).3(68).3(65).3(84).3(69).3(96).$.3(96).3(83).3(69).3(84).3(96).$.3(96).3(61).3(39).$.3(39).3(87).3(72).3(69).3(82).3(69).3(96).$.3(96).3(46).3(96).$function.3(96).3(105).3(110).3(40).$switchM.3(41).3(59);
$elseif=$this->($);
return $elseif;
}
function my_insert_id()
{
$=mysqli_insert_id($this->);
return $;
}
}

Function Calls

None

Variables

None

Stats

MD5 1bf428edbe01d29d170cd9e38e16e187
Eval Count 0
Decode Time 58 ms