about summary refs log tree commit diff stats
path: root/central/trunk/includes
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/includes')
-rw-r--r--central/trunk/includes/instadisc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index e6fc862..225814e 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php
@@ -11,7 +11,8 @@ function instaDisc_checkVerification($username, $verification, $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)
14 { $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; 14 {
15 $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\"";
15 $getitem2 = mysql_query($getitem); 16 $getitem2 = mysql_query($getitem);
16 $getitem3 = mysql_fetch_array($getitem2); 17 $getitem3 = mysql_fetch_array($getitem2);
17 if ($getitem3[$nameField] == $username) 18 if ($getitem3[$nameField] == $username)
@@ -136,7 +137,7 @@ function instaDisc_sendDatabase($cserver)
136 $client->send($msg); 137 $client->send($msg);
137} 138}
138 139
139function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID) 140function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID = 0)
140{ 141{
141 $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\""; 142 $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\"";
142 $getuser2 = mysql_query($getuser); 143 $getuser2 = mysql_query($getuser);