From 8ae222dfb10f439652000a897aee7f3717bd1a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Sat, 21 Feb 2026 17:26:19 +0100 Subject: [PATCH] =?UTF-8?q?Suppression=20du=20dossier=20suivi=20par=20erre?= =?UTF-8?q?ur=20et=20mise=20=C3=A0=20jour=20du=20gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + .trash/Android.md | 14 ---- .trash/Edito.md | 19 ----- .trash/FreeOTP+.md | 0 .trash/S'informer.md | 0 .trash/Untitled.canvas | 0 .trash/[[android.md | 0 .../[[android_freeotp_application_fdroid]].md | 0 .trash/contact.html | 48 ----------- .trash/orphaned files output 2.md | 6 -- .trash/orphaned files output.md | 6 -- .trash/scripts/send-mail.php | 79 ------------------- .trash/view-articles-android.base | 18 ----- 13 files changed, 2 insertions(+), 190 deletions(-) delete mode 100644 .trash/Android.md delete mode 100644 .trash/Edito.md delete mode 100644 .trash/FreeOTP+.md delete mode 100644 .trash/S'informer.md delete mode 100644 .trash/Untitled.canvas delete mode 100644 .trash/[[android.md delete mode 100644 .trash/[[android_freeotp_application_fdroid]].md delete mode 100644 .trash/contact.html delete mode 100644 .trash/orphaned files output 2.md delete mode 100644 .trash/orphaned files output.md delete mode 100644 .trash/scripts/send-mail.php delete mode 100644 .trash/view-articles-android.base diff --git a/.gitignore b/.gitignore index 2fe60dc..544a9e7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ .obsidian/workspace-mobile.json # Ignorer les fichiers système .DS_Store +.trash + diff --git a/.trash/Android.md b/.trash/Android.md deleted file mode 100644 index 24ff365..0000000 --- a/.trash/Android.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -tags: -title: Android avec S'informer sur La Tech -theme: - - "[[Android]]" -article_etat: - - publié -description: -auteur: "[[Cédrix]]" -date_create: 2026-02-20 -page_type: - - theme_home ---- -![[view-articles.base]] \ No newline at end of file diff --git a/.trash/Edito.md b/.trash/Edito.md deleted file mode 100644 index 70afe3b..0000000 --- a/.trash/Edito.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: Edito -type: -category: -status: -tags: [] -description: -page_type: - - article -theme: - - "[[Edito]]" -date_create: 2026-02-20 -article_etat: - - brouillon -lastmod: 2026-02-21 12:12 -date: 2026-02-20 21:38 ---- - -![[view-articles.base]] diff --git a/.trash/FreeOTP+.md b/.trash/FreeOTP+.md deleted file mode 100644 index e69de29..0000000 diff --git a/.trash/S'informer.md b/.trash/S'informer.md deleted file mode 100644 index e69de29..0000000 diff --git a/.trash/Untitled.canvas b/.trash/Untitled.canvas deleted file mode 100644 index e69de29..0000000 diff --git a/.trash/[[android.md b/.trash/[[android.md deleted file mode 100644 index e69de29..0000000 diff --git a/.trash/[[android_freeotp_application_fdroid]].md b/.trash/[[android_freeotp_application_fdroid]].md deleted file mode 100644 index e69de29..0000000 diff --git a/.trash/contact.html b/.trash/contact.html deleted file mode 100644 index a286fb9..0000000 --- a/.trash/contact.html +++ /dev/null @@ -1,48 +0,0 @@ -
-
-
-
- -
- - -
- - diff --git a/.trash/orphaned files output 2.md b/.trash/orphaned files output 2.md deleted file mode 100644 index 5d60cb3..0000000 --- a/.trash/orphaned files output 2.md +++ /dev/null @@ -1,6 +0,0 @@ -- [[Android, où sont stockés les fichiers.md]] -- [[publier son jardin numérique.md]] -- [[HUGO - Générateur de sites statiques.md]] -- [[AnyDesk, Installation et Configuration sous Linux.md]] -- [[android_application_yivi.md]] -- [[GIT - Corriger un dossier un suivi par erreur.md]] diff --git a/.trash/orphaned files output.md b/.trash/orphaned files output.md deleted file mode 100644 index 5d60cb3..0000000 --- a/.trash/orphaned files output.md +++ /dev/null @@ -1,6 +0,0 @@ -- [[Android, où sont stockés les fichiers.md]] -- [[publier son jardin numérique.md]] -- [[HUGO - Générateur de sites statiques.md]] -- [[AnyDesk, Installation et Configuration sous Linux.md]] -- [[android_application_yivi.md]] -- [[GIT - Corriger un dossier un suivi par erreur.md]] diff --git a/.trash/scripts/send-mail.php b/.trash/scripts/send-mail.php deleted file mode 100644 index fe3993b..0000000 --- a/.trash/scripts/send-mail.php +++ /dev/null @@ -1,79 +0,0 @@ - "error", "message" => "Données invalides."]); - exit; - } - - // Génération du code - $code = rand(100000, 999999); - $token = md5($email . time()); - - // Stockage temporaire (Valide 1h) - $auth_data = [ - 'code' => $code, - 'email' => $email, - 'message' => $message, - 'expires' => time() + 3600 - ]; - file_put_contents($log_dir . $token, json_encode($auth_data)); - - // Envoi du code à l'utilisateur - $subject = "Votre code de vérification - abonnel.fr"; - $body = "Votre code de validation est : $code\nCe code expire dans 1 heure."; - - if (mail($email, $subject, $body, "From: $from_server")) { - echo json_encode(["status" => "success", "token" => $token]); - } else { - echo json_encode(["status" => "error", "message" => "Erreur d'envoi du code."]); - } -} - -// --- ACTION 2 : VÉRIFICATION ET ENVOI FINAL --- -if ($step === 'verify_code') { - $token = $_POST['token'] ?? ''; - $user_code = $_POST['code'] ?? ''; - $file = $log_dir . $token; - - if (!file_exists($file)) { - echo json_encode(["status" => "error", "message" => "Session expirée."]); - exit; - } - - $data = json_decode(file_get_contents($file), true); - - if (time() > $data['expires']) { - unlink($file); - echo json_encode(["status" => "error", "message" => "Code expiré."]); - exit; - } - - if ($user_code == $data['code']) { - // Envoi final à VOUS - $final_subject = "[Validé] Contact de " . $data['email']; - $final_body = "Message de : " . $data['email'] . "\n\n" . $data['message']; - - mail($to_admin, $final_subject, $final_body, "From: $from_server\r\nReply-To: " . $data['email']); - - unlink($file); // Supprime le ticket après succès - echo json_encode(["status" => "success", "message" => "Message envoyé avec succès !"]); - } else { - echo json_encode(["status" => "error", "message" => "Code incorrect."]); - } -} \ No newline at end of file diff --git a/.trash/view-articles-android.base b/.trash/view-articles-android.base deleted file mode 100644 index ecb8815..0000000 --- a/.trash/view-articles-android.base +++ /dev/null @@ -1,18 +0,0 @@ -views: - - type: cards - name: "View : Les thèmes" - filters: - and: - - '!file.hasTag("#draft")' - - "!title.isEmpty()" - - file.folder.contains("notes") - - type == "article" - - theme == "android" - order: - - title - - description - sort: - - property: file.mtime - direction: DESC - imageAspectRatio: 1 - cardSize: 800