From 296e6c28597daf7b0628a40d037d0a3a28463f3a Mon Sep 17 00:00:00 2001 From: yanishimidi Date: Sat, 1 Nov 2025 19:50:25 +0100 Subject: [PATCH] premier commit --- .DS_Store | Bin 0 -> 8196 bytes ajouter.php | 0 article.php | 0 css/style.css | 0 dashboard.php | 0 docker-compose.yaml | 25 +++++++++++++++++++++++++ includes/db.php | 16 ++++++++++++++++ includes/footer.php | 0 includes/header.php | 0 index.php | 40 ++++++++++++++++++++++++++++++++++++++++ login.php | 0 modifier.php | 0 supprimer.php | 0 test.php | 10 ++++++++++ 14 files changed, 91 insertions(+) create mode 100755 .DS_Store create mode 100755 ajouter.php create mode 100755 article.php create mode 100755 css/style.css create mode 100755 dashboard.php create mode 100755 docker-compose.yaml create mode 100755 includes/db.php create mode 100755 includes/footer.php create mode 100755 includes/header.php create mode 100755 index.php create mode 100755 login.php create mode 100755 modifier.php create mode 100755 supprimer.php create mode 100644 test.php diff --git a/.DS_Store b/.DS_Store new file mode 100755 index 0000000000000000000000000000000000000000..c92843fd8ec010d73b1cf02eec8037049d67363a GIT binary patch literal 8196 zcmeHM%Wl&^6upxc>ZnAD1Qp$YEU`^XQ-ngqCWNp+>ed#6Oisy(+zv`$18s<8Q0 zG$}=li#k^_`pR`!20T%hn$)39il{y3Z7vuF3GHFz`PxfN!=a)`IW88a1t9 zz%Xzj84&w}jVf$K+mW(z>p&w@0N7<*mIZy}0TN?tThVr;tb}4tl|3*GWje)R3XXAG zxWiVo9Vx5e#1x#EzBAJq3X^vS&X(@PD$1JHFkl#%XF%lctJI)<;?$eT-=oJq-*bHK zz(c%L4^TJ9vY@9>9Uwf~BOiIc%KDS2Zwb^Aykm-I=aw(+m#Mk6m(!0U{RH2g$oJyz z*49s!Sz5kydBs|>R;^d{Ht*NFjczZlHaaiFuV27&A%vx)=Zr^{p zd*BBl{~);_rne=^so#_KBYJu@eydpD<3ThTn~Vg!R@3XW4%d!;|JwN>*w(m!yQhps z?M1U5);pok!xm-|PnRPXagK2^;~>@zoYT1JF=IF2Jss(*@Z^Zwfjr&WK#x;^GaioF zMBLwDwt)OZOvTDSPsP-NQbMVf9_DK%H9%kC|LHXUGgm{YRIu-CmH$xqQ9EMx3r=}&kQFV7RD%JCR?HN`M+ zUKm(X3t1QW|D(m{|L0}7W*vqB!$1lHY`IpiRWWerK_k;~ kSecH)PX1wtz71D_sc1V=7FSTt;2^+!|0VOLxyTIs1uC0&5&!@I literal 0 HcmV?d00001 diff --git a/ajouter.php b/ajouter.php new file mode 100755 index 0000000..e69de29 diff --git a/article.php b/article.php new file mode 100755 index 0000000..e69de29 diff --git a/css/style.css b/css/style.css new file mode 100755 index 0000000..e69de29 diff --git a/dashboard.php b/dashboard.php new file mode 100755 index 0000000..e69de29 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100755 index 0000000..3fea211 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,25 @@ +version: '3.8' + +services: + web: + image: php:8.2-apache + container_name: cms-web + ports: + - "8080:80" + volumes: + - ./public:/var/www/html + - ./includes:/var/www/html/includes + depends_on: + - db + + db: + image: mysql:latest + container_name: cms-db + environment: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: cms_simplifie + ports: + - "3306:3306" + volumes: + - db_data:/var/lib/mysql + diff --git a/includes/db.php b/includes/db.php new file mode 100755 index 0000000..f7c1617 --- /dev/null +++ b/includes/db.php @@ -0,0 +1,16 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +} catch (PDOException $e) { + die("Erreur de connexion : " . $e->getMessage()); +} +?> diff --git a/includes/footer.php b/includes/footer.php new file mode 100755 index 0000000..e69de29 diff --git a/includes/header.php b/includes/header.php new file mode 100755 index 0000000..e69de29 diff --git a/index.php b/index.php new file mode 100755 index 0000000..8866e5d --- /dev/null +++ b/index.php @@ -0,0 +1,40 @@ + + + + + + + CMS - Accueil + + + +
+

Bienvenue sur mon CMS

+ +
+ +
+
+
+

Article 1

+

Ceci est un exemple d'article pour tester le CMS.

+
+
+

Article 2

+

Encore un autre article de test avec du contenu fictif.

+
+
+
+ +
+

© 2025 Mini CMS. Tous droits réservés.

+
+ + diff --git a/login.php b/login.php new file mode 100755 index 0000000..e69de29 diff --git a/modifier.php b/modifier.php new file mode 100755 index 0000000..e69de29 diff --git a/supprimer.php b/supprimer.php new file mode 100755 index 0000000..e69de29 diff --git a/test.php b/test.php new file mode 100644 index 0000000..9ba1a2e --- /dev/null +++ b/test.php @@ -0,0 +1,10 @@ +query("SELECT * FROM utilisateur"); +$users = $stmt->fetchAll(PDO::FETCH_ASSOC); + +echo '
';
+print_r($users);
+echo '
'; +?>