| author | salimr <riwad.salim@yahoo.fr> |
| Wed, 26 Jun 2019 13:34:15 +0200 | |
| changeset 1500 | b80b8e81065d |
| parent 1427 | 8b3d57a519eb |
| child 1557 | 7c67caaafdeb |
| permissions | -rw-r--r-- |
| 546 | 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']) ) { |
|
|
1427
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
18 |
// /** |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
19 |
// * Guess we need to go get one! |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
20 |
// */ |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
21 |
// $token = $consumer->getRequestToken(); |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
22 |
// $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token); |
| 546 | 23 |
|
|
1427
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
24 |
// /** |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
25 |
// * Now redirect user to Twitter site so they can log in and |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
26 |
// * approve our access |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
27 |
// */ |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
28 |
// $consumer->redirect(); |
|
8b3d57a519eb
remove dependency to Zend 1. Use composer to reduce the number of dependencies
ymh <ymh.work@gmail.com>
parents:
1366
diff
changeset
|
29 |
$get_twitter_request_token(); |
| 546 | 30 |
} |
31 |
||
32 |
||
| 633 | 33 |
$big_visual_url = URL_ROOT."/$rep/images/big-visuel.jpg"; |
| 546 | 34 |
if($translate->_('config__client_visual') != 'config__client_visual' && $translate->_('config__client_visual') != null ) { |
35 |
$big_visual_url = URL_ROOT."$rep/".$translate->_('config__client_visual'); |
|
36 |
} |
|
37 |
||
| 633 | 38 |
$head_logo = URL_ROOT."$rep/images/head-logo.png"; |
| 546 | 39 |
if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) { |
40 |
$head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo'); |
|
41 |
} |
|
42 |
||
43 |
$embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']); |
|
44 |
$videoWidth = ( $embed ? 442 : 480 ); |
|
45 |
$videoHeight = ( $embed ? 250 : 320 ); |
|
46 |
?> |
|
47 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
48 |
"http://www.w3.org/TR/html4/strict.dtd"> |
|
49 |
||
50 |
<html lang="<?php echo($actual); ?>"> |
|
51 |
<head> |
|
52 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
53 |
<title>Live Video and Annotation</title> |
|
54 |
<meta http-equiv="X-UA-Compatible" content="IE=9" /> |
|
55 |
||
56 |
<!-- FONT --> |
|
57 |
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'> |
|
58 |
<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'> |
|
59 |
|
|
60 |
<!-- CSS --> |
|
61 |
<link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen"> |
|
62 |
<link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>?42" type="text/css" media="screen, projection"/> |
|
63 |
||
64 |
<!-- JAVASCRIPT --> |
|
65 |
<script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script> |
|
66 |
|
|
67 |
<script type="text/javascript"> |
|
68 |
|
|
69 |
var _gaq = _gaq || []; |
|
70 |
_gaq.push(['_setAccount', 'UA-23581291-1']); |
|
71 |
_gaq.push(['_trackPageview']); |
|
72 |
_gaq.push(['_setAllowAnchor', true]); |
|
73 |
|
|
74 |
(function() { |
|
75 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
|
76 |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
77 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
|
78 |
})(); |
|
79 |
|
|
80 |
</script> |
|
81 |
|
|
82 |
</head> |
|
83 |
<body> |
|
|
1366
2cebaaf18c54
enmi16
Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
parents:
797
diff
changeset
|
84 |
<!--div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div--> |
| 546 | 85 |
|
86 |
<div id="container"> |
|
87 |
|
|
88 |
<div class="barre"> |
|
89 |
<img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" /> |
|
90 |
<div id="minilogo"></div> |
|
91 |
<ul class="menu"> |
|
92 |
<li> |
|
93 |
<a href="<?php echo(URL_ROOT); ?>" class="menuLink"> |
|
94 |
<?php print $translate->_("Accueil"); ?> |
|
95 |
</a> |
|
96 |
</li> |
|
97 |
<li> |
|
98 |
<a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'> |
|
99 |
<?php print $translate->_("Programme"); ?> |
|
100 |
</a> |
|
101 |
</li> |
|
102 |
<li> |
|
103 |
<a href="../about.php" class="menuLink" > |
|
104 |
<?php print $translate->_("A propos"); ?> |
|
105 |
</a> |
|
106 |
</li> |
|
107 |
</ul> |
|
108 |
<ul class="menu"> |
|
109 |
<li> |
|
110 |
<a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" > |
|
111 |
<img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> /> |
|
112 |
<?php print $translate->_("Japonais"); ?> |
|
113 |
</a></li> |
|
114 |
<li> |
|
115 |
<a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink"> |
|
116 |
<img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> /> |
|
117 |
<?php print $translate->_("Français"); ?> |
|
118 |
</a> |
|
119 |
</li> |
|
120 |
<li> |
|
121 |
<a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink"> |
|
122 |
<img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> /> |
|
123 |
<?php print $translate->_("Anglais"); ?> |
|
124 |
</a> |
|
125 |
</li> |
|
126 |
</ul> |
|
127 |
</div> |
|
|
797
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
128 |
<ul> |
| 549 | 129 |
<?php |
130 |
$basepath = dirname(__FILE__)."/"; |
|
| 633 | 131 |
$partenaires = $translate->_('config__partenaires'); |
| 549 | 132 |
foreach ($config['event_list'] as $i => $rep) { |
133 |
||
134 |
include("$basepath$rep/config.php"); |
|
135 |
||
136 |
set_config_translations($config, $translate); |
|
137 |
||
138 |
$tail_img = $translate->_('config__archive_img'); |
|
139 |
if(is_array($tail_img)) { |
|
140 |
$tail_img = $tail_img[0]; |
|
141 |
} |
|
142 |
$archive_title = $translate->_('config__archive_title'); |
|
143 |
if(is_array($archive_title)) { |
|
144 |
$archive_title = $archive_title[0]; |
|
145 |
} |
|
146 |
$archive_description = $translate->_('config__archive_description'); |
|
147 |
if(is_array($archive_description)) { |
|
148 |
$archive_description = $archive_description[0]; |
|
149 |
} |
|
150 |
||
151 |
?> |
|
|
797
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
152 |
<div class="archivesVideoBox"> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
153 |
<a href="<?php echo URL_ROOT . $rep ?>"> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
154 |
<img src="<?php echo URL_ROOT . "$rep/$tail_img" ?>" width="270" height="150"/> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
155 |
</a> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
156 |
<h3 class="AVBtitle"><?php echo $archive_title ?></h3> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
157 |
<p class="AVBtext"><?php echo $archive_description; ?></p> |
|
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
158 |
</div> |
| 549 | 159 |
<?php |
160 |
||
161 |
} |
|
162 |
||
163 |
?> |
|
|
797
c3543cde84c8
added latest edito + museo + group pages
Raphael Velt <raph.velt@gmail.com>
parents:
633
diff
changeset
|
164 |
</ul> |
| 546 | 165 |
</div> |
166 |
<div class="footer"> |
|
167 |
<hr /> |
|
168 |
<?php |
|
169 |
include dirname(__FILE__).'/'.$rep.'/config.php'; |
|
| 633 | 170 |
echo $partenaires; |
| 546 | 171 |
|
172 |
if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){ |
|
173 |
echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>"); |
|
174 |
} |
|
175 |
?> |
|
176 |
</div> |
|
177 |
</div> |
|
178 |
</body> |
|
179 |
</html> |