diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-26 20:56:53 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-26 20:56:53 +0000 |
commit | ad9f73b06a36a832eb88358165fa1f3644581381 (patch) | |
tree | 2c9847d01f1251704069e30c5351fbbf9c50f1f4 /central/trunk | |
parent | d633dae00fc9ce954c958e2714e4a43c40b85648 (diff) | |
download | instadisc-ad9f73b06a36a832eb88358165fa1f3644581381.tar.gz instadisc-ad9f73b06a36a832eb88358165fa1f3644581381.tar.bz2 instadisc-ad9f73b06a36a832eb88358165fa1f3644581381.zip |
Central: Fixed a few typos/errors
[15]. Refs #25
Diffstat (limited to 'central/trunk')
-rw-r--r-- | central/trunk/includes/instadisc.php | 14 | ||||
-rw-r--r-- | central/trunk/mansub.php | 2 |
2 files changed, 8 insertions, 8 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) . "\""; |
diff --git a/central/trunk/mansub.php b/central/trunk/mansub.php index 3a2e2d0..b36966f 100644 --- a/central/trunk/mansub.php +++ b/central/trunk/mansub.php | |||
@@ -14,7 +14,7 @@ if (isset($_SESSION['username'])) | |||
14 | $i=0; | 14 | $i=0; |
15 | for ($i=0;$i<$subs['size'];$i++) | 15 | for ($i=0;$i<$subs['size'];$i++) |
16 | { | 16 | { |
17 | $template->adds_block('SUBSCRIPTION', array( 'URL' => $subs[$i], | 17 | $template->adds_block('SUBSCRIPTIONS', array( 'URL' => $subs[$i], |
18 | 'ID' => $i, | 18 | 'ID' => $i, |
19 | 'EVEN' => (($i % 2 == 0) ? " CLASS=\"even\"" : ""))); | 19 | 'EVEN' => (($i % 2 == 0) ? " CLASS=\"even\"" : ""))); |
20 | } | 20 | } |