-<?php\r
- if(!isset($_SESSION)){\r
- session_start();\r
- }\r
- include ('../lib/twitese.php');\r
- $t = getTwitter();\r
- $t->debug = true;\r
- if ( isset($_POST['action']) && isset($_POST['id']) ) {\r
- if ($_POST['action'] == 'create') {\r
- $result = $t->followList($_POST['id']);\r
- if ($result) echo 'success';\r
- else echo 'error';\r
- } else if ($_POST['action'] == 'destory') {\r
- $result = $t->unfollowList($_POST['id']);\r
- if ($result) echo 'success';\r
- else echo 'error';\r
- } \r
- }\r
- \r
-?>\r
-\r
+<?php
+ if(!isset($_SESSION)){
+ session_start();
+ }
+ include ('../lib/twitese.php');
+ $t = getTwitter();
+ $t->debug = true;
+ if ( isset($_POST['action']) && isset($_POST['id']) ) {
+ if ($_POST['action'] == 'create') {
+ $result = $t->followList($_POST['id']);
+ if ($result) echo 'success';
+ else echo 'error';
+ } else if ($_POST['action'] == 'destory') {
+ $result = $t->unfollowList($_POST['id']);
+ if ($result) echo 'success';
+ else echo 'error';
+ }
+ }
+
+?>
+