|
836
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
include_once '../common.php'; |
|
|
4 |
/** |
|
|
5 |
* Do we already have a valid Access Token or need to go get one? |
|
|
6 |
*/ |
|
|
7 |
|
|
|
8 |
if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) ) { |
|
|
9 |
$_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__); |
|
|
10 |
/** |
|
|
11 |
* Guess we need to go get one! |
|
|
12 |
*/ |
|
|
13 |
$token = $consumer->getRequestToken(); |
|
|
14 |
$_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token); |
|
|
15 |
|
|
|
16 |
/** |
|
|
17 |
* Now redirect user to Twitter site so they can log in and |
|
|
18 |
* approve our access |
|
|
19 |
*/ |
|
|
20 |
$consumer->redirect(); |
|
|
21 |
} |
|
|
22 |
|
|
|
23 |
?> |
|
|
24 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
|
25 |
"http://www.w3.org/TR/html4/strict.dtd"> |
|
|
26 |
|
|
|
27 |
<html lang="fr"> |
|
|
28 |
<head> |
|
|
29 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
|
30 |
<title>Avant-Première Hanna Arendt : Tweet Wall</title> |
|
|
31 |
<meta http-equiv="X-UA-Compatible" content="IE=9" /> |
|
|
32 |
|
|
|
33 |
<!-- CSS --> |
|
|
34 |
<link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/> |
|
|
35 |
|
|
|
36 |
<!-- JAVASCRIPT --> |
|
|
37 |
<script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
|
38 |
<script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script> |
|
|
39 |
<script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script> |
|
|
40 |
<script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script> |
|
|
41 |
<script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
|
|
42 |
|
|
|
43 |
<script type="text/javascript"> |
|
|
44 |
<?php if (isset($_GET['favuser'])) { |
|
|
45 |
echo 'var favUser="'.$_GET['favuser'].'";'; |
|
|
46 |
} |
|
|
47 |
?> |
|
|
48 |
</script> |
|
|
49 |
|
|
|
50 |
<script type="text/javascript" src="script.js"></script> |
|
|
51 |
<style type="text/css"> |
|
|
52 |
#visionplayer_1101 { |
|
|
53 |
float: left; margin: 5px; |
|
|
54 |
} |
|
|
55 |
#container { |
|
|
56 |
float: left; width: 452px; margin: 5px 0; overflow: hidden; |
|
|
57 |
} |
|
|
58 |
</style> |
|
|
59 |
|
|
|
60 |
</head> |
|
|
61 |
<body> |
|
|
62 |
<div id="visionplayer_1101"></div> |
|
|
63 |
|
|
|
64 |
<script type="text/javascript" src="http://embeddedplayer.visionip.tv/embed/1101?w=836&h=440" ></script> |
|
|
65 |
|
|
|
66 |
<div id="container"> |
|
|
67 |
|
|
|
68 |
<div class="barre"> |
|
|
69 |
<form id="recherche"> |
|
|
70 |
<input autocomplete="off" class="greyed" id="inp_q" value="Rechercher" /> |
|
|
71 |
<input id="inp_submit" type="submit" /> |
|
|
72 |
<input id="inp_reset" type="reset" /> |
|
|
73 |
<div id="time_controls"> |
|
|
74 |
<div id="time_legende"></div> |
|
|
75 |
<div id="time_scale"></div> |
|
|
76 |
<a href="#" id="time_zoomout"></a> |
|
|
77 |
<a href="#" id="time_zoomin"></a> |
|
|
78 |
</div> |
|
|
79 |
<div id="recherche_annot"> |
|
|
80 |
Rechercher par polémique : <span id="rech_list_annot"></span><br /> |
|
|
81 |
</div> |
|
|
82 |
</form> |
|
|
83 |
</div> |
|
|
84 |
|
|
|
85 |
<div id="tweetviz"> |
|
|
86 |
<ul id="tweetlist"></ul> |
|
|
87 |
<div id="timeline"></div> |
|
|
88 |
<div id="scrollcont"> |
|
|
89 |
<div id="scrollin"></div> |
|
|
90 |
</div> |
|
|
91 |
</div> |
|
|
92 |
</div> |
|
|
93 |
|
|
|
94 |
</div> |
|
|
95 |
</body> |
|
|
96 |
</html> |