Subversion Repositories Applications.papyrus

Rev

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

Rev 817 Rev 897
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser 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: inscription.fonct.wiki.php,v 1.3 2006-04-11 08:42:07 alexandre_tb Exp $
22
// CVS : $Id: inscription.fonct.wiki.php,v 1.4 2006-07-04 09:39:03 alexandre_tb Exp $
23
/**
23
/**
24
* Fonctions wikini
24
* Fonctions wikini
25
*
25
*
26
* Ce fichier propose 3 fonctions pour intervenir sur la table interwikini_users.
26
* Ce fichier propose 3 fonctions pour intervenir sur la table interwikini_users.
27
*
27
*
Line 30... Line 30...
30
//Auteur original :
30
//Auteur original :
31
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
*@author        Alexandre Granier <alexandre@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Aucun
33
*@author        Aucun
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.3 $ $Date: 2006-04-11 08:42:07 $
35
*@version       $Revision: 1.4 $ $Date: 2006-07-04 09:39:03 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 49... Line 49...
49
    $requete_verif = 'select name from interwikini_users where name="'.$valeur['nom_wiki'].'"';
49
    $requete_verif = 'select name from interwikini_users where name="'.$valeur['nom_wiki'].'"';
50
    $resultat_verif = $GLOBALS['ins_db']->query ($requete_verif) ;
50
    $resultat_verif = $GLOBALS['ins_db']->query ($requete_verif) ;
51
    if (DB::isError($resultat_verif)) {
51
    if (DB::isError($resultat_verif)) {
52
        echo ("Echec de la requete dans interwikini_users<br />".$resultat_verif->getMessage()) ;
52
        echo ("Echec de la requete dans interwikini_users<br />".$resultat_verif->getMessage()) ;
53
    }
53
    }
54
    if ($resultat->numRows() != 0) {
54
    if ($resultat_verif->numRows() != 0) {
55
    	return ;	
55
    	return ;	
56
    }
56
    }
57
    $requete = "insert into interwikini_users set name=\"".$valeur['nom_wiki'].
57
    $requete = "insert into interwikini_users set name=\"".$valeur['nom_wiki'].
58
                "\", password=\"".md5($valeur['mot_de_passe'])."\", email=\"".$valeur['email']."\"".
58
                "\", password=\"".md5($valeur['mot_de_passe'])."\", email=\"".$valeur['email']."\"".
59
                ', signuptime=now()' ;
59
                ', signuptime=now()' ;
Line 114... Line 114...
114
}
114
}
Line 115... Line 115...
115
 
115
 
116
/* +--Fin du code ----------------------------------------------------------------------------------------+
116
/* +--Fin du code ----------------------------------------------------------------------------------------+
117
*
117
*
-
 
118
* $Log: not supported by cvs2svn $
-
 
119
* Revision 1.3  2006/04/11 08:42:07  alexandre_tb
-
 
120
* Vérification de l'existance d'un nom wiki avant son insertion
118
* $Log: not supported by cvs2svn $
121
*
119
* Revision 1.2  2005/09/29 13:56:48  alexandre_tb
122
* Revision 1.2  2005/09/29 13:56:48  alexandre_tb
120
* En cours de production. Reste à gérer les news letters et d'autres choses.
123
* En cours de production. Reste à gérer les news letters et d'autres choses.
121
*
124
*
122
* Revision 1.1  2005/09/22 14:02:49  ddelon
125
* Revision 1.1  2005/09/22 14:02:49  ddelon