From 432f6758acf8f29f891aa336d6364cf947d6e669 Mon Sep 17 00:00:00 2001 From: Esenjin_Asakha Date: Fri, 27 Dec 2024 14:28:00 +0000 Subject: [PATCH] initialisation du projet (partie 4) --- static/includes/randomcards.php | 38 +++++++++++++++++++++++++++++ static/includes/randomopengraph.php | 26 ++++++++++++++++++++ static/includes/randompreview.php | 32 ++++++++++++++++++++++++ static/includes/video.php | 12 +++++++++ 4 files changed, 108 insertions(+) create mode 100644 static/includes/randomcards.php create mode 100644 static/includes/randomopengraph.php create mode 100644 static/includes/randompreview.php create mode 100644 static/includes/video.php diff --git a/static/includes/randomcards.php b/static/includes/randomcards.php new file mode 100644 index 0000000..534478b --- /dev/null +++ b/static/includes/randomcards.php @@ -0,0 +1,38 @@ + + + + + + '; +} +elseif($extension == "jpeg") { + echo ' + + + + + '; +} +elseif($extension == "png") { + echo ' + + + + + '; +} +else { + echo ' + + + + +'; +} + +?> diff --git a/static/includes/randomopengraph.php b/static/includes/randomopengraph.php new file mode 100644 index 0000000..ba485ac --- /dev/null +++ b/static/includes/randomopengraph.php @@ -0,0 +1,26 @@ + + + '; +} +elseif($extension == "jpeg") { + echo ' + + '; +} +elseif($extension == "png") { + echo ' + + '; +} +else { + echo ' + + '; +} + +?> diff --git a/static/includes/randompreview.php b/static/includes/randompreview.php new file mode 100644 index 0000000..2044302 --- /dev/null +++ b/static/includes/randompreview.php @@ -0,0 +1,32 @@ +Get a browser that supports WebM fag.'; +} +elseif($extension == "mp4") { + echo ' +

Some MP4 files will play, some will not. There is unfortunately nothing we can do about this.

'; +} +elseif($extension == "jpg") { + echo ''; +} +elseif($extension == "jpeg") { + echo ''; +} +elseif($extension == "png") { + echo ''; +} +elseif($extension == "gif") { + echo ''; +} +elseif($extension == "mp3") { + echo '