diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/config/global.ini b/config/global.ini index c409f8c5..9246bfec 100755 --- a/config/global.ini +++ b/config/global.ini @@ -27,7 +27,8 @@ headerSubtitle = "Rassembler pour innover" footerText = "© Association E59 - v1.7" [darkThemes] -0 = '.body {--text: #ffffff; --background: #0e0e0e; --panel-background: #0e0e0e; --buttons: #ffffff} textarea, .form, .select-input, .text-input, .file-input input, .date-input {border:1px solid #a0a0a0} .button, button {color: #0E0E0E}'1 = '.body {--text: hsl(208, 100%, 96%); --background: hsl(215, 21%, 11%); --panel-background: hsl(216, 28%, 7%); --buttons: hsl(216, 28%, 7%)} .form .button, .form button {border:1px solid #3E3E3E}' +0 = '.body {--text: #ffffff; --background: #0e0e0e; --panel-background: #0e0e0e; --buttons: #ffffff} textarea, .form, .select-input, .text-input, .file-input input, .date-input {border:1px solid #a0a0a0} .button, button {color: #0E0E0E}' +1 = '.body {--text: hsl(208, 100%, 96%); --background: hsl(215, 21%, 11%); --panel-background: hsl(216, 28%, 7%); --buttons: hsl(216, 28%, 7%)} .form .button, .form button {border:1px solid #3E3E3E}' 2 = '.body {--text: hsl(160, 65%, 95%); --background: hsl(160, 65%, 3%); --panel-background: hsl(160, 65%, 3%); --buttons: hsl(160, 65%, 3%)} .text-input, .date-input, .file-input input, .select-input, .select-input select, textarea, .button, button, .form {border:1px solid var(--text)}' [lightThemes] diff --git a/content/articles/16.md b/content/articles/16.md old mode 100644 new mode 100755 diff --git a/content/articles/17.md b/content/articles/17.md old mode 100644 new mode 100755 diff --git a/content/articles/18.md b/content/articles/18.md old mode 100644 new mode 100755 diff --git a/content/articles/19.md b/content/articles/19.md old mode 100644 new mode 100755 diff --git a/content/articles/20.md b/content/articles/20.md old mode 100644 new mode 100755 diff --git a/content/articles/21.md b/content/articles/21.md old mode 100644 new mode 100755 diff --git a/content/articles/23.md b/content/articles/23.md old mode 100644 new mode 100755 diff --git a/content/pages/data.md b/content/pages/data.md old mode 100644 new mode 100755 diff --git a/database/E59.sql b/database/E59.sql old mode 100644 new mode 100755 diff --git a/html/.htaccess b/html/.htaccess old mode 100644 new mode 100755 diff --git a/html/about/data.php b/html/about/data.php old mode 100644 new mode 100755 diff --git a/html/about/doc.php b/html/about/doc.php old mode 100644 new mode 100755 diff --git a/html/about/docs/pdf/Brand-Guidelines.pdf b/html/about/docs/pdf/Brand-Guidelines.pdf old mode 100644 new mode 100755 diff --git a/html/about/docs/pdf/PV-AG1-E59-UVSQ-signe.pdf b/html/about/docs/pdf/PV-AG1-E59-UVSQ-signe.pdf old mode 100644 new mode 100755 diff --git a/html/about/docs/pdf/RIB-E59-UVSQ.pdf b/html/about/docs/pdf/RIB-E59-UVSQ.pdf old mode 100644 new mode 100755 diff --git a/html/about/docs/pdf/Recepisse-Declaration-E59-UVSQ.pdf b/html/about/docs/pdf/Recepisse-Declaration-E59-UVSQ.pdf old mode 100644 new mode 100755 diff --git a/html/about/docs/pdf/Reglement-Interieur-E59-UVSQ.pdf b/html/about/docs/pdf/Reglement-Interieur-E59-UVSQ.pdf old mode 100644 new mode 100755 diff --git a/html/about/docs/pdf/SIRENE-E59-UVSQ.pdf b/html/about/docs/pdf/SIRENE-E59-UVSQ.pdf old mode 100644 new mode 100755 diff --git a/html/about/docs/pdf/Statuts-E59-UVSQ.pdf b/html/about/docs/pdf/Statuts-E59-UVSQ.pdf old mode 100644 new mode 100755 diff --git a/html/about/img/20240802_attestation_de_compte.jpg b/html/about/img/20240802_attestation_de_compte.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/Avis_de_situation_93136061400016_02_08_2024 21_32_17.jpg b/html/about/img/Avis_de_situation_93136061400016_02_08_2024 21_32_17.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/Brand-Guidelines.jpg b/html/about/img/Brand-Guidelines.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/PV-AG1-E59-UVSQ-signe.jpg b/html/about/img/PV-AG1-E59-UVSQ-signe.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/RIB-E59-UVSQ.jpg b/html/about/img/RIB-E59-UVSQ.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/Recepisse-Declaration-E59-UVSQ.jpg b/html/about/img/Recepisse-Declaration-E59-UVSQ.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/Recepisse_CR.jpg b/html/about/img/Recepisse_CR.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/Reglement-Interieur-E59-UVSQ.jpg b/html/about/img/Reglement-Interieur-E59-UVSQ.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/SIRENE-E59-UVSQ.jpg b/html/about/img/SIRENE-E59-UVSQ.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/Statuts-E59-UVSQ.jpg b/html/about/img/Statuts-E59-UVSQ.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/brand-guidelines-e59.jpg b/html/about/img/brand-guidelines-e59.jpg old mode 100644 new mode 100755 diff --git a/html/about/img/statuts-e59-uvsq.jpg b/html/about/img/statuts-e59-uvsq.jpg old mode 100644 new mode 100755 diff --git a/html/abracadabra.php b/html/abracadabra.php new file mode 100755 index 00000000..416d2292 --- /dev/null +++ b/html/abracadabra.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/html/adhesion/.htaccess b/html/adhesion/.htaccess old mode 100644 new mode 100755 diff --git a/html/adhesion/composer.json b/html/adhesion/composer.json old mode 100644 new mode 100755 diff --git a/html/adhesion/composer.lock b/html/adhesion/composer.lock old mode 100644 new mode 100755 diff --git a/html/adhesion/index.php b/html/adhesion/index.php index 1acd2c44..22c57ede 100755 --- a/html/adhesion/index.php +++ b/html/adhesion/index.php @@ -40,8 +40,9 @@ if (isset($_POST['lastname']) && isset($_POST['firstname']) && isset($_POST['ema $result = $request->fetchAll(PDO::FETCH_ASSOC); if($result) { - $status = "Vous avez déjà fait une demande d'adhésion"; + $requestAlreadySent = true; } else { + $requestAlreadySent = false; $request = $pdo->prepare("INSERT INTO adhesion_requests (firstname, lastname, born, promo, club, email, userid) VALUES (:firstname, :lastname, :born, :promo, :club, :email, :userid)"); $request->bindParam(':firstname', $firstname); $request->bindParam(':lastname', $lastname); @@ -89,6 +90,8 @@ if (isset($_POST['lastname']) && isset($_POST['firstname']) && isset($_POST['ema + + ?> @@ -130,30 +133,34 @@ if (isset($_POST['lastname']) && isset($_POST['firstname']) && isset($_POST['ema
Adhérer à l'association
prepare($sqlRequest); - $request->bindParam(":userID", $_SESSION['userID']); - $request->execute(); - $user = $request->fetchAll(PDO::FETCH_ASSOC); + if (!$requestAlreadySent) { + $sqlRequest = "SELECT username, email FROM users WHERE ID = :userID"; + $request = $pdo->prepare($sqlRequest); + $request->bindParam(":userID", $_SESSION['userID']); + $request->execute(); + $user = $request->fetchAll(PDO::FETCH_ASSOC); - $sqlRequest = "SELECT ID, name FROM clubs"; - $request = $pdo->prepare($sqlRequest); - $request->execute(); - $clubs = $request->fetchAll(PDO::FETCH_ASSOC); - foreach($clubs as $club) { - $club_names[] = $club["name"]; + $sqlRequest = "SELECT ID, name FROM clubs"; + $request = $pdo->prepare($sqlRequest); + $request->execute(); + $clubs = $request->fetchAll(PDO::FETCH_ASSOC); + foreach($clubs as $club) { + $club_names[] = $club["name"]; + } + + textInput("text", "", "lastname", "Nom", isset($_POST['lastname']) ? $_POST['lastname'] : ""); + textInput("text", "", "firstname", "Prénom", isset($_POST['firstname']) ? $_POST['firstname'] : ""); + textInput("email", "", "email", "Email", isset($_POST['email']) ? $_POST['email'] : $user[0]['email']); + textInput("text", "", "promo", "Promo", isset($_POST['promo']) ? $_POST['promo'] : ""); + //selectInput("club", "Club", $club_names, isset($_POST['club']) ? $_POST['club'] : $club_names[0]); + dateInput("born", "Né le", "1930-01-01", isset($_POST['born']) ? $_POST['born'] : "2005-01-01"); + echo (''); + echo ('
Vous serez invité à payer la cotisation annuelle fixée à 1€/an une fois votre demande validée par le conseil d\'administration.
'); + echo ('Annuler'); + } else { + echo ("Votre demande d'adhésion est en cours de traitement"); } - - textInput("text", "", "lastname", "Nom", isset($_POST['lastname']) ? $_POST['lastname'] : ""); - textInput("text", "", "firstname", "Prénom", isset($_POST['firstname']) ? $_POST['firstname'] : ""); - textInput("email", "", "email", "Email", isset($_POST['email']) ? $_POST['email'] : $user[0]['email']); - textInput("text", "", "promo", "Promo", isset($_POST['promo']) ? $_POST['promo'] : ""); - //selectInput("club", "Club", $club_names, isset($_POST['club']) ? $_POST['club'] : $club_names[0]); - dateInput("born", "Né le", "1930-01-01", isset($_POST['born']) ? $_POST['born'] : "2005-01-01"); ?> - -
L'adhésion sera effective après validation par le conseil d'administration et paiement de la cotisation fixée à 1€/an minimum.
- Annuler diff --git a/html/adhesion/vendor/autoload.php b/html/adhesion/vendor/autoload.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/ClassLoader.php b/html/adhesion/vendor/composer/ClassLoader.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/InstalledVersions.php b/html/adhesion/vendor/composer/InstalledVersions.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/LICENSE b/html/adhesion/vendor/composer/LICENSE old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/autoload_classmap.php b/html/adhesion/vendor/composer/autoload_classmap.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/autoload_namespaces.php b/html/adhesion/vendor/composer/autoload_namespaces.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/autoload_psr4.php b/html/adhesion/vendor/composer/autoload_psr4.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/autoload_real.php b/html/adhesion/vendor/composer/autoload_real.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/autoload_static.php b/html/adhesion/vendor/composer/autoload_static.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/installed.json b/html/adhesion/vendor/composer/installed.json old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/installed.php b/html/adhesion/vendor/composer/installed.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/composer/platform_check.php b/html/adhesion/vendor/composer/platform_check.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/.editorconfig b/html/adhesion/vendor/phpmailer/phpmailer/.editorconfig old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/COMMITMENT b/html/adhesion/vendor/phpmailer/phpmailer/COMMITMENT old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/LICENSE b/html/adhesion/vendor/phpmailer/phpmailer/LICENSE old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/README.md b/html/adhesion/vendor/phpmailer/phpmailer/README.md old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/SECURITY.md b/html/adhesion/vendor/phpmailer/phpmailer/SECURITY.md old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/VERSION b/html/adhesion/vendor/phpmailer/phpmailer/VERSION old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/composer.json b/html/adhesion/vendor/phpmailer/phpmailer/composer.json old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/get_oauth_token.php b/html/adhesion/vendor/phpmailer/phpmailer/get_oauth_token.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-as.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-as.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-bn.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-bn.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-mn.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-mn.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-si.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-si.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php b/html/adhesion/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/src/DSNConfigurator.php b/html/adhesion/vendor/phpmailer/phpmailer/src/DSNConfigurator.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/src/Exception.php b/html/adhesion/vendor/phpmailer/phpmailer/src/Exception.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/src/OAuth.php b/html/adhesion/vendor/phpmailer/phpmailer/src/OAuth.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php b/html/adhesion/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/src/PHPMailer.php b/html/adhesion/vendor/phpmailer/phpmailer/src/PHPMailer.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/src/POP3.php b/html/adhesion/vendor/phpmailer/phpmailer/src/POP3.php old mode 100644 new mode 100755 diff --git a/html/adhesion/vendor/phpmailer/phpmailer/src/SMTP.php b/html/adhesion/vendor/phpmailer/phpmailer/src/SMTP.php old mode 100644 new mode 100755 diff --git a/html/admin/.htaccess b/html/admin/.htaccess new file mode 100644 index 00000000..08588544 --- /dev/null +++ b/html/admin/.htaccess @@ -0,0 +1,15 @@ + + Order Allow,Deny + Deny from all + + + + Order Allow,Deny + Deny from all + + +# Assurez-vous que le module mod_rewrite est activé +RewriteEngine On + +# Bloquer l'accès aux répertoires old et vendor +RewriteRule ^vendor - [F,L] \ No newline at end of file diff --git a/html/admin/adherents.php b/html/admin/adherents.php new file mode 100644 index 00000000..abfab6d6 --- /dev/null +++ b/html/admin/adherents.php @@ -0,0 +1,189 @@ +prepare($sql); + $insertStmt->bindParam(1, $userID, PDO::PARAM_INT); + + // Préparation de la requête + if ($insertStmt->execute()) { + // Requête pour supprimer la ligne de la table d'origine + $sqlDelete = "DELETE FROM adhesion_requests WHERE ID = ?"; + + // Préparation de la requête de suppression + $deleteStmt = $pdo->prepare($sql2); + $deleteStmt->bindParam(1, $userID, PDO::PARAM_INT); + + // Exécution de la requête de suppression + if ($deleteStmt->execute()) { + // Valider la transaction + $status = "Adhésion validée"; + + $mail = new PHPMailer(true); + + try { + // Paramètres du serveur SMTP + $mail->isSMTP(); // Utiliser SMTP + $mail->Host = 'outlook.office365.com'; // Serveur SMTP Exchange + $mail->SMTPAuth = true; // Activer l'authentification SMTP + $mail->Username = 'smtp@e59.fr'; // Nom d'utilisateur SMTP + $mail->Password = 'WTFdoto5678TFWT'; // Mot de passe SMTP + $mail->SMTPSecure = 'tls'; // Activer le cryptage TLS + $mail->Port = 587; // Port TCP pour TLS + + // Destinataires + $mail->setFrom('service-adhesions@e59.fr', 'Adhesions E59'); + $mail->addAddress($_POST['adhesion-email']); + + // Vous pouvez ajouter d'autres destinataires en utilisant $mail->addAddress() + // $mail->addAddress('autre-destinataire@example.com'); + // Vous pouvez aussi ajouter des destinataires en copie (CC) ou en copie cachée (BCC) + // $mail->addCC('cc@example.com'); + // $mail->addBCC('bcc@example.com'); + + // Pièces jointes (si nécessaire) + // $mail->addAttachment('/path/to/file.pdf'); // Ajouter un fichier joint + + // Contenu de l'email + $mail->isHTML(true); // Activer le format HTML pour l'email + $mail->Subject = "Demande d'adhesion validee"; + $mail->Body = "Demande d'adhesion acceptee

Votre demande d'adhesion a ete validee

Votre demande d'adhesion a l'association E59-UVSQ a ete validee.

Vous trouverez ci-dessous un lien vers la page de paiement de la cotisation.

pay.e59.fr/cotisation
"; + $mail->AltBody = 'Veuillez payer votre cotisation sur pay.e59.fr/cotisation'; + + // Envoyer l'email + $mail->send(); + } catch (Exception $e) { + error_log("Erreur de Mailer: {$mail->ErrorInfo}"); + } + } else { + // En cas d'erreur lors de la suppression, annuler la transaction + $status = "Erreur lors de la suppression de la ligne"; + error_log("Erreur lors de l'exécution de la requête de suppression : " . $deleteStmt->errorInfo()[2]); + } + } else { + // En cas d'erreur lors de l'insertion, annuler la transaction + $status = "Erreur lors de l'insertion de la ligne"; + error_log("Erreur lors de l'exécution de la requête d'insertion : " . $insertStmt->errorInfo()[2]); + } + } catch (Exception $e) { + // En cas d'exception, annuler la transaction + $status = "Erreur SQL"; + error_log("Erreur : " . $e->getMessage()); + } +}*/ + +?> + + + + + + + + + + + +
+
+ +
+
+ + + +
+
+ +
+ '; + textInput("text", $shapePath, "search", "Chercher", ""); + echo (''); + + $search = isset($_GET['search']) ? '%' . $_GET['search'] . '%' : '%%'; + + $sqlRequest = "SELECT adherents.ID, adherents.firstname, adherents.lastname, adherents.email, adherents.validation_date FROM adherents"; + $request = $pdo->prepare($sqlRequest); + $request->execute(); + $result = $request->fetchAll(PDO::FETCH_ASSOC); + + if ($result) { + echo ('
'); + foreach($result as $row) { + echo ('
'); + echo ('
'); + echo ('
' . $row['firstname'] . ' ' . $row['lastname'] . '
' . $row['validation_date'] . '
'); + } + echo ('
'); + } else { + echo ('Aucun utilisateur trouvé.'); + } + ?> +
+
Demandes d'adhésion
+
Adhésions non payées
+
+
+ + + \ No newline at end of file diff --git a/html/admin/adhesion-valid.html b/html/admin/adhesion-valid.html new file mode 100644 index 00000000..47211259 --- /dev/null +++ b/html/admin/adhesion-valid.html @@ -0,0 +1 @@ +Demande d'adhesion acceptee

Votre demande d'adhesion a ete validee

Votre demande d'adhesion a l'association E59-UVSQ a ete validee.

Vous trouverez ci-dessous un lien vers la page de paiement de la cotisation.

pay.e59.fr/cotisation
\ No newline at end of file diff --git a/html/admin/adhesions-non-payees.php b/html/admin/adhesions-non-payees.php new file mode 100644 index 00000000..266a3c3a --- /dev/null +++ b/html/admin/adhesions-non-payees.php @@ -0,0 +1,192 @@ +prepare($sql); + $insertStmt->bindParam(1, $userID, PDO::PARAM_INT); + + // Préparation de la requête + if ($insertStmt->execute()) { + // Requête pour supprimer la ligne de la table d'origine + $sqlDelete = "DELETE FROM adhesions_non_payees WHERE ID = ?"; + + // Préparation de la requête de suppression + $deleteStmt = $pdo->prepare($sql2); + $deleteStmt->bindParam(1, $userID, PDO::PARAM_INT); + + // Exécution de la requête de suppression + if ($deleteStmt->execute()) { + // Valider la transaction + $status = "Adhésion validée"; + + $mail = new PHPMailer(true); + + try { + // Paramètres du serveur SMTP + $mail->isSMTP(); // Utiliser SMTP + $mail->Host = 'outlook.office365.com'; // Serveur SMTP Exchange + $mail->SMTPAuth = true; // Activer l'authentification SMTP + $mail->Username = 'smtp@e59.fr'; // Nom d'utilisateur SMTP + $mail->Password = 'WTFdoto5678TFWT'; // Mot de passe SMTP + $mail->SMTPSecure = 'tls'; // Activer le cryptage TLS + $mail->Port = 587; // Port TCP pour TLS + + // Destinataires + $mail->setFrom('service-adhesions@e59.fr', 'Adhesions E59'); + $mail->addAddress($_POST['adhesion-email']); + + // Vous pouvez ajouter d'autres destinataires en utilisant $mail->addAddress() + // $mail->addAddress('autre-destinataire@example.com'); + // Vous pouvez aussi ajouter des destinataires en copie (CC) ou en copie cachée (BCC) + // $mail->addCC('cc@example.com'); + // $mail->addBCC('bcc@example.com'); + + // Pièces jointes (si nécessaire) + // $mail->addAttachment('/path/to/file.pdf'); // Ajouter un fichier joint + + // Contenu de l'email + $mail->isHTML(true); // Activer le format HTML pour l'email + $mail->Subject = "Validation de paiement"; + $mail->Body = "Demande d'adhesion acceptee

Validation de paiement

Nous avons bien recu votre paiement de cotisation

Vous etes desormais membre de l'association E59

"; + $mail->AltBody = 'Vous etes membre de l\'association E59 !'; + + // Envoyer l'email + $mail->send(); + } catch (Exception $e) { + error_log("Erreur de Mailer: {$mail->ErrorInfo}"); + } + } else { + // En cas d'erreur lors de la suppression, annuler la transaction + $status = "Erreur lors de la suppression de la ligne"; + error_log("Erreur lors de l'exécution de la requête de suppression : " . $deleteStmt->errorInfo()[2]); + } + } else { + // En cas d'erreur lors de l'insertion, annuler la transaction + $status = "Erreur lors de l'insertion de la ligne"; + error_log("Erreur lors de l'exécution de la requête d'insertion : " . $insertStmt->errorInfo()[2]); + } + } catch (Exception $e) { + // En cas d'exception, annuler la transaction + $status = "Erreur SQL"; + error_log("Erreur : " . $e->getMessage()); + } +} + +?> + + + + + + + + + + + +
+
+ +
+
+ + + +
+
+ +
+ '); + $shapePath = ''; + textInput("text", $shapePath, "search", "Chercher", ""); + echo (''); + + $search = isset($_GET['search']) ? '%' . $_GET['search'] . '%' : '%%'; + + $sqlRequest = "SELECT adhesions_non_payees.ID, adhesions_non_payees.firstname, adhesions_non_payees.lastname, adhesions_non_payees.email, adhesions_non_payees.validation_date FROM adhesions_non_payees"; + $request = $pdo->prepare($sqlRequest); + $request->execute(); + $result = $request->fetchAll(PDO::FETCH_ASSOC); + + if ($result) { + echo ('
'); + foreach($result as $row) { + echo ('
'); + echo ('
'); + echo ('
' . $row['firstname'] . ' ' . $row['lastname'] . '
' . $row['validation_date'] . '
'); + echo ('
'); + } + echo ('
'); + } else { + echo ('Aucun utilisateur trouvé.'); + } + ?> +
+
Adhérents
+
Demandes d'adhésion
+
+
+ + + \ No newline at end of file diff --git a/html/admin/adhesions.php b/html/admin/adhesions.php old mode 100644 new mode 100755 index 0cc0bd0f..8e795f1d --- a/html/admin/adhesions.php +++ b/html/admin/adhesions.php @@ -1,7 +1,11 @@ prepare($sql); - $insertStmt->bindParam(1, $userID, PDO::PARAM_INT); + $sql2 = "DELETE FROM adhesion_requests WHERE ID = ?;"; + + $insertStmt = $pdo->prepare($sql); + $insertStmt->bindParam(1, $userID, PDO::PARAM_INT); // Préparation de la requête if ($insertStmt->execute()) { @@ -42,17 +46,51 @@ if (isset($_POST['adhesion-id'])) { // Exécution de la requête de suppression if ($deleteStmt->execute()) { // Valider la transaction - $pdo->commit(); $status = "Adhésion validée"; + + $mail = new PHPMailer(true); + + try { + // Paramètres du serveur SMTP + $mail->isSMTP(); // Utiliser SMTP + $mail->Host = 'outlook.office365.com'; // Serveur SMTP Exchange + $mail->SMTPAuth = true; // Activer l'authentification SMTP + $mail->Username = 'smtp@e59.fr'; // Nom d'utilisateur SMTP + $mail->Password = 'WTFdoto5678TFWT'; // Mot de passe SMTP + $mail->SMTPSecure = 'tls'; // Activer le cryptage TLS + $mail->Port = 587; // Port TCP pour TLS + + // Destinataires + $mail->setFrom('service-adhesions@e59.fr', 'Adhesions E59'); + $mail->addAddress($_POST['adhesion-email']); + + // Vous pouvez ajouter d'autres destinataires en utilisant $mail->addAddress() + // $mail->addAddress('autre-destinataire@example.com'); + // Vous pouvez aussi ajouter des destinataires en copie (CC) ou en copie cachée (BCC) + // $mail->addCC('cc@example.com'); + // $mail->addBCC('bcc@example.com'); + + // Pièces jointes (si nécessaire) + // $mail->addAttachment('/path/to/file.pdf'); // Ajouter un fichier joint + + // Contenu de l'email + $mail->isHTML(true); // Activer le format HTML pour l'email + $mail->Subject = "Demande d'adhesion validee"; + $mail->Body = "Demande d'adhesion acceptee

Votre demande d'adhesion a ete validee

Votre demande d'adhesion a l'association E59-UVSQ a ete validee.

Vous trouverez ci-dessous un lien vers la page de paiement de la cotisation.

pay.e59.fr/cotisation
"; + $mail->AltBody = 'Veuillez payer votre cotisation sur pay.e59.fr/cotisation'; + + // Envoyer l'email + $mail->send(); + } catch (Exception $e) { + error_log("Erreur de Mailer: {$mail->ErrorInfo}"); + } } else { // En cas d'erreur lors de la suppression, annuler la transaction - $pdo->rollBack(); $status = "Erreur lors de la suppression de la ligne"; error_log("Erreur lors de l'exécution de la requête de suppression : " . $deleteStmt->errorInfo()[2]); } } else { // En cas d'erreur lors de l'insertion, annuler la transaction - $pdo->rollBack(); $status = "Erreur lors de l'insertion de la ligne"; error_log("Erreur lors de l'exécution de la requête d'insertion : " . $insertStmt->errorInfo()[2]); } @@ -90,6 +128,9 @@ if (isset($_POST['adhesion-id'])) { .user-row button { display: inline; } + .users { + min-height: 25em; + } @@ -110,6 +151,7 @@ if (isset($_POST['adhesion-id'])) {
+
'); $shapePath = ''; @@ -118,7 +160,7 @@ if (isset($_POST['adhesion-id'])) { $search = isset($_GET['search']) ? '%' . $_GET['search'] . '%' : '%%'; - $sqlRequest = "SELECT adhesion_requests.ID, adhesion_requests.firstname, adhesion_requests.lastname, adhesion_requests.request_date FROM adhesion_requests"; + $sqlRequest = "SELECT adhesion_requests.ID, adhesion_requests.firstname, adhesion_requests.lastname, adhesion_requests.email, adhesion_requests.request_date FROM adhesion_requests"; $request = $pdo->prepare($sqlRequest); $request->execute(); $result = $request->fetchAll(PDO::FETCH_ASSOC); @@ -128,7 +170,7 @@ if (isset($_POST['adhesion-id'])) { foreach($result as $row) { echo ('
'); echo ('
'); - echo ('
' . $row['firstname'] . ' ' . $row['lastname'] . '
' . $row['request_date'] . '
'); + echo ('
' . $row['firstname'] . ' ' . $row['lastname'] . '
' . $row['request_date'] . '
'); echo ('
'); } echo ('
'); @@ -136,6 +178,9 @@ if (isset($_POST['adhesion-id'])) { echo ('Aucun utilisateur trouvé.'); } ?> +
+
Adhésions non payées
+
Adhérents