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 error_reporting( ~E_NOTICE ); require_once 'dbcon.php'; if(isset($_GET['edi..

Decoded Output download

<?php 
	error_reporting( ~E_NOTICE ); 
	require_once 'dbcon.php'; 
	 
	if(isset($_GET['edit_id']) && !empty($_GET['edit_id'])) 
	{ 
		$id = $_GET['edit_id']; 
		$stmt_edit = $DB_con->prepare('SELECT username, description, userprofile FROM users WHERE userid =:uid'); 
		$stmt_edit->execute(array(':uid'=>$id)); 
		$edit_row = $stmt_edit->fetch(PDO::FETCH_ASSOC); 
		extract($edit_row); 
	} 
	else 
	{ 
		header("Location: index.php"); 
	} 
	if(isset($_POST['btn_save_updates'])) 
	{ 
		$username = $_POST['user_name']; 
		$description = $_POST['description'];		 
		$imgFile = $_FILES['user_image']['name']; 
		$tmp_dir = $_FILES['user_image']['tmp_name']; 
		$imgSize = $_FILES['user_image']['size']; 
		if($imgFile) 
		{ 
			$upload_dir = 'uploads/'; 
			$imgExt = strtolower(pathinfo($imgFile,PATHINFO_EXTENSION)); 
			$valid_extensions = array('jpeg', 'jpg', 'png', 'gif'); 
			$userprofile = rand(1000,1000000).".".$imgExt; 
			if(in_array($imgExt, $valid_extensions)) 
			{			 
				if($imgSize < 5000000) 
				{ 
					unlink($upload_dir.$edit_row['userprofile']); 
					move_uploaded_file($tmp_dir,$upload_dir.$userprofile); 
				} 
				else 
				{ 
					$errMSG = "Sorry, Your File Is Too Large To Upload. It Should Be Less Than 5MB."; 
				} 
			} 
			else 
			{ 
				$errMSG = "Sorry, only JPG, JPEG, PNG & GIF Extension Files Are Allowed.";		 
			}	 
		} 
		else 
		{ 
			$userprofile = $edit_row['userprofile']; 
		} 
		if(!isset($errMSG)) 
		{ 
			$stmt = $DB_con->prepare('UPDATE users SET username=:uname, description=:udes, userprofile=:upic WHERE userid=:uid'); 
			$stmt->bindParam(':uname',$username); 
			$stmt->bindParam(':udes',$description); 
			$stmt->bindParam(':upic',$userprofile); 
			$stmt->bindParam(':uid',$id); 
				 
			if($stmt->execute()){ 
				?> 
                <script> 
				alert('Successfully Updated...'); 
				window.location.href='index.php'; 
				</script> 
                <?php 
			} 
			else{ 
				$errMSG = "Sorry User Could Not Be Updated!"; 
			} 
		}			 
	} 
?> 
 
<!DOCTYPE html> 
<html> 
<head> 
<title>Trishal Tv Live</title> 
<script type="text/javascript" src="/scripts/jwplayer/jwplayer.js"></script> 
<script type="text/javascript">jwplayer.key="abcdefghijklmnop==";</script> 
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"> 
<script src="bootstrap/js/bootstrap.min.js"></script> 
<script src="jquery-1.11.3-jquery.min.js"></script> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous"> 
</head> 
<style> 
 
</style> 
<body> 
<nav class="navbar navbar-default navbar-static-top"> 
    <div class="container-fluid"> 
        <div class="navbar-header"> 
            <a class="navbar-brand" href="http://www.trishaltv.com"><img src="Admin/icon/on.gif" height="80" width="80"/></a> 
			<ul class="nav navbar-nav"> 
            <li class="active"><a href="index.php">Home</a></li> 
            <li><a href="">About</a></li> 
            <li><a href="">Contact Us.</a></li> 
            <li><a href="index.php">Back</a></li> 
			</ul> 
        </div> 
		<center><a12 style="font-size:15px;color:red"></span>Welcome To Trishal Tv Website...</a12></center> 
    </div> 
</nav> 
<!DOCTYPE html> 
<html> 
<head> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<style> 
* { 
  box-sizing: border-box; 
} 
 
/* Create two unequal columns that floats next to each other */ 
.column { 
  float: left; 
  padding: 10px; 
  height: 200px; /* Should be removed. Only for demonstration */ 
} 
 
.left { 
  width: 5%; 
} 
 
.right { 
  width: 75%; 
} 
 
/* Clear floats after the columns */ 
.row:after { 
  content: ""; 
  display: table; 
  clear: both; 
} 
a12 { 
  position: relative; 
  font-family: sans-serif; 
  text-transform: uppercase; 
  font-size: 1em; 
  letter-spacing: 4px; 
  overflow: hidden; 
  background: linear-gradient(50deg, #000, #fff, #000); 
  background-repeat: no-repeat; 
  background-size: 80%; 
  animation: animate 3s linear infinite; 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: rgba(255, 255, 255, 0); 
  font-color: green; 
} 
 
@keyframes animate { 
  0% { 
    background-position: -500%; 
  } 
  100% { 
    background-position: 500%; 
  } 
} 
body{ 
    background: url(Admin/uploads/background.jpg); 
    background-size: 100% 800px; 
    background-repeat: no-repeat; 
} 
 
</style> 
</head> 
<body> 
<center><div class="row"> 
  <div class="column left" > 
   <iframe src="http://chandpureralo-bd.com/ad-3.html" width=160 height=600 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no" allowtransparency="true" style="background:none transparent;display:block !important;"></iframe> 
  </div> 
 <div class="column right"> 
<script data-cfasync="false" src="https://content.jwplatform.com/libraries/wB8onOoh.js"></script> 
<div class="col-sm-offset-2"><div id="playerVh1hF1z5roh2"></div> 
<script type="text/javascript"> 
if( navigator.userAgent.match(/android/i) 
 || navigator.userAgent.match(/webOS/i) 
 || navigator.userAgent.match(/iPhone/i) 
 || navigator.userAgent.match(/iPad/i) 
 || navigator.userAgent.match(/iPod/i) 
 || navigator.userAgent.match(/BlackBerry/i) 
 || navigator.userAgent.match(/Windows Phone/i) 
 ) { 
            var stream = "<?php echo $description; ?>"; 
        }else{ 
            var stream = "<?php echo $description; ?>"; 
        } 
  jwplayer("playerVh1hF1z5roh2").setup({ 
  "title": "Trishal Tv Live", 
"stretching":"exactfit", 
        "width": "100%", 
        "height": "100%", 
        "skin": "bekle", 
autostart:"true", 
"logo": {"file":"#","margin":"-0", "position":"bottom-right","hide":"false","link":"http://trishaltv.com"}, 
"androidhls": true, 
  "file": stream, 
			   
             
             
             
              }); 
														 jwplayer("playerVh1hF1z5roh2").onError(function(){ 
	jwplayer().load({file:"/theme/ad.mp4",image:"/theme/Final-2.gif"}); 
	jwplayer().play(); 
}); 
jwplayer("playerVh1hF1z5roh2").onComplete(function(){ 
	window.location = window.location.href; 
}); 	   
			   
jwplayer("playerVh1hF1z5roh2").onPlay(function(){ 
	clearTimeout(theTimeout); 
}); 
 
</script> 
<div class="row"> 
  <div class="column">  	 
<img src="Admin/uploads/<?php echo $userprofile; ?>" height="100" width="100"/> 
  </div> 
  <div class="column"> 
    <h2 style="font-size:50px;color:red"><?php echo $username; ?></h2> 
    <a12 style="font-size:15px;color:red"></span><img src="Admin/icon/live.gif" height="20" width="20"/>...Watching live on</a12> 
  </div> 
</div>			 
<iframe src="http://onlinetrishal.blogspot.com/" width=728 height=90 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no" allowtransparency="true" style="background:none transparent;display:block !important;"></iframe>		 
</div></center> 
<!-- Swiper JS --> 
 <script src="dist/js/swiper.min.js"></script> 
 
 <!-- Initialize Swiper --> 
  <script> 
    var swiper = new Swiper('.swiper-container', { 
      slidesPerView: 8, 
      spaceBetween: 15, 
      slidesPerGroup: 8, 
      loop: true, 
      loopFillGroupWithBlank: true, 
      pagination: { 
        el: '.swiper-pagination', 
        clickable: true, 
      }, 
      navigation: { 
        nextEl: '.swiper-button-next', 
        prevEl: '.swiper-button-prev', 
      }, 
    }); 
  </script>  
   
</body> 
</html> 
 
 

Did this file decode correctly?

Original Code

<?php
	error_reporting( ~E_NOTICE );
	require_once 'dbcon.php';
	
	if(isset($_GET['edit_id']) && !empty($_GET['edit_id']))
	{
		$id = $_GET['edit_id'];
		$stmt_edit = $DB_con->prepare('SELECT username, description, userprofile FROM users WHERE userid =:uid');
		$stmt_edit->execute(array(':uid'=>$id));
		$edit_row = $stmt_edit->fetch(PDO::FETCH_ASSOC);
		extract($edit_row);
	}
	else
	{
		header("Location: index.php");
	}
	if(isset($_POST['btn_save_updates']))
	{
		$username = $_POST['user_name'];
		$description = $_POST['description'];		
		$imgFile = $_FILES['user_image']['name'];
		$tmp_dir = $_FILES['user_image']['tmp_name'];
		$imgSize = $_FILES['user_image']['size'];
		if($imgFile)
		{
			$upload_dir = 'uploads/';
			$imgExt = strtolower(pathinfo($imgFile,PATHINFO_EXTENSION));
			$valid_extensions = array('jpeg', 'jpg', 'png', 'gif');
			$userprofile = rand(1000,1000000).".".$imgExt;
			if(in_array($imgExt, $valid_extensions))
			{			
				if($imgSize < 5000000)
				{
					unlink($upload_dir.$edit_row['userprofile']);
					move_uploaded_file($tmp_dir,$upload_dir.$userprofile);
				}
				else
				{
					$errMSG = "Sorry, Your File Is Too Large To Upload. It Should Be Less Than 5MB.";
				}
			}
			else
			{
				$errMSG = "Sorry, only JPG, JPEG, PNG & GIF Extension Files Are Allowed.";		
			}	
		}
		else
		{
			$userprofile = $edit_row['userprofile'];
		}
		if(!isset($errMSG))
		{
			$stmt = $DB_con->prepare('UPDATE users SET username=:uname, description=:udes, userprofile=:upic WHERE userid=:uid');
			$stmt->bindParam(':uname',$username);
			$stmt->bindParam(':udes',$description);
			$stmt->bindParam(':upic',$userprofile);
			$stmt->bindParam(':uid',$id);
				
			if($stmt->execute()){
				?>
                <script>
				alert('Successfully Updated...');
				window.location.href='index.php';
				</script>
                <?php
			}
			else{
				$errMSG = "Sorry User Could Not Be Updated!";
			}
		}			
	}
?>

<!DOCTYPE html>
<html>
<head>
<title>Trishal Tv Live</title>
<script type="text/javascript" src="/scripts/jwplayer/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="abcdefghijklmnop==";</script>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="jquery-1.11.3-jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
</head>
<style>

</style>
<body>
<nav class="navbar navbar-default navbar-static-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="http://www.trishaltv.com"><img src="Admin/icon/on.gif" height="80" width="80"/></a>
			<ul class="nav navbar-nav">
            <li class="active"><a href="index.php">Home</a></li>
            <li><a href="">About</a></li>
            <li><a href="">Contact Us.</a></li>
            <li><a href="index.php">Back</a></li>
			</ul>
        </div>
		<center><a12 style="font-size:15px;color:red"></span>Welcome To Trishal Tv Website...</a12></center>
    </div>
</nav>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
  box-sizing: border-box;
}

/* Create two unequal columns that floats next to each other */
.column {
  float: left;
  padding: 10px;
  height: 200px; /* Should be removed. Only for demonstration */
}

.left {
  width: 5%;
}

.right {
  width: 75%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}
a12 {
  position: relative;
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 1em;
  letter-spacing: 4px;
  overflow: hidden;
  background: linear-gradient(50deg, #000, #fff, #000);
  background-repeat: no-repeat;
  background-size: 80%;
  animation: animate 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(255, 255, 255, 0);
  font-color: green;
}

@keyframes animate {
  0% {
    background-position: -500%;
  }
  100% {
    background-position: 500%;
  }
}
body{
    background: url(Admin/uploads/background.jpg);
    background-size: 100% 800px;
    background-repeat: no-repeat;
}

</style>
</head>
<body>
<center><div class="row">
  <div class="column left" >
   <iframe src="http://chandpureralo-bd.com/ad-3.html" width=160 height=600 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no" allowtransparency="true" style="background:none transparent;display:block !important;"></iframe>
  </div>
 <div class="column right">
<script data-cfasync="false" src="https://content.jwplatform.com/libraries/wB8onOoh.js"></script>
<div class="col-sm-offset-2"><div id="playerVh1hF1z5roh2"></div>
<script type="text/javascript">
if( navigator.userAgent.match(/android/i)
 || navigator.userAgent.match(/webOS/i)
 || navigator.userAgent.match(/iPhone/i)
 || navigator.userAgent.match(/iPad/i)
 || navigator.userAgent.match(/iPod/i)
 || navigator.userAgent.match(/BlackBerry/i)
 || navigator.userAgent.match(/Windows Phone/i)
 ) {
            var stream = "<?php echo $description; ?>";
        }else{
            var stream = "<?php echo $description; ?>";
        }
  jwplayer("playerVh1hF1z5roh2").setup({
  "title": "Trishal Tv Live",
"stretching":"exactfit",
        "width": "100%",
        "height": "100%",
        "skin": "bekle",
autostart:"true",
"logo": {"file":"#","margin":"-0", "position":"bottom-right","hide":"false","link":"http://trishaltv.com"},
"androidhls": true,
  "file": stream,
			  
            
            
            
              });
														 jwplayer("playerVh1hF1z5roh2").onError(function(){
	jwplayer().load({file:"/theme/ad.mp4",image:"/theme/Final-2.gif"});
	jwplayer().play();
});
jwplayer("playerVh1hF1z5roh2").onComplete(function(){
	window.location = window.location.href;
}); 	  
			  
jwplayer("playerVh1hF1z5roh2").onPlay(function(){
	clearTimeout(theTimeout);
});

</script>
<div class="row">
  <div class="column">  	
<img src="Admin/uploads/<?php echo $userprofile; ?>" height="100" width="100"/>
  </div>
  <div class="column">
    <h2 style="font-size:50px;color:red"><?php echo $username; ?></h2>
    <a12 style="font-size:15px;color:red"></span><img src="Admin/icon/live.gif" height="20" width="20"/>...Watching live on</a12>
  </div>
</div>			
<iframe src="http://onlinetrishal.blogspot.com/" width=728 height=90 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no" allowtransparency="true" style="background:none transparent;display:block !important;"></iframe>		
</div></center>
<!-- Swiper JS -->
 <script src="dist/js/swiper.min.js"></script>

 <!-- Initialize Swiper -->
  <script>
    var swiper = new Swiper('.swiper-container', {
      slidesPerView: 8,
      spaceBetween: 15,
      slidesPerGroup: 8,
      loop: true,
      loopFillGroupWithBlank: true,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });
  </script> 
  
</body>
</html>


Function Calls

None

Variables

None

Stats

MD5 40d28ad0a528f7aff3835ab1bed59ddd
Eval Count 0
Decode Time 97 ms