-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_profile.php
77 lines (77 loc) · 3.74 KB
/
user_profile.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
66
67
68
69
70
71
72
73
74
75
76
77
<?php
require 'class.php';
$stopwatch = new Timer();
try {
$twitter = new Twitter();
} catch (Exception $e) {
//ログインしてなかったときの処理
header('Location: ../');
end;
}
if ($_GET['screen_name']) {
$status = $twitter->GetStatus('', $_GET);
$twitter->UserProfile($_GET['screen_name']);
if (isset($_GET['debug'])) {
echo '<pre>';
print_r($twitter);
echo '</pre>';
}
} else {
header('Location: ../');
}
?>
<!DOCTYPE html>
<html>
<head>
<?php echo $page->Header() ?>
</head>
<body>
<div id="header">
<?php echo Page::MenuBar() ?>
<form name="post" method="post" action="/send.php">
<input type="hidden" name="id">
<textarea name="tweet" onkeydown="strCount()" onChange="strCount()"></textarea>
<input type="submit" class="button"<?php echo Page::tweetByLojax() ?> value="ツイート"> <span id="strcount"> </span>
</form>
<div class="profile">
<div class="icon"><img src="<?php echo $twitter->profile->profile_image_url ?>" class="icon"></div>
<div class="text">
<span style="font-size:x-large"><?php echo $twitter->profile->screen_name . ' / ' . $twitter->profile->name ?> </span><?php echo $twitter->profile->location ?><br>
ツイート: <?php echo $twitter->profile->statuses_count ?> フォロー: <a href="/friends/<?php echo $twitter->profile->screen_name ?>/"><?php echo $twitter->profile->friends_count ?></a> フォロワー: <a href="/followers/<?php echo $twitter->profile->screen_name ?>/"><?php echo $twitter->profile->followers_count ?></a> <?php echo $twitter->Follow($twitter->profile->id, $twitter->profile->following) ?> <a href="/lists/<?php echo $twitter->profile->screen_name ?>">リスト</a><br>
<?php echo Twitter::StatusProcessing($twitter->profile->description) ?>
</div>
<div style="clear:both"></div>
</div>
</div>
<?php foreach ($status as $line) { ?>
<div class="normal">
<?php echo $page->IconStyle($line->user->profile_image_url, $line->user->protected) ?>
<div class="<?php echo $page->textStyle() ?>">
<a href="/<?php echo $line->user->screen_name ?>/"><?php echo $line->user->screen_name ?></a> <span class="small"><?php echo $line->user->name ?> <?php echo $line->source ?>から</span><br>
<?php echo Twitter::StatusProcessing($line->text) ?>
</div>
<div class="buttonbar">
<span class="small"><?php echo Twitter::RetweetStatus($line->retweet_count, $line->retweeted_user) ?><?php echo $twitter->time($line->created_at) ?></span>
<?php echo $twitter->ToolBar($line->user->screen_name, $line->favorited, $line->id, $line->text, $line->in_reply_to_status_id, $line->user->protected) ?>
</div>
</div>
<?php } ?>
<div id="footer">
<div style="float:left">
<?php echo Page::Navi($_GET['page'], "") ?>
</div>
<div class="go_top">
<a href="#menu">トップへ戻る</a>
</div>
<div style="text-align:right">
<a href="/help.html">HELP</a>
<a href="/kumobbs/" target="blank">掲示板</a>
<?php echo page::showStatus(); ?> <?php echo $stopwatch->Show() ?> <a href="/?logout">logout</a>
</div>
</div>
<?php
$googleAnalyticsImageUrl = googleAnalyticsGetImageUrl();
echo '<img src="' . $googleAnalyticsImageUrl . '" />';
?>
</body>
</html>