search($query,$sinceid,$maxid);
$resultCount = count($answer->statuses);
if ($resultCount <= 0) {
echo "
No tweet to display.
";
} else {
include_once('lib/timeline_format.php');
$output = '';
foreach ($answer->statuses as $status) {
if (isset($status->retweeted_status)) {
$output .= format_retweet($status);
} else {
$output .= format_timeline($status,$t->username);
}
}
$output .= "
";
echo $output;
}
}
if (!loginStatus()) header('location: login.php');
?>