-
Notifications
You must be signed in to change notification settings - Fork 2
/
replies.php
executable file
·65 lines (54 loc) · 1.23 KB
/
replies.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
include ('lib/twitese.php');
$title = "@回复我的";
include ('inc/header.php');
if (!isLogin()) header('location: login.php');
?>
<script type="text/javascript">
$(function(){
formFunc();
timelineFocus();
$(".rt_btn").live("click", function(e){
e.preventDefault();
onRT($(this));
});
$(".replie_btn").live("click", function(e){
e.preventDefault();
onReplie($(this));
});
$(".favor_btn").live("click", function(e){
e.preventDefault();
onFavor($(this));
});
});
</script>
<div id="statuses">
<?php include('inc/sentForm.php')?>
<?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');
?>
<?php
include ('inc/footer.php');
?>