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 session_start(); require("mainconfig.php"); $msg_type = "nothing"; $email = $_..
Decoded Output download
<?php
session_start();
require("mainconfig.php");
$msg_type = "nothing";
$email = $_POST['email'];
$submit = $_POST['submit'];
if ($submit) {
$email_check = mysqli_query ($db,"SELECT * FROM users WHERE email = '".$email."'");
$count = mysqli_num_rows ($email_check);
if ($count != 0) {
$random = random(8);
$new_password = $random;
$email_password = $new_password;
$new_password = $new_password;
mysqli_query($db,"update users SET password='". $new_password."' WHERE email ='".$email."'");
ini_set('display_errors', 1 );
error_reporting( E_ALL );
$subject= "Login Information";
$message= "Your Email Password Has Been Changed To $email_password";
$from= "[email protected]";
$headers = "From:" . $from;
mail($email, $subject, $message, $headers);
echo "Your Password Has Been Changed";
}
else
{
echo " This Email Does Not Exist ";
}
}
?>
<HTML>
<head>
</head>
<body>
<form action ="" method="POST">
Your Email :<br/> <input type="text" name="email" size="30" /><br/>
<input type="submit" name="submit" value="submit" />
</form>
Did this file decode correctly?
Original Code
<?php
session_start();
require("mainconfig.php");
$msg_type = "nothing";
$email = $_POST['email'];
$submit = $_POST['submit'];
if ($submit) {
$email_check = mysqli_query ($db,"SELECT * FROM users WHERE email = '".$email."'");
$count = mysqli_num_rows ($email_check);
if ($count != 0) {
$random = random(8);
$new_password = $random;
$email_password = $new_password;
$new_password = $new_password;
mysqli_query($db,"update users SET password='". $new_password."' WHERE email ='".$email."'");
ini_set('display_errors', 1 );
error_reporting( E_ALL );
$subject= "Login Information";
$message= "Your Email Password Has Been Changed To $email_password";
$from= "[email protected]";
$headers = "From:" . $from;
mail($email, $subject, $message, $headers);
echo "Your Password Has Been Changed";
}
else
{
echo " This Email Does Not Exist ";
}
}
?>
<HTML>
<head>
</head>
<body>
<form action ="" method="POST">
Your Email :<br/> <input type="text" name="email" size="30" /><br/>
<input type="submit" name="submit" value="submit" />
</form>
Function Calls
| session_start | 1 |
Stats
| MD5 | d21e96d4e18f56ddfdfdb46512eaa8e3 |
| Eval Count | 0 |
| Decode Time | 84 ms |