diff options
Diffstat (limited to 'series/trunk/includes')
-rw-r--r-- | series/trunk/includes/instadisc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/series/trunk/includes/instadisc.php b/series/trunk/includes/instadisc.php index fcf93e1..bfaaf7f 100644 --- a/series/trunk/includes/instadisc.php +++ b/series/trunk/includes/instadisc.php | |||
@@ -67,7 +67,7 @@ function instaDisc_changePassword($username, $password) | |||
67 | $setconfig3 = mysql_fetch_array($setconfig2); | 67 | $setconfig3 = mysql_fetch_array($setconfig2); |
68 | } | 68 | } |
69 | 69 | ||
70 | function instaDisc_initSubscription($username, $subscriptionID, $subscriptionURL, $subscriptionTitle, $subscriptionCategory, $subscriptionPersonal, $subscriptionPassword) | 70 | function instaDisc_initSubscription($username, $subscriptionID, $subscriptionURL, $subscriptionTitle, $subscriptionCategory, $subscriptionPassword) |
71 | { | 71 | { |
72 | $getuser = "SELECT * FROM users WHERE username = \"" . $username . "\""; | 72 | $getuser = "SELECT * FROM users WHERE username = \"" . $username . "\""; |
73 | $getuser2 = mysql_query($getuser); | 73 | $getuser2 = mysql_query($getuser); |
@@ -84,10 +84,10 @@ function instaDisc_initSubscription($username, $subscriptionID, $subscriptionURL | |||
84 | return false; | 84 | return false; |
85 | } | 85 | } |
86 | 86 | ||
87 | $setsub = "UPDATE subscriptions SET title = \"" . mysql_real_escape_string($subscriptionTitle) . "\", url = \"" . mysql_real_escape_string($subscriptionURL) . "\", category = \"" . mysql_real_escape_string($subscriptionCategory) . "\", personal = \"" . mysql_real_escape_string($subscriptionPersonal) . "\", password = \"" . mysql_real_escape_string($subscriptionPassword) . "\" WHERE identity = \"" . mysql_real_escape_string($subscriptionID) . "\""; | 87 | $setsub = "UPDATE subscriptions SET title = \"" . mysql_real_escape_string($subscriptionTitle) . "\", url = \"" . mysql_real_escape_string($subscriptionURL) . "\", category = \"" . mysql_real_escape_string($subscriptionCategory) . "\", password = \"" . mysql_real_escape_string($subscriptionPassword) . "\" WHERE identity = \"" . mysql_real_escape_string($subscriptionID) . "\""; |
88 | $setsub2 = mysql_query($setsub); | 88 | $setsub2 = mysql_query($setsub); |
89 | } else { | 89 | } else { |
90 | $inssub = "INSERT INTO subscriptions (identity, title, url, category, personal, username, password) VALUES (\"" . mysql_real_escape_string($subscriptionID) . "\",\"" . mysql_real_escape_string($subscriptionTitle) . "\",\"" . mysql_real_escape_string($subscriptionURL) . "\",\"" . mysql_real_escape_string($subscriptionCategory) . "\",\"" . mysql_real_escape_string($subscriptionPersonal) . "\",\"" . mysql_real_escape_string($username) . "\",\"" . mysql_real_escape_string($subscriptionPassword) . "\")"; | 90 | $inssub = "INSERT INTO subscriptions (identity, title, url, category, username, password) VALUES (\"" . mysql_real_escape_string($subscriptionID) . "\",\"" . mysql_real_escape_string($subscriptionTitle) . "\",\"" . mysql_real_escape_string($subscriptionURL) . "\",\"" . mysql_real_escape_string($subscriptionCategory) . "\",\"" . mysql_real_escape_string($username) . "\",\"" . mysql_real_escape_string($subscriptionPassword) . "\")"; |
91 | $inssub2 = mysql_query($inssub); | 91 | $inssub2 = mysql_query($inssub); |
92 | } | 92 | } |
93 | 93 | ||