Subversion Repositories Applications.papyrus

Rev

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

Rev 1314 Rev 1315
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.29.2.4 2007-04-12 14:07:06 alexandre_tb Exp $
23
// CVS : $Id: projetControleur.class.php,v 1.29.2.5 2007-04-13 08:27:07 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.29.2.4 $
36
*@version       $Revision: 1.29.2.5 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 1655... Line 1655...
1655
	    	if (DB::isError ($resultat)) {
1655
	    	if (DB::isError ($resultat)) {
1656
	        	$GLOBALS['_GEN_commun']['debogage_erreur']->gererErreur(E_USER_WARNING, "Echec de la requete : $requete<br />".$resultat->getMessage(),
1656
	        	$GLOBALS['_GEN_commun']['debogage_erreur']->gererErreur(E_USER_WARNING, "Echec de la requete : $requete<br />".$resultat->getMessage(),
1657
	            	                                                            __FILE__, __LINE__, 'admin_wikini')   ;
1657
	            	                                                            __FILE__, __LINE__, 'admin_wikini')   ;
1658
	        	return ;
1658
	        	return ;
1659
	    	}
1659
	    	}
1660
 
-
 
1661
	    	$ligne = $resultat->fetchRow();
1660
	    	$ligne = $resultat->fetchRow();
-
 
1661
	    	include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
1662
			$projet = new projet($this->_db, $this->_id_projet) ;
1662
			$projet = new projet($this->_db, $this->_id_projet) ;
1663
        	$projet->majNomWikini($ligne[0]);
1663
        	$projet->majNomWikini($ligne[0]);
1664
    	}
1664
    	}
Line 1665... Line 1665...
1665
 
1665
 
Line 1675... Line 1675...
1675
    {
1675
    {
1676
        include_once PROJET_CHEMIN_CLASSES.'gestion_wikini.class.php' ;
1676
        include_once PROJET_CHEMIN_CLASSES.'gestion_wikini.class.php' ;
1677
        // On crée une nouvelle connexion avec les paramètres spécifiques aux wikinis
1677
        // On crée une nouvelle connexion avec les paramètres spécifiques aux wikinis
1678
        $connexion_bd = DB::connect('mysql://'.PROJET_UTILISATEUR_WIKINI.':'.PROJET_MDP_WIKINI.'@'.PROJET_HOTE_WIKINI.'/'.PROJET_DB_WIKINI) ;
1678
        $connexion_bd = DB::connect('mysql://'.PROJET_UTILISATEUR_WIKINI.':'.PROJET_MDP_WIKINI.'@'.PROJET_HOTE_WIKINI.'/'.PROJET_DB_WIKINI) ;
1679
        $gerantWiki = new gestion_wikini($connexion_bd) ;
1679
        $gerantWiki = new gestion_wikini($connexion_bd) ;
-
 
1680
        include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
1680
        $projet = new projet ($this->_db, $this->_id_projet) ;
1681
        $projet = new projet ($this->_db, $this->_id_projet) ;
1681
        $gerantWiki->suppression_tables(strtolower($projet->getWikini())) ;
1682
        $gerantWiki->suppression_tables(strtolower($projet->getWikini())) ;
1682
        $projet->majNomWikini('') ;
1683
        $projet->majNomWikini('') ;
1683
    } // end of member function supprimerWiki
1684
    } // end of member function supprimerWiki