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