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='P2lCP1ouWj5zSDJXUTlNPiIuTWU5TXpYWi5aIjs+P2kNVkI5c2M+Mldlbm5TIjJPVy..

Decoded Output download

?><?php include "header.php"; ?>
<div class="col">
		<div class="middle-content">
			<div class="content bg-fade-black">
				<div class="list-group">
<?php	
	include '../config.php';
	error_reporting(0);
	session_start();
	
	
	//date_default_timezone_set('Asia/Bangkok');
	// Session Timeout
	/*
	if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > $_CONFIG['session']['timeout'])) {
		session_unset();
		session_destroy();
	}
	$_SESSION['LAST_ACTIVITY'] = time();*/

	//print_r($_POST);
	if(isset($_POST['user_id']) && isset($_POST['user_id'])){
		$user_id = $_POST['user_id'];
		$user_pwd = $_POST['user_pwd'];
		$user_id = str_replace("'","",$user_id);
		$user_pwd = str_replace("'","",$user_pwd);
		
	$sql ="SELECT * FROM account.dbo.[Tbl_user] WHERE user_id = '".$user_id."' and user_pwd = '".$user_pwd."'";
	try {
	   $dbh = new PDO("sqlsrv:Server=".$_CONFIG['mssql']['host'].";Database=account", $_CONFIG['mssql']['username'], $_CONFIG['mssql']['password']);
				} catch (PDOException $e) {
		echo "Failed to get DB handle: " . $e->getMessage() . "
";
		exit;
	}
	$user_nos = '';
	$i = 1;
	$stmt = $dbh->prepare($sql);
	$stmt->execute();
		
	while ($row = $stmt->fetch()) {
		$user_ids = $row['user_id'];
		$user_pwds = $row['user_pwd'];
		$user_nos = $row['user_no'];
		//echo $user_nos;
	}
	if($user_nos == '' || md5($user_ids) != md5($user_id) ){
		echo '
		<div class="msg_error" align="left">Error  .</div>
		';
	    echo "<center><a href='login.php'> <input type='button' value='&nbsp;&nbsp;&nbsp;&nbsp;' class='btn btn-warning' /></a></center>";
		
	}else{
			/*$set_f_sql = "SELECT count(*) as card from cash.dbo.truemoney where user_no = '".$user_nos."' and status = 1";
		  try {
			$dbh = new PDO("sqlsrv:Server=".$_CONFIG['mssql']['host'].";Database=account", "".$_CONFIG['mssql']['username']."", "".$_CONFIG['mssql']['password']."");
		  } catch (PDOException $e) {
			echo "Failed to get DB handle: " . $e->getMessage() . "
";
			exit;
		  }
		  $set_f = $dbh->prepare($set_f_sql);
		  $set_f->execute();
		  $card = '0';
		  while ($Objset_f = $set_f->fetch()) {
			  $card = $Objset_f['card'];
		  }
		
		  if($card == '0'){
			  
			  echo '<div class="sufee-alert alert with-close alert-danger alert-dismissible fade show">
                                            
                                            50 
                                              <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                                <span aria-hidden="true"></span>
                                            </button>
                                        </div>';*/
										
                //}else{
		$_SESSION["user_no"] = $user_nos;
		$_SESSION["user_id"] = $user_ids;
		$_SESSION["status"] = 'normal';
		
	    if($_SERVER['HTTP_HOST'] == 'www.dekaron-evolution.online' || '127.0.0.1:8080'){
			//if($_SERVER['SERVER_ADDR'] == '103.253.73.203'){
				//echo $_SERVER['SERVER_ADDR'].'<br>';
			    //echo $_SERVER['HTTP_HOST'].'<br>';
				echo '<script>
						location.replace("index.php")
				     </script>';
				
				exit();
			
	    }else{
			//echo $_SERVER['SERVER_ADDR'].'<br>';
			//echo $_SERVER['HTTP_HOST'].'<br>';
			//echo $_SERVER['SERVER_ADDR'].'<br>';
			//echo $_SERVER['HTTP_HOST'].'<br>';
			 echo '
			<div class="msg_error" align="left">HTTP HOST Error.</div>
			';
			 echo "<center><a href='login.php'> <input type='button' value='&nbsp;&nbsp;&nbsp;&nbsp;' class='btn btn-warning' /></a></center>";
			session_unset();
            session_destroy();
		}
		//}
		
	}
	
	}
	
	if(isset($_GET['logout']))
    {
		session_unset();
		session_destroy();
		echo '<script>
			location.replace("login.php")
		</script>';
    }
	if(isset($_SESSION["user_no"])){
		echo '<script>
			location.replace("index.php")
		</script>';
	}
	
	?>
	         </div>
		</div>
	</div>	  
</div>
	<?php include "footer.php"; ?>

Did this file decode correctly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j4+Pj4+Pj4+bk1ubnNPSF85TW49ek9xKCk7DVYJCWwNVgkJaGhsDVYJCQ1WCWwNVgkNVglsDVYJDVYJc0Eoc25uTT0oJF9DS1RqJ1dPeE9RPSdkKSkNVj4+Pj5dDVYJCW5Nbm5zT0hfUUhuTT0oKTsNVgkJbk1ubnNPSF85TW49ek9xKCk7DVYJCU0yLk8+J0JuMnpzWj1pDVYJCQlXTzJlPXNPSFh6TVpXZTJNKCJXT3hzSFhaLloiKQ1WCQlCaG4yenNaPWknOw1WPj4+PmwNVglzQShzbm5NPSgkX3BLcHAzN0VqIlFuTXpfSE8iZCkpXQ1WCQlNMi5PPidCbjJ6c1o9aQ1WCQkJV08yZT1zT0hYek1aV2UyTSgic0g5TVJYWi5aIikNVgkJQmhuMnpzWj1pJzsNVglsDVYJDVYJP2kNVgk+Pj4+Pj4+Pj5CaDlzY2kNVgkJQmg5c2NpDVYJQmg5c2NpCT4+DVZCaDlzY2kNVglCP1ouWj5zSDJXUTlNPiJBT089TXpYWi5aIjs+P2k=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R 0
$_X 0

Stats

MD5 7e2e11f310c2d06d4b6b67a5e35fce14
Eval Count 2
Decode Time 75 ms