Subversion Repositories Applications.projet

Rev

Rev 46 | Rev 59 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 46 Rev 54
Line 18... Line 18...
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
// +------------------------------------------------------------------------------------------------------+
Line 22... Line 22...
22
 
22
 
Line 23... Line 23...
23
// CVS : $Id: projetControleur.class.php,v 1.15 2005-10-20 10:28:25 ddelon Exp $
23
// CVS : $Id: projetControleur.class.php,v 1.16 2005-10-25 13:48:27 alexandre_tb Exp $
24
 
24
 
25
/**
25
/**
26
* Application projet
26
* Application projet
Line 31... Line 31...
31
//Auteur original :
31
//Auteur original :
32
*@author        Alexandre Granier <alexandre@tela-botanica.org>
32
*@author        Alexandre Granier <alexandre@tela-botanica.org>
33
//Autres auteurs :
33
//Autres auteurs :
34
*@author        Aucun
34
*@author        Aucun
35
*@copyright     Tela-Botanica 2000-2004
35
*@copyright     Tela-Botanica 2000-2004
36
*@version       $Revision: 1.15 $
36
*@version       $Revision: 1.16 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 181... Line 181...
181
   /**
181
   /**
182
     * Le type du projets, par défaut 0, signifie en pas de type particumier.
182
     * Le type du projets, par défaut 0, signifie en pas de type particumier.
183
     * Valeurs possibles: 0, 1, 2, 3 ...
183
     * Valeurs possibles: 0, 1, 2, 3 ...
184
     * @access private
184
     * @access private
185
     */
185
     */
186
    var $_projet_exclu = array();
-
 
187
 
186
     
-
 
187
     var $_type ;
188
   /**
188
   /**
189
     * Le tableau des projets à ne pas affiché, ni dans l'arbre, ni dans les listes
189
     * Le tableau des projets à ne pas afficher, ni dans l'arbre, ni dans les listes
-
 
190
     * @access private
-
 
191
     */
-
 
192
 	var $_projet_exclu = array();
-
 
193
 	
-
 
194
 	/**
-
 
195
     * parametre indiquant le type d'inscription possible
190
     * @access private
196
     * @access private
191
     */
197
     */
-
 
198
 	var $_prive = 0 ;
192
 
199
 	
193
    /**
200
    /**
194
     * Méthode principale de la classe. Elle permet d'appeler les méthodes du modules
201
     * Méthode principale de la classe. Elle permet d'appeler les méthodes du modules
195
     * projet en fonction de l'action.
202
     * projet en fonction de l'action.
196
     *
203
     *
197
     * @return string
204
     * @return string
Line 729... Line 736...
729
                        $res .= $label_inscription.'</a></li> ';
736
                        $res .= $label_inscription.'</a></li> ';
730
                    }
737
                    }
731
                }
738
                }
Line 732... Line 739...
732
                
739
                
733
            $res .= '</ul>' ;
740
            $res .= '</ul>' ;
734
            } else if ($auth){
741
            } else if ($auth && !$this->_prive){
735
                // L'action s'inscrire du projet
742
                // L'action s'inscrire du projet
736
                $this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE) ;
743
                $this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE) ;
737
                $res .= "<li><a href=\"".$this->_url->getURL()."\">".PROJET_S_INSCRIRE_AU_PROJET."</a></li>\n" ;
744
                $res .= "<li><a href=\"".$this->_url->getURL()."\">".PROJET_S_INSCRIRE_AU_PROJET."</a></li>\n" ;
738
            }
745
            }
Line 1387... Line 1394...
1387
                $projet->ajouterListe($liste) ;
1394
                $projet->ajouterListe($liste) ;
Line 1388... Line 1395...
1388
                
1395
                
1389
                // Création de la liste
1396
                // Création de la liste
1390
                $resultat_creation = file_get_contents (PROJET_SERVEUR_VPOPMAIL.'/creation_liste.php?domaine='.
1397
                $resultat_creation = file_get_contents (PROJET_SERVEUR_VPOPMAIL.'/creation_liste.php?domaine='.
1391
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&parametres=aBiud') ;
-
 
1392
                                    echo PROJET_SERVEUR_VPOPMAIL.'/creation_liste.php?domaine='.
-
 
-
 
1398
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&parametres=aBiud') ;
1393
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&parametres=aBiud';
1399
                                    
1394
                // Ajout du modérateur
1400
                // Ajout du modérateur
1395
                $resultat_ajout_moderateur = file_get_contents (PROJET_SERVEUR_VPOPMAIL.'/ajout_moderateur.php?domaine='.
1401
                $resultat_ajout_moderateur = file_get_contents (PROJET_SERVEUR_VPOPMAIL.'/ajout_moderateur.php?domaine='.
1396
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&mail='.$this->_auth->getUserName()) ;
1402
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&mail='.$this->_auth->getUserName()) ;
1397
                // Ajout du modérateur en tant qu'utilisateur
1403
                // Ajout du modérateur en tant qu'utilisateur
Line 1841... Line 1847...
1841
    function exclure($id_projet)
1847
    function exclure($id_projet)
1842
    {
1848
    {
1843
       array_push ($this->_projet_exclu, $id_projet) ;
1849
       array_push ($this->_projet_exclu, $id_projet) ;
1844
    } // end of member function exclure
1850
    } // end of member function exclure
Line -... Line 1851...
-
 
1851
 
-
 
1852
    /**
-
 
1853
     * permet d'exclure un projet de l'affichage
-
 
1854
     *
-
 
1855
     * @return void
-
 
1856
     * @access public
-
 
1857
     */
-
 
1858
    function setPrive()
-
 
1859
    {
-
 
1860
       $this->_prive = 1 ;
-
 
1861
    } // end of member function exclure
Line 1845... Line 1862...
1845
 
1862
 
1846
 
1863
 
1847
 
1864