Update of /cvsroot/openfirst/members
In directory sc8-pr-cvs1:/tmp/cvs-serv16544
Modified Files:
reset.php
Log Message:
Syntax fix.
Index: reset.php
===================================================================
RCS file: /cvsroot/openfirst/members/reset.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** reset.php 22 Dec 2003 23:09:05 -0000 1.1
--- reset.php 23 Dec 2003 14:46:52 -0000 1.2
***************
*** 30,47 ****
include_once($header);
if(isset($_POST['set'])){
! $newpass = cryptpassword($_POST['pass'],$encryption);
! ofirst_dbquery("UPDATE ofirst_members SET password = '".$newpass."' WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';");
! echo "<br><br>Your password has been successfully changed, you may now login! <a href='index.php'>Login</a>";
die(include_once($footer));
}
if(isset($_GET['code'])){
! $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';");
! $member = ofirst_dbfetch_object($member_query);
!
! if(ofirst_dbnum_rows($member_query) == 0){
! echo "<br><br>There is no account with that information, sorry!<br><br>";
! }else{
?>
<h1>Reset Password</h1>
--- 30,47 ----
include_once($header);
+ // Get password, encrypt and send to database
if(isset($_POST['set'])){
! $newpass = cryptpassword($_POST['pass'],$encryption);
! ofirst_dbquery("UPDATE ofirst_members SET password = '".$newpass."' WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';");
! echo "<br><br>Your password has been successfully changed, you may now login! <a href='index.php'>Login</a>";
die(include_once($footer));
}
if(isset($_GET['code'])){
! $member_query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE email = '".$_GET['email']."' AND authcode = '".$_GET['code']."';");
! $member = ofirst_dbfetch_object($member_query);
! if(ofirst_dbnum_rows($member_query) == 0){
! echo "<br><br>There is no account with that information, sorry!<br><br>";
! }else{
?>
<h1>Reset Password</h1>
***************
*** 60,64 ****
</form>
<?php
! }
}
include_once($footer); ?>
--- 60,64 ----
</form>
<?php
! }
}
include_once($footer); ?>
|