| [ PHPXref.com ] | [ Generated: Sun Jul 20 20:12:55 2008 ] | [ Scout Tracker 0.13 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 if ($script_name = basename($HTTP_SERVER_VARS["SCRIPT_NAME"]) == "change_password.php" ) { 3 print "<meta http-equiv=\"refresh\" content=\"0; URL=../index.php\">"; 4 exit; 5 } 6 7 8 print "<center><h3>Change Password</h3>"; 9 10 if ($u_password == "Y" ) { 11 if ($c1_password == $c2_password ) { 12 if ($tbl == 'leader' ) { 13 $sql = "update tbl_$tbl set password=MD5('$c1_password') where user=\"$user\";"; 14 } else if ($tbl == 'scout' ) { 15 $sql = "update tbl_$tbl set password=MD5('$c1_password') where record_key=\"$record_key\";"; 16 } 17 $sql = mysql_query($sql); 18 if ($sql) { 19 print "<center><h2>Password Changed</h2>"; 20 print "<br><a href=./index.php>Return Home</a></center>"; 21 $change_password = "N"; 22 } else { 23 print "Your password did not change: " . mysql_error(); 24 } 25 } else { 26 print "<h2><center>Passwords did not match, try again</h2></center>"; 27 } 28 } 29 30 if ($change_password == "Y" ) { 31 print "<center><form method=POST action=./index.php>Password: <input type=password size=10 maxlength=16 name=c1_password value=\"\"> 32 Verify: <input type=password size=10 maxlength=16 name=c2_password value=\"\"> 33 <input type=hidden name=change_password value=Y> 34 <input type=hidden name=u_password value=Y> 35 <input type=submit value=\"Change Password\"></form></center>"; 36 } 37 38 39 40 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |