Exemple #1
0
	
	<?php 
$p = 1;
if (isset($_GET['p'])) {
    $p = (int) $_GET['p'];
    if ($p <= 0) {
        $p = 1;
    }
}
$statuses = $t->homeTimeline($p);
testResult($statuses);
$empty = count($statuses) == 0 ? true : false;
if ($empty) {
    tpEmpty();
} else {
    tpTimeline($statuses);
    $output = "<div id=\"pagination\">";
    if ($p > 1) {
        $output .= "<a href=\"index.php?p=" . ($p - 1) . "\">上一页</a>";
    }
    if (!$empty) {
        $output .= "<a href=\"index.php?p=" . ($p + 1) . "\">下一页</a>";
    }
    $output .= "</div>";
    echo $output;
}
?>
</div>

<?php 
$show_stop_refresh = true;
Exemple #2
0
    ?>
    </div>
    
	<div id="info_head">
	</div>
	<div class="clear"></div>
	
	<?php 
    $argArr = false;
    if ($type == 2) {
        $argArr = array('show_del' => true, 'show_rtid' => true, 'hide_ort' => true, 'hide_rt' => true, 'hide_replie' => true);
    }
    if ($type == 3) {
        $argArr = array('hide_ort' => true, 'hide_rt' => true, 'hide_replie' => true);
    }
    tpTimeline($statuses, $argArr);
    $output = "<div id=\"pagination\">";
    if ($p > 1) {
        $output .= "<a href=\"rt.php?t={$type}&p=" . ($p - 1) . "\">上一页</a>";
    }
    if (!$empty) {
        $output .= "<a href=\"rt.php?t={$type}&p=" . ($p + 1) . "\">下一页</a>";
    }
    $output .= "</div>";
    echo $output;
}
?>
</div>

<?php 
include 'inc/sidebar.php';
Exemple #3
0
	<?php 
$t = getTwitter();
$p = 1;
if (isset($_GET['p'])) {
    $p = (int) $_GET['p'];
    if ($p <= 0) {
        $p = 1;
    }
}
$statuses = $t->userTimeline($p);
testResult($statuses);
$empty = count($statuses) == 0 ? true : false;
if ($empty) {
    tpEmpty();
} else {
    tpTimeline($statuses, array("show_del" => true, "hide_rt" => true, "hide_replie" => true, "hide_ort" => true));
    $output = "<div id=\"pagination\">";
    if ($p > 1) {
        $output .= "<a href=\"profile.php?p=" . ($p - 1) . "\">上一页</a>";
    }
    if (!$empty) {
        $output .= "<a href=\"profile.php?p=" . ($p + 1) . "\">下一页</a>";
    }
    $output .= "</div>";
    echo $output;
}
?>
</div>

<?php 
include 'inc/sidebar.php';
Exemple #4
0
	<?php 
$t = getTwitter();
$p = 1;
if (isset($_GET['p'])) {
    $p = (int) $_GET['p'];
    if ($p <= 0) {
        $p = 1;
    }
}
$statuses = $t->replies($p);
testResult($statuses);
$empty = count($statuses) == 0 ? true : false;
if ($empty) {
    tpEmpty();
} else {
    tpTimeline($statuses, array("is_mention" => true));
    $output = "<div id=\"pagination\">";
    if ($p > 1) {
        $output .= "<a href=\"replies.php?p=" . ($p - 1) . "\">上一页</a>";
    }
    if (!$empty) {
        $output .= "<a href=\"replies.php?p=" . ($p + 1) . "\">下一页</a>";
    }
    $output .= "</div>";
    echo $output;
}
?>
</div>

<?php 
include 'inc/sidebar.php';
Exemple #5
0
	<?php 
$t = getTwitter();
$p = 1;
if (isset($_GET['p'])) {
    $p = (int) $_GET['p'];
    if ($p <= 0) {
        $p = 1;
    }
}
$statuses = $t->getFavorites($p);
testResult($statuses);
$empty = count($statuses) == 0 ? true : false;
if ($empty) {
    tpEmpty();
} else {
    tpTimeline($statuses, array('show_del' => true, 'hide_favor' => true));
    $output = "<div id=\"pagination\">";
    if ($p > 1) {
        $output .= "<a href=\"favor.php?p=" . ($p - 1) . "\">上一页</a>";
    }
    if (!$empty) {
        $output .= "<a href=\"favor.php?p=" . ($p + 1) . "\">下一页</a>";
    }
    $output .= "</div>";
    echo $output;
}
?>
</div>

<?php 
include 'inc/sidebar.php';
Exemple #6
0
$t = getTwitter();
$statuses = $t->homeTimeline();
testResult($statuses);
$empty = count($statuses) == 0 ? true : false;
if ($empty) {
    echo "<div id=\"allTimeline\" class=\"empty\">此页无消息</div>";
} else {
    tpTimeline($statuses, array("id" => 'allTimeline'));
}
$statuses = $t->replies();
testResult($statuses);
$empty = count($statuses) == 0 ? true : false;
if ($empty) {
    echo "<div id=\"allReplies\" class=\"empty\">此页无消息</div>";
} else {
    tpTimeline($statuses, array("is_mention" => true, "id" => 'allReplies'));
}
$messages = $t->directMessages();
testResult($statuses);
$empty = count($messages) == 0 ? true : false;
if ($empty) {
    echo "<div id=\"allMessage\" class=\"empty\">此页无消息</div>";
} else {
    $output = '<div id="allMessage">';
    $output .= '<ol class="timeline">';
    foreach ($messages as $message) {
        $name = $message->sender_screen_name;
        $imgurl = $message->sender->profile_image_url;
        $date = formatDate($message->created_at);
        $text = formatText($message->text);
        $output .= "\r\n\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<span class=\"status_author\">\r\n\t\t\t\t\t\t\t<a href=\"user.php?id={$name}\" target=\"_blank\"><img src=\"{$imgurl}\" title=\"{$name}\" /></a>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t<span class=\"status_body\">\r\n\t\t\t\t\t\t\t<span class=\"status_id\">{$message->id}</span>\r\n\t\t\t\t\t\t\t<span class=\"status_word\"><a class=\"user_name\" href=\"user.php?id={$name}\">{$name}</a> {$text} </span>\r\n\t\t\t\t\t\t\t<span class=\"status_info\">\r\n\t\t\t\t\t\t\t\t<a class=\"msg_replie_btn\" href=\"message.php?id={$name}\">回复</a>\r\n\t\t\t\t\t\t\t\t<span class=\"date\">{$date}</span>\r\n\t\t\t\t\t\t    </span>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t</li>\r\n\t\t\t\t";