Subversion Repositories Applications.bazar

Rev

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

Rev 417 Rev 418
Line 988... Line 988...
988
		$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
988
		$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
989
		if (DB::isError($resultat)) {
989
		if (DB::isError($resultat)) {
990
			die($resultat->getMessage().$resultat->getDebugInfo()) ;
990
			die($resultat->getMessage().$resultat->getDebugInfo()) ;
991
		}
991
		}
Line 992... Line -...
992
		
-
 
993
		mail('aurelien@tela-botanica.org','debug',$requete) ;
-
 
994
		
992
		
995
		// Envoie d un mail aux administrateurs
993
		// Envoie d un mail aux administrateurs
996
		$utilisateur = new Administrateur_bazar($GLOBALS['AUTH']);
994
		$utilisateur = new Administrateur_bazar($GLOBALS['AUTH']);
997
		if (!$utilisateur->isAdmin($GLOBALS['_BAZAR_']['id_typeannonce']) || !$utilisateur->isSuperAdmin()) {
995
		if (!$utilisateur->isAdmin($GLOBALS['_BAZAR_']['id_typeannonce']) || !$utilisateur->isSuperAdmin()) {
998
			bazar::notifier();
996
			bazar::notifier(BAZAR_NOTIFICATION_NOUVELLE_FICHE);
Line 999... Line 997...
999
		}
997
		}
1000
		
998
		
1001
		// On redirige
999
		// On redirige
Line 1102... Line 1100...
1102
 
1100
 
1103
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
1101
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
1104
	if (DB::isError($resultat)) {
1102
	if (DB::isError($resultat)) {
1105
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
1103
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
-
 
1104
	}
-
 
1105
	
-
 
1106
	// Envoie d un mail aux administrateurs
-
 
1107
	$utilisateur = new Administrateur_bazar($GLOBALS['AUTH']);
-
 
1108
	if (!$utilisateur->isAdmin($GLOBALS['_BAZAR_']['id_typeannonce']) || !$utilisateur->isSuperAdmin()) {
-
 
1109
		bazar::notifier(BAZAR_NOTIFICATION_MODIFICATION_FICHE);
-
 
1110
	}
1106
	}
1111
	
1107
	return;
1112
	return;
Line 1108... Line 1113...
1108
}
1113
}