Subversion Repositories Applications.bazar

Rev

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

Rev 389 Rev 391
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.php,v 1.74.2.12 2008-04-16 12:38:17 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.php,v 1.74.2.13 2008-08-27 13:21:40 alexandre_tb Exp $
23
/**
23
/**
24
*
24
*
25
* Fonctions du module bazar
25
* Fonctions du module bazar
26
* 
26
* 
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
*@author        Florian Schmitt <florian@ecole-et-nature.org>
31
*@author        Florian Schmitt <florian@ecole-et-nature.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.74.2.12 $ $Date: 2008-04-16 12:38:17 $
34
*@version       $Revision: 1.74.2.13 $ $Date: 2008-08-27 13:21:40 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 938... Line 938...
938
		if (DB::isError($resultat)) {
938
		if (DB::isError($resultat)) {
939
			return ($resultat->getMessage().$resultat->getDebugInfo()) ;
939
			return ($resultat->getMessage().$resultat->getDebugInfo()) ;
940
		}
940
		}
941
		// Envoie d un mail aux administrateurs
941
		// Envoie d un mail aux administrateurs
942
		$utilisateur = new Administrateur_bazar($GLOBALS['AUTH']);
942
		$utilisateur = new Administrateur_bazar($GLOBALS['AUTH']);
943
		if ($utilisateur->isRedacteur($GLOBALS['_BAZAR_']['id_typeannonce'])) {
-
 
-
 
943
 
944
			$mails = bazar::getMailAdmin($GLOBALS['_BAZAR_']['id_typeannonce']);
944
		$mails = bazar::getMailAdmin($GLOBALS['_BAZAR_']['id_typeannonce']);
945
			include_once BAZ_CHEMIN_APPLI.'bibliotheque/bazarTemplate.class.php';
945
		include_once BAZ_CHEMIN_APPLI.'bibliotheque/bazarTemplate.class.php';
946
			$template = new bazarTemplate($GLOBALS['_BAZAR_']['db']);
946
		$template = new bazarTemplate($GLOBALS['_BAZAR_']['db']);
947
			$sujet = $template->getTemplate(BAZ_TEMPLATE_MAIL_NOUVELLE_FICHE_SUJET, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']);
947
		$sujet = $template->getTemplate(BAZ_TEMPLATE_MAIL_NOUVELLE_FICHE_SUJET, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']);
948
			$corps = $template->getTemplate(BAZ_TEMPLATE_MAIL_NOUVELLE_FICHE_CORPS, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']);
948
		$corps = $template->getTemplate(BAZ_TEMPLATE_MAIL_NOUVELLE_FICHE_CORPS, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['id_typeannonce']);
949
			if (is_array ($mails)) {
949
		if (is_array ($mails)) {
950
				foreach ($mails as $mail) {
950
			foreach ($mails as $mail) {
951
					mail ($mail, $sujet, $corps);
951
				mail ($mail, $sujet, $corps);
952
				}
-
 
953
			}
952
			}
954
		}
953
		}
Line 955... Line 954...
955
 
954
 
956
		return ;
955
		return ;
Line 1335... Line 1334...
1335
}
1334
}
Line 1336... Line 1335...
1336
 
1335
 
1337
/* +--Fin du code ----------------------------------------------------------------------------------------+
1336
/* +--Fin du code ----------------------------------------------------------------------------------------+
1338
*
1337
*
-
 
1338
* $Log: not supported by cvs2svn $
-
 
1339
* Revision 1.74.2.12  2008-04-16 12:38:17  alexandre_tb
-
 
1340
* verification des droits avant de permettre l ajout d une nouvelle fiche
1339
* $Log: not supported by cvs2svn $
1341
*
1340
* Revision 1.74.2.11  2008-03-17 11:03:02  jp_milcent
1342
* Revision 1.74.2.11  2008-03-17 11:03:02  jp_milcent
1341
* Ajout de l'authentification nécessaire pour déposer des commentaires.
1343
* Ajout de l'authentification nécessaire pour déposer des commentaires.
1342
* Corrections sur la gestion des paramêtres dans les urls (compatibilité applette Identification et Moteur de Recherche).
1344
* Corrections sur la gestion des paramêtres dans les urls (compatibilité applette Identification et Moteur de Recherche).
1343
*
1345
*