From 0a8ffbcb4a4fd3ed08d7618a166e3a00ea24a011 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 7 Sep 2008 15:39:55 +0000 Subject: Series: [15] Refs #53 --- series/core/trunk/includes/instadisc.php | 7 +++++++ 1 file changed, 7 insertions(+) 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) return (($username == instaDisc_getConfig('adminUser')) && (md5($password) == instaDisc_getConfig('adminPass'))); } +function instaDisc_changePassword($password) +{ + $setconfig = "UPDATE config SET value = \"" . mysql_real_escape_string(md5($password)) . "\" WHERE name = \"adminPass\""; + $setconfig2 = mysql_query($setconfig); + $setconfig3 = mysql_fetch_array($setconfig2); +} + ?> -- cgit 1.4.1