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.65 2007-02-15 14:18:38 jp_milcent Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.66 2007-02-15 17:38:46 jp_milcent 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.65 $
|
31 |
*@version $Revision: 1.66 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 167... |
Line 167... |
167 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
167 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
168 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete))
|
168 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete))
|
169 |
: '';
|
169 |
: '';
|
Line 170... |
Line 170... |
170 |
|
170 |
|
171 |
$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC) ;
|
171 |
$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC) ;
|
Line 172... |
Line 172... |
172 |
if (!isset($GLOBALS['_BAZAR_']['id_typeannonce'])) $GLOBALS['_BAZAR_']['id_typeannonce'] = $ligne['bf_ce_nature'];
|
172 |
if (!isset($GLOBALS['_BAZAR_']['typeannonce'])) $GLOBALS['_BAZAR_']['typeannonce'] = $ligne['bf_ce_nature'];
|
173 |
|
173 |
|
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_nature FROM bazar_nature WHERE bn_id_nature = '.$GLOBALS['_BAZAR_']['id_typeannonce'];
|
176 |
$requete='SELECT bn_id_nature, bn_template, bn_commentaire FROM bazar_nature WHERE bn_id_nature="'.$GLOBALS['_BAZAR_']['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 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
Line 1030... |
Line 1030... |
1030 |
}
|
1030 |
}
|
Line 1031... |
Line 1031... |
1031 |
|
1031 |
|
1032 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1032 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1033 |
*
|
1033 |
*
|
- |
|
1034 |
* $Log: not supported by cvs2svn $
|
- |
|
1035 |
* Revision 1.65 2007/02/15 14:18:38 jp_milcent
|
- |
|
1036 |
* Fusion avec la livraison Menes : 15 février 2007
|
1034 |
* $Log: not supported by cvs2svn $
|
1037 |
*
|
1035 |
* Revision 1.64 2007/02/02 14:00:41 alexandre_tb
|
1038 |
* Revision 1.64 2007/02/02 14:00:41 alexandre_tb
|
1036 |
* mise en place d'un template pour l'affichage du moteur de recherche
|
1039 |
* mise en place d'un template pour l'affichage du moteur de recherche
|
1037 |
*
|
1040 |
*
|
1038 |
* Revision 1.63 2007/01/18 14:37:34 alexandre_tb
|
1041 |
* Revision 1.63 2007/01/18 14:37:34 alexandre_tb
|