OSDN Git Service

embrj
[embrj/master.git] / ajax / updateFollowing.php
index 8465342..b8b7060 100644 (file)
@@ -1,19 +1,19 @@
-<?php\r
-       if(!isset($_SESSION)){\r
-               session_start();\r
-       }\r
-       include('../lib/twitese.php');\r
-\r
-       $t = getTwitter();\r
-       $MAX_COUNT = 36;\r
-       $friends = $t->friends(false, false, $MAX_COUNT)->users;\r
-       $html = '';\r
-       foreach($friends as $friend){\r
-               $html .= '<span class="vcard">\r
-                       <a class="url" title="'.$friend->name.'" rel="contact" href="../user.php?id='.$friend->screen_name.'">\r
-                       <img class="photo fn" width="24" height="24" src="'.getAvatar($friend->profile_image_url).'" alt="'.$friend->name.'" />\r
-                       </a>\r
-                       </span>';\r
-       }\r
-       echo $html;\r
-?>\r
+<?php
+       if(!isset($_SESSION)){
+               session_start();
+       }
+       include('../lib/twitese.php');
+
+       $t = getTwitter();
+       $skip_status = false;
+       $friends = $t->friends(false, false, $skip_status)->users;
+       $html = '';
+       foreach($friends as $friend){
+               $html .= '<span class="vcard">
+                       <a class="url" title="'.$friend->name.'" rel="contact" href="../user.php?id='.$friend->screen_name.'">
+                       <img class="photo fn" width="24" height="24" src="'.getAvatar($friend->profile_image_url).'" alt="'.$friend->name.'" />
+                       </a>
+                       </span>';
+       }
+       echo $html;
+?>