diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-15 18:39:18 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-15 18:39:18 +0000 |
commit | 9aec4d669f8d9efb74372e3755131e042c62761f (patch) | |
tree | 8fd2491e1efb923392e3b8a39ce045d83f94bd9a /central/trunk/includes | |
parent | 4c9677691d59bd6d743bd544b6be38084e095a22 (diff) | |
download | instadisc-9aec4d669f8d9efb74372e3755131e042c62761f.tar.gz instadisc-9aec4d669f8d9efb74372e3755131e042c62761f.tar.bz2 instadisc-9aec4d669f8d9efb74372e3755131e042c62761f.zip |
Central: Add change password
Refs #25 and closes #35
Diffstat (limited to 'central/trunk/includes')
-rw-r--r-- | central/trunk/includes/instadisc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index 96f4940..95aeb88 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php | |||
@@ -397,4 +397,10 @@ function instaDisc_cancelSubscription($username, $url) | |||
397 | return false; | 397 | return false; |
398 | } | 398 | } |
399 | 399 | ||
400 | function instaDisc_changePassword($username, $password) | ||
401 | { | ||
402 | $setpass = "UPDATE users WHERE username = \"" . mysql_real_escape_string($username) . "\" SET password = \"" . mysql_real_escape_string(md5($password)) . "\""; | ||
403 | $setpass2 = mysql_query($setpass); | ||
404 | } | ||
405 | |||
400 | ?> | 406 | ?> |