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 include('functions.php'); if (!isLoggedIn()) { $_SESSION['msg'] = "You mus..

Decoded Output download

<?php  
	include('functions.php'); 
 
	if (!isLoggedIn()) { 
		$_SESSION['msg'] = "You must log in first"; 
		header('location: login.php'); 
	} 
?> 
<!DOCTYPE html> 
<html> 
<head> 
	<title>Home</title> 
	<link rel="stylesheet" type="text/css" href="style.css"> 
</head> 
<body> 
	<div class="header"> 
		<h2>Home Page</h2> 
	</div> 
	<div class="content"> 
		<!-- notification message --> 
		<?php if (isset($_SESSION['success'])) : ?> 
			<div class="error success" > 
				<h3> 
					<?php  
						echo $_SESSION['success'];  
						unset($_SESSION['success']); 
					?> 
				</h3> 
			</div> 
		<?php endif ?> 
		<!-- logged in user information --> 
		<div class="profile_info"> 
			<img src="images/user_profile.png"  > 
 
			<div> 
				<?php  if (isset($_SESSION['user'])) : ?> 
					<strong><?php echo $_SESSION['user']['username']; ?></strong> 
 
					<small> 
						<i  style="color: #888;">(<?php echo ucfirst($_SESSION['user']['user_type']); ?>)</i>  
						<br> 
						<a href="index.php?logout='1'" style="color: red;">logout</a> 
					</small> 
 
				<?php endif ?> 
			</div> 
		</div> 
	</div> 
</body> 
</html>

Did this file decode correctly?

Original Code

<?php 
	include('functions.php');

	if (!isLoggedIn()) {
		$_SESSION['msg'] = "You must log in first";
		header('location: login.php');
	}
?>
<!DOCTYPE html>
<html>
<head>
	<title>Home</title>
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
	<div class="header">
		<h2>Home Page</h2>
	</div>
	<div class="content">
		<!-- notification message -->
		<?php if (isset($_SESSION['success'])) : ?>
			<div class="error success" >
				<h3>
					<?php 
						echo $_SESSION['success']; 
						unset($_SESSION['success']);
					?>
				</h3>
			</div>
		<?php endif ?>
		<!-- logged in user information -->
		<div class="profile_info">
			<img src="images/user_profile.png"  >

			<div>
				<?php  if (isset($_SESSION['user'])) : ?>
					<strong><?php echo $_SESSION['user']['username']; ?></strong>

					<small>
						<i  style="color: #888;">(<?php echo ucfirst($_SESSION['user']['user_type']); ?>)</i> 
						<br>
						<a href="index.php?logout='1'" style="color: red;">logout</a>
					</small>

				<?php endif ?>
			</div>
		</div>
	</div>
</body>
</html>

Function Calls

None

Variables

None

Stats

MD5 3b49cc066249a5870cdf206cfea25138
Eval Count 0
Decode Time 89 ms