Subversion Repositories Applications.projet

Rev

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

Rev 16 Rev 22
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.8 2005-09-30 07:48:35 ddelon Exp $
23
// CVS : $Id: projetControleur.class.php,v 1.9 2005-10-04 10:09:23 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.8 $
36
*@version       $Revision: 1.9 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 1341... Line 1341...
1341
                // On la relie au projet
1341
                // On la relie au projet
1342
                $projet = new projet ($this->_db, $this->_id_projet) ;
1342
                $projet = new projet ($this->_db, $this->_id_projet) ;
1343
                $projet->ajouterListe($liste) ;
1343
                $projet->ajouterListe($liste) ;
Line 1344... Line 1344...
1344
                
1344
                
1345
                // Création de la liste
1345
                // Création de la liste
1346
                $resultat_creation = file_get_contents ('http://vpopmail.'.$liste->getDomaine().'/creation_liste.php?domaine='.
1346
                $resultat_creation = file_get_contents (PROJET_SERVEUR_VPOPMAIL.'/creation_liste.php?domaine='.
-
 
1347
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&parametres=aBiud') ;
-
 
1348
                                    echo PROJET_SERVEUR_VPOPMAIL.'/creation_liste.php?domaine='.
1347
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&parametres=aBiud') ;
1349
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&parametres=aBiud';
1348
                // Ajout du modérateur
1350
                // Ajout du modérateur
1349
                $resultat_ajout_moderateur = file_get_contents ('http://vpopmail.'.$liste->getDomaine().'/ajout_moderateur.php?domaine='.
1351
                $resultat_ajout_moderateur = file_get_contents (PROJET_SERVEUR_VPOPMAIL.'/ajout_moderateur.php?domaine='.
1350
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&mail='.$this->_auth->getUserName()) ;
1352
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&mail='.$this->_auth->getUserName()) ;
1351
                // Ajout du modérateur en tant qu'utilisateur
1353
                // Ajout du modérateur en tant qu'utilisateur
1352
                $resultat_ajout_utilisateur = file_get_contents ('http://vpopmail.'.$liste->getDomaine().'/ajout_abonne.php?domaine='.
1354
                $resultat_ajout_utilisateur = file_get_contents (PROJET_SERVEUR_VPOPMAIL.'/ajout_abonne.php?domaine='.
Line 1353... Line 1355...
1353
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&mail='.$this->_auth->getUserName()) ;
1355
                                    $liste->getDomaine().'&liste='.$liste->getNom().'&mail='.$this->_auth->getUserName()) ;
1354
 
1356
 
1355
            } else {
1357
            } else {
Line 1383... Line 1385...
1383
        // Suppression des listes synchronisés
1385
        // Suppression des listes synchronisés
1384
        $commande_supression_3 = 'rm -rf '.PROJET_CHEMIN_LISTES.$projet->_listes_associes[0]->getDomaine().
1386
        $commande_supression_3 = 'rm -rf '.PROJET_CHEMIN_LISTES.$projet->_listes_associes[0]->getDomaine().
1385
                                '/'.$projet->_listes_associes[0]->getNom() ;
1387
                                '/'.$projet->_listes_associes[0]->getNom() ;
1386
        $commande->ajouterCommande($commande_supression_3) ;
1388
        $commande->ajouterCommande($commande_supression_3) ;
Line 1387... Line 1389...
1387
        
1389
        
1388
        $resultat_suppression = file_get_contents('http://vpopmail.'.$projet->_listes_associes[0]->getDomaine().'/suppression_liste.php?domaine='.
1390
        $resultat_suppression = file_get_contents(PROJET_SERVEUR_VPOPMAIL.'/suppression_liste.php?domaine='.
1389
                                    $projet->_listes_associes[0]->getDomaine().'&liste='.$projet->_listes_associes[0]->getNom()) ;
1391
                                    $projet->_listes_associes[0]->getDomaine().'&liste='.$projet->_listes_associes[0]->getNom()) ;
1390
        $projet->supprimerListe($projet->_listes_associes[0]) ;
1392
        $projet->supprimerListe($projet->_listes_associes[0]) ;
1391
        return $resultat_suppression;
1393
        return $resultat_suppression;