about summary refs log tree commit diff stats
path: root/series/trunk/includes/instadisc.php
diff options
context:
space:
mode:
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?>