about summary refs log tree commit diff stats
path: root/series/core/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'series/core/trunk')
-rw-r--r--series/core/trunk/includes/instadisc.php7
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
59function 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?>