| author | Raphael Velt <raph.velt@gmail.com> |
| Wed, 14 Dec 2011 16:58:57 +0100 | |
| changeset 407 | 5ab44abc46df |
| parent 406 | 86b62b98fea7 |
| child 408 | 4141c5821c98 |
| permissions | -rwxr-xr-x |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
1 |
<?php |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
2 |
|
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
3 |
if(!isset($_REQUEST['rep'])) { |
|
291
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
4 |
include_once dirname(__FILE__).'/common.php'; |
|
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
5 |
header('Location: ' . URL_ROOT . "$C_default_rep/client.php" ); |
|
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
6 |
exit(); |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
7 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
8 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
9 |
$rep = $_REQUEST['rep']; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
10 |
include_once dirname(__FILE__).'/'.$rep.'/config.php'; |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
11 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
12 |
include_once 'common.php'; |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
13 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
14 |
/** |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
15 |
* Do we already have a valid Access Token or need to go get one? |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
16 |
*/ |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
17 |
if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) { |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
18 |
/** |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
19 |
* Guess we need to go get one! |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
20 |
*/ |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
21 |
$token = $consumer->getRequestToken(); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
22 |
$_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
23 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
24 |
/** |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
25 |
* Now redirect user to Twitter site so they can log in and |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
26 |
* approve our access |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
27 |
*/ |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
28 |
$consumer->redirect(); |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
29 |
} |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
30 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
31 |
|
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
32 |
$big_visual_url = URL_ROOT."/$rep/images/big_visuel_rsln_mb.jpg"; |
|
291
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
33 |
if($translate->_('config__client_visual') != 'config__client_visual' && $translate->_('config__client_visual') != null ) { |
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
34 |
$big_visual_url = URL_ROOT."$rep/".$translate->_('config__client_visual'); |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
35 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
36 |
|
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
37 |
$head_logo = URL_ROOT."$rep/images/head_logo.gif"; |
|
291
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
38 |
if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
39 |
$head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
40 |
} |
|
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
41 |
|
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
42 |
?> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
43 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
44 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
45 |
"http://www.w3.org/TR/html4/strict.dtd"> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
46 |
|
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
47 |
<html lang="<?php echo($actual); ?>"> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
48 |
<head> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
49 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
165
cf1c4bb7bd58
correct page title
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
163
diff
changeset
|
50 |
<title>Live Video and Annotation</title> |
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
51 |
<meta http-equiv="X-UA-Compatible" content="IE=8" /> |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
52 |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
53 |
<!-- FONT --> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
54 |
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
55 |
<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
56 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
57 |
<!-- CSS --> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
58 |
<link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
59 |
<link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/> |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
60 |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
61 |
<!-- JAVASCRIPT --> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
62 |
<script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
63 |
<script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
64 |
<script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
65 |
<script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
66 |
<script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
67 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
68 |
<script type="text/javascript" src="<?php echo(registry_url('twcx-standalone','js'))?>"></script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
69 |
<script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
70 |
<script type="text/javascript" src="config.js"></script> |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
71 |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
72 |
<script type="text/javascript"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
73 |
l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" } |
| 407 | 74 |
|
75 |
function add_grammar(value) { |
|
76 |
var _st = $('#status'), |
|
77 |
_val = _st.val(); |
|
78 |
_st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change(); |
|
79 |
} |
|
80 |
|
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
81 |
$(document).ready(function() { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
82 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
83 |
$("#accordeon li.acctitre").click(function() { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
84 |
$("#accordeon li.acctexte").slideUp(); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
85 |
$(this).next().dequeue().slideDown(); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
86 |
}) |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
87 |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
88 |
//$("txt").hide(); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
89 |
$(".loginbutton").click(function() { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
90 |
document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true"; |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
91 |
}); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
92 |
$("#IDENTIFIER").click(function() { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
93 |
document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true"; |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
94 |
}); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
95 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
96 |
// BUTTONS |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
97 |
$(".tweetButton").click(function() { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
98 |
add_grammar($(this).text()); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
99 |
}) |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
100 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
101 |
// SEND TWEETS |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
102 |
$("#sendTweet").click(function(){ |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
103 |
var MyStatus = $('#status').val(); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
104 |
$.post('tweet_ajax.php', {status:MyStatus} |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
105 |
,function(data) { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
106 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
107 |
if(data=="true"){ |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
108 |
$("#messageSuccess").show('fast'); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
109 |
$("#messageSuccess").delay(800).hide('slow'); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
110 |
$('#status').val("<?php echo($config['hashtag']); ?>"); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
111 |
$('#status').change(); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
112 |
}else{ |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
113 |
$("#error").text(data); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
114 |
$("#messageFailed").show('fast'); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
115 |
$("#messageFailed").delay(800).hide('slow'); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
116 |
} |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
117 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
118 |
}); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
119 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
120 |
}); |
|
229
74c9ddc3640b
a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
200
diff
changeset
|
121 |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
122 |
$("#status").bind("change keyup paste blur focus",function() { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
123 |
newval = 140-$("#status").val().length; |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
124 |
$('#tweetCounter').val(newval); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
125 |
if(newval < 0) { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
126 |
$('#tweetCounter').addClass("tweetCounterNegative"); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
127 |
} |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
128 |
else { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
129 |
$('#tweetCounter').removeClass("tweetCounterNegative"); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
130 |
} |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
131 |
}); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
132 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
133 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
134 |
$("#Program").fancybox({ |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
135 |
'width' : '75%', |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
136 |
'height' : '75%', |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
137 |
'autoScale' : false, |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
138 |
'transitionIn' : 'none', |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
139 |
'transitionOut' : 'none', |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
140 |
'type' : 'iframe' |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
141 |
}); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
142 |
|
|
291
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
143 |
|
|
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
144 |
}); |
|
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
145 |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
146 |
//<!-- LIMIT TEXTAREA: |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
147 |
function imposemax(obj) { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
148 |
obj.value = obj.value.substr(0,140); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
149 |
}; |
|
291
db1e6bfaa54e
add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
276
diff
changeset
|
150 |
// End --> |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
151 |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
152 |
</script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
153 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
154 |
<script type="text/javascript"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
155 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
156 |
var _gaq = _gaq || []; |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
157 |
_gaq.push(['_setAccount', 'UA-23581291-1']); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
158 |
_gaq.push(['_trackPageview']); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
159 |
_gaq.push(['_setAllowAnchor', true]); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
160 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
161 |
(function() { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
162 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
163 |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
164 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
165 |
})(); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
166 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
167 |
</script> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
168 |
|
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
169 |
</head> |
|
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
170 |
<body> |
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
171 |
<div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div> |
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
172 |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
173 |
<div id="container"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
174 |
<div id="colgauche"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
175 |
<div class="barre"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
176 |
<img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" /> |
| 407 | 177 |
<div id="minilogo"></div> |
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
178 |
<ul class="menu"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
179 |
<li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
180 |
<a href="<?php echo(URL_ROOT); ?>" class="menuLink"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
181 |
<?php print $translate->_("Accueil"); ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
182 |
</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
183 |
</li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
184 |
<li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
185 |
<a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
186 |
<?php print $translate->_("Programme"); ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
187 |
</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
188 |
</li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
189 |
<li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
190 |
<a href="../about.php" class="menuLink" > |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
191 |
<?php print $translate->_("A propos"); ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
192 |
</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
193 |
</li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
194 |
</ul> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
195 |
<ul class="menu"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
196 |
<li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
197 |
<a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" > |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
198 |
<img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
199 |
<?php print $translate->_("Japonais"); ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
200 |
</a></li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
201 |
<li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
202 |
<a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
203 |
<img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
204 |
<?php print $translate->_("Français"); ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
205 |
</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
206 |
</li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
207 |
<li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
208 |
<a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
209 |
<img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
210 |
<?php print $translate->_("Anglais"); ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
211 |
</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
212 |
</li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
213 |
</ul> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
214 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
215 |
<div id="twwWrap"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
216 |
<div id="tweetWriter"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
217 |
<h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
218 |
<form action="tweet.php" method="post" id="statusform" > |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
219 |
<?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
220 |
echo("<div class='loginbutton'><a href='".URL_ROOT."$rep/client.php?CONNECT=true' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a></div>"); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
221 |
} else { |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
222 |
echo("<textarea name='status' id='status' rows='3' cols='50' onkeypress='imposemax(this);'>$config[hashtag]</textarea>"); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
223 |
} |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
224 |
?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
225 |
<div id="messageSuccess" style="background-color:lightgreen; display: none;"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
226 |
<?php print $translate->_("Envoyé"); ?><br/><br/> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
227 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
228 |
<div id="messageFailed" style="background-color:red; display: none;"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
229 |
<?php print $translate->_("Erreur1"); ?><div id="error"> </div><br/><br/> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
230 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
231 |
<a href="#" id="sendTweet" > |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
232 |
<span><?php print $translate->_("Envoyer"); ?></span> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
233 |
</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
234 |
<?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
235 |
<input id="tweetCounter" value="<?php echo(140-strlen($config['hashtag']));?>" disabled="disabled" size="3"/> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
236 |
<?php endif;?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
237 |
<a id="positive" title="<?php echo $translate->_('Agree'); ?>" class="tweetButton">++</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
238 |
<a id="negative" title="<?php echo $translate->_('Disagree'); ?>" class="tweetButton">--</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
239 |
<a id="reference" title="<?php echo $translate->_('Reference'); ?>" class="tweetButton">==</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
240 |
<a id="question" title="<?php echo $translate->_('Question'); ?>" class="tweetButton"> ??</a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
241 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
242 |
<div style="clear: both;"></div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
243 |
</form> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
244 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
245 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
246 |
<div id="tweetviz"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
247 |
<div class="barre"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
248 |
<form id="recherche"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
249 |
<input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
250 |
<input id="inp_submit" type="submit" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
251 |
<input id="inp_reset" type="reset" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
252 |
<div id="time_controls"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
253 |
<div id="time_legende"></div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
254 |
<div id="time_scale"></div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
255 |
<a href="#" id="time_zoomout"></a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
256 |
<a href="#" id="time_zoomin"></a> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
257 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
258 |
<div id="recherche_annot"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
259 |
<?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
260 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
261 |
</form> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
262 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
263 |
<ul id="tweetlist"></ul> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
264 |
<div id="timeline"></div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
265 |
<div id="scrollcont"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
266 |
<div id="scrollin"></div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
267 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
268 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
269 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
270 |
<div id="coldroite"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
271 |
<div id="vlWrap"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
272 |
<div id="videoLivePlayer"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
273 |
<?php if ($config['islive']):?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
274 |
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="480" height="320"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
275 |
<param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
276 |
<param name="allowfullscreen" value="true" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
277 |
<param name="allowscriptaccess" value="always" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
278 |
<param name="wmode" value="transparent" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
279 |
<param name="flashvars" value="autostart=true&live=true&image=<?php echo($big_visual_url); ?>&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&controlbar=none&autostart=true" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
280 |
<embed |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
281 |
type="application/x-shockwave-flash" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
282 |
id="player2" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
283 |
name="player2" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
284 |
src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
285 |
width="480" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
286 |
height="320" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
287 |
allowscriptaccess="always" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
288 |
allowfullscreen="true" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
289 |
wmode="transparent" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
290 |
flashvars="autostart=true&live=true&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&image=<?php echo($big_visual_url); ?>&controlbar=none&autostart=true" |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
291 |
/> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
292 |
</object> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
293 |
<?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
294 |
<?php echo($config['islive_embed']); ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
295 |
<?php else: ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
296 |
<img src="<?php echo($big_visual_url); ?>" width="480" height="320" /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
297 |
<?php endif; ?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
298 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
299 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
300 |
<div id="out_fleche"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
301 |
<!-- <div id="in_fleche"></div> --> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
302 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
303 |
<ul id="accordeon"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
304 |
<li class="acctitre"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
305 |
<h3><?php echo($translate->_('config__title')); ?></h3> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
306 |
</li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
307 |
<li class="acctexte"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
308 |
<p><?php echo($translate->_('config__description')); ?></p> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
309 |
</li> |
| 407 | 310 |
<li class="acctitre" id="suggkw_title"> |
311 |
<h3><?php echo $translate->_('SuggestedKW'); ?></h3> |
|
312 |
</li> |
|
313 |
<li class="acctexte hidden" id="suggkw"></li> |
|
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
314 |
<li class="acctitre"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
315 |
<h3><?php echo $translate->_('Tagcloud'); ?></h3> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
316 |
</li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
317 |
<li class="acctexte hidden" id="motscles"></li> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
318 |
</ul> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
319 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
320 |
<div class="footer"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
321 |
<hr /> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
322 |
<?php |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
323 |
echo($translate->_('config__partenaires')); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
324 |
|
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
325 |
if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
326 |
echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>"); |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
327 |
} |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
328 |
?> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
329 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
330 |
</div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
331 |
<div id="hovertweet"> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
332 |
<div id="hovercontent"></div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
333 |
<div id="hoverarrow"></div> |
|
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
334 |
</div> |
| 407 | 335 |
<ul id="hoverkw"> |
336 |
<li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li> |
|
337 |
<li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li> |
|
338 |
</ul> |
|
|
133
9578d3ddce17
correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
122
diff
changeset
|
339 |
</body> |
|
406
86b62b98fea7
Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents:
357
diff
changeset
|
340 |
</html> |