Add email to moderator
This commit is contained in:
parent
e4370de6f4
commit
c007d6a9cb
@ -64,19 +64,27 @@ if ($conf->don->enabled)
|
|||||||
|
|
||||||
if ($don->check($conf->don->minimum))
|
if ($don->check($conf->don->minimum))
|
||||||
{
|
{
|
||||||
$return = $don->create(0);
|
$ref_commande = $don->create(0);
|
||||||
|
|
||||||
if ($return)
|
if ($ref_commande)
|
||||||
{
|
{
|
||||||
$a = setlocale("LC_TIME", "FRENCH");
|
$a = setlocale("LC_TIME", "FRENCH");
|
||||||
$date_limite = strftime("%A %d %B %Y",time() + (3 * 7 * 24 * 3600));
|
$date_limite = strftime("%A %d %B %Y",time() + (3 * 7 * 24 * 3600));
|
||||||
|
|
||||||
include ("mail.php");
|
include ("mail.php");
|
||||||
|
|
||||||
|
include ("mail_moderator.php");
|
||||||
|
|
||||||
mail($don->email, $subject, $body, "From: contact@eucd.info");
|
mail($don->email, $subject, $body, "From: contact@eucd.info");
|
||||||
|
|
||||||
|
mail($conf->don->email_moderator, $subject_moderator, $body_moderator);
|
||||||
|
|
||||||
require("merci.php");
|
require("merci.php");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "Erreur : can't insert value in db";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user