about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--central/trunk/includes/instadisc.php14
-rw-r--r--central/trunk/mansub.php2
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 }