|
1 <?php |
|
2 |
|
3 $config = array("rep" => basename(__DIR__)); |
|
4 |
|
5 include_once '../common.php'; |
|
6 |
|
7 /** |
|
8 * Do we already have a valid Access Token or need to go get one? |
|
9 */ |
|
10 |
|
11 if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) ) { |
|
12 |
|
13 $_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__); |
|
14 // Permanent redirection |
|
15 header("HTTP/1.1 301 Moved Permanently"); |
|
16 header("Location: client.php?CONNECT=true&rep=".basename(__DIR__)); |
|
17 exit(); |
|
18 |
|
19 } |
|
20 |
|
21 ?> |
|
22 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
23 "http://www.w3.org/TR/html4/strict.dtd"> |
|
24 |
|
25 <html lang="fr"> |
|
26 <head> |
|
27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
28 <title>Avant-Première Kaspar Hauser : Tweet Wall</title> |
|
29 <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 <link rel="stylesheet" href="style.css" type="text/css" media="screen, projection"/> |
|
34 |
|
35 <!-- JAVASCRIPT --> |
|
36 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
37 <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script> |
|
38 <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script> |
|
39 <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script> |
|
40 <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
|
41 |
|
42 <script type="text/javascript"> |
|
43 var favUser='<?php |
|
44 if (isset($_GET['favuser'])) { |
|
45 echo $_GET['favuser']; |
|
46 } else { |
|
47 echo 'AVPKaspar'; |
|
48 } |
|
49 ?>'; |
|
50 </script> |
|
51 |
|
52 <script type="text/javascript" src="script.js"></script> |
|
53 |
|
54 <style type="text/css"> |
|
55 #standalone-tweetviz { |
|
56 border: 1px solid #cccccc; margin: 20px; |
|
57 width: 492px; height: 590px; |
|
58 } |
|
59 </style> |
|
60 |
|
61 </head> |
|
62 <body> |
|
63 |
|
64 <div id="standalone-tweetviz"> |
|
65 <ul id="tweetlist"></ul> |
|
66 <div id="timeline"></div> |
|
67 <div id="scrollcont"> |
|
68 <div id="scrollin"></div> |
|
69 </div> |
|
70 </div> |
|
71 </body> |
|
72 </html> |