web/client.php
author Raphael Velt <raph.velt@gmail.com>
Tue, 13 Dec 2011 19:01:59 +0100
changeset 406 86b62b98fea7
parent 357 3e93a0e83ad1
child 407 5ab44abc46df
permissions -rwxr-xr-x
Polemic Tweet client now uses rv's live system
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>
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'); ?>" }
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    74
    $(document).ready(function() {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    75
        
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    76
        $("#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
    77
            $("#accordeon li.acctexte").slideUp();
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    78
            $(this).next().dequeue().slideDown();
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    79
        })
133
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
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
            //$("txt").hide();
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    82
            $(".loginbutton").click(function() {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    83
                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
    84
            });
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    85
            $("#IDENTIFIER").click(function() {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    86
                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
    87
            });
229
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 200
diff changeset
    88
74c9ddc3640b a lot of changes in the web file organization.
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 200
diff changeset
    89
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    90
            function add_grammar(value) {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    91
                $('#status').val($('#status').val()+value+" ");
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
    92
                $('#status').change();
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" />
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   176
                    <ul class="menu">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   177
                        <li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   178
                            <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
   179
                                <?php print $translate->_("Accueil"); ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   180
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   181
                        </li>
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
                            <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
   184
                                <?php print $translate->_("Programme"); ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   185
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   186
                        </li>
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
                            <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
   189
                                <?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
   190
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   191
                        </li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   192
                    </ul>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   193
                    <ul class="menu">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   194
                        <li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   195
                            <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
   196
                                <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
   197
                                <?php print $translate->_("Japonais"); ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   198
                            </a></li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   199
                        <li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   200
                            <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
   201
                                <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
   202
                                <?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
   203
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   204
                        </li>
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
                            <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
   207
                                <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
   208
                                <?php print $translate->_("Anglais"); ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   209
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   210
                        </li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   211
                    </ul>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   212
                </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   213
                <div id="twwWrap">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   214
                    <div id="tweetWriter">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   215
                        <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
   216
                        <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
   217
                            <?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
   218
                                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
   219
                            } else {
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   220
                                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
   221
                            }
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
                            <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
   224
                                <?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
   225
                            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   226
                            <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
   227
                                <?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
   228
                            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   229
                            <a href="#"  id="sendTweet" >
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   230
                                <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
   231
                            </a>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   232
                            <?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
   233
                            <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
   234
                            <?php endif;?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   235
                            <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
   236
                            <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
   237
                            <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
   238
                            <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
   239
                            
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   240
                            <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
   241
                        </form>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   242
                    </div>
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 id="tweetviz">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   245
                    <div class="barre">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   246
                        <form id="recherche">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   247
                            <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
   248
                            <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
   249
                            <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
   250
                            <div id="time_controls">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   251
                                <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
   252
                                <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
   253
                                <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
   254
                                <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
   255
                            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   256
                            <div id="recherche_annot">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   257
                                <?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
   258
                            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   259
                        </form>
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
                    <ul id="tweetlist"></ul>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   262
                    <div id="timeline"></div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   263
                    <div id="scrollcont">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   264
                        <div id="scrollin"></div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   265
                    </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 id="coldroite">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   269
                <div id="vlWrap">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   270
                    <div id="videoLivePlayer">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   271
                    <?php if ($config['islive']):?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   272
                        <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
   273
                            <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
   274
                            <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
   275
                            <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
   276
                            <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
   277
                            <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
   278
                            <embed
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   279
                                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
   280
                                id="player2"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   281
                                name="player2"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   282
                                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
   283
                                width="480"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   284
                                height="320"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   285
                                allowscriptaccess="always"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   286
                                allowfullscreen="true"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   287
                                wmode="transparent"
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   288
                                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
   289
                            />
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   290
                        </object>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   291
                    <?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
   292
                        <?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
   293
                    <?php else: ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   294
                        <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
   295
                    <?php endif; ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   296
                    </div>
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 id="out_fleche">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   299
                <!--    <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
   300
                </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   301
                <ul id="accordeon">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   302
                    <li class="acctitre">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   303
                        <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
   304
                    </li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   305
                    <li class="acctexte">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   306
                        <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
   307
                    </li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   308
                    <li class="acctitre">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   309
                        <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
   310
                    </li>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   311
                    <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
   312
                </ul>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   313
            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   314
            <div class="footer">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   315
                <hr />
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   316
         <?php
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   317
                echo($translate->_('config__partenaires'));
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   318
                
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   319
                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
   320
                    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
   321
                }
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   322
         ?>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   323
            </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   324
        </div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   325
        <div id="hovertweet">
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   326
            <div id="hovercontent"></div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   327
            <div id="hoverarrow"></div>
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   328
        </div>
133
9578d3ddce17 correct line endings + other small errors
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents: 122
diff changeset
   329
  </body>
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   330
</html>