[Release] Reset password script (WebSro, Satanic Road Website)

02/01/2015 14:04 ledgervera#1
» Introduction
Lot of people was asking for forget/reset password script
so i decided to upload mine to the community

Page.php:
PHP Code:
}else if (isset($_GET['lostpw'])) {
include(
"mod/lostpw.php"); 
Note: E-mail should be valid to reset password correctly
Download in attachments website design + reset password script
Password: eric

Click on [Only registered and activated users can see links. Click Here To Register...] button if i helped.
02/02/2015 04:18 PortalDark#2
#Approved
02/02/2015 04:27 Eslam Galull#3
in Satanic Road ..website you dont have to do all that ..
Just add new Page to index :
Quote:
}else if (isset($_GET['resetpw'])) {
include("mod/resetpw.php");
Then add this code to resetpw.php

Quote:
<div id="plink"><div style="position:relative;z-index:1">
<a href="">Reset Password</a></div></div><div style="float:right;height:0;position:relative;bott om:27px;right:6px;">
</div>



<?php
session_start();



if(!isset($_SESSION['loggedin'])) {


if(isset($_POST["submit"])){
$userID = anti_injection($_POST["userID"]);

$newpassword = anti_injection($_POST["newpassword"]);
$newpassword2 = anti_injection($_POST["newpassword2"]);
$encrypt = md5($newpassword);

$email = anti_injection($_POST["email"]);
$passwordcheck = odbc_num_rows(odbc_exec($connectacc, "SELECT * FROM dbo.TB_User WHERE StrUserID = '$userID' AND password = '$oldencrypt'"));
$emailcheck = odbc_num_rows(odbc_exec($connectacc, "SELECT * FROM dbo.TB_User WHERE StrUserID = '$userID' AND email = '$email'"));



if($userID == "" || $newpassword == "" || $newpassword2 == "" || $email == ""){
echo "<div class='error'>Please fill all fields</div>";
}else if ($newpassword != $newpassword2) {
echo "<div class='error'>Password does not match!</div>";

}else if (strlen($newpassword) <= "3" || strlen($newpassword) >= "21") {
echo "<div class='error'>Password should be between 4 and 21 characters</div>";
}else if (strlen($newpassword2) <= "3" || strlen($newpassword2) >= "21") {
echo "<div class='error'>Password should be between 4 and 21 characters</div>";
}else if(!filter_var($email,FILTER_VALIDATE_EMAIL)){
echo "<div class='error'>Email is not valid!</div>";

} else if($emailcheck == "0"){
echo "<div class='error'>Email is incorrect!</div>";
} else {
if(odbc_exec($connectacc, "UPDATE dbo.TB_User SET password = '$encrypt' WHERE StrUserID = '$userID'"))
{
echo "<div class='ok'>Password is changed successful! , Please take Care of your informations </div>";
}
else
{
echo "<div class='error'>Register for handling an error during the holding at, please go to support.</div>";
}
}
}
}
?>



<form action="" method="post">

<table>

<tr>
<td>Account iD</td> <td><input type="text" name="userID" id="userID" /> </td> <td><font size="1" color="grey">3-20 Long (Characters A-Z,a-z 0-9)</font> </td>
</tr>

<tr>
<td>New Password</td> <td><input type="password" name="newpassword" id="newpassword"/></td> <td><font size="1" color="grey">3-20 Long (Characters A-Z,a-z 0-9)</font> </td>
</tr>
<tr>
<td>Confirm New Password</td><td><input type="password" name="newpassword2" id="newpassword2" /> </td> <td></td>
</tr>
<tr>
<td>Email</td><td><input type="text" name="email" id="email" /> </td> <td><font size="1" color="grey">Should be Vaild</font> </td>
</tr>
<tr>
<td>Capatcha</td> <td><input type="text" name="captcha" id="captcha" /> </td> <td><img src="mod/captcha/captcha.php" id="captcha" /></td>
</tr>
<tr>
<td></td> <td></td> <td><a href="" onclick="
document.getElementById('captcha').src='mod/captcha/captcha.php?'+Math.random();
document.getElementById('captcha-form').focus();"
id="change-image"><font color="grey">Refresh captcha.</font></a></td>
</tr>
<tr>
<td></td> <td></td> <td><p class="submit"> <input type="submit" name="submit" value="Register" /> </p> </td>
</tr>
</table>
<br>
<br>
<p><font color="#FFFFFF" size="3"> Have a problem ?! Contact us <class="link"><a href="?Report">Report</a></font></p>




</form>





its will help ppl that already using those files and edited them ! dont make them have to start there edits from the beginning
02/02/2015 07:27 asanoftw#4
well not rare , but good to released
02/02/2015 09:01 princeofwar2050#5
good job <3 it's useful :)
02/02/2015 09:02 ŧǿρĤ#6
nice one :)
02/02/2015 09:06 ledgervera#7
Quote:
Originally Posted by asanoftw View Post
well not rare , but good to released
Well, doesn't matter if the script isn't rare
Quote:
Originally Posted by princeofwar2050 View Post
good job <3 it's useful :)
Thank you.
Quote:
Originally Posted by ŧǿρĤ View Post
nice one :)
yo! thanks old friend :awesome:
02/02/2015 09:17 AdelFunky#8
was waiting for it :P
02/02/2015 09:31 Toby Crackit#9
Eric my friend. nice work keep :) always you make wonderful things :D
02/02/2015 12:03 Storxy_#10
Good Job :v
02/02/2015 15:20 TheRunner#11
very Nice Thanks For Share
02/03/2015 01:47 ledgervera#12
Quote:
Originally Posted by TheRunner View Post
very Nice Thanks For Share
by the way, there is thanks button on the thread
02/03/2015 05:55 Eslam Galull#13
he care about spam ! xD
02/04/2015 08:43 ahmedemadsam#14
keep it up bich
02/04/2015 09:22 Dollars Maker#15
thq dude :)