Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$Q8a22653df3b9d8ebe012293e69870a7a="eNrlWVuTokoS/kH9cLjo2eZRUJBSGOVSXN6E6kakQObYivDrN6sAm7..

Decoded Output download

?>
<?$server_ip = $_SERVER['SERVER_ADDR'];
if($server_ip != "173.254.28.98"){
echo "<title>BLOCKED</title><hr/><font color=\"red\"><center><h1>SOFTWARE IS NOT ALLOWED TO RUN IN THIS SERVER ($server_ip)</h1></center></font><hr/><i><b>encrypted worx</b></i>";
unlink("init.php");
exit;
}?>
<?php
require_once('./config/config.php');
function getUstreamStatus($uid){
	$request =  'http://api.ustream.tv';
	$format = 'php';
	$args .= 'subject=channel';
	$args .= '&uid='.$uid;
	$args .= '&params=status';
	$args .= '&command=getValueOf';
	//$args .= '&key=6F18D1134A012593A4777ACB02F33080';
	
	$curl = curl_init($request.'/'.$format.'?'.$args);
	curl_setopt($curl, CURLOPT_HEADER, false);
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
	
	$result = curl_exec($curl);
	curl_close($curl);
	$resultsArray = unserialize($result);
	return array(
	'status' => strtolower($resultsArray['results']),
	'ustreamid' => USTREAM_playerid,
	'AUTOPLAYstat' => USTREAM_autoplay
	);
}
//strtolower($resultsArray['results'])
function getDjOnAir(){
	$con = mysql_connect(DB_SERVER, DB_USER, DB_PASSWD);
	mysql_select_db(DB_NAME , $con);
	$sql=mysql_query("SELECT * FROM `djadmin` WHERE `islive`='1'");
	$res=mysql_fetch_assoc($sql);
	mysql_close($con);
	if($res['djname']==''){
	$djname = $res['username'];
	}else{
	$djname = $res['djname'];
	}
	$dj=array(
	'pic'=>$res['pic'], 
	'name'=>$djname, 
	'request'=>$res['isrequest'],
	'djstat'=>$res['djstat']
	);
	return $dj;
}
function activeChatters(){
	$con = mysql_connect(DB_SERVER, DB_USER, DB_PASSWD);
	mysql_select_db(DB_NAME , $con);
	$query = mysql_query("SELECT * FROM `".DB_PREFIX."user_accounts` WHERE `active`='1'");
	if(mysql_num_rows($query)>0){
		$arr = array();
		while($data=mysql_fetch_assoc($query)) {
	if($data['acctype']==1){
	$mkr = "[Admin]";
	}else if($data['acctype']==2){
	$mkr = "[Dj]";
	}else if($data['acctype']==3){
	$mkr = "[Dj]";
	}else if($data['acctype']==4){
	$mkr = "[Mod]";
	}else if($data['acctype']==5){
	$mkr = "[VIP]";
	}else{
	$mkr = "";
	}
			$arr[] = array(
			'fbid' => $data['fbid'],
			'fbname' => $data['fbname'],
			'atype' => $data['acctype'],
			'mkr' => $mkr
			);
		}
		mysql_close();
		return $arr;
	}
	mysql_close($con);
}

function ranking($chat_count){
if($chat_count < 20){
return 'Niewbie';
}else if($chat_count < 50){
return 'Novice';
}else if($chat_count < 500000){
return 'Expert';
}else{
return 'Execellency';
}
}

function top10Chatters(){
	$con = mysql_connect(DB_SERVER, DB_USER, DB_PASSWD);
	mysql_select_db(DB_NAME , $con);
	$query = mysql_query("SELECT * FROM `".DB_PREFIX."user_accounts` WHERE `chat_counts` > 0  && acctype='0' ORDER BY chat_counts DESC LIMIT 0, 10");
	if(mysql_num_rows($query)>0){
		$arr = array();
		while($data=mysql_fetch_assoc($query)) {
	if($data['acctype']==1){
	$mkr = "[Admin]";
	}else if($data['acctype']==2){
	$mkr = "[Dj]";
	}else if($data['acctype']==3){
	$mkr = "[Dj]";
	}else if($data['acctype']==4){
	$mkr = "[Mod]";
	}else if($data['acctype']==5){
	$mkr = "[VIP]";
	}else{
	$mkr = "";
	}
			$arr[] = array(
			'fbid' => $data['fbid'],
			'fbname' => $data['fbname'],
			'chatcount' => $data['chat_counts'],
			'rank' => ranking($data['chat_counts']),
			'atype' => $data['acctype'],
			'mkr' => $mkr
			);
		}
		mysql_close();
		return $arr;
	}
	mysql_close($con);
}

function _events(){
	$con = mysql_connect(DB_SERVER, DB_USER, DB_PASSWD);
	mysql_select_db(DB_NAME , $con);
	$sql = mysql_query("SELECT * FROM events ORDER BY time LIMIT 0, 10");
	$sqlArr=array();
	if(mysql_num_rows($sql)>0){
	while($res=mysql_fetch_assoc($sql)){
	if((date('j F Y',$res['time']))==(date('j F Y',time()))){
	$mk = 'Today\'s Event';
	}else if($res['time'] < time()){
	$mk = 'Done';
	}else{
$day = date("d",$res['time']);
$month = date("m",$res['time']);
$year = date("Y",$res['time']);
$end = mktime(0,0,0,$month,$day,$year);
$today= mktime(date("G"),date("i"),
date("s"),date("m"),date("d"),date("Y"));
$days=($end-$today)/86400;
if ($days>0) {
$r1 = explode('.',$days);
$hours=24*($days-$r1[0]);
$r2 = explode('.',$hours);
$minutes=60*($hours-$r2[0]);
$r3 = explode('.',$minutes);
$seconds=60*($minutes-$r3[0]);
$r4 = explode('.',$seconds);
$mk = '' .$r1[0]. 'Day'.(($r1[0]==1)?'':'s').' & ' . $r2[0] . 'hr'.(($r2[0]==1)?'':'s').' Left';
} else {
$mk = 'Today\'s Events';
	}
	}
		$sqlArr[]=array(
		'title'	=>	$res['title'], 
		'des'	=>	$res['description'], 
		'time'	=>	date('j F Y',$res['time']), 
		'stat'	=>	$mk);
	}	
	mysql_close();
	return $sqlArr;
	}
	mysql_close();
}

$inf = array();
$inf['ustream'] = getUstreamStatus(USTREAM_channel);
$inf['dj'] = getDjOnAir();
$inf['getActiveChatters'] = activeChatters();
$inf['topChatters'] = top10Chatters();
$inf['events'] = _events();
echo json_encode($inf);
?>
<?$server_ip = $_SERVER['SERVER_ADDR'];
if($server_ip != "173.254.28.98"){
unlink("init.php");
}?>

Did this file decode correctly?

Original Code

$Q8a22653df3b9d8ebe012293e69870a7a="eNrlWVuTokoS/kH9cLjo2eZRUJBSGOVSXN6E6kakQObYivDrN6sAm76ciZ3YiN2N2IeOEajMysuXX2bV7LqZrZ2aP9DapmkV05QqdaotFFNzXn0Bu7jAbtASz8EogL/Xve+s/JyQH42wOQTR+ZPccecucstLu+3JFG1t1v7QZvMfmlm/wPo4sM9Ju8h3a6cmxp3uCmR5gr11/P3zVh7ene7nNH9+2hnxLan2WSQp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Dyi8jOGJ47nxH5+Ge6zUVMou+EuhNdQ6Fx4X+jvCtg5H+KbwtA2Q2M9xAbuIhnV6ZrP6azHZf1+Qw1ynXTALAGejLLATb/W07scv18bbUmCSz34gr7rIV/uFRg3rn7dd6ZnDGTAmeLr7FbAWbaEGIip7LTAB2+co1yV3dvi8Z3P7jfWuNtM7+FgDk/KOU0+6ikOOeGzRSxhAWakXVLodZpnAz+BDRRiCd/2X+8/quFMeIJYSbHPezzgGHWfbGX3f0s2O7D/b2BzA7/jNJTG8qbvP+059KvBv9fxudddU/DnZhp1B7X0ys4ifc1BrsuI69n9B/9PBuahC/j6F3Af7E+FbaWeU63n1Ffv+emf5JHNhw==";eval(base64_decode(gzuncompress(base64_decode($Q8a22653df3b9d8ebe012293e69870a7a))));?> 

Function Calls

gzuncompress 1
base64_decode 2

Variables

$Q8a22653df3b9d8ebe012293e69870a7a eNrlWVuTokoS/kH9cLjo2eZRUJBSGOVSXN6E6kakQObYivDrN6sAm76ciZ3Y..

Stats

MD5 2e7ad30a9e5a7b1a076dd898d4fa529b
Eval Count 1
Decode Time 147 ms