diff options
| author | polo-pc-greta <ordipolo@gmx.fr> | 2025-03-27 10:13:03 +0100 |
|---|---|---|
| committer | polo-pc-greta <ordipolo@gmx.fr> | 2025-03-27 10:13:03 +0100 |
| commit | df3612ed7e6691530503f79483d2fdbc032d01b8 (patch) | |
| tree | 56d1c68fdc8625f5dad1937a654299d45142c79a /src/controller/post.php | |
| download | cms-df3612ed7e6691530503f79483d2fdbc032d01b8.tar.gz cms-df3612ed7e6691530503f79483d2fdbc032d01b8.tar.bz2 cms-df3612ed7e6691530503f79483d2fdbc032d01b8.zip | |
mise en ligne github
Diffstat (limited to 'src/controller/post.php')
| -rw-r--r-- | src/controller/post.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/controller/post.php b/src/controller/post.php new file mode 100644 index 0000000..926a5ae --- /dev/null +++ b/src/controller/post.php | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | <?php | ||
| 2 | // src/controller/post.php | ||
| 3 | |||
| 4 | declare(strict_types=1); | ||
| 5 | |||
| 6 | if($_SERVER['REQUEST_METHOD'] === 'POST' && $_SESSION['admin'] === true) | ||
| 7 | { | ||
| 8 | // requêtes AJAX | ||
| 9 | require '../src/controller/ajax.php'; | ||
| 10 | |||
| 11 | // formulaires HTML | ||
| 12 | if(isset($_POST['from']) // page d'où vient la requête | ||
| 13 | && isset($_POST)) // données | ||
| 14 | { | ||
| 15 | echo "requête envoyée en validant un formulaire"; | ||
| 16 | } | ||
| 17 | } | ||
