From 5a1f3b9b0154b01ef278360d663e7e658d1b2866 Mon Sep 17 00:00:00 2001 From: Esenjin_Asakha Date: Fri, 27 Dec 2024 14:27:41 +0000 Subject: [PATCH] initialisation du projet (partie 4) --- static/includes/botnet.php | 1 + static/includes/cards.php | 38 +++++++++++++++++++ static/includes/opengraph.php | 26 +++++++++++++ static/includes/permavideo.php | 18 +++++++++ static/includes/preview.php | 68 ++++++++++++++++++++++++++++++++++ 5 files changed, 151 insertions(+) create mode 100644 static/includes/botnet.php create mode 100644 static/includes/cards.php create mode 100644 static/includes/opengraph.php create mode 100644 static/includes/permavideo.php create mode 100644 static/includes/preview.php diff --git a/static/includes/botnet.php b/static/includes/botnet.php new file mode 100644 index 0000000..03731c3 --- /dev/null +++ b/static/includes/botnet.php @@ -0,0 +1 @@ + diff --git a/static/includes/cards.php b/static/includes/cards.php new file mode 100644 index 0000000..80b9563 --- /dev/null +++ b/static/includes/cards.php @@ -0,0 +1,38 @@ + + + + + + '; +} +elseif($extension == "jpeg") { + echo ' + + + + + '; +} +elseif($extension == "png") { + echo ' + + + + + '; +} +else { + echo ' + + + + +'; +} + +?> diff --git a/static/includes/opengraph.php b/static/includes/opengraph.php new file mode 100644 index 0000000..519fd44 --- /dev/null +++ b/static/includes/opengraph.php @@ -0,0 +1,26 @@ + + + '; +} +elseif($extension == "jpeg") { + echo ' + + '; +} +elseif($extension == "png") { + echo ' + + '; +} +else { + echo ' + + '; +} + +?> diff --git a/static/includes/permavideo.php b/static/includes/permavideo.php new file mode 100644 index 0000000..255e012 --- /dev/null +++ b/static/includes/permavideo.php @@ -0,0 +1,18 @@ + + + '; +} +elseif($extension == "mp4") { + echo ' + + '; +} + +?> diff --git a/static/includes/preview.php b/static/includes/preview.php new file mode 100644 index 0000000..110da19 --- /dev/null +++ b/static/includes/preview.php @@ -0,0 +1,68 @@ +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 '