diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-03 20:37:29 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-03 20:37:29 +0000 |
commit | 96969d7023cf8703bf9c460e1d54d4e32a076987 (patch) | |
tree | a345ae52a430599216e781b5d01c7f4bdbc6d37f /central/trunk/instadisc.php | |
parent | c2b0db2df28651e0a9672f6f52a75648f6b3f1e9 (diff) | |
download | instadisc-96969d7023cf8703bf9c460e1d54d4e32a076987.tar.gz instadisc-96969d7023cf8703bf9c460e1d54d4e32a076987.tar.bz2 instadisc-96969d7023cf8703bf9c460e1d54d4e32a076987.zip |
Central: Fixed minor errors
Diffstat (limited to 'central/trunk/instadisc.php')
-rw-r--r-- | central/trunk/instadisc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/central/trunk/instadisc.php b/central/trunk/instadisc.php index fa2eb07..9883116 100644 --- a/central/trunk/instadisc.php +++ b/central/trunk/instadisc.php | |||
@@ -7,7 +7,7 @@ include_once('class.phpmailer.php'); | |||
7 | 7 | ||
8 | function instaDisc_checkVerification($username, $verification, $verificationID, $table, $nameField, $passField) | 8 | function instaDisc_checkVerification($username, $verification, $verificationID, $table, $nameField, $passField) |
9 | { | 9 | { |
10 | $getverid = "SELECT * FROM oldVerID WHERE name = \"" . mysql_real_escape_string($username) . "\" AND verID = " . $verificationID; | 10 | $getverid = "SELECT * FROM oldVerID WHERE username = \"" . mysql_real_escape_string($username) . "\" AND verID = " . $verificationID; |
11 | $getverid2 = mysql_query($getverid); | 11 | $getverid2 = mysql_query($getverid); |
12 | $getverid3 = mysql_fetch_array($getverid2); | 12 | $getverid3 = mysql_fetch_array($getverid2); |
13 | if ($getverid3['id'] != $verificationID) | 13 | if ($getverid3['id'] != $verificationID) |
@@ -152,7 +152,7 @@ function instaDisc_sendActivationEmail($username, $password, $email) | |||
152 | { | 152 | { |
153 | $penKey = md5(rand(1,65536)); | 153 | $penKey = md5(rand(1,65536)); |
154 | 154 | ||
155 | $inspending = "INSERT INTO pending (username, password, email, key) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string($password) . "\", \"" . mysql_real_escape_string($email) . "\", \"" . mysql_real_escape_string($penKey) . "\")"; | 155 | $inspending = "INSERT INTO pending (username, password, email, key) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string(md5($password)) . "\", \"" . mysql_real_escape_string($email) . "\", \"" . mysql_real_escape_string($penKey) . "\")"; |
156 | $inspending2 = mysql_query($inspending); | 156 | $inspending2 = mysql_query($inspending); |
157 | 157 | ||
158 | $mail = instaDisc_phpMailer(); | 158 | $mail = instaDisc_phpMailer(); |