You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
$query = 'SELECT id_saison FROM saison WHERE active = "Y";';
$result = $mysql->Query($query);
$row = $result->fetch_assoc();
$result->close();
$id_saison = $row['id_saison'];
$secret = md5($_GET['t'].'secret des sentinelles');
$query = 'SELECT membre.id_membre FROM membre INNER JOIN inscription_nouvelle_saison ON inscription_nouvelle_saison.id_membre = membre.id_membre WHERE MD5(CONCAT(courriel, "inscription saison '.$annee.' sentinelles", "'.$secret.'")) = ?;';
$stmt = $mysql->Prepare($query);
$stmt->bind_param('s', $_GET['h']);
$stmt->execute();
$stmt->bind_result($id_membre);
if($stmt->fetch()) {
$stmt->close();
$query = 'SELECT id_inscription FROM inscription WHERE id_saison = '.$id_saison.' AND id_membre = '.$id_membre;
$result = $mysql->Query($query);
if(!$result->fetch_assoc()) {
$query = 'INSERT INTO inscription SET id_saison = '.$id_saison.', id_membre = '.$id_membre;