-
Notifications
You must be signed in to change notification settings - Fork 2
/
a_reply.php
executable file
·55 lines (49 loc) · 1.76 KB
/
a_reply.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
<?php
include ('lib/twitese.php');
$title = "回复";
include ('inc/header.php');
if (!isLogin()) header('location: login.php');
$t = getTwitter();
if ( isset($_GET['id']) ) {
if (!testReferer()) exit();
$statusid = $_GET['id'];
$status = $t->showStatus($statusid);
if (!$status) {
header('location: error.php');
}
$_sentText = '@' . $status->user->screen_name . ' ';
$_sentInReplyTo = $statusid;
$user = $status->user;
$date = formatDate($status->created_at);
$text = formatText($status->text);
} else {
header('location: error.php');
}
?>
<div id="statuses">
<h2>回复<?php echo $user->screen_name ?></h2>
<?php include('inc/sentForm.php')?>
<div class="clear"></div>
<ol class="timeline">
<li>
<span class="status_author">
<a href="user.php?id=<?php echo $user->screen_name ?>" target="_blank"><img src="<?php echo $user->profile_image_url ?>" /></a>
</span>
<span class="status_body">
<span class="status_id"><?php echo $statusid ?></span>
<span class="status_word"><a class="user_name" href="user.php?id=<?php echo $user->screen_name ?>"><?php echo $user->screen_name ?></a> <?php echo $text ?></span>
<span class="status_info">
<?php if ($status->in_reply_to_status_id) {?><span class="in_reply_to"> <a href="status.php?id=<?php echo $status->in_reply_to_status_id_str ?>">对 <?php echo $status->in_reply_to_screen_name?> 的回复</a></span> <?php }?>
<span class="source">通过<?php echo $status->source ?></span>
<span class="date"><a href="https://twitter.com/<?php echo $user->screen_name ?>/status/<?php echo $statusid ?>" target="_blank"><?php echo $date ?></a></span>
</span>
</span>
</li>
</ol>
</div>
<?php
include ('inc/sidebar.php');
?>
<?php
include ('inc/footer.php');
?>