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