getFavorites($userid, $since_id, $max_id); } else { $statuses = $t->userTimeline($userid, $since_id, $max_id); } if ($statuses === false) { header('location: error.php');exit; } if ($t->http_code == 429) { $apiout = true; } else { $aptout = false; } $user = $t->showUser($userid); if (strcasecmp($userid,$t->username) == 0) {header('location: profile.php');exit();} $isProtected = ($statuses == 'protected') || ($statuses->error == 'Not authorized'); $r = getRelationship($user->screen_name); $isFriend = $r == 2 || $r == 1; $isFollower = $r == 3 || $r == 1; $isBlocked = $r == 4; if (!$isProtected) { $userinfo = array(); $userinfo['name'] = $user->name; $userinfo['screen_name'] = $user->screen_name; $userinfo['friends_count'] = $user->friends_count; $userinfo['statuses_count'] = $user->statuses_count; $userinfo['followers_count'] = $user->followers_count; $userinfo['url'] = $user->entities->url->urls[0]->expanded_url ? $user->entities->url->urls[0]->expanded_url : $user->url; $userinfo['description'] = formatText($user->description); $userinfo['location'] = $user->location; $userinfo['date_joined'] = date('Y-m-d', format_time($user->created_at)); //from dabr $userinfo['protected'] = $user->url; $userinfo['id'] = $user->id; $userinfo['image_url'] = getAvatar($user->profile_image_url); ?>
Following me
No tweet to display.
"; } else if ($apiout) { echo "
API quota is used out, please wait for a moment before next refresh.
"; } else { $output = '
    '; $firstid = false; $lastid = false; foreach ($statuses as $status) { if (isset($status->retweeted_status)) { $output .= format_retweet($status); } else { $output .= format_timeline($status,$t->username); } if(!$firstid) $firstid = $status->id_str; $lastid = $status->id_str; } $lastid = bcsub($lastid, "1"); $output .= "
"; if ($_GET['fav'] == true) { $output .= "Back"; $output .= "Next"; } else { $output .= "Back"; $output .= "Next"; } $output .= "
"; echo $output; } }//end of if(!$isProtected) else { ?>
Unfollow Follow Send DM Unblock Block Reply Hide @
This user has been protected. You ought to follow before viewing this page.