about summary refs log tree commit diff stats
path: root/central/trunk/includes
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-26 20:56:53 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-26 20:56:53 +0000
commitad9f73b06a36a832eb88358165fa1f3644581381 (patch)
tree2c9847d01f1251704069e30c5351fbbf9c50f1f4 /central/trunk/includes
parentd633dae00fc9ce954c958e2714e4a43c40b85648 (diff)
downloadinstadisc-ad9f73b06a36a832eb88358165fa1f3644581381.tar.gz
instadisc-ad9f73b06a36a832eb88358165fa1f3644581381.tar.bz2
instadisc-ad9f73b06a36a832eb88358165fa1f3644581381.zip
Central: Fixed a few typos/errors
[15]. Refs #25
Diffstat (limited to 'central/trunk/includes')
-rw-r--r--central/trunk/includes/instadisc.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index 6b3d630..d00893b 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php
@@ -301,24 +301,24 @@ function instaDisc_addSubscription($username, $url)
301 $page_data = curl_exec($c); 301 $page_data = curl_exec($c);
302 curl_close($c); 302 curl_close($c);
303 303
304 $headers = split("\n", $page_date); 304 $headers = split("\n", $page_data);
305 foreach ($headers as $name => $value) 305 foreach ($headers as $name => $value)
306 { 306 {
307 $header = split(": ", $value); 307 $header = split(": ", $value);
308 $headerMap[$header[0]] = $header[1]; 308 $headerMap[$header[0]] = $header[1];
309 } 309 }
310 310
311 if (isset($header['Subscription'])) 311 if (isset($headerMap['Subscription']))
312 { 312 {
313 if (isset($header['Title'])) 313 if (isset($headerMap['Title']))
314 { 314 {
315 if (isset($header['Category'])) 315 if (isset($headerMap['Category']))
316 { 316 {
317 if (isset($header['Key'])) 317 if (isset($headerMap['Key']))
318 { 318 {
319 if ($header['Key'] == $getcode3['code']) 319 if ($headerMap['Key'] == $getcode3['code'])
320 { 320 {
321 $inssub = "INSERT INTO subscriptions (username,url,owner,category) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string($header['Subscription']) . "\", \"true\", \"" . mysql_real_escape_string($header['Category']) . "\")"; 321 $inssub = "INSERT INTO subscriptions (username,url,owner,category) VALUES (\"" . mysql_real_escape_string($username) . "\", \"" . mysql_real_escape_string($headerMap['Subscription']) . "\", \"true\", \"" . mysql_real_escape_string($headerMap['Category']) . "\")";
322 $inssub2 = mysql_query($inssub); 322 $inssub2 = mysql_query($inssub);
323 323
324 $delcode = "DELETE FROM pending2 WHERE username = \"" . mysql_real_escape_string($username) . "\" AND url = \"" . mysql_real_escape_string($url) . "\""; 324 $delcode = "DELETE FROM pending2 WHERE username = \"" . mysql_real_escape_string($username) . "\" AND url = \"" . mysql_real_escape_string($url) . "\"";