|
1 <?php |
|
2 |
|
3 /** |
|
4 * If you haven't edited php.ini to add the Zend Framework and the |
|
5 * Zend Framework Incubator to the PHP include_path, then do so here. |
|
6 * Don't use mine! |
|
7 */ |
|
8 set_include_path( |
|
9 'lib' |
|
10 . PATH_SEPARATOR . get_include_path() |
|
11 ); |
|
12 |
|
13 |
|
14 include_once dirname(__FILE__).'/../traduction.php'; |
|
15 |
|
16 |
|
17 /** |
|
18 * Make sure Zend_Oauth's Consumer is loaded |
|
19 */ |
|
20 require_once dirname(__FILE__).'/../lib/Zend/Oauth/Consumer.php'; |
|
21 |
|
22 /** Zend_Locale */ |
|
23 require_once dirname(__FILE__).'/../lib/Zend/Locale.php'; |
|
24 |
|
25 /** Zend_Translate_Adapter */ |
|
26 require_once dirname(__FILE__).'/../lib/Zend/Translate/Adapter.php'; |
|
27 |
|
28 /** |
|
29 * Start up the ol' session engine |
|
30 */ |
|
31 session_start(); |
|
32 |
|
33 /** |
|
34 * Include the configuration data for our OAuth Client (array $configuration) |
|
35 */ |
|
36 include_once dirname(__FILE__).'/config.php'; |
|
37 |
|
38 /** |
|
39 * Setup an instance of the Consumer for use |
|
40 */ |
|
41 $consumer = new Zend_Oauth_Consumer($configuration); |
|
42 |
|
43 /** |
|
44 * TRADUCTION |
|
45 **/ |
|
46 |
|
47 |
|
48 Zend_Loader::loadClass('Zend_Translate'); |
|
49 Zend_Loader::loadClass('Zend_Http_Cookie'); |
|
50 |
|
51 |
|
52 $client = new Zend_Http_Client(); |
|
53 $translate = new Zend_Translate('array', $init, 'fr'); |
|
54 |
|
55 $translate->addTranslation($english, 'en'); |
|
56 $translate->addTranslation($japan, 'ja_JP'); |
|
57 $translate->addTranslation($french, 'fr'); |
|
58 |
|
59 $actual = $translate->getLocale(); |
|
60 |
|
61 //$translate->setLocale("en"); |
|
62 // $acceptCookie = $this->_request->getCookie('acceptCookie',0); |
|
63 |
|
64 if(isset($_GET['lang'])==false and isset($_SESSION['lang'])==false){ |
|
65 |
|
66 if($actual!='fr' and $actual!='en' and $actual!='ja_JP'){ |
|
67 $translate->setLocale("fr"); |
|
68 $_SESSION['lang']="fr"; |
|
69 } |
|
70 |
|
71 } else if (isset($_GET['lang'])==true){ |
|
72 $translate->setLocale($_GET['lang']); |
|
73 $_SESSION['lang'] = $_GET['lang']; |
|
74 $actual = $_SESSION['lang']; |
|
75 |
|
76 } else if (isset($_SESSION['lang'])==true){ |
|
77 $translate->setLocale( $_SESSION['lang']); |
|
78 $actual = $_SESSION['lang']; |
|
79 |
|
80 } |
|
81 |
|
82 /* NEXT CONFERENCE AND CLIENT PAGE INFORMATION |
|
83 */ |
|
84 /* CLIENT VAR LIVE */ |
|
85 |
|
86 $C_hashtag = "#SNCP"; |
|
87 $C_link = "http://www.iri.centrepompidou.fr/evenement/atelier-preparatoire-aux-entretiens-du-nouveau-monde-industriel-technologies-de-la-confiance/"; |
|
88 $C_title = "Les Stratégies Virtuelles des Musées : l'Heure de Vérité"; |
|
89 $C_abstract = "Les Stratégies Virtuelles des Musées : l'Heure de Vérité"; |
|
90 $C_REP = "CPV/"; |
|
91 $C_description = "<h3>JEUDI 26 MAI 2011</h3><br /> |
|
92 <h4>DE 10H A 13H<br /> |
|
93 PETITE SALLE, NIVEAU -1</h4><br /> |
|
94 Intervenants :<br /> |
|
95 <b>Carlo d'Asaro Biondo</b>, vice-président de Google<br/> |
|
96 <b>Franck Riester</b>, député de Seine-et-Marne<br/> |
|
97 <b>Marc Sands</b>, directeur des publics et de l'information, Tate Gallery, Londres<br/> |
|
98 <b>Alain Seban</b>, président du Centre Pompidou<br/> |
|
99 <b>Bernard Stiegler</b>, philosophe et directeur de l'Institut de Recherche et d'Innovation (IRI)<br /><br /> |
|
100 Animée par <b>Brice Couturier</b>, écrivain et producteur à France Culture<br /><br /> |
|
101 La table ronde sera suivie d'un déjeuner-buffet<br /><br /><br /> |
|
102 RSVP: <b>rp@centrepompidou.fr</b> ou <b>01 44 78 15 05</b>"; |
|
103 |
|
104 $C_partenaires = "<a href='http://www.iri.centrepompidou.fr/' class='footerLink' target='_blank'> IRI </a> |
|
105 | <a href='http://www.centrepompidou.fr/' class='footerLink' target='_blank' > Centre Pompidou </a>"; |
|
106 |
|
107 |