about summary refs log tree commit diff stats
path: root/series/trunk/includes/instadisc.php
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-09-14 16:35:31 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-09-14 16:35:31 +0000
commitaa8219c03996d7ba325d71857bb34270a993d3f6 (patch)
treec90692fa1692f86237986843c561b935fb809858 /series/trunk/includes/instadisc.php
parent6b6e632d858d2371525242e394e692da291c7502 (diff)
downloadinstadisc-aa8219c03996d7ba325d71857bb34270a993d3f6.tar.gz
instadisc-aa8219c03996d7ba325d71857bb34270a993d3f6.tar.bz2
instadisc-aa8219c03996d7ba325d71857bb34270a993d3f6.zip
Series: Added user management
Refs #53
Diffstat (limited to 'series/trunk/includes/instadisc.php')
-rw-r--r--series/trunk/includes/instadisc.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/series/trunk/includes/instadisc.php b/series/trunk/includes/instadisc.php index b7b5ed0..18d40ef 100644 --- a/series/trunk/includes/instadisc.php +++ b/series/trunk/includes/instadisc.php
@@ -130,4 +130,29 @@ function instaDisc_getSubscriptionByID($id)
130 return $getsub3; 130 return $getsub3;
131} 131}
132 132
133function instaDisc_addUser($username, $password)
134{
135 $insuser = "INSERT INTO users (username,password) VALUES (\"" . mysql_real_escape_string($username) . "\",\"" . mysql_real_escape_string(md5($password)) . "\")";
136 $insuser2 = mysql_query($insuser);
137}
138
139function instaDisc_deleteUser($id)
140{
141 $deluser = "DELETE FROM users WHERE id = " . $id;
142 $deluser2 = mysql_query($deluser);
143}
144
145function instaDisc_getAllUsers()
146{
147 $getusers = "SELECT * FROM users";
148 $getusers2 = mysql_query($getusers);
149 $i=0;
150 while ($getusers3[$i] = mysql_fetch_array($getusers2))
151 {
152 $i++;
153 }
154
155 return $getusers3;
156}
157
133?> 158?>