Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 111 → Rev 112

/trunk/bazar.inscription.inc.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: bazar.inscription.inc.php,v 1.1 2005-09-29 16:14:17 alexandre_tb Exp $
// CVS : $Id: bazar.inscription.inc.php,v 1.2 2006-03-29 13:06:07 alexandre_tb Exp $
/**
*
*@package bazar
28,25 → 28,39
*@author Florian Schmitt <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $
*@version $Revision: 1.2 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | LES CONSTANTES DES ACTIONS DE BAZAR |
// +------------------------------------------------------------------------------------------------------+
// RAPPEL : On se situe dans la fonction afficherContenuCorps() de inscription.php
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
// requete pour récupérer l'ensemble des type d'annonces
$requete = 'select bn_id_nature from bazar_nature where bn_id_nature <> 2' ;
$resultat = $GLOBALS['ins_db']->query ($requete);
 
// +------------------------------------------------------------------------------------------------------+
// | LISTE de FONCTIONS |
// +------------------------------------------------------------------------------------------------------+
$SQL = '' ;
 
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
$SQL .= '('.$id_utilisateur.', '.$ligne->bn_id_nature.', 1),' ;
}
 
$SQL = substr ($SQL, 0, strlen ($SQL) - 1) ;
 
$requete = 'INSERT INTO bazar_droits VALUES '.$SQL;
 
if ($GLOBALS['AUTH']->getAuthData(INS_CHAMPS_EST_STRUCTURE) == 1) $requete.=',('.$id_utilisateur.',2,1)' ;
$resultat = $GLOBALS['ins_db']->query($requete);
if (DB::isError($resultat)) {
echo ($resultat->getMessage().$resultat->getDebugInfo()) ;
}
unset($resultat) ;
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/09/29 16:14:17 alexandre_tb
* version initiale
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/