From 89e416102ae72f4ca57453ceb30820a55bd7d6f2 Mon Sep 17 00:00:00 2001 From: Rocher Date: Mon, 14 Oct 2024 19:09:00 +0200 Subject: [PATCH] fix accueil .php --- README.md | 0 index.html | 29 ----------- index.php | 46 ----------------- pages/accueil.php | 122 +++++++++++++++++++++++++++++++++++++++++++++ webscrappingbdd.py | 0 5 files changed, 122 insertions(+), 75 deletions(-) mode change 100644 => 100755 README.md delete mode 100644 index.html delete mode 100755 index.php create mode 100644 pages/accueil.php mode change 100644 => 100755 webscrappingbdd.py diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/index.html b/index.html deleted file mode 100644 index 3b55c8d..0000000 --- a/index.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - Wiki Fantasy - - - - - -
-
- - -
- user -
-
-
-

Wiki Fantasy

- - diff --git a/index.php b/index.php deleted file mode 100755 index 3d7956d..0000000 --- a/index.php +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - Wiki Fantasy - - - - -
-
- - -
- - -
- - -
- -

Bienvenue sur Wiki Fantasy !

-
- - diff --git a/pages/accueil.php b/pages/accueil.php new file mode 100644 index 0000000..5cdee0c --- /dev/null +++ b/pages/accueil.php @@ -0,0 +1,122 @@ + + + + + + + + Wiki Fantasy + + + + + +
+
+ + +
+ user +
+
+
+ +"; + +// Afficher la citation du jour +if ($citationDuJour) { + $quote = htmlspecialchars(trim(substr($citationDuJour[1], 1))); // Retirer le symbole µ + $movie = htmlspecialchars(trim($citationDuJour[2])); + $character = htmlspecialchars(trim($citationDuJour[3])); + $year = htmlspecialchars(trim($citationDuJour[4])); + $imagePath = htmlspecialchars(trim($citationDuJour[5])); + + echo "

Citation du jour

"; + echo "
"; + echo "$movie"; + echo "
"; + echo "

\"$quote\"

"; + echo "

- $movie

"; + echo "

Personnage : $character

"; + echo "

Année : $year

"; + echo "
"; + echo "
"; +} else { + echo "

Aucune citation du jour n'a été trouvée.

"; +} + +if (!empty($suggestions)) { + echo "

Suggestions

"; + echo "
"; // Conteneur pour gérer les colonnes + foreach ($suggestions as $suggestion) { + $quote = htmlspecialchars(trim($suggestion[0])); + $movie = htmlspecialchars(trim($suggestion[1])); + $character = htmlspecialchars(trim($suggestion[2])); + $year = htmlspecialchars(trim($suggestion[3])); + $imagePath = htmlspecialchars(trim($suggestion[4])); + + echo "
"; + echo "$movie"; + echo "
"; + echo "

\"$quote\"

"; + echo "

- $movie

"; + echo "

Personnage : $character

"; + echo "

Année : $year

"; + echo "
"; + echo "
"; + } + echo "
"; // Fin du conteneur suggestions +} + +echo ""; // Fin de la section des citations +?> + + diff --git a/webscrappingbdd.py b/webscrappingbdd.py old mode 100644 new mode 100755