diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-07 15:39:55 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-07 15:39:55 +0000 |
commit | 0a8ffbcb4a4fd3ed08d7618a166e3a00ea24a011 (patch) | |
tree | f606ec11395eb210a429a474f0ae712487314a98 /series/core/trunk | |
parent | 75f1fa5c96dfdc2c34f4c660c67db350b5875001 (diff) | |
download | instadisc-0a8ffbcb4a4fd3ed08d7618a166e3a00ea24a011.tar.gz instadisc-0a8ffbcb4a4fd3ed08d7618a166e3a00ea24a011.tar.bz2 instadisc-0a8ffbcb4a4fd3ed08d7618a166e3a00ea24a011.zip |
Series: [15]
Refs #53
Diffstat (limited to 'series/core/trunk')
-rw-r--r-- | series/core/trunk/includes/instadisc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/series/core/trunk/includes/instadisc.php b/series/core/trunk/includes/instadisc.php index e044cdc..be6fcee 100644 --- a/series/core/trunk/includes/instadisc.php +++ b/series/core/trunk/includes/instadisc.php | |||
@@ -56,4 +56,11 @@ function instaDisc_verifyUser($username, $password) | |||
56 | return (($username == instaDisc_getConfig('adminUser')) && (md5($password) == instaDisc_getConfig('adminPass'))); | 56 | return (($username == instaDisc_getConfig('adminUser')) && (md5($password) == instaDisc_getConfig('adminPass'))); |
57 | } | 57 | } |
58 | 58 | ||
59 | function instaDisc_changePassword($password) | ||
60 | { | ||
61 | $setconfig = "UPDATE config SET value = \"" . mysql_real_escape_string(md5($password)) . "\" WHERE name = \"adminPass\""; | ||
62 | $setconfig2 = mysql_query($setconfig); | ||
63 | $setconfig3 = mysql_fetch_array($setconfig2); | ||
64 | } | ||
65 | |||
59 | ?> | 66 | ?> |