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:42:03 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-09-14 16:42:03 +0000
commitd65c3cc7605c08d4c6fad5e244824c2554a1003b (patch)
tree2baf78216aa4ae5efc3edd165174f51a9674a973 /series/trunk/includes/instadisc.php
parente71ae5c0492257b6fd74443b9f3f8575a63f9228 (diff)
downloadinstadisc-d65c3cc7605c08d4c6fad5e244824c2554a1003b.tar.gz
instadisc-d65c3cc7605c08d4c6fad5e244824c2554a1003b.tar.bz2
instadisc-d65c3cc7605c08d4c6fad5e244824c2554a1003b.zip
Series: Removed 'personal' field
Refs #53
Diffstat (limited to 'series/trunk/includes/instadisc.php')
-rw-r--r--series/trunk/includes/instadisc.php6
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
70function instaDisc_initSubscription($username, $subscriptionID, $subscriptionURL, $subscriptionTitle, $subscriptionCategory, $subscriptionPersonal, $subscriptionPassword) 70function 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