| author | ymh <ymh.work@gmail.com> |
| Mon, 20 Nov 2023 18:10:58 +0100 | |
| changeset 1557 | 7c67caaafdeb |
| parent 950 | 8320167038ca |
| permissions | -rw-r--r-- |
|
944
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
1 |
<?php |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
2 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
3 |
$config = array("rep" => basename(__DIR__)); |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
4 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
5 |
include_once '../common.php'; |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
6 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
7 |
/** |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
8 |
* Do we already have a valid Access Token or need to go get one? |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
9 |
*/ |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
10 |
|
| 1557 | 11 |
if (!isset($_SESSION['SOCIAL_ACCESS_TOKEN']) ) { |
|
944
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
12 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
13 |
$_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__); |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
14 |
// Permanent redirection |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
15 |
header("HTTP/1.1 301 Moved Permanently"); |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
16 |
header("Location: client.php?CONNECT=true&rep=".basename(__DIR__)); |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
17 |
exit(); |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
18 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
19 |
} |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
20 |
|
|
950
8320167038ca
Changed twitter user for cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
948
diff
changeset
|
21 |
include 'favuser.php'; |
|
8320167038ca
Changed twitter user for cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
948
diff
changeset
|
22 |
|
|
944
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
23 |
?> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
24 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
25 |
"http://www.w3.org/TR/html4/strict.dtd"> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
26 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
27 |
<html lang="fr"> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
28 |
<head> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
29 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 948 | 30 |
<title>Avant-Première Ne m'oublie pas : Tweet Wall</title> |
|
944
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
31 |
<meta http-equiv="X-UA-Compatible" content="IE=9" /> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
32 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
33 |
<!-- CSS --> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
34 |
<link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
35 |
<link rel="stylesheet" href="style.css" type="text/css" media="screen, projection"/> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
36 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
37 |
<!-- JAVASCRIPT --> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
38 |
<script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
39 |
<script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
40 |
<script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
41 |
<script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
42 |
<script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
43 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
44 |
<script type="text/javascript"> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
45 |
var favUser='<?php |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
46 |
if (isset($_GET['favuser'])) { |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
47 |
echo $_GET['favuser']; |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
48 |
} else { |
|
950
8320167038ca
Changed twitter user for cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
948
diff
changeset
|
49 |
echo $favuser; |
|
944
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
50 |
} |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
51 |
?>'; |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
52 |
</script> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
53 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
54 |
<script type="text/javascript" src="script.js"></script> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
55 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
56 |
<style type="text/css"> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
57 |
#standalone-tweetviz { |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
58 |
border: 1px solid #cccccc; margin: 20px; |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
59 |
width: 492px; height: 590px; |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
60 |
} |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
61 |
</style> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
62 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
63 |
</head> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
64 |
<body> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
65 |
|
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
66 |
<div id="standalone-tweetviz"> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
67 |
<ul id="tweetlist"></ul> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
68 |
<div id="timeline"></div> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
69 |
<div id="scrollcont"> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
70 |
<div id="scrollin"></div> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
71 |
</div> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
72 |
</div> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
73 |
</body> |
|
56ab9478ee64
Standalone widget for Cineconf
Raphael Velt <raph.velt@gmail.com>
parents:
diff
changeset
|
74 |
</html> |