| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
| 3 |
// +------------------------------------------------------------------------------------------------------+
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
| 4 |
// | PHP version 4.1 |
|
4 |
// | PHP version 4.1 |
|
| 5 |
// +------------------------------------------------------------------------------------------------------+
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
| 6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
| 7 |
// +------------------------------------------------------------------------------------------------------+
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 48... |
Line 48... |
| 48 |
|
48 |
|
| 49 |
// creation de l'objet projet courant
|
49 |
// creation de l'objet projet courant
|
| 50 |
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
|
50 |
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
|
| 51 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
|
51 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
|
| 52 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
52 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
| Line 53... |
Line 53... |
| 53 |
|
53 |
|
| 54 |
|
54 |
|
| 55 |
/** Bloc resume avec lien resume */
|
55 |
/** Bloc resume avec lien resume */
|
| 56 |
$resume = $projet->getResume();
|
56 |
$resume = $projet->getResume();
|
| Line 57... |
Line 57... |
| 57 |
$bouton_resume = '';
|
57 |
$bouton_resume = '';
|
| 58 |
$bouton_s_inscrire_au_projet = '';
|
58 |
$bouton_s_inscrire_au_projet = '';
|
| 59 |
|
59 |
|
| 60 |
|
60 |
|
| Line 61... |
Line 61... |
| 61 |
$lien_inscription = '';
|
61 |
$lien_inscription = '';
|
| 62 |
// recuperation de la liste des documents associes
|
62 |
// recuperation de la liste des documents associes
|
| 63 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
63 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
| Line 71... |
Line 71... |
| 71 |
$bouton_deposer_doc = '';
|
71 |
$bouton_deposer_doc = '';
|
| 72 |
// reglage de parametres de la vue
|
72 |
// reglage de parametres de la vue
|
| 73 |
$vue_liste_document->setAction (array ("couper" => PROJET_ACTION_COUPER, "modifier" => PROJET_ACTION_MODIFIER, "supprimer" => PROJET_SUPPRESSION_FICHIER)) ;
|
73 |
$vue_liste_document->setAction (array ("couper" => PROJET_ACTION_COUPER, "modifier" => PROJET_ACTION_MODIFIER, "supprimer" => PROJET_SUPPRESSION_FICHIER)) ;
|
| 74 |
$vue_liste_document->setCheminIcones(PROJET_CHEMIN_ICONES) ;
|
74 |
$vue_liste_document->setCheminIcones(PROJET_CHEMIN_ICONES) ;
|
| Line 75... |
Line 75... |
| 75 |
|
75 |
|
| 76 |
$bouton_poster = '';
|
76 |
$bouton_poster = '';
|
| Line 77... |
Line 77... |
| 77 |
$bouton_desinscription_projet = '';
|
77 |
$bouton_desinscription_projet = '';
|
| 78 |
|
78 |
|
| Line 89... |
Line 89... |
| 89 |
if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
|
89 |
if ($isParticipant) $droits = PROJET_DROIT_CONTRIBUTEUR;
|
| 90 |
if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
|
90 |
if ($isCoord) $droits = PROJET_DROIT_COORDINATEUR ;
|
| 91 |
$isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
|
91 |
$isAdm = participe::isAdministrateur($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_db) ;
|
| 92 |
if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
|
92 |
if ($isAdm) $droits = PROJET_DROIT_ADMINISTRATEUR ;
|
| 93 |
if ($isAdm) $isCoord = true ;
|
93 |
if ($isAdm) $isCoord = true ;
|
| 94 |
|
94 |
|
| 95 |
include_once PROJET_CHEMIN_CLASSES.'inscription_liste.class.php';
|
95 |
include_once PROJET_CHEMIN_CLASSES.'inscription_liste.class.php';
|
| 96 |
$projet->getListesAssociees();
|
96 |
$projet->getListesAssociees();
|
| 97 |
foreach ($projet->_listes_associes as $info_liste) {
|
97 |
foreach ($projet->_listes_associes as $info_liste) {
|
| 98 |
$inscription_liste = new inscription_liste($this->_db) ;
|
98 |
$inscription_liste = new inscription_liste($this->_db) ;
|
| 99 |
if ($inscription_liste->getStatutInscrit($info_liste->getId(), $this->_auth) == 0) {
|
99 |
if ($inscription_liste->getStatutInscrit($info_liste->getId(), $this->_auth) == 0) {
|
| Line 103... |
Line 103... |
| 103 |
// L'action envoyer un mail
|
103 |
// L'action envoyer un mail
|
| 104 |
$action_inscription = PROJET_ENVOYER_UN_MAIL ;
|
104 |
$action_inscription = PROJET_ENVOYER_UN_MAIL ;
|
| 105 |
$label_inscription = PROJET_ECRIRE_LISTE ;
|
105 |
$label_inscription = PROJET_ECRIRE_LISTE ;
|
| 106 |
}
|
106 |
}
|
| 107 |
}
|
107 |
}
|
| 108 |
|
108 |
|
| 109 |
switch ($participant->getStatut($id_u, $this->_id_projet))
|
109 |
switch ($participant->getStatut($id_u, $this->_id_projet))
|
| 110 |
{
|
110 |
{
|
| 111 |
case PROJET_DROIT_AUCUN :
|
111 |
case PROJET_DROIT_AUCUN :
|
| 112 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
|
112 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
|
| 113 |
$lien_inscription = $this->_url->getURL();
|
113 |
$lien_inscription = $this->_url->getURL();
|
| 114 |
$laius_inscription = PROJET_VOUS_N_ETES_PAS_INSCRIT;
|
114 |
$laius_inscription = PROJET_VOUS_N_ETES_PAS_INSCRIT;
|
| 115 |
$label_url_inscription = PROJET_S_INSCRIRE_AU_PROJET;
|
115 |
$label_url_inscription = PROJET_S_INSCRIRE_AU_PROJET;
|
| 116 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
|
116 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
|
| 117 |
$lien_inscription = $this->_url->getURL();
|
117 |
$lien_inscription = $this->_url->getURL();
|
| 118 |
$label_url_inscription = 'S\'inscrire à ce projet';
|
118 |
$label_url_inscription = 'S\'inscrire à ce projet';
|
| 119 |
|
119 |
|
| 120 |
break;
|
120 |
break;
|
| 121 |
case PROJET_DROIT_CONTRIBUTEUR :
|
121 |
case PROJET_DROIT_CONTRIBUTEUR :
|
| 122 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER);
|
122 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER);
|
| 123 |
$bouton_deposer_doc = bouton::toHTML($this->_url->getURL(), 'Déposer un document', 'document');
|
123 |
$bouton_deposer_doc = bouton::toHTML($this->_url->getURL(), 'Déposer un document', 'document');
|
| 124 |
$bouton_deposer_doc .= '<br style="clear:both" />';
|
124 |
$bouton_deposer_doc .= '<br style="clear:both" />';
|
| 125 |
|
125 |
|
| 126 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_PROJET);
|
126 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_PROJET);
|
| 127 |
$bouton_desinscription_projet = bouton::toHTML($this->_url->getURL(), 'Se désinscrire du projet', 'cross');
|
127 |
$bouton_desinscription_projet = bouton::toHTML($this->_url->getURL(), 'Se désinscrire du projet', 'cross');
|
| 128 |
$bouton_desinscription_projet .= '<br style="clear:both" />';
|
128 |
$bouton_desinscription_projet .= '<br style="clear:both" />';
|
| 129 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action_inscription);
|
129 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action_inscription);
|
| 130 |
$bouton_poster = bouton::toHTML($this->_url->getURL(), $label_inscription,'ecrire');
|
130 |
$bouton_poster = bouton::toHTML($this->_url->getURL(), $label_inscription,'ecrire');
|
| 131 |
break;
|
131 |
break;
|
| 132 |
case PROJET_DROIT_COORDINATEUR || PROJET_DROIT_ADMINISTRATEUR :
|
132 |
case PROJET_DROIT_COORDINATEUR || PROJET_DROIT_ADMINISTRATEUR :
|
| 133 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_MODIFIER_DESCRIPTION);
|
133 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_MODIFIER_DESCRIPTION);
|
| 134 |
$bouton_resume = bouton::toHTML($this->_url->getURL(), PROJET_MODIFIER_PROPRIETES, 'modifier');
|
134 |
$bouton_resume = bouton::toHTML($this->_url->getURL(), PROJET_MODIFIER_PROPRIETES, 'modifier');
|
| 135 |
$bouton_resume .= '<br style="clear:both" />';
|
135 |
$bouton_resume .= '<br style="clear:both" />';
|
| 136 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER);
|
136 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER);
|
| 137 |
$bouton_deposer_doc = bouton::toHTML($this->_url->getURL(), 'Déposer un document', 'document');
|
137 |
$bouton_deposer_doc = bouton::toHTML($this->_url->getURL(), 'Déposer un document', 'document');
|
| 138 |
$bouton_deposer_doc .= '<br style="clear:both" />';
|
138 |
$bouton_deposer_doc .= '<br style="clear:both" />';
|
| 139 |
|
139 |
|
| 140 |
if ($projet->avoirListe()) {
|
140 |
if ($projet->avoirListe()) {
|
| 141 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action_inscription);
|
141 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action_inscription);
|
| 142 |
$bouton_poster = bouton::toHTML($this->_url->getURL(), $label_inscription,'ecrire');
|
142 |
$bouton_poster = bouton::toHTML($this->_url->getURL(), $label_inscription,'ecrire');
|
| 143 |
|
143 |
|
| 144 |
}
|
144 |
}
|
| 145 |
|
145 |
|
| 146 |
break;
|
146 |
break;
|
| 147 |
case PROJET_DROIT_EN_ATTENTE : $droits = PROJET_DROIT_EN_ATTENTE;
|
147 |
case PROJET_DROIT_EN_ATTENTE : $droits = PROJET_DROIT_EN_ATTENTE;
|
| 148 |
GEN_stockerFichierScript('mootools', 'api/js/mootools/mootools-release-1.11.js');
|
148 |
GEN_stockerFichierScript('mootools', 'api/js/mootools/mootools-release-1.11.js');
|
| 149 |
GEN_stockerCodeScript('window.addEvent(\'domready\', function(){'."\n".
|
149 |
GEN_stockerCodeScript('window.addEvent(\'domready\', function(){'."\n".
|
| 150 |
'var fx = new Fx.Styles($(\'projet_lien_login\'), {duration:500, wait:false});' ."\n".
|
150 |
'var fx = new Fx.Styles($(\'projet_lien_login\'), {duration:500, wait:false});' ."\n".
|
| Line 159... |
Line 159... |
| 159 |
$laius_inscription_modere = str_replace ('nom_du_projet', $projet->getTitre(), PROJET_LAIUS_INSCRIPTION_MODERE);
|
159 |
$laius_inscription_modere = str_replace ('nom_du_projet', $projet->getTitre(), PROJET_LAIUS_INSCRIPTION_MODERE);
|
| 160 |
$lien_login = '#';
|
160 |
$lien_login = '#';
|
| 161 |
break;
|
161 |
break;
|
| 162 |
}
|
162 |
}
|
| 163 |
$bouton_poster .= '<br style="clear:both" />';
|
163 |
$bouton_poster .= '<br style="clear:both" />';
|
| 164 |
|
164 |
|
| 165 |
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
|
165 |
$statut = participe::getStatutSurProjetCourant ($this->_auth->getAuthData(PROJET_CHAMPS_ID), $this->_id_projet, $this->_db) ;
|
| 166 |
// si participant, on ajoute le champs visibilite
|
166 |
// si participant, on ajoute le champs visibilite
|
| 167 |
|
167 |
|
| 168 |
if ($statut !='' || $isAdm) {
|
168 |
if ($statut !='' || $isAdm) {
|
| 169 |
array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
|
169 |
array_push ($entete_liste, PROJET_FICHIERS_VISIBILITE) ;
|
| 170 |
$visible = true ;
|
170 |
$visible = true ;
|
| 171 |
} else {
|
171 |
} else {
|
| 172 |
$visible = false ;
|
172 |
$visible = false ;
|
| 173 |
}
|
173 |
}
|
| 174 |
// recuperation de la liste des documents associes
|
174 |
// recuperation de la liste des documents associes
|
| 175 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
175 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
| 176 |
PROJET_CHEMIN_ICONES, $this->_id_projet, $visible) ;
|
176 |
PROJET_CHEMIN_ICONES, $this->_id_projet, $visible) ;
|
| Line 177... |
Line 177... |
| 177 |
|
177 |
|
| 178 |
|
178 |
|
| 179 |
// si chef de projet ou si proprietaire d'au moins 1 document
|
179 |
// si chef de projet ou si proprietaire d'au moins 1 document
|
| Line 180... |
Line 180... |
| 180 |
$proprietaire_un_document = false ;
|
180 |
$proprietaire_un_document = false ;
|
| 181 |
|
181 |
|
| Line 189... |
Line 189... |
| 189 |
array_push ($entete_liste, PROJET_ACTION) ;
|
189 |
array_push ($entete_liste, PROJET_ACTION) ;
|
| 190 |
}
|
190 |
}
|
| 191 |
} else {
|
191 |
} else {
|
| 192 |
$droits = PROJET_DROIT_AUCUN ;
|
192 |
$droits = PROJET_DROIT_AUCUN ;
|
| 193 |
// recuperation de la liste des documents associes
|
193 |
// recuperation de la liste des documents associes
|
| 194 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
194 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
| 195 |
PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
|
195 |
PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
|
| 196 |
$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
|
196 |
$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
|
| 197 |
$label_url_inscription = 'S\'inscrire à ce projet';
|
197 |
$label_url_inscription = 'S\'inscrire à ce projet';
|
| 198 |
|
198 |
|
| 199 |
GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
|
199 |
GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
|
| 200 |
GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
|
200 |
GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
|
| 201 |
GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
|
201 |
GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
|
| 202 |
'animatedcollapse.init();' ."\n");
|
202 |
'animatedcollapse.init();' ."\n");
|
| 203 |
$lien_login = '#';
|
203 |
$lien_login = '#';
|
| Line 207... |
Line 207... |
| 207 |
$vue_liste_document->construitEntete($entete_liste) ;
|
207 |
$vue_liste_document->construitEntete($entete_liste) ;
|
| 208 |
$vue_liste_document->construitListe ($liste_documents, $droits, 'ignore_repertoire', $this->_db) ;
|
208 |
$vue_liste_document->construitListe ($liste_documents, $droits, 'ignore_repertoire', $this->_db) ;
|
| Line 209... |
Line 209... |
| 209 |
|
209 |
|
| 210 |
$wiki_res = '' ;
|
210 |
$wiki_res = '' ;
|
| 211 |
// Les wikinis associes au projet
|
211 |
// Les wikinis associes au projet
|
| - |
|
212 |
if ($wiki = $projet->getWikini()) {
|
| - |
|
213 |
if (strpos($wiki, "http://www.tela-botanica.org/wikini/") === 0) {// Si le wiki, ne peut pas être intégré
|
| - |
|
214 |
$wiki_res .= '<div style="line-height: 2em;">'.sprintf(PROJET_WIKINI_PAS_REDIR, $wiki).'</div>'."\n";
|
| 212 |
if ($projet->getWikini()) {
|
215 |
} else {
|
| 213 |
$url = $GLOBALS['_GEN_commun']['url'] ;
|
- |
|
| 214 |
|
216 |
$url = $GLOBALS['_GEN_commun']['url'] ;
|
| 215 |
$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
|
217 |
$this->_url->addQueryString ('act',PROJET_ACTION_VOIR_WIKINI);
|
| 216 |
$link=$this->_url->getURL();
|
- |
|
| 217 |
|
218 |
$link = $this->_url->getURL();
|
| 218 |
$wiki_res .= '<div><a href="'.$link.'">'.PROJET_ALLER_SUR_WIKINI.'</a> ('.$projet->getWikini().')' ;
|
- |
|
| 219 |
$wiki_res .= '</div>' ;
|
- |
|
| 220 |
}
|
- |
|
| 221 |
// ou, le cas échéant et si un espace internet existe déjà sur /wikini/
|
- |
|
| 222 |
// celui-ci est proposé
|
- |
|
| 223 |
elseif (strpos($projet->getEspaceInternet(), "http://www.tela-botanica.org/wikini/") === 0) {
|
- |
|
| 224 |
$wiki_res .= '<div><a href="'.$projet->getEspaceInternet().'">'.$projet->getEspaceInternet().'</a></div>'."\n";
|
219 |
$wiki_res .= '<div><a href="'.$link.'">'.PROJET_ALLER_SUR_WIKINI.'</a> ('.$wiki.')</div>';
|
| 225 |
}
|
220 |
}
|
| 226 |
else {
|
221 |
} else {
|
| 227 |
$wiki_res .= '<div>'.PROJET_WIKINI_PAS.'</div>'."\n" ;
|
222 |
$wiki_res .= '<div>'.PROJET_WIKINI_PAS.'</div>'."\n";
|
| 228 |
}
|
223 |
}
|
| 229 |
// On charge les listes de discussion du projet
|
224 |
// On charge les listes de discussion du projet
|
| Line 230... |
Line 225... |
| 230 |
// Pour le moment seul ezmlm est supportee
|
225 |
// Pour le moment seul ezmlm est supportee
|
| Line 238... |
Line 233... |
| 238 |
ob_start() ;
|
233 |
ob_start() ;
|
| 239 |
include_once PROJET_CHEMIN_CLASSES_LISTES.'ezmlm.php' ;
|
234 |
include_once PROJET_CHEMIN_CLASSES_LISTES.'ezmlm.php' ;
|
| 240 |
foreach ($projet->_listes_associes as $info_liste) {
|
235 |
foreach ($projet->_listes_associes as $info_liste) {
|
| 241 |
$liste = new ezmlm_php() ;
|
236 |
$liste = new ezmlm_php() ;
|
| 242 |
// Param�trage de la liste
|
237 |
// Param�trage de la liste
|
| 243 |
|
238 |
|
| 244 |
$liste->listdir = PROJET_CHEMIN_LISTES.$info_liste->getDomaine().'/'.$info_liste->getNom();
|
239 |
$liste->listdir = PROJET_CHEMIN_LISTES.$info_liste->getDomaine().'/'.$info_liste->getNom();
|
| 245 |
|
240 |
|
| 246 |
$liste->listname = $info_liste->getNom() ;
|
241 |
$liste->listname = $info_liste->getNom() ;
|
| 247 |
$liste->listdomain = $info_liste->getDomaine();
|
242 |
$liste->listdomain = $info_liste->getDomaine();
|
| 248 |
|
243 |
|
| 249 |
if (isset ($GLOBALS['action']) && $GLOBALS['action'] != '') {
|
244 |
if (isset ($GLOBALS['action']) && $GLOBALS['action'] != '') {
|
| 250 |
$liste->set_action($GLOBALS['action']) ;
|
245 |
$liste->set_action($GLOBALS['action']) ;
|
| 251 |
$liste->set_actionargs($GLOBALS['actionargs']) ;
|
246 |
$liste->set_actionargs($GLOBALS['actionargs']) ;
|
| 252 |
} else {
|
247 |
} else {
|
| 253 |
$liste->set_action('list_info') ;
|
248 |
$liste->set_action('list_info') ;
|
| 254 |
}
|
249 |
}
|
| 255 |
$liste->sendheaders = false;
|
250 |
$liste->sendheaders = false;
|
| 256 |
$liste->sendbody = false;
|
251 |
$liste->sendbody = false;
|
| 257 |
$liste->sendfooters = false;
|
252 |
$liste->sendfooters = false;
|
| 258 |
$liste->forcehref = $this->_url->getURL() ;
|
253 |
$liste->forcehref = $this->_url->getURL() ;
|
| 259 |
|
254 |
|
| 260 |
|
255 |
|
| Line 261... |
Line 256... |
| 261 |
|
256 |
|
| 262 |
if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
|
257 |
if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
|
| 263 |
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
|
258 |
$this->_url->removeQueryString(PROJET_VARIABLE_ACTION) ;
|
| 264 |
switch ($liste->action) {
|
259 |
switch ($liste->action) {
|
| 265 |
case "list_info":
|
260 |
case "list_info":
|
| 266 |
$this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
|
261 |
$this->_url->addQueryString('act', PROJET_ACTION_VOIR_FORUM);
|
| 267 |
$xml_parser = &new ezmlmAccessObject('calendrier_messages', $info_liste->getDomaine(),
|
262 |
$xml_parser = &new ezmlmAccessObject('calendrier_messages', $info_liste->getDomaine(),
|
| 268 |
$info_liste->getNom(), $GLOBALS['lang'],
|
263 |
$info_liste->getNom(), $GLOBALS['lang'],
|
| 269 |
$this->_url->getURL()) ;
|
264 |
$this->_url->getURL()) ;
|
| 270 |
|
265 |
|
| 271 |
$xml_parser->reset() ;
|
266 |
$xml_parser->reset() ;
|
| 272 |
$xml_parser->setAction ('derniers_messages');
|
267 |
$xml_parser->setAction ('derniers_messages');
|
| 273 |
$xml_parser->load();
|
268 |
$xml_parser->load();
|
| 274 |
ob_start ();
|
269 |
ob_start ();
|