Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: forums.php,v 1.4 2005-10-14 08:58:20 alexandre_tb Exp $
|
22 |
// CVS : $Id: forums.php,v 1.5 2005-10-17 16:19:51 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application projet
|
24 |
* Application projet
|
25 |
*
|
25 |
*
|
26 |
* Action forums
|
26 |
* Action forums
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@author Aucun
|
32 |
*@author Aucun
|
33 |
*@copyright Tela-Botanica 2000-2005
|
33 |
*@copyright Tela-Botanica 2000-2005
|
34 |
*@version $Revision: 1.4 $
|
34 |
*@version $Revision: 1.5 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 66... |
Line 66... |
66 |
} else {
|
66 |
} else {
|
67 |
$droits = PROJET_DROIT_AUCUN;
|
67 |
$droits = PROJET_DROIT_AUCUN;
|
68 |
}
|
68 |
}
|
Line 69... |
Line 69... |
69 |
|
69 |
|
70 |
// gestion de l'inscription désinscription à la liste
|
70 |
// gestion de l'inscription désinscription à la liste
|
71 |
// TO DO : la gestion de linscription au résumé
|
71 |
// TODO : la gestion de linscription au résumé
|
72 |
$inscription_liste = new inscription_liste($this->_db) ;
|
72 |
$inscription_liste = new inscription_liste($this->_db) ;
|
- |
|
73 |
$statut = $inscription_liste->getStatutInscrit( $info_liste->getId(), $this->_auth ) ;
|
73 |
$statut = $inscription_liste->getStatutInscrit( $info_liste->getId(), $this->_auth ) ;
|
74 |
if ($this->_auth->getAuth()) {
|
74 |
if ($statut == 2) {
|
75 |
if ($statut == 2) {
|
75 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_INSCRIPTION_LISTE);
|
76 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_INSCRIPTION_LISTE);
|
76 |
$inscription_laius ='<h2>'.PROJET_VOUS_ETES_INSCRIT.'</h2>'."\n" ;
|
77 |
$inscription_laius ='<h2>'.PROJET_VOUS_ETES_INSCRIT.'</h2>'."\n" ;
|
77 |
$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_SE_DESINSCRIRE_LISTE.'</a>'."\n" ;
|
78 |
$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_SE_DESINSCRIRE_LISTE.'</a>'."\n" ;
|
78 |
} else {
|
79 |
} else {
|
79 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_LISTE);
|
80 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_LISTE);
|
80 |
$inscription_laius ='<h2>'.PROJET_VOUS_N_ETES_PAS_INSCRIT.'</h2>'."\n" ;
|
81 |
$inscription_laius ='<h2>'.PROJET_VOUS_N_ETES_PAS_INSCRIT.'</h2>'."\n" ;
|
- |
|
82 |
$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>'."\n" ;
|
81 |
$inscription_laius .= '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>'."\n" ;
|
83 |
}
|
Line 82... |
Line 84... |
82 |
}
|
84 |
}
|
83 |
|
85 |
|
84 |
if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
|
86 |
if ($info_liste->isPublic() || $droits <= PROJET_DROIT_CONTRIBUTEUR) {
|