35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
|
|
require("../../include/variables.php");
|
|
require("../../include/main-functions.php");
|
|
|
|
session_start();
|
|
|
|
if (!isset($_SESSION['userRole']) || $_SESSION['userRole'] < 50) {
|
|
http_response_code(403);
|
|
die("Vous n'êtes pas autorisé à accéder à cette ressource");
|
|
}
|
|
|
|
$mailHeaders = array(
|
|
"test" => "Mail de test",
|
|
"rappel" => "Rappel adhésion"
|
|
);
|
|
|
|
$httpMails = array(
|
|
"test" => "Ceci est un email de test",
|
|
"rappel" => "<h3>Votre cotisation est en attente de paiement</h3><p>Votre statut de membre adhérent de la E59 débutera après paiement de la cotisation à l'adresse <a href='https://e59.fr/adhesion'>e59.fr/adhesion</a><br></br>Si vous souhaitez annuler votre demande d'adhésion, contactez-nous sur Discord</p>"
|
|
);
|
|
|
|
$altMails = array(
|
|
"test" => "Ceci est un email de test",
|
|
"rappel" => "Cotisation en attente de paiement"
|
|
);
|
|
|
|
$from = "no-reply@e59.fr";
|
|
$fromName = "Association E59";
|
|
|
|
sendMail($from, $fromName, $_GET['target'], $mailHeaders[$_GET['type']], $httpMails[$_GET['type']], $httpMails[$_GET['type']]);
|
|
|
|
header("Location: index.php");
|
|
|
|
?>
|