示例#1
0
 switch ($_REQUEST['d']) {
     case "tweets-all":
         $s->assign('header', 'All Tweets');
         $s->assign('all_tweets', $td->getAllTweets($cfg->twitter_user_id, 15));
         break;
     case "tweets-mostreplies":
         $s->assign('header', 'Most Replied-To Tweets');
         $s->assign('most_replied_to_tweets', $td->getMostRepliedToTweets($cfg->twitter_user_id, 15));
         break;
     case "tweets-mostretweeted":
         $s->assign('header', 'Most Retweeted');
         $s->assign('most_retweeted', $td->getMostRetweetedTweets($cfg->twitter_user_id, 15));
         break;
     case "tweets-convo":
         $s->assign('header', 'Conversations');
         $s->assign('author_replies', $td->getTweetsAuthorHasRepliedTo($cfg->twitter_user_id, 15));
         break;
     case "mentions-all":
         $s->assign('header', 'All Mentions');
         $s->assign('description', 'Any tweet that mentions you.');
         $s->assign('all_mentions', $td->getAllMentions($cfg->twitter_username, 15));
         $s->assign('all_tweets', $td->getAllTweets($cfg->twitter_user_id, 15));
         break;
     case "mentions-allreplies":
         $s->assign('header', 'Replies');
         $s->assign('description', 'Tweets that directly reply to you (i.e., start with your name).');
         $s->assign('all_replies', $td->getAllReplies($cfg->twitter_user_id, 15));
         break;
     case "mentions-orphan":
         $s->assign('header', 'Not Replies or Retweets');
         $s->assign('description', 'Mentions that are not associated with a specific tweet.');