|
1 <?php |
|
2 |
|
3 if(!isset($_REQUEST['rep'])) { |
|
4 include_once dirname(__FILE__).'/common.php'; |
|
5 header('Location: ' . URL_ROOT . "$C_default_rep/select.php" ); |
|
6 exit(); |
|
7 } |
|
8 |
|
9 $rep = $_REQUEST['rep']; |
|
10 include dirname(__FILE__).'/'.$rep.'/config.php'; |
|
11 |
|
12 include_once 'common.php'; |
|
13 |
|
14 /** |
|
15 * Do we already have a valid Access Token or need to go get one? |
|
16 */ |
|
17 if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) { |
|
18 /** |
|
19 * Guess we need to go get one! |
|
20 */ |
|
21 $token = $consumer->getRequestToken(); |
|
22 $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token); |
|
23 |
|
24 /** |
|
25 * Now redirect user to Twitter site so they can log in and |
|
26 * approve our access |
|
27 */ |
|
28 $consumer->redirect(); |
|
29 } |
|
30 |
|
31 |
|
32 $big_visual_url = URL_ROOT."/$rep/images/big_visuel_rsln_mb.jpg"; |
|
33 if($translate->_('config__client_visual') != 'config__client_visual' && $translate->_('config__client_visual') != null ) { |
|
34 $big_visual_url = URL_ROOT."$rep/".$translate->_('config__client_visual'); |
|
35 } |
|
36 |
|
37 $head_logo = URL_ROOT."$rep/images/head_logo.gif"; |
|
38 if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
|
39 $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
|
40 } |
|
41 |
|
42 $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
|
43 $videoWidth = ( $embed ? 442 : 480 ); |
|
44 $videoHeight = ( $embed ? 250 : 320 ); |
|
45 ?> |
|
46 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
47 "http://www.w3.org/TR/html4/strict.dtd"> |
|
48 |
|
49 <html lang="<?php echo($actual); ?>"> |
|
50 <head> |
|
51 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
52 <title>Live Video and Annotation</title> |
|
53 <meta http-equiv="X-UA-Compatible" content="IE=9" /> |
|
54 |
|
55 <!-- FONT --> |
|
56 <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
|
57 <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
|
58 |
|
59 <!-- CSS --> |
|
60 <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen"> |
|
61 <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>?42" type="text/css" media="screen, projection"/> |
|
62 |
|
63 <!-- JAVASCRIPT --> |
|
64 <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
65 |
|
66 <script type="text/javascript"> |
|
67 |
|
68 var _gaq = _gaq || []; |
|
69 _gaq.push(['_setAccount', 'UA-23581291-1']); |
|
70 _gaq.push(['_trackPageview']); |
|
71 _gaq.push(['_setAllowAnchor', true]); |
|
72 |
|
73 (function() { |
|
74 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
75 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
76 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
77 })(); |
|
78 |
|
79 </script> |
|
80 |
|
81 </head> |
|
82 <body> |
|
83 <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div> |
|
84 |
|
85 <div id="container"> |
|
86 |
|
87 <div class="barre"> |
|
88 <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" /> |
|
89 <div id="minilogo"></div> |
|
90 <ul class="menu"> |
|
91 <li> |
|
92 <a href="<?php echo(URL_ROOT); ?>" class="menuLink"> |
|
93 <?php print $translate->_("Accueil"); ?> |
|
94 </a> |
|
95 </li> |
|
96 <li> |
|
97 <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'> |
|
98 <?php print $translate->_("Programme"); ?> |
|
99 </a> |
|
100 </li> |
|
101 <li> |
|
102 <a href="../about.php" class="menuLink" > |
|
103 <?php print $translate->_("A propos"); ?> |
|
104 </a> |
|
105 </li> |
|
106 </ul> |
|
107 <ul class="menu"> |
|
108 <li> |
|
109 <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" > |
|
110 <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
|
111 <?php print $translate->_("Japonais"); ?> |
|
112 </a></li> |
|
113 <li> |
|
114 <a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink"> |
|
115 <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
|
116 <?php print $translate->_("Français"); ?> |
|
117 </a> |
|
118 </li> |
|
119 <li> |
|
120 <a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink"> |
|
121 <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
|
122 <?php print $translate->_("Anglais"); ?> |
|
123 </a> |
|
124 </li> |
|
125 </ul> |
|
126 </div> |
|
127 </div> |
|
128 <?php display_archives_list($config['event_list'], "archive_box_3", URL_ROOT, dirname(__FILE__)."/", $translate); ?> |
|
129 <div class="footer"> |
|
130 <hr /> |
|
131 <?php |
|
132 include dirname(__FILE__).'/'.$rep.'/config.php'; |
|
133 echo($translate->_('config__partenaires')); |
|
134 |
|
135 if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
136 echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>"); |
|
137 } |
|
138 ?> |
|
139 </div> |
|
140 </div> |
|
141 </body> |
|
142 </html> |