web/client.php
author Raphael Velt <raph.velt@gmail.com>
Wed, 14 Dec 2011 18:22:27 +0100
changeset 408 4141c5821c98
parent 407 5ab44abc46df
child 415 593250f3a286
permissions -rwxr-xr-x
Improvements on PT live client
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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>
408
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
    51
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
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
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
    74
    
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
    75
    function add_grammar(value) {
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
    76
        var _st = $('#status'),
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
    77
            _val = _st.val();
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
    78
        _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
    79
    }
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
    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() {
408
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
    84
            $("#accordeon li.acctexte").slideToggle();
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    85
        })
133
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
    86
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    87
            //$("txt").hide();
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    88
            $(".loginbutton").click(function() {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    89
                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
    90
            });
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    91
            $("#IDENTIFIER").click(function() {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    92
                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
    93
            });
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
            // BUTTONS
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    96
            $(".tweetButton").click(function() {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    97
                add_grammar($(this).text());
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    98
            })
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
            // SEND TWEETS
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   101
            $("#sendTweet").click(function(){
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   102
                var MyStatus = $('#status').val();
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   103
                $.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
   104
                ,function(data) {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   105
                
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   106
                    if(data=="true"){
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   107
                        $("#messageSuccess").show('fast');
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   108
                        $("#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
   109
                        $('#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
   110
                        $('#status').change();
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   111
                    }else{
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   112
                        $("#error").text(data);
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   113
                        $("#messageFailed").show('fast');
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   114
                        $("#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
   115
                    }
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
            });
229
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 200
diff changeset
   120
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   121
            $("#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
   122
                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
   123
                $('#tweetCounter').val(newval);
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   124
                if(newval < 0) {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   125
                    $('#tweetCounter').addClass("tweetCounterNegative");
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   126
                }
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   127
                else {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   128
                    $('#tweetCounter').removeClass("tweetCounterNegative");
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   129
                }
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
            $("#Program").fancybox({
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   134
                'width'             : '75%',
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   135
                'height'            : '75%',
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   136
                'autoScale'         : false,
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   137
                'transitionIn'      : 'none',
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   138
                'transitionOut'     : 'none',
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   139
                'type'              : 'iframe'
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   140
            });
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   141
            
291
db1e6bfaa54e add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 276
diff changeset
   142
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
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   145
        //<!-- LIMIT TEXTAREA:
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   146
        function imposemax(obj) {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   147
            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
   148
        };
291
db1e6bfaa54e add translation for config data
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 276
diff changeset
   149
        // End -->
133
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
   150
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   151
    </script>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   152
    
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   153
    <script type="text/javascript">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   154
    
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   155
      var _gaq = _gaq || [];
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   156
      _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
   157
      _gaq.push(['_trackPageview']);
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   158
      _gaq.push(['_setAllowAnchor', true]);
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   159
    
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   160
      (function() {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   161
        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
   162
        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
   163
        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
   164
      })();
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
    </script>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   167
    
133
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
   168
  </head>
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
   169
  <body>
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   170
    <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
   171
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   172
        <div id="container">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   173
            <div id="colgauche">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   174
                <div class="barre">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   175
                    <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
407
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
   176
                    <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
   177
                    <ul class="menu">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   178
                        <li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   179
                            <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
   180
                                <?php print $translate->_("Accueil"); ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   181
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   182
                        </li>
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
                            <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
   185
                                <?php print $translate->_("Programme"); ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   186
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   187
                        </li>
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
                            <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
   190
                                <?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
   191
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   192
                        </li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   193
                    </ul>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   194
                    <ul class="menu">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   195
                        <li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   196
                            <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
   197
                                <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
   198
                                <?php print $translate->_("Japonais"); ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   199
                            </a></li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   200
                        <li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   201
                            <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
   202
                                <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
   203
                                <?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
   204
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   205
                        </li>
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
                            <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
   208
                                <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
   209
                                <?php print $translate->_("Anglais"); ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   210
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   211
                        </li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   212
                    </ul>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   213
                </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   214
                <div id="twwWrap">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   215
                    <div id="tweetWriter">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   216
                        <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
   217
                        <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
   218
                            <?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
   219
                                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
   220
                            } else {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   221
                                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
   222
                            }
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
                            <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
   225
                                <?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
   226
                            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   227
                            <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
   228
                                <?php print $translate->_("Erreur1"); ?><div id="error">&nbsp;</div><br/><br/>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   229
                            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   230
                            <a href="#"  id="sendTweet" >
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   231
                                <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
   232
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   233
                            <?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
   234
                            <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
   235
                            <?php endif;?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   236
                            <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
   237
                            <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
   238
                            <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
   239
                            <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
   240
                            
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   241
                            <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
   242
                        </form>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   243
                    </div>
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 id="tweetviz">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   246
                    <div class="barre">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   247
                        <form id="recherche">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   248
                            <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
   249
                            <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
   250
                            <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
   251
                            <div id="time_controls">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   252
                                <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
   253
                                <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
   254
                                <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
   255
                                <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
   256
                            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   257
                            <div id="recherche_annot">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   258
                                <?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
   259
                            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   260
                        </form>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   261
                    </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   262
                    <ul id="tweetlist"></ul>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   263
                    <div id="timeline"></div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   264
                    <div id="scrollcont">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   265
                        <div id="scrollin"></div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   266
                    </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 id="coldroite">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   270
                <div id="vlWrap">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   271
                    <div id="videoLivePlayer">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   272
                    <?php if ($config['islive']):?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   273
                        <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
   274
                            <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
   275
                            <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
   276
                            <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
   277
                            <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
   278
                            <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
   279
                            <embed
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   280
                                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
   281
                                id="player2"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   282
                                name="player2"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   283
                                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
   284
                                width="480"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   285
                                height="320"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   286
                                allowscriptaccess="always"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   287
                                allowfullscreen="true"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   288
                                wmode="transparent"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   289
                                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
   290
                            />
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   291
                        </object>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   292
                    <?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
   293
                        <?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
   294
                    <?php else: ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   295
                        <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
   296
                    <?php endif; ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   297
                    </div>
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 id="out_fleche">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   300
                <!--    <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
   301
                </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   302
                <ul id="accordeon">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   303
                    <li class="acctitre">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   304
                        <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
   305
                    </li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   306
                    <li class="acctexte">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   307
                        <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
   308
                    </li>
408
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   309
                    <li class="acctitre">
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   310
                        <h3><?php echo($translate->_('keywords')); ?></h3>
407
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
   311
                    </li>
408
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   312
                    <li class="acctexte hidden">
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   313
                        <div class="accsubtitle">
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   314
                            <div class="aroundsubtitle">
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   315
                                <h4><?php echo($translate->_('suggested')); ?></h4>
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   316
                            </div>
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   317
                        </div>
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   318
                        <div class="tagcloud" id="suggkw"></div>
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   319
                    </li>
408
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   320
                    <li class="acctexte hidden">
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   321
                        <div class="accsubtitle">
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   322
                            <div class="aroundsubtitle">
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   323
                                <h4><?php echo($translate->_('contextual')); ?></h4>
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   324
                            </div>
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   325
                        </div>
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   326
                        <div class="tagcloud" id="motscles"></div>
4141c5821c98 Improvements on PT live client
Raphael Velt <raph.velt@gmail.com>
parents: 407
diff changeset
   327
                    </li>
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   328
                </ul>
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 class="footer">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   331
                <hr />
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   332
         <?php
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   333
                echo($translate->_('config__partenaires'));
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   334
                
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   335
                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
   336
                    echo("| <a href='clear.php' class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   337
                }
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   338
         ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   339
            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   340
        </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   341
        <div id="hovertweet">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   342
            <div id="hovercontent"></div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   343
            <div id="hoverarrow"></div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   344
        </div>
407
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
   345
        <ul id="hoverkw">
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
   346
            <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li>
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
   347
            <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
5ab44abc46df Correction Live-client
Raphael Velt <raph.velt@gmail.com>
parents: 406
diff changeset
   348
        </ul>
133
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
   349
  </body>
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   350
</html>