Subversion Repositories Applications.bazar

Rev

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

Rev 232 Rev 251
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.fonct.rss.php,v 1.82 2007-04-20 12:47:42 florian Exp $
22
// CVS : $Id: bazar.fonct.rss.php,v 1.83 2007-06-04 15:26:02 alexandre_tb 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-2006
30
*@copyright     Tela-Botanica 2000-2006
31
*@version       $Revision: 1.82 $
31
*@version       $Revision: 1.83 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 174... Line 174...
174
	//on verifie si l'utilisateur est administrateur
174
	//on verifie si l'utilisateur est administrateur
175
	$est_admin=0;
175
	$est_admin=0;
176
	$requete='SELECT bn_id_nature, bn_template, bn_commentaire, bn_label_class FROM bazar_nature WHERE bn_id_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'];
176
	$requete='SELECT bn_id_nature, bn_template, bn_commentaire, bn_label_class FROM bazar_nature WHERE bn_id_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'];
177
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
177
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
178
	if (DB::isError($resultat)) {
178
	if (DB::isError($resultat)) {
179
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
179
		return ($resultat->getMessage().$resultat->getDebugInfo()) ;
180
	}
180
	}
181
	$result = $resultat->fetchRow(DB_FETCHMODE_ASSOC);
181
	$result = $resultat->fetchRow(DB_FETCHMODE_ASSOC);
182
	$id_nature = $result['bn_id_nature'];
182
	$id_nature = $result['bn_id_nature'];
183
	if (!isset($GLOBALS['_BAZAR_']['template'])) $GLOBALS['_BAZAR_']['template'] = $result['bn_template'];
183
	if (!isset($GLOBALS['_BAZAR_']['template'])) $GLOBALS['_BAZAR_']['template'] = $result['bn_template'];
184
	if (!isset($GLOBALS['_BAZAR_']['commentaire'])) $GLOBALS['_BAZAR_']['commentaire'] = $result['bn_commentaire'];
184
	if (!isset($GLOBALS['_BAZAR_']['commentaire'])) $GLOBALS['_BAZAR_']['commentaire'] = $result['bn_commentaire'];
Line 1175... Line 1175...
1175
}
1175
}
Line 1176... Line 1176...
1176
 
1176
 
1177
/* +--Fin du code ----------------------------------------------------------------------------------------+
1177
/* +--Fin du code ----------------------------------------------------------------------------------------+
1178
*
1178
*
-
 
1179
* $Log: not supported by cvs2svn $
-
 
1180
* Revision 1.82  2007/04/20 12:47:42  florian
-
 
1181
* correction bugs suite au merge
1179
* $Log: not supported by cvs2svn $
1182
*
1180
* Revision 1.81  2007/04/20 09:59:41  florian
1183
* Revision 1.81  2007/04/20 09:59:41  florian
1181
* et un echo en moins!
1184
* et un echo en moins!
1182
*
1185
*
1183
* Revision 1.80  2007/04/20 09:57:21  florian
1186
* Revision 1.80  2007/04/20 09:57:21  florian