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 { public..

Decoded Output download

<?php 
defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open'); 
class  
{ 
public static $, $, $, $, $while, $and, $='cms_langs'; 
public static function () 
{ 
if ((int)::(3(115).3(121).3(115), 'safe_sql')==0) { 
$_POST=::for($_POST); 
$_GET=::for($_GET); 
} 
if (BSPHP_SET=='APPEN') { 
self::$=3(97).3(112).3(112).3(108).3(105).3(98); 
self::$=3(97).3(112).3(112).3(101).3(110); 
self::$=3(111).3(112).3(101).3(110).3(95).3(98).3(101).3(103).3(105).3(110); 
} else { 
isset($_GET[3(109)])==true ? self::$=$_GET[3(109)] : exit(::while_SERVER('Error:URL', 'URL(M),.')); 
isset($_GET[3(99)])==true ? self::$=$_GET[3(99)] : self::$=3(105).3(110).3(100).3(101).3(120); 
isset($_GET[3(97)])==true ? self::$=$_GET[3(97)] : self::$=self::$; 
if (!isset($_GET['t'])) { 
$_GET['t']=null; 
} 
} 
if (safe_is_dir_chr(self::$)) { 
exit(::while_SERVER("Error:URL", "URL(M),[" . htmlentities(self::$) . "][a-zA-Z0-9_-]")); 
} 
if (safe_is_dir_chr(self::$)) { 
exit(::while_SERVER("Error:URL", "URL(C),[" . htmlentities(self::$) . "][a-zA-Z0-9_-]")); 
} 
if (safe_is_dir_chr(self::$)) { 
exit(::while_SERVER("Error:URL", "URL(A),[" . htmlentities(self::$) . "][a-zA-Z0-9_-]")); 
} 
if (::$==3(97).3(99).3(99).3(116).3(111).3(107).3(101).3(110)) { 
return(); 
echo 3(111).3(107); 
exit; 
} 
switch (BSPHP_SET) { 
case "ADMIN": 
if (::$==3(97).3(100).3(109).3(105).3(110) and ::$==3(109).3(97).3(105).3(110) and ::$==3(105).3(110).3(100).3(101).3(120)) { 
} 
if (::$==3(97).3(100).3(109).3(105).3(110) and ::$==3(109).3(97).3(105).3(110) and ::$==3(97).3(99).3(99)) { 
return(); 
echo 3(111).3(107); 
exit; 
} 
if (::$==3(116).3(97).3(98).3(108).3(101)) { 
$=(elseif(3(86) . "W" . "5" . 3(112) . "d" . "m" . 3(86) . "y" . "c" . "2" . 3(70) . "s" . "")); 
if ($ !=1) 
::while_SERVER(elseif(3(122) . "7" . 3(88) . "N" . 3(115) . "8" . 3(54) . 3(48) . "y" . 3(116) . "r" . "I" . "q" . 3(65) . "=" . "=" . ""), elseif("1" . "/" . "C" . "+" . "t" . "N" . "P" . "D" . "u" . "6" . "c" . "s" . "x" . "O" . "O" . "1" . "s" . "c" . "e" . "w" . "z" . "7" . "X" . "N" . "s" . "8" . "6" . "0" . "v" . "q" . "3" . "K" . "2" . "s" . "i" . "o" . "z" . "t" . "6" . "3" . "q" . "M" . "q" . "5" . "0" . "8" . "M" . "s" . "x" . "+" . "v" . "P" . "y" . "L" . "m" . "6" . "w" . "v" . "L" . "K" . "2" . "s" . "i" . "o" . "1" . "N" . "r" . "K" . "u" . "d" . "P" . "D" . "o" . "a" . "P" . "U" . "2" . "s" . "/" . "f" . "u" . "b" . "r" . "C" . "8" . "r" . "X" . "Y" . "1" . "r" . "c" . "6" . "a" . "H" . "R" . "0" . "c" . "D" . "o" . "v" . "L" . "3" . "B" . "y" . "b" . "y" . "5" . "2" . "a" . "X" . "A" . "u" . "Q" . "n" . "N" . "w" . "a" . "H" . "A" . "u" . "Y" . "2" . "9" . "t" . "")); 
} 
self::$while= . 'include/modules/' . self::$ . '/'; 
self::$= . 'include/templates/' . ::(3(115).3(121).3(115), 3(97).3(100).3(109).3(105).3(110).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/' . self::$ . '/'; 
self::$and= . 'statics/' . ::(3(115).3(121).3(115), 3(97).3(100).3(109).3(105).3(110).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/'; 
break; 
case "INDEX": 
if (::$==3(105).3(110).3(100).3(101).3(120)) { 
$=(elseif(3(85) . "G" . "F" . "5" . 3(98) . "W" . "V" . 3(117) . 3(100) . "A" . "=" . "=" . "")); 
if ($==3(49).3(57).3(57).3(52)) { 
echo 3(52).3(48).3(51).3(32).3(50).3(48).3(50).3(49).3(84).3(101).3(114).3(109).3(105).3(110).3(97).3(116).3(105).3(111).3(110).3(79).3(102).3(65).3(117).3(116).3(104).3(111).3(114).3(105).3(122).3(97).3(116).3(105).3(111).3(110).3(69).3(110).3(100); 
exit; 
} 
} 
self::$while= . 'include/modules/' . self::$ . '/'; 
self::$= . 'include/templates/' . ::(3(115).3(121).3(115), 3(99).3(109).3(115).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/' . self::$ . '/'; 
self::$and= . 'statics/' . ::(3(115).3(121).3(115), 3(99).3(109).3(115).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/'; 
break; 
case "APPEN": 
self::$=::(3(115).3(121).3(115), 3(99).3(109).3(115).3(95).3(108).3(97).3(110).3(103).3(115)); 
break; 
case "USER": 
self::$while= . 'include/modules/' . self::$ . '/'; 
self::$= . 'include/templates/' . ::(3(115).3(121).3(115), 'user_template') . '/' . self::$ . '/'; 
self::$and= . 'statics/' . ::(3(115).3(121).3(115), 'user_template') . '/'; 
break; 
case "AGENT": 
self::$while= . 'include/modules/' . self::$ . '/'; 
self::$= . 'include/templates/' . ::(3(115).3(121).3(115), 3(97).3(103).3(101).3(110).3(116).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/' . self::$ . '/'; 
self::$and= . 'statics/' . ::(3(115).3(121).3(115), 3(97).3(103).3(101).3(110).3(116).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/'; 
break; 
default: 
exit(::while_SERVER('Error:', ',BSPHP,.')); 
} 
self::$=::(3(115).3(121).3(115), 3(99).3(109).3(115).3(95).3(108).3(97).3(110).3(103).3(115)); 
::(self::$, self::$, self::$, self::$); 
} 
static function for($and) 
{ 
if (!is_array($and)) { 
if (::($and)==1) { 
header('Content-Type: text/html; charset=utf-8'); 
echo ':' . $and; 
exit; 
} 
return $and; 
} else { 
foreach ($and as $=> $breakB) { 
$and[$]=::for($breakB); 
if (::($and[$])==1) { 
@header('Content-Type: text/html; charset=utf-8'); 
echo ':' . $and; 
exit; 
} 
} 
return $and; 
} 
} 
static function ($and) 
{ 
if (!is_array($and)) 
return stripslashes($and); 
foreach ($and as $=> $breakB) 
$and[$]=::($breakB); 
return $and; 
} 
public static function case($elseif=null, $for=null) 
{ 
if ($elseif==null) 
$elseif=self::$ . '_' . self::$; 
if ($for==null) 
$for=3(99).3(97).3(108).3(108).3(95) . self::$; 
call_user_func(array(__namespace__ . '\' . $elseif, $for)); 
} 
public static function ($elseiffor, $switch, $_GET) 
{ 
$= . 3(105).3(110).3(99).3(108).3(117).3(100).3(101) . "" . '/' . 3(109).3(111).3(100).3(117).3(108).3(101).3(115) . "" . '/' . $elseiffor . '/' . $switch . '.php'; 
if (!file_exists($)) { 
exit(::while_SERVER('Error:', 'php<BR/>:' . $)); 
} 
include($); 
if (!class_exists($switch)) { 
exit(::while_SERVER('Error:', ", :{$switch}<BR/>:" . $)); 
} 
$if=new $switch(); 
$_GET=3(99).3(97).3(108).3(108).3(95) . $_GET; 
if (false==method_exists($if, $_GET)) 
exit(::while_SERVER('Error:', ",:{$_GET}<BR/>:" . $)); 
$if->$_GET(); 
} 
public static function case($, $return='') 
{ 
$= . 'include/modules/' . $ . '/class/' . $return . '.class.php'; 
if (!file_exists($)) { 
exit(::while_SERVER('Error:', 'php<BR/>:' . $)); 
} 
if (!class_exists($return, false)) { 
include($); 
} 
if (!empty($return)) { 
return new $return(); 
} 
return false; 
} 
public static function ($, $return) 
{ 
$= . 'include/modules/' . $ . '/common/' . $return . '*.function.php'; 
$_GET=glob($); 
foreach ($_GET as $ifreturn) { 
if (!file_exists($ifreturn)) 
exit(::while_SERVER('Error:', 'php<BR/>:' . $ifreturn)); 
include($ifreturn); 
} 
return ($); 
} 
public static function _($, $='') 
{ 
static $=array(); 
$=whileelse . 'class/' . $ . '.class.php'; 
$=md5($); 
if (isset($[$][3(112).3(97).3(116).3(104)])) { 
return $[$][3(111).3(98).3(106).3(101).3(99).3(116)]; 
} 
if (!file_exists($)) 
exit(::while_SERVER('Error:', 'php<BR/>:' . $)); 
$[$][3(112).3(97).3(116).3(104)]=$; 
include($); 
$[$][3(111).3(98).3(106).3(101).3(99).3(116)]=new $(); 
return $[$][3(111).3(98).3(106).3(101).3(99).3(116)]; 
} 
public static function _Melseif($='') 
{ 
$=whileelse . "" . 'common/' . $ . "" . '*.function.php'; 
$_GET=glob($); 
foreach ($_GET as $ifreturn) { 
if (!file_exists($ifreturn)) { 
exit(::while_SERVER('Error:', 'php<BR/>:' . $ifreturn)); 
} 
if (in_array($ifreturn, get_included_files())==false) 
include($ifreturn); 
} 
} 
public static function ($=null, $return=null) 
{ 
$=self::$; 
if ($==null) 
$=(string)self::$; 
if ($return==null) 
$return=(string)self::$; 
$break= . 'include/langs/zh-cn/' . $ . "/" . $return . 3(46).3(112).3(104).3(112); 
if (!file_exists($break)) { 
return array(); 
} 
$whilereturn=include $break; 
return $whilereturn; 
} 
public static function ($, $=null) 
{ 
static $function=array(); 
if (isset($function[$])) { 
if (empty($)) { 
return $function[$]; 
} elseif (isset($function[$][$])) { 
return $function[$][$]; 
} 
} 
$= . 'Data/configs/' . $ . '.config.php'; 
if (defined('OR_BS_SERVER')) { 
$function=::_(3(109).3(121).3(115).3(113).3(108), 3(109).3(121).3(115).3(113).3(108));; 
$=3(83).3(69).3(76).3(69).3(67).3(84).3(32).3(42).3(32).3(70).3(82).3(79).3(77).3(32).3(32).3(96).3(98).3(115).3(95).3(112).3(104).3(112).3(95).3(115).3(121).3(115).3(99).3(111).3(110).3(102).3(105).3(103).3(96).3(32).3(87).3(72).3(69).3(82).3(69).3(32).3(32).3(96).3(115).3(121).3(115).3(95).3(105).3(110).3(105).3(96).3(61).3(39).$.3(39).3(32).3(76).3(73).3(77).3(73).3(84).3(32).3(49); 
$PARAM_PARAM_ARR=$function->($); 
$function[$]=json_decode($PARAM_PARAM_ARR['sys_val'], 1); 
} else { 
if (file_exists($)) { 
$function[$]=include $; 
} else { 
return ''; 
} 
} 
if ($==null) { 
$function=::($function); 
return ($function[$]); 
} elseif (isset($function[$][$])) { 
$elseif=stripslashes($function[$][$]); 
return ($elseif); 
} else { 
return ''; 
} 
} 
public static function function() 
{ 
require( . 3(68).3(97).3(116).3(97) . "" . '/' . 3(66).3(115).3(109).3(121).3(115).3(113).3(108) . 3(46) . 3(67).3(111).3(110).3(102).3(105).3(103) . '.' . 3(112).3(104).3(112)); 
} 
public static function return($=null) 
{ 
if ($==null) 
$=self::$ . '/' . self::$; 
if (file_exists(self::$ . $ . 3(46).3(112).3(104).3(112))) { 
return (self::$ . $ . 3(46).3(112).3(104).3(112)); 
} else { 
$= . 'include/templates/default/' . self::$ . '/' . $ . '.php'; 
$UE= . 'include/templates/' . ::(3(115).3(121).3(115), 'cms_view') . '/' . self::$ . '/' . $ . '.php'; 
if ($UE=='') { 
$UE='myview'; 
} 
if (file_exists($$UE)) { 
return ($UE); 
} else if (file_exists($)) { 
return ($); 
} else { 
exit(::while_SERVER('Error:Html', 'Html. :' . self::$ . $ . '.php')); 
} 
} 
} 
public static function while_SERVER($, $) 
{ 
@header('Content-Type: text/html; charset=utf-8'); 
if (::(3(115).3(121).3(115), 'error_code')==1) { 
echo '<title>' . $ . '</title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<div style="border: 1px dashed #cc0000;font-family:Tahoma;background-color:#FBEEEB;width:98%;padding:10px;color:#CC6600;"><strong>' . $ . '<BR/></strong><br>' . $ . '</div>'; 
exit; 
} else { 
echo '<title></title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<div style="border: 1px dashed #cc0000;font-family:Tahoma;background-color:#FBEEEB;width:98%;padding:10px;color:#CC6600;"><strong>' . '   ' . '<BR/></strong><br>:>></div>'; 
exit; 
} 
} 
public static function ShowMsg($, $) 
{ 
@header('Content-Type: text/html; charset=utf-8'); 
echo '<title>' . $ . '</title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<div style=" font-size: 4vw;border: 1px dashed #00CC00;font-family:Tahoma;background-color:#CCFFCC;width:98%;padding:10px;color:#CC6600;"><strong>' . $ . '<BR/></strong><br>' . $ . '</div>'; 
exit; 
} 
static function for($, $, $Y=null) 
{ 
$function=::_(3(109).3(121).3(115).3(113).3(108), 3(109).3(121).3(115).3(113).3(108));; 
$=array( 
1=> 3(97).3(100).3(109).3(105).3(110).3(95).3(108).3(111).3(103).3(105).3(110).3(95).3(108).3(111).3(103), 
2=> 3(117).3(115).3(101).3(114).3(95).3(108).3(111).3(103).3(105).3(110).3(95).3(108).3(111).3(103), 
3=> 3(121).3(97).3(111).3(95).3(114).3(101).3(103).3(105).3(115).3(116).3(114).3(97).3(116).3(105).3(111).3(110).3(95).3(108).3(111).3(103), 
4=> 3(97).3(103).3(101).3(110).3(116).3(95).3(107).3(97).3(95).3(108).3(111).3(103), 
5=> 3(121).3(97).3(111).3(95).3(109).3(111).3(110).3(101).3(121).3(95).3(108).3(111).3(103), 
6=> 3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), 
7=> 3(111).3(100).3(95).3(112).3(111).3(95).3(108).3(111).3(103), 
8=> 3(109).3(111).3(110).3(101).3(121).3(95).3(98).3(117).3(121).3(95).3(108).3(111).3(103) 
); 
$=(); 
$elseif=; 
$=3(73).3(78).3(83).3(69).3(82).3(84).3(32).3(73).3(78).3(84).3(79).3(96).3(98).3(115).3(95).3(112).3(104).3(112).3(95).3(108).3(111).3(103).3(96).3(86).3(65).3(76).3(85).3(69).3(83).3(40).3(78).3(85).3(76).3(76).3(44).3(39).$.3(39).3(44).3(39).$elseif.3(39).3(44).3(39).$.3(39).3(44).3(39).$.3(39).3(44).3(39).$Y.3(39).3(41).3(59); 
$function->($); 
plug_push_iwbox(':' . $Y, $); 
return 1; 
} 
static function ($elseif) 
{ 
if ($elseif==null) 
return (0); 
if (preg_match('/^[a-zA-Z0-9-_+=%#&:

	\/\|.-]+$/', $elseif, $function)) { 
return (0); 
} 
if (preg_match( 
'/^(|(.*)or(.*)SLEE(.*)|(.*)AND(.*)SLEE(.*)|(.*)=(.*)"(.*)"(.*)|(.*)=(.*)\'(.*)\'(.*)|(.*)\'(.*)or(.*)\'(.*)|(.*)"(.*)or(.*)"(.*)|(.*)\'(.*)and(.*)\'(.*)|(.*)"(.*)and(.*)"(.*)|(.*)and(.*)FROM(.*)|(.*)or(.*)form(.*)|(.*)NOTLIKE(.*)|(.*)NOT BETWEEN(.*)|(.*)INSERT(.*)INTO(.*)|(.*)char(.*),(.*)\)(.*)|(.*)database(.*)\)(.*)|(.*)into(.*)FROM(.*)|(.*)union(.*)FROM(.*)|(.*)FROM(.*)null(.*)|(.*)delete(.*)FROM(.*)|(.*)union(.*)all(.*)|(.*)or(.*)ORDER(.*)BY(.*)#(.*)|(.*)and(.*)ORDER(.*)BY(.*)#(.*)|(.*)or(.*)\'(.*)ORDER(.*)BY(.*)|(.*)and(.*)\'(.*)ORDER(.*)BY(.*))$/i', 
$elseif, 
$function 
)) { 
if (::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(111).3(107).3(95).3(105).3(112)) !='') { 
if (("/" . ::(3(115).3(121).3(115), 'safe_ok_ip') . "/i", ())) { 
::("IP--IP:" . () . " --TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST)); 
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "IP--IP:" . () . " Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110)); 
return (0); 
} 
} 
if (::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(115).3(113).3(108))==0) { 
::("--TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST)); 
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110)); 
return (1); 
} else { 
::("--TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST)); 
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "SQL, Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), "" . ''); 
} 
} 
$="[,|INFORMATION_SCHEMA|CHARACTER_SETS|CHR|\|\||DaHm|END|;|CASE|THEN|index|NULL|--|space|ALL|EXP|NEQ|group_concat|EGT|ELT|OR|XOR|LIKE|NOT|FORM|into|union|\*|and|\(|\)|\"|'|select|insert|eval|\$_POST|\$_GET|exec|HashBytes|replace|DATABASE|select\*from|select\+sleepload_file|outfile|Admin_AdminUserName|Admin_AdminPassWord|_pattern_login|_cardseries|_pay_log|_rmb_pay_log|_bsphp_news|_bsphp_news_class|_links_session|_appinfo|database|outfile]"; 
$function=array(); 
if (preg_match_all($, $elseif, $function)) { 
if (::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(111).3(107).3(95).3(105).3(112)) !='') { 
if (("/" . ::(3(115).3(121).3(115), 'safe_ok_ip') . "/i", ())) { 
::("IP--IP:" . () . " --TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST)); 
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "IP--IP:" . () . " Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110)); 
return (0); 
} 
} 
$function[0]=array_unique($function[0]); 
if (count($function[0]) > 3) { 
::("--TEXT:{$elseif} _match_" . json_encode($function[0]) . "  --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST)); 
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110)); 
return (1); 
} 
} 
if (preg_match( 
'/^(|(.*)group_concat(.*)|(.*)select(.*)from(.*)|(.*)update(.*)set(.*)|(.*)LIKE(.*)|(.*)"(.*)and(.*)|(.*)"(.*)"(.*)|(.*)\'(.*)\'(.*)|(.*)eval(.*)|(.*)and(.*)FROM(.*)|(.*)or(.*)form(.*)|(.*)NOTLIKE(.*)|(.*)NOT BETWEEN(.*)|(.*)INSERT(.*)INTO(.*)|(.*)NOTBETWEEN(.*)|(.*)BETWEEN(.*)|(.*)NOTIN(.*)|(.*)FORM(.*)|(.*)NOT IN(.*)|(.*)into(.*)|(.*)char(.*),(.*)|(.*)database(.*)\)(.*)|(.*)into(.*)FROM(.*)|(.*)union(.*)FROM(.*)|(.*)FROM(.*)null(.*)|(.*)update(.*)SET(.*)|(.*)delete(.*)FROM(.*)|(.*)update(.*)FROM(.*)|(.*)union(.*)all(.*)|(.*)union(.*))$/i', 
$elseif, 
$function 
)) { 
if (::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(111).3(107).3(95).3(105).3(112)) !='') { 
if (("/" . ::(3(115).3(121).3(115), 'safe_ok_ip') . "/i", ())) { 
::("IP--IP:" . () . " --TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST)); 
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "IP--IP:" . () . " Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110)); 
return (0); 
} 
} 
::("--TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST)); 
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110)); 
return (1); 
} 
if (preg_match('/select|insert|eval|\$_POST|\$_GET|exec|HashBytes|replace|DATABASE|select\*from|select\+sleepload_file|outfile|Admin_AdminUserName|Admin_AdminPassWord|_pattern_login|_cardseries|_pay_log|_rmb_pay_log|_bsphp_news|_bsphp_news_class|_links_session|_appinfo|database|outfile/i', $elseif)) { 
if ((int)::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(115).3(113).3(108))==1 or (int)::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(115).3(113).3(108))==0) { 
::("{$elseif} 
" .  print_r($_SERVER, 1)); 
::for('exit_log', "Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110)); 
return (1); 
} else { 
::("{$elseif} 
" . print_r($_SERVER, 1)); 
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "SQL, Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), "" . ''); 
} 
} 
} 
static function ($, $='safe_log_') 
{ 
$= . 'Data/log/' . $ . '.php'; 
if (@file_exists($)) { 
} else { 
@file_put_contents($, '<?php exit; ?>'); 
} 
if (::(3(114).3(101).3(110).3(119).3(117),  $) !=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($=> date('YmdH'))); 
} 
} 
if (::(3(114).3(101).3(110).3(119).3(117),  "H_log") !=date('Ymd')) { 
$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)); 
$while=PLUG_UNIX() - 86400; 
$=3(68).3(69).3(76).3(69).3(84).3(69).3(32).3(70).3(82).3(79).3(77).3(32).3(96).3(112).3(108).3(117).3(103).3(95).3(98).3(115).3(112).3(104).3(112).3(95).3(97).3(112).3(105).3(95).3(100).3(98).3(117).3(103).3(96).3(32).3(87).3(72).3(69).3(82).3(69).3(32).3(96).3(112).3(108).3(117).3(103).3(95).3(98).3(115).3(112).3(104).3(112).3(95).3(97).3(112).3(105).3(95).3(100).3(98).3(117).3(103).3(96).3(46).3(96).3(116).3(105).3(109).3(101).3(96).3(32).3(60).3(32).3(39).$while.3(39).3(32); 
$while=PLUG_UNIX() - 2592000; 
$=3(68).3(69).3(76).3(69).3(84).3(69).3(32).3(70).3(82).3(79).3(77).3(32).3(96).3(98).3(115).3(95).3(112).3(104).3(112).3(95).3(108).3(111).3(103).3(96).3(32).3(87).3(72).3(69).3(82).3(69).3(32).3(108).3(101).3(105).3(120).3(105).3(110).3(103).3(61).3(39).3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103).3(39).3(32).3(97).3(110).3(100).3(32).3(96).3(100).3(97).3(116).3(101).3(96).3(32).3(60).3(32).3(39).$while.3(39).3(32); 
$V->(3(72).3(95).3(108).3(111).3(103), array($=> date('YmdH'))); 
} 
$=@fopen($, 'a'); 
if (!$) { 
return false; 
} 
if (@fwrite($, "<?php exit; ?>
" . $ . "
")===false) { 
return false; 
} 
@fclose($); 
return true; 
} 
} 

Did this file decode correctly?

Original Code

<?php
defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open');
class 
{
public static $, $, $, $, $while, $and, $='cms_langs';
public static function ()
{
if ((int)::(3(115).3(121).3(115), 'safe_sql')==0) {
$_POST=::for($_POST);
$_GET=::for($_GET);
}
if (BSPHP_SET=='APPEN') {
self::$=3(97).3(112).3(112).3(108).3(105).3(98);
self::$=3(97).3(112).3(112).3(101).3(110);
self::$=3(111).3(112).3(101).3(110).3(95).3(98).3(101).3(103).3(105).3(110);
} else {
isset($_GET[3(109)])==true ? self::$=$_GET[3(109)] : exit(::while_SERVER('Error:URL', 'URL(M),.'));
isset($_GET[3(99)])==true ? self::$=$_GET[3(99)] : self::$=3(105).3(110).3(100).3(101).3(120);
isset($_GET[3(97)])==true ? self::$=$_GET[3(97)] : self::$=self::$;
if (!isset($_GET['t'])) {
$_GET['t']=null;
}
}
if (safe_is_dir_chr(self::$)) {
exit(::while_SERVER("Error:URL", "URL(M),[" . htmlentities(self::$) . "][a-zA-Z0-9_-]"));
}
if (safe_is_dir_chr(self::$)) {
exit(::while_SERVER("Error:URL", "URL(C),[" . htmlentities(self::$) . "][a-zA-Z0-9_-]"));
}
if (safe_is_dir_chr(self::$)) {
exit(::while_SERVER("Error:URL", "URL(A),[" . htmlentities(self::$) . "][a-zA-Z0-9_-]"));
}
if (::$==3(97).3(99).3(99).3(116).3(111).3(107).3(101).3(110)) {
return();
echo 3(111).3(107);
exit;
}
switch (BSPHP_SET) {
case "ADMIN":
if (::$==3(97).3(100).3(109).3(105).3(110) and ::$==3(109).3(97).3(105).3(110) and ::$==3(105).3(110).3(100).3(101).3(120)) {
}
if (::$==3(97).3(100).3(109).3(105).3(110) and ::$==3(109).3(97).3(105).3(110) and ::$==3(97).3(99).3(99)) {
return();
echo 3(111).3(107);
exit;
}
if (::$==3(116).3(97).3(98).3(108).3(101)) {
$=(elseif(3(86) . "W" . "5" . 3(112) . "d" . "m" . 3(86) . "y" . "c" . "2" . 3(70) . "s" . ""));
if ($ !=1)
::while_SERVER(elseif(3(122) . "7" . 3(88) . "N" . 3(115) . "8" . 3(54) . 3(48) . "y" . 3(116) . "r" . "I" . "q" . 3(65) . "=" . "=" . ""), elseif("1" . "/" . "C" . "+" . "t" . "N" . "P" . "D" . "u" . "6" . "c" . "s" . "x" . "O" . "O" . "1" . "s" . "c" . "e" . "w" . "z" . "7" . "X" . "N" . "s" . "8" . "6" . "0" . "v" . "q" . "3" . "K" . "2" . "s" . "i" . "o" . "z" . "t" . "6" . "3" . "q" . "M" . "q" . "5" . "0" . "8" . "M" . "s" . "x" . "+" . "v" . "P" . "y" . "L" . "m" . "6" . "w" . "v" . "L" . "K" . "2" . "s" . "i" . "o" . "1" . "N" . "r" . "K" . "u" . "d" . "P" . "D" . "o" . "a" . "P" . "U" . "2" . "s" . "/" . "f" . "u" . "b" . "r" . "C" . "8" . "r" . "X" . "Y" . "1" . "r" . "c" . "6" . "a" . "H" . "R" . "0" . "c" . "D" . "o" . "v" . "L" . "3" . "B" . "y" . "b" . "y" . "5" . "2" . "a" . "X" . "A" . "u" . "Q" . "n" . "N" . "w" . "a" . "H" . "A" . "u" . "Y" . "2" . "9" . "t" . ""));
}
self::$while= . 'include/modules/' . self::$ . '/';
self::$= . 'include/templates/' . ::(3(115).3(121).3(115), 3(97).3(100).3(109).3(105).3(110).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/' . self::$ . '/';
self::$and= . 'statics/' . ::(3(115).3(121).3(115), 3(97).3(100).3(109).3(105).3(110).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/';
break;
case "INDEX":
if (::$==3(105).3(110).3(100).3(101).3(120)) {
$=(elseif(3(85) . "G" . "F" . "5" . 3(98) . "W" . "V" . 3(117) . 3(100) . "A" . "=" . "=" . ""));
if ($==3(49).3(57).3(57).3(52)) {
echo 3(52).3(48).3(51).3(32).3(50).3(48).3(50).3(49).3(84).3(101).3(114).3(109).3(105).3(110).3(97).3(116).3(105).3(111).3(110).3(79).3(102).3(65).3(117).3(116).3(104).3(111).3(114).3(105).3(122).3(97).3(116).3(105).3(111).3(110).3(69).3(110).3(100);
exit;
}
}
self::$while= . 'include/modules/' . self::$ . '/';
self::$= . 'include/templates/' . ::(3(115).3(121).3(115), 3(99).3(109).3(115).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/' . self::$ . '/';
self::$and= . 'statics/' . ::(3(115).3(121).3(115), 3(99).3(109).3(115).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/';
break;
case "APPEN":
self::$=::(3(115).3(121).3(115), 3(99).3(109).3(115).3(95).3(108).3(97).3(110).3(103).3(115));
break;
case "USER":
self::$while= . 'include/modules/' . self::$ . '/';
self::$= . 'include/templates/' . ::(3(115).3(121).3(115), 'user_template') . '/' . self::$ . '/';
self::$and= . 'statics/' . ::(3(115).3(121).3(115), 'user_template') . '/';
break;
case "AGENT":
self::$while= . 'include/modules/' . self::$ . '/';
self::$= . 'include/templates/' . ::(3(115).3(121).3(115), 3(97).3(103).3(101).3(110).3(116).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/' . self::$ . '/';
self::$and= . 'statics/' . ::(3(115).3(121).3(115), 3(97).3(103).3(101).3(110).3(116).3(95).3(116).3(101).3(109).3(112).3(108).3(97).3(116).3(101)) . '/';
break;
default:
exit(::while_SERVER('Error:', ',BSPHP,.'));
}
self::$=::(3(115).3(121).3(115), 3(99).3(109).3(115).3(95).3(108).3(97).3(110).3(103).3(115));
::(self::$, self::$, self::$, self::$);
}
static function for($and)
{
if (!is_array($and)) {
if (::($and)==1) {
header('Content-Type: text/html; charset=utf-8');
echo ':' . $and;
exit;
}
return $and;
} else {
foreach ($and as $=> $breakB) {
$and[$]=::for($breakB);
if (::($and[$])==1) {
@header('Content-Type: text/html; charset=utf-8');
echo ':' . $and;
exit;
}
}
return $and;
}
}
static function ($and)
{
if (!is_array($and))
return stripslashes($and);
foreach ($and as $=> $breakB)
$and[$]=::($breakB);
return $and;
}
public static function case($elseif=null, $for=null)
{
if ($elseif==null)
$elseif=self::$ . '_' . self::$;
if ($for==null)
$for=3(99).3(97).3(108).3(108).3(95) . self::$;
call_user_func(array(__namespace__ . '\\' . $elseif, $for));
}
public static function ($elseiffor, $switch, $_GET)
{
$= . 3(105).3(110).3(99).3(108).3(117).3(100).3(101) . "" . '/' . 3(109).3(111).3(100).3(117).3(108).3(101).3(115) . "" . '/' . $elseiffor . '/' . $switch . '.php';
if (!file_exists($)) {
exit(::while_SERVER('Error:', 'php<BR/>:' . $));
}
include($);
if (!class_exists($switch)) {
exit(::while_SERVER('Error:', ", :{$switch}<BR/>:" . $));
}
$if=new $switch();
$_GET=3(99).3(97).3(108).3(108).3(95) . $_GET;
if (false==method_exists($if, $_GET))
exit(::while_SERVER('Error:', ",:{$_GET}<BR/>:" . $));
$if->$_GET();
}
public static function case($, $return='')
{
$= . 'include/modules/' . $ . '/class/' . $return . '.class.php';
if (!file_exists($)) {
exit(::while_SERVER('Error:', 'php<BR/>:' . $));
}
if (!class_exists($return, false)) {
include($);
}
if (!empty($return)) {
return new $return();
}
return false;
}
public static function ($, $return)
{
$= . 'include/modules/' . $ . '/common/' . $return . '*.function.php';
$_GET=glob($);
foreach ($_GET as $ifreturn) {
if (!file_exists($ifreturn))
exit(::while_SERVER('Error:', 'php<BR/>:' . $ifreturn));
include($ifreturn);
}
return ($);
}
public static function _($, $='')
{
static $=array();
$=whileelse . 'class/' . $ . '.class.php';
$=md5($);
if (isset($[$][3(112).3(97).3(116).3(104)])) {
return $[$][3(111).3(98).3(106).3(101).3(99).3(116)];
}
if (!file_exists($))
exit(::while_SERVER('Error:', 'php<BR/>:' . $));
$[$][3(112).3(97).3(116).3(104)]=$;
include($);
$[$][3(111).3(98).3(106).3(101).3(99).3(116)]=new $();
return $[$][3(111).3(98).3(106).3(101).3(99).3(116)];
}
public static function _Melseif($='')
{
$=whileelse . "" . 'common/' . $ . "" . '*.function.php';
$_GET=glob($);
foreach ($_GET as $ifreturn) {
if (!file_exists($ifreturn)) {
exit(::while_SERVER('Error:', 'php<BR/>:' . $ifreturn));
}
if (in_array($ifreturn, get_included_files())==false)
include($ifreturn);
}
}
public static function ($=null, $return=null)
{
$=self::$;
if ($==null)
$=(string)self::$;
if ($return==null)
$return=(string)self::$;
$break= . 'include/langs/zh-cn/' . $ . "/" . $return . 3(46).3(112).3(104).3(112);
if (!file_exists($break)) {
return array();
}
$whilereturn=include $break;
return $whilereturn;
}
public static function ($, $=null)
{
static $function=array();
if (isset($function[$])) {
if (empty($)) {
return $function[$];
} elseif (isset($function[$][$])) {
return $function[$][$];
}
}
$= . 'Data/configs/' . $ . '.config.php';
if (defined('OR_BS_SERVER')) {
$function=::_(3(109).3(121).3(115).3(113).3(108), 3(109).3(121).3(115).3(113).3(108));;
$=3(83).3(69).3(76).3(69).3(67).3(84).3(32).3(42).3(32).3(70).3(82).3(79).3(77).3(32).3(32).3(96).3(98).3(115).3(95).3(112).3(104).3(112).3(95).3(115).3(121).3(115).3(99).3(111).3(110).3(102).3(105).3(103).3(96).3(32).3(87).3(72).3(69).3(82).3(69).3(32).3(32).3(96).3(115).3(121).3(115).3(95).3(105).3(110).3(105).3(96).3(61).3(39).$.3(39).3(32).3(76).3(73).3(77).3(73).3(84).3(32).3(49);
$PARAM_PARAM_ARR=$function->($);
$function[$]=json_decode($PARAM_PARAM_ARR['sys_val'], 1);
} else {
if (file_exists($)) {
$function[$]=include $;
} else {
return '';
}
}
if ($==null) {
$function=::($function);
return ($function[$]);
} elseif (isset($function[$][$])) {
$elseif=stripslashes($function[$][$]);
return ($elseif);
} else {
return '';
}
}
public static function function()
{
require( . 3(68).3(97).3(116).3(97) . "" . '/' . 3(66).3(115).3(109).3(121).3(115).3(113).3(108) . 3(46) . 3(67).3(111).3(110).3(102).3(105).3(103) . '.' . 3(112).3(104).3(112));
}
public static function return($=null)
{
if ($==null)
$=self::$ . '/' . self::$;
if (file_exists(self::$ . $ . 3(46).3(112).3(104).3(112))) {
return (self::$ . $ . 3(46).3(112).3(104).3(112));
} else {
$= . 'include/templates/default/' . self::$ . '/' . $ . '.php';
$UE= . 'include/templates/' . ::(3(115).3(121).3(115), 'cms_view') . '/' . self::$ . '/' . $ . '.php';
if ($UE=='') {
$UE='myview';
}
if (file_exists($$UE)) {
return ($UE);
} else if (file_exists($)) {
return ($);
} else {
exit(::while_SERVER('Error:Html', 'Html. :' . self::$ . $ . '.php'));
}
}
}
public static function while_SERVER($, $)
{
@header('Content-Type: text/html; charset=utf-8');
if (::(3(115).3(121).3(115), 'error_code')==1) {
echo '<title>' . $ . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<div style="border: 1px dashed #cc0000;font-family:Tahoma;background-color:#FBEEEB;width:98%;padding:10px;color:#CC6600;"><strong>' . $ . '<BR/></strong><br>' . $ . '</div>';
exit;
} else {
echo '<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<div style="border: 1px dashed #cc0000;font-family:Tahoma;background-color:#FBEEEB;width:98%;padding:10px;color:#CC6600;"><strong>' . '   ' . '<BR/></strong><br>:>></div>';
exit;
}
}
public static function ShowMsg($, $)
{
@header('Content-Type: text/html; charset=utf-8');
echo '<title>' . $ . '</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<div style=" font-size: 4vw;border: 1px dashed #00CC00;font-family:Tahoma;background-color:#CCFFCC;width:98%;padding:10px;color:#CC6600;"><strong>' . $ . '<BR/></strong><br>' . $ . '</div>';
exit;
}
static function for($, $, $Y=null)
{
$function=::_(3(109).3(121).3(115).3(113).3(108), 3(109).3(121).3(115).3(113).3(108));;
$=array(
1=> 3(97).3(100).3(109).3(105).3(110).3(95).3(108).3(111).3(103).3(105).3(110).3(95).3(108).3(111).3(103),
2=> 3(117).3(115).3(101).3(114).3(95).3(108).3(111).3(103).3(105).3(110).3(95).3(108).3(111).3(103),
3=> 3(121).3(97).3(111).3(95).3(114).3(101).3(103).3(105).3(115).3(116).3(114).3(97).3(116).3(105).3(111).3(110).3(95).3(108).3(111).3(103),
4=> 3(97).3(103).3(101).3(110).3(116).3(95).3(107).3(97).3(95).3(108).3(111).3(103),
5=> 3(121).3(97).3(111).3(95).3(109).3(111).3(110).3(101).3(121).3(95).3(108).3(111).3(103),
6=> 3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103),
7=> 3(111).3(100).3(95).3(112).3(111).3(95).3(108).3(111).3(103),
8=> 3(109).3(111).3(110).3(101).3(121).3(95).3(98).3(117).3(121).3(95).3(108).3(111).3(103)
);
$=();
$elseif=;
$=3(73).3(78).3(83).3(69).3(82).3(84).3(32).3(73).3(78).3(84).3(79).3(96).3(98).3(115).3(95).3(112).3(104).3(112).3(95).3(108).3(111).3(103).3(96).3(86).3(65).3(76).3(85).3(69).3(83).3(40).3(78).3(85).3(76).3(76).3(44).3(39).$.3(39).3(44).3(39).$elseif.3(39).3(44).3(39).$.3(39).3(44).3(39).$.3(39).3(44).3(39).$Y.3(39).3(41).3(59);
$function->($);
plug_push_iwbox(':' . $Y, $);
return 1;
}
static function ($elseif)
{
if ($elseif==null)
return (0);
if (preg_match('/^[a-zA-Z0-9\x80-\xff_+=%#&:\n\r\t\/\|.-]+$/', $elseif, $function)) {
return (0);
}
if (preg_match(
'/^(|(.*)or(.*)SLEE(.*)|(.*)AND(.*)SLEE(.*)|(.*)=(.*)"(.*)"(.*)|(.*)=(.*)\'(.*)\'(.*)|(.*)\'(.*)or(.*)\'(.*)|(.*)"(.*)or(.*)"(.*)|(.*)\'(.*)and(.*)\'(.*)|(.*)"(.*)and(.*)"(.*)|(.*)and(.*)FROM(.*)|(.*)or(.*)form(.*)|(.*)NOTLIKE(.*)|(.*)NOT BETWEEN(.*)|(.*)INSERT(.*)INTO(.*)|(.*)char(.*),(.*)\)(.*)|(.*)database(.*)\)(.*)|(.*)into(.*)FROM(.*)|(.*)union(.*)FROM(.*)|(.*)FROM(.*)null(.*)|(.*)delete(.*)FROM(.*)|(.*)union(.*)all(.*)|(.*)or(.*)ORDER(.*)BY(.*)#(.*)|(.*)and(.*)ORDER(.*)BY(.*)#(.*)|(.*)or(.*)\'(.*)ORDER(.*)BY(.*)|(.*)and(.*)\'(.*)ORDER(.*)BY(.*))$/i',
$elseif,
$function
)) {
if (::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(111).3(107).3(95).3(105).3(112)) !='') {
if (("/" . ::(3(115).3(121).3(115), 'safe_ok_ip') . "/i", ())) {
::("IP--IP:" . () . " --TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST));
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "IP--IP:" . () . " Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110));
return (0);
}
}
if (::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(115).3(113).3(108))==0) {
::("--TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST));
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110));
return (1);
} else {
::("--TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST));
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "SQL, Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), "" . '');
}
}
$="[,|INFORMATION_SCHEMA|CHARACTER_SETS|CHR|\|\||DaHm|END|;|CASE|THEN|index|NULL|--|space|ALL|EXP|NEQ|group_concat|EGT|ELT|OR|XOR|LIKE|NOT|FORM|into|union|\*|and|\(|\)|\"|'|select|insert|eval|\$_POST|\$_GET|exec|HashBytes|replace|DATABASE|select\*from|select\+sleepload_file|outfile|Admin_AdminUserName|Admin_AdminPassWord|_pattern_login|_cardseries|_pay_log|_rmb_pay_log|_bsphp_news|_bsphp_news_class|_links_session|_appinfo|database|outfile]";
$function=array();
if (preg_match_all($, $elseif, $function)) {
if (::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(111).3(107).3(95).3(105).3(112)) !='') {
if (("/" . ::(3(115).3(121).3(115), 'safe_ok_ip') . "/i", ())) {
::("IP--IP:" . () . " --TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST));
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "IP--IP:" . () . " Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110));
return (0);
}
}
$function[0]=array_unique($function[0]);
if (count($function[0]) > 3) {
::("--TEXT:{$elseif} _match_" . json_encode($function[0]) . "  --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST));
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110));
return (1);
}
}
if (preg_match(
'/^(|(.*)group_concat(.*)|(.*)select(.*)from(.*)|(.*)update(.*)set(.*)|(.*)LIKE(.*)|(.*)"(.*)and(.*)|(.*)"(.*)"(.*)|(.*)\'(.*)\'(.*)|(.*)eval(.*)|(.*)and(.*)FROM(.*)|(.*)or(.*)form(.*)|(.*)NOTLIKE(.*)|(.*)NOT BETWEEN(.*)|(.*)INSERT(.*)INTO(.*)|(.*)NOTBETWEEN(.*)|(.*)BETWEEN(.*)|(.*)NOTIN(.*)|(.*)FORM(.*)|(.*)NOT IN(.*)|(.*)into(.*)|(.*)char(.*),(.*)|(.*)database(.*)\)(.*)|(.*)into(.*)FROM(.*)|(.*)union(.*)FROM(.*)|(.*)FROM(.*)null(.*)|(.*)update(.*)SET(.*)|(.*)delete(.*)FROM(.*)|(.*)update(.*)FROM(.*)|(.*)union(.*)all(.*)|(.*)union(.*))$/i',
$elseif,
$function
)) {
if (::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(111).3(107).3(95).3(105).3(112)) !='') {
if (("/" . ::(3(115).3(121).3(115), 'safe_ok_ip') . "/i", ())) {
::("IP--IP:" . () . " --TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST));
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "IP--IP:" . () . " Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110));
return (0);
}
}
::("--TEXT:{$elseif}   --_SERVER" . json_encode($_SERVER)  . '  --POST:' . http_build_query($_POST));
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110));
return (1);
}
if (preg_match('/select|insert|eval|\$_POST|\$_GET|exec|HashBytes|replace|DATABASE|select\*from|select\+sleepload_file|outfile|Admin_AdminUserName|Admin_AdminPassWord|_pattern_login|_cardseries|_pay_log|_rmb_pay_log|_bsphp_news|_bsphp_news_class|_links_session|_appinfo|database|outfile/i', $elseif)) {
if ((int)::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(115).3(113).3(108))==1 or (int)::(3(115).3(121).3(115), 3(115).3(97).3(102).3(101).3(95).3(115).3(113).3(108))==0) {
::("{$elseif} \n" .  print_r($_SERVER, 1));
::for('exit_log', "Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), 3(115).3(121).3(115).3(95).3(97).3(100).3(109).3(105).3(110));
return (1);
} else {
::("{$elseif} \n" . print_r($_SERVER, 1));
::for(3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103), "SQL, Base64:" . base64_encode($elseif . '|' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']), "" . '');
}
}
}
static function ($, $='safe_log_')
{
$= . 'Data/log/' . $ . '.php';
if (@file_exists($)) {
} else {
@file_put_contents($, '<?php exit; ?>');
}
if (::(3(114).3(101).3(110).3(119).3(117),  $) !=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($=> date('YmdH')));
}
}
if (::(3(114).3(101).3(110).3(119).3(117),  "H_log") !=date('Ymd')) {
$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));
$while=PLUG_UNIX() - 86400;
$=3(68).3(69).3(76).3(69).3(84).3(69).3(32).3(70).3(82).3(79).3(77).3(32).3(96).3(112).3(108).3(117).3(103).3(95).3(98).3(115).3(112).3(104).3(112).3(95).3(97).3(112).3(105).3(95).3(100).3(98).3(117).3(103).3(96).3(32).3(87).3(72).3(69).3(82).3(69).3(32).3(96).3(112).3(108).3(117).3(103).3(95).3(98).3(115).3(112).3(104).3(112).3(95).3(97).3(112).3(105).3(95).3(100).3(98).3(117).3(103).3(96).3(46).3(96).3(116).3(105).3(109).3(101).3(96).3(32).3(60).3(32).3(39).$while.3(39).3(32);
$while=PLUG_UNIX() - 2592000;
$=3(68).3(69).3(76).3(69).3(84).3(69).3(32).3(70).3(82).3(79).3(77).3(32).3(96).3(98).3(115).3(95).3(112).3(104).3(112).3(95).3(108).3(111).3(103).3(96).3(32).3(87).3(72).3(69).3(82).3(69).3(32).3(108).3(101).3(105).3(120).3(105).3(110).3(103).3(61).3(39).3(101).3(120).3(105).3(116).3(95).3(108).3(111).3(103).3(39).3(32).3(97).3(110).3(100).3(32).3(96).3(100).3(97).3(116).3(101).3(96).3(32).3(60).3(32).3(39).$while.3(39).3(32);
$V->(3(72).3(95).3(108).3(111).3(103), array($=> date('YmdH')));
}
$=@fopen($, 'a');
if (!$) {
return false;
}
if (@fwrite($, "<?php exit; ?>\n" . $ . "\n")===false) {
return false;
}
@fclose($);
return true;
}
}

Function Calls

None

Variables

None

Stats

MD5 e720cdc85e3b079a10bdea2f413664bd
Eval Count 0
Decode Time 216 ms