Subversion Repositories Applications.bazar

Rev

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

Rev 112 Rev 121
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: bazar.inscription.inc.php,v 1.2 2006-03-29 13:06:07 alexandre_tb Exp $
22
// CVS : $Id: bazar.inscription.inc.php,v 1.3 2006-04-28 16:10:17 florian Exp $
23
/**
23
/**
24
* 
24
* 
25
*@package bazar
25
*@package bazar
26
//Auteur original :
26
//Auteur original :
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
29
//Autres auteurs :
29
//Autres auteurs :
30
*@copyright     Tela-Botanica 2000-2005
30
*@copyright     Tela-Botanica 2000-2005
31
*@version       $Revision: 1.2 $
31
*@version       $Revision: 1.3 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
Line 35... Line 35...
35
// RAPPEL : On se situe dans la fonction afficherContenuCorps() de inscription.php 
35
// RAPPEL : On se situe dans la fonction afficherContenuCorps() de inscription.php 
36
 
36
 
37
// requete pour récupérer l'ensemble des type d'annonces
37
// requete pour récupérer l'ensemble des type d'annonces
Line 38... Line 38...
38
$requete = 'select bn_id_nature from bazar_nature where bn_id_nature <> 2' ;
38
$requete = 'select bn_id_nature from bazar_nature where 1' ;
Line 39... Line 39...
39
$resultat = $GLOBALS['ins_db']->query ($requete);
39
$resultat = $GLOBALS['ins_db']->query ($requete);
Line 46... Line 46...
46
 
46
 
Line 47... Line 47...
47
$SQL = substr ($SQL, 0, strlen ($SQL) - 1) ;
47
$SQL = substr ($SQL, 0, strlen ($SQL) - 1) ;
Line 48... Line -...
48
 
-
 
49
$requete = 'INSERT INTO bazar_droits VALUES '.$SQL;
48
 
50
 
49
$requete = 'INSERT INTO bazar_droits VALUES '.$SQL;
51
if ($GLOBALS['AUTH']->getAuthData(INS_CHAMPS_EST_STRUCTURE) == 1) $requete.=',('.$id_utilisateur.',2,1)' ;
50
 
52
$resultat = $GLOBALS['ins_db']->query($requete);
51
$resultat = $GLOBALS['ins_db']->query($requete);
53
if (DB::isError($resultat)) {
52
if (DB::isError($resultat)) {
Line 54... Line 53...
54
	echo ($resultat->getMessage().$resultat->getDebugInfo()) ;
53
	echo ($resultat->getMessage().$resultat->getDebugInfo()) ;
55
}
54
}
56
unset($resultat) ;
55
unset($resultat) ;
-
 
56
 
-
 
57
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
58
*
57
 
59
* $Log: not supported by cvs2svn $
58
/* +--Fin du code ----------------------------------------------------------------------------------------+
60
* Revision 1.2  2006/03/29 13:06:07  alexandre_tb
59
*
61
* Code initial
60
* $Log: not supported by cvs2svn $
62
*
61
* Revision 1.1  2005/09/29 16:14:17  alexandre_tb
63
* Revision 1.1  2005/09/29 16:14:17  alexandre_tb