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 $_F=__FILE__;$_X='Pz48P3BocCANCnI1cTM0cjVfMm5jNSgnY2wxc3MuYzN0cjM1LnBocCcpOw0KcjVxMz..

Decoded Output download

?><?php 
require_once('class.cutrue.php');
require("ts3admin.class.php");
	
	$warn_date_no = mktime(date("H"),date("i"),date("s")-15,date("m"),date("d")-$ts3_warn,date("Y"));
	$warn_date_no = date("Y-m-d H:i:s",$warn_date_no);
	$warn_date = mktime(date("H"),date("i"),date("s"),date("m"),date("d")-$ts3_warn,date("Y"));
	$warn_date = date("Y-m-d H:i:s",$warn_date);

	$del_date = mktime(date("H"),date("i"),date("s"),date("m"),date("d")-$ts3_wait_delete,date("Y"));
	$del_date = date("Y-m-d H:i:s",$del_date);
	
	$sql = "select * from $db.user_server as a inner join $db.user as b on (a.user_id=b.id) where a.expire<='$warn_date' and a.expire>'$warn_date_no'";
	$result = mysql_query($sql);
	while ($row=mysql_fetch_array($result)) {
		/// &#3626;&#3656;&#3591;&#3648;&#3617;&#3621;
		$name = $row[username];
		$email = $row[email];

		//&#3648;&#3605;&#3619;&#3637;&#3618;&#3617;&#3586;&#3657;&#3629;&#3617;&#3641;&#3621;&#3626;&#3656;&#3591;&#3648;&#3617;&#3621;&#3621;&#3660;
		$from="[email protected]";
		$subject = '=?utf-8?B?'.base64_encode("Myipts3 - &#3649;&#3592;&#3657;&#3591;&#3648;&#3605;&#3639;&#3629;&#3609;&#3585;&#3634;&#3619;&#3627;&#3617;&#3604;&#3629;&#3634;&#3618;&#3640;&#3648;&#3595;&#3636;&#3615;&#3648;&#3623;&#3629;&#3619;&#3660; TeamSpeak 3").'?=';
		$header = "From: $from
";
		$header.="Content-Type: text/html; charset=UTF-8";
		//---- &#3586;&#3657;&#3629;&#3588;&#3623;&#3634;&#3617;&#3607;&#3637;&#3656;&#3592;&#3632;&#3626;&#3656;&#3591;
		$msg = "&#3626;&#3623;&#3633;&#3626;&#3604;&#3637;&#3588;&#3619;&#3633;&#3610; &#3588;&#3640;&#3603;$name<br><br>
		&#3649;&#3592;&#3657;&#3591;&#3648;&#3605;&#3639;&#3629;&#3609;&#3585;&#3634;&#3619;&#3627;&#3617;&#3604;&#3629;&#3634;&#3618;&#3640;&#3648;&#3595;&#3636;&#3615;&#3648;&#3623;&#3629;&#3619;&#3660; TeamSpeak 3
		IP: $row[dns].$row[dnss]<br>
		&#3592;&#3632;&#3627;&#3617;&#3604;&#3629;&#3634;&#3618;&#3640;&#3651;&#3609;&#3623;&#3633;&#3609;&#3607;&#3637;&#3656;  $row[expire]<br><br>

		&#3585;&#3619;&#3640;&#3603;&#3634;&#3605;&#3656;&#3629;&#3629;&#3634;&#3618;&#3640;&#3604;&#3657;&#3623;&#3618;&#3609;&#3632;&#3588;&#3619;&#3633;&#3610;<br>
		&#3586;&#3629;&#3610;&#3588;&#3640;&#3603;&#3588;&#3619;&#3633;&#3610;<br>
		http://www.myipts3.com<br>
		e-mail : [email protected]<br>
		";

		mail("$email","$subject","$msg","$header");
	}

	$sql = "select * from $db.user_server where expire<'".date("Y-m-d H:i:s")."' and expire!='0000-00-00 00:00:00' and server_id!='0'";
	//echo $sql."<br>";
	$result = mysql_query($sql);
	while ($row=mysql_fetch_array($result)) {
		$sql4 = "select * from $db.server where id='$row[server]'";
		$query4 = mysql_query($sql4);		
		$row4 = mysql_fetch_array($query4);		
		$ts3_ip = $row4[server_ip];
		$ts3_queryport = $row4[server_port];
		$ts3_user = $row4[server_admin];
		$ts3_pass = $row4[server_pass];				
		
		$tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);

		if($tsAdmin->getElement('success', $tsAdmin->connect())) {
			#login as serveradmin
			$tsAdmin->login($ts3_user, $ts3_pass);
		}
		if ($row[expire]>=$del_date) {
			$stop = $tsAdmin->serverStop($row[server_id]);
			$update = "update $db.user_server set status='0' where id='$row[id]'";
			mysql_query($update);
		} else if ($row[expire]<>'' and $row[expire]<$del_date) {
			$del = $tsAdmin->serverDelete($row[server_id]);
			//print_r($del);
			$update = "update $db.server set server_slot_used=server_slot_used-$row[maxclients],server_limit_used=server_limit_used-1 where id='$row[server]'";
			mysql_query($update);
			$update = "delete from $db.user_server where id='$row[id]'";
			mysql_query($update);
			$inse = "insert into $db.tsdns (server_ip,dns,port,act,flag) values ('$ts3_ip','$row[dns]','$row[port]',0,0)";
			$qdns = mysql_query($inse);	
		}
	}
	$inse = "delete from $db.tsdns where flag='1'";
	$qdns = mysql_query($inse);
echo date("d-m-Y H:i:s");
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='Pz48P3BocCANCnI1cTM0cjVfMm5jNSgnY2wxc3MuYzN0cjM1LnBocCcpOw0KcjVxMzRyNSgidHNvMWRtNG4uY2wxc3MucGhwIik7DQoJDQoJJHcxcm5fZDF0NV9uMiA9IG1rdDRtNShkMXQ1KCJIIiksZDF0NSgiNCIpLGQxdDUoInMiKS02aSxkMXQ1KCJtIiksZDF0NSgiZCIpLSR0c29fdzFybixkMXQ1KCJZIikpOw0KCSR3MXJuX2QxdDVfbjIgPSBkMXQ1KCJZLW0tZCBIOjQ6cyIsJHcxcm5fZDF0NV9uMik7DQoJJHcxcm5fZDF0NSA9IG1rdDRtNShkMXQ1KCJIIiksZDF0NSgiNCIpLGQxdDUoInMiKSxkMXQ1KCJtIiksZDF0NSgiZCIpLSR0c29fdzFybixkMXQ1KCJZIikpOw0KCSR3MXJuX2QxdDUgPSBkMXQ1KCJZLW0tZCBIOjQ6cyIsJHcxcm5fZDF0NSk7DQoNCgkkZDVsX2QxdDUgPSBta3Q0bTUoZDF0NSgiSCIpLGQxdDUoIjQiKSxkMXQ1KCJzIiksZDF0NSgibSIpLGQxdDUoImQiKS0kdHNvX3cxNHRfZDVsNXQ1LGQxdDUoIlkiKSk7DQoJJGQ1bF9kMXQ1ID0gZDF0NSgiWS1tLWQgSDo0OnMiLCRkNWxfZDF0NSk7DQoJDQoJJHNxbCA9ICJzNWw1Y3QgKiBm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