X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=all.php;h=ce2175282ff51a2e1348a0519364c55df58bae74;hb=a983a08d1d19667bdd84d8a3cd2bdf08707ece51;hp=4119075706ca9c71d95efde39212e39025ba13d2;hpb=5bdd277991f559ea403ccc607ad0f541ad6f5f9b;p=embrj%2Fmaster.git diff --git a/all.php b/all.php index 4119075..ce21752 100644 --- a/all.php +++ b/all.php @@ -1,212 +1,33 @@ - - - -
- -

What's happening?

- 140 - -
- Upload Image -

Powered by Img.ly

- - - -
- -
-Filter Timeline -

Seperate keywords with comma. [eg: twitter,hello] Also usernames without @

- - - - - -
- -
-
- -
- -
- -
-Translation Settings -

Translate tweets into - -

-

Translate my tweets into - -

- -
- -
- Restore - - - -
- - Shorten URL - - Shorten Tweet - - Translate - -Image'; - } -?> - Filter - - Sogou - - Symbols - - Restore - - Pause - - Sweep - - Refresh -
- -veverify(); - if ($current_user === false) { - header('location: error.php'); - } - $empty = count($current_user) == 0? true: false; - if ($empty) { - echo "
- Latest: - - - What's shaking? - What's shaking? - - - - -
"; - } else { - $status = $current_user->status; - refreshProfile($t, $current_user); - $date = formatDate($status->created_at); - $text = formatText($status->text); - $output = " -
- Latest: - - - " . $text . " - " . $text . " - id\" target=\"_blank\">" . $date . " - id\" target=\"_blank\">" . $date . " - - -
- "; - echo $output; - } + -
- Tweet -
- -
- Updates - Replies - Messages + + + - - - - -
friendsTimeline(); - $retweetes = $t->retweeted_to_me(); + $statuses = $t->homeTimeline(); if ($statuses === false) { - header('location: error.php'); + header('location: error.php');exit(); } $empty = count($statuses) == 0? true: false; if ($empty) { echo "
No tweet to display
"; } else { $output = '
    '; - if(count($retweetes) > 0){ - $statuses = sort_timeline($statuses, $retweetes); - } - $MAX_STATUSES = 20; - $status_count = 0; foreach ($statuses as $status) { - if($count++ >= $MAX_STATUSES){ - break; - } - if($status->retweeted_status){ + if(isset($status->retweeted_status)){ $output .= format_retweet($status); }else{ $output .= format_timeline($status, $t->username); @@ -220,7 +41,7 @@ $statuses = $t->replies(); if ($statuses === false) { - header('location: error.php'); + header('location: error.php');exit(); } $empty = count($statuses) == 0? true: false; if ($empty) { @@ -240,34 +61,16 @@ $messages = $t->directMessages(); if ($messages === false) { - header('location: error.php'); + header('location: error.php');exit(); } $empty = count($messages) == 0? true: false; if ($empty) { - echo ""; + echo "
    No tweet to display
    "; } else { $output = '
      '; foreach ($messages as $message) { - $name = $message->sender_screen_name; - $imgurl = getAvatar($message->sender->profile_image_url); - $date = formatDate($message->created_at); - $text = formatText($message->text); - - $output .= "
    1. - ".initShortcutMenu($message->sender)." - - - - $message->id - $name $text "; - if ($shorturl = unshortUrl($text)) $output .= "

      URL

      $shorturl
      "; - $output .= "Replyid&t=m\">Delete - - $date - -
      -
    2. "; + $output .= format_message($message); } $output .= "
    "; @@ -278,8 +81,5 @@ - -