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

Signing you up...

Thank you for signing up!

PHP Decode

<? session_start(); $isLogin=false; if (isset($_SESSION["ewisoft_group_1"]))$isLogin=true;..

Decoded Output download

<?
session_start();
$isLogin=false;
if (isset($_SESSION["ewisoft_group_1"]))$isLogin=true;
else
{
  $username="";
  $password="";
  if (isset($_POST["username"])) $username = $_POST["username"];
  if (isset($_POST["password"])) $password = $_POST["password"];
  if (!get_magic_quotes_gpc())
  {
    $username=addslashes($username);
    $password=addslashes($password);
  }
if (($username==="rcr" && $password==="critters") || 
    ($username==="family" && $password==="rcr") || 
    ($username==="tomr" && $password==="4824"))
{
    $isLogin=true;
$_SESSION["ewisoft_group_1"]="true";}
}
$url="live-view.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Rivers Critters Ranch Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
<meta name="description" content="Rivers Critters Ranch is a family farm located in central Minnesota. We raise Olde English Babydoll Sheep, sell organic chicken and animal feed." >
<meta name="keywords" content="Rivers, Rivers Critters, Organic, MN, Hobby Farm, Organic Feed, Feedstore" >
<meta name="GENERATOR" content="Ewisoft Website Builder eCommerce Software from http://www.ewisoft.com/" >
<LINK rel="stylesheet" type="text/css" href="./user/ecommerce-css/e_list_view.css" >
<LINK rel="stylesheet" type="text/css" href="./user/ecommerce-css/e_detail_view.css" >
<LINK rel="stylesheet" type="text/css" href="./user/ecommerce-css/e_grid_view.css" >
<link href="./usertpl/1vg104-simple/stylesheet.css" rel="stylesheet" type="text/css" >
<style type="text/css" >
<!--

--></style></head>
<body bgcolor="#7A7C70" >
<table class="tablewidth" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="logobk" >
<tr>
<td width="370" >
<div align="center" valign="middle" ><a href="index.htm" ><img src="./user/gimage/RCR-Logo-TRR-v3_gif_108_97.png" width="108" height="97" alt="Rivers Critters Ranch Hamburg MN" align="center" style="text-align:center;vertical-align:middle;" border="0" ></a></div></td>
<td><P align="center" ><STRONG><FONT size="3" >Welcome to Rivers Critters Ranch</FONT></STRONG></P></td></tr></table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="50%" valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td valign="top" class="bannerbk" ><P align="center" ><img src="./user/gimage/Grazing-May-2014_400_300.JPG" width="400" height="300" border="0" ></P>
<P>&nbsp;</P>
<P>&nbsp;</P></td></tr></table></td>
<td width="50%" valign="top" class="nav1background" ><br>
<br>
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td height="35" class="nav1bk" ><a href="index.htm" target="_self" class="nav1" >Home</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="Sheep.htm" target="_self" class="nav1" >Olde English Babydoll Sheep</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="farmanimalspeacocks.htm" target="_self" class="nav1" >Peacocks</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="FreeRangeChickens.htm" target="_self" class="nav1" >Chickens</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="organicfeed.htm" target="_self" class="nav1" >Organic Feed</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="donkeys.htm" target="_self" class="nav1" >Donkeys</a></td></tr>
<tr>
<td height="35" class="nav1activebk" ><a href="viewsfromthefarm.htm" target="_self" class="nav1active" >Views From The Farm</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="ThoughtsFromTheFarm.htm" target="_self" class="nav1" >Thoughts From The Farm</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="rivers-critters-store.htm" target="_self" class="nav1" >Rivers Critters Store</a></td></tr></table></td></tr></table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td class="nav2bk" >
<a href="2013-lambs.htm" target="_self" class="nav2" >2013 Lambs</a><a href="2012-images.htm" target="_self" class="nav2" >2012 Images</a><a href="live-view.php" target="_self" class="nav2active" >Live View</a><a href="2014-images.htm" target="_self" class="nav2" >2014 Images</a></td></tr></table>
<table width="100%" border="0" align="center" cellpadding="15" cellspacing="0" >
<tr>
<td valign="top" class="contentbk" >
<?
if ($isLogin)
{
?>
<H1>Live View</H1>
<P>View of barn and south corral.</P>
<script language="JavaScript" type="text/javascript" >

function reload()
{
   setTimeout('reloadImg("refresh")',3000)
};

function reloadImg(id) 
{ 
   var obj = document.getElementById(id); 
   var date = new Date(); 
   obj.src = "http://69.34.67.43:8090/snapshot.cgi?user=guest&pwd=critters&t=" + Math.floor(date.getTime()/1000); 
} 

</script>
<IMG name="refresh" onerror="reload(this)" src="http://69.34.67.43:8090/snapshot.cgi?user=guest&amp;pwd=critters&amp;t=" onload="reload(this)" >
<?
}
else
{
?>

<form method=post action="<? echo $url ?>">
<table cellpadding=2 cellspacing=0 border=0 >
<tr><td><p>Username:</p></td><td><p><input type=text name=username></p></td></tr>
<tr><td><p>Password: </p></td><td><p><input type=password name=password></p></td></tr>
<tr><td align=center colspan=2 ><p><input type=submit value="Submit"></p></td></tr>
</table>
</form>

<?
}
?>

</td></tr></table>
<table width="100%" height="75" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="50%" class="copyrightbk" ><div align="center" class="copyright" >Copyright 2021 &copy; Rivers Critters Ranch, LLC. All rights reserved.<br>This website was powered by Ewisoft <a href="http://www.ewisoft.com/" target="_blank" class="link7984" >eCommerce Website Builder</a>.</div></td>
<td class="footerbk" ><div align="center" >
<P>Learn more about <A href="http://www.oldenglishbabydollsheep.com" target="_blank" >Olde English Babydoll Sheep</A> visit our website <A href="http://www.oldenglishbabydollsheep.com" >www.oldenglishbabydollsheep.com</A></P></div></td></tr></table></td></tr></table></body></html>

Did this file decode correctly?

Original Code

<?
session_start();
$isLogin=false;
if (isset($_SESSION["ewisoft_group_1"]))$isLogin=true;
else
{
  $username="";
  $password="";
  if (isset($_POST["username"])) $username = $_POST["username"];
  if (isset($_POST["password"])) $password = $_POST["password"];
  if (!get_magic_quotes_gpc())
  {
    $username=addslashes($username);
    $password=addslashes($password);
  }
if (($username==="rcr" && $password==="critters") || 
    ($username==="family" && $password==="rcr") || 
    ($username==="tomr" && $password==="4824"))
{
    $isLogin=true;
$_SESSION["ewisoft_group_1"]="true";}
}
$url="live-view.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Rivers Critters Ranch Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
<meta name="description" content="Rivers Critters Ranch is a family farm located in central Minnesota. We raise Olde English Babydoll Sheep, sell organic chicken and animal feed." >
<meta name="keywords" content="Rivers, Rivers Critters, Organic, MN, Hobby Farm, Organic Feed, Feedstore" >
<meta name="GENERATOR" content="Ewisoft Website Builder eCommerce Software from http://www.ewisoft.com/" >
<LINK rel="stylesheet" type="text/css" href="./user/ecommerce-css/e_list_view.css" >
<LINK rel="stylesheet" type="text/css" href="./user/ecommerce-css/e_detail_view.css" >
<LINK rel="stylesheet" type="text/css" href="./user/ecommerce-css/e_grid_view.css" >
<link href="./usertpl/1vg104-simple/stylesheet.css" rel="stylesheet" type="text/css" >
<style type="text/css" >
<!--

--></style></head>
<body bgcolor="#7A7C70" >
<table class="tablewidth" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="logobk" >
<tr>
<td width="370" >
<div align="center" valign="middle" ><a href="index.htm" ><img src="./user/gimage/RCR-Logo-TRR-v3_gif_108_97.png" width="108" height="97" alt="Rivers Critters Ranch Hamburg MN" align="center" style="text-align:center;vertical-align:middle;" border="0" ></a></div></td>
<td><P align="center" ><STRONG><FONT size="3" >Welcome to Rivers Critters Ranch</FONT></STRONG></P></td></tr></table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="50%" valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td valign="top" class="bannerbk" ><P align="center" ><img src="./user/gimage/Grazing-May-2014_400_300.JPG" width="400" height="300" border="0" ></P>
<P>&nbsp;</P>
<P>&nbsp;</P></td></tr></table></td>
<td width="50%" valign="top" class="nav1background" ><br>
<br>
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td height="35" class="nav1bk" ><a href="index.htm" target="_self" class="nav1" >Home</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="Sheep.htm" target="_self" class="nav1" >Olde English Babydoll Sheep</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="farmanimalspeacocks.htm" target="_self" class="nav1" >Peacocks</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="FreeRangeChickens.htm" target="_self" class="nav1" >Chickens</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="organicfeed.htm" target="_self" class="nav1" >Organic Feed</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="donkeys.htm" target="_self" class="nav1" >Donkeys</a></td></tr>
<tr>
<td height="35" class="nav1activebk" ><a href="viewsfromthefarm.htm" target="_self" class="nav1active" >Views From The Farm</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="ThoughtsFromTheFarm.htm" target="_self" class="nav1" >Thoughts From The Farm</a></td></tr>
<tr>
<td height="35" class="nav1bk" ><a href="rivers-critters-store.htm" target="_self" class="nav1" >Rivers Critters Store</a></td></tr></table></td></tr></table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td class="nav2bk" >
<a href="2013-lambs.htm" target="_self" class="nav2" >2013 Lambs</a><a href="2012-images.htm" target="_self" class="nav2" >2012 Images</a><a href="live-view.php" target="_self" class="nav2active" >Live View</a><a href="2014-images.htm" target="_self" class="nav2" >2014 Images</a></td></tr></table>
<table width="100%" border="0" align="center" cellpadding="15" cellspacing="0" >
<tr>
<td valign="top" class="contentbk" >
<?
if ($isLogin)
{
?>
<H1>Live View</H1>
<P>View of barn and south corral.</P>
<script language="JavaScript" type="text/javascript" >

function reload()
{
   setTimeout('reloadImg("refresh")',3000)
};

function reloadImg(id) 
{ 
   var obj = document.getElementById(id); 
   var date = new Date(); 
   obj.src = "http://69.34.67.43:8090/snapshot.cgi?user=guest&pwd=critters&t=" + Math.floor(date.getTime()/1000); 
} 

</script>
<IMG name="refresh" onerror="reload(this)" src="http://69.34.67.43:8090/snapshot.cgi?user=guest&amp;pwd=critters&amp;t=" onload="reload(this)" >
<?
}
else
{
?>

<form method=post action="<? echo $url ?>">
<table cellpadding=2 cellspacing=0 border=0 >
<tr><td><p>Username:</p></td><td><p><input type=text name=username></p></td></tr>
<tr><td><p>Password: </p></td><td><p><input type=password name=password></p></td></tr>
<tr><td align=center colspan=2 ><p><input type=submit value="Submit"></p></td></tr>
</table>
</form>

<?
}
?>

</td></tr></table>
<table width="100%" height="75" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="50%" class="copyrightbk" ><div align="center" class="copyright" >Copyright 2021 &copy; Rivers Critters Ranch, LLC. All rights reserved.<br>This website was powered by Ewisoft <a href="http://www.ewisoft.com/" target="_blank" class="link7984" >eCommerce Website Builder</a>.</div></td>
<td class="footerbk" ><div align="center" >
<P>Learn more about <A href="http://www.oldenglishbabydollsheep.com" target="_blank" >Olde English Babydoll Sheep</A> visit our website <A href="http://www.oldenglishbabydollsheep.com" >www.oldenglishbabydollsheep.com</A></P></div></td></tr></table></td></tr></table></body></html>

Function Calls

session_start 1
get_magic_quotes_gpc 1

Variables

$isLogin False
$password
$username

Stats

MD5 751a0a934aaa9cfb02c7ba20780b647e
Eval Count 0
Decode Time 99 ms