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 'Get a browser that supports WebM fag. +// 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 ''; +// } +// elseif($extension == "ogg") { +// echo ''; +// } +// else { +// echo 'We do not support previews for this filetype.'; +// } + + +switch($extension) { + case "webm": + echo 'Get a browser that supports WebM fag.'; + break; + + case "mp4": + echo 'Get a browser that supports WebM fag. + Some MP4 files will play, some will not. There is unfortunately nothing we can do about this.'; + break; + + case "jpg": + case "jpeg": + case "png": + case "gif": + echo ''; + break; + + case "mp3": + case "ogg": + echo ''; + break; + + case "txt": + $textcontent = file_get_contents('../file/' . $filename); + echo ''; + echo strip_tags($textcontent); + echo '' . "\n"; + echo 'Some content may have been stripped from the file. Click download to see the original.'; + break; + + default: + echo 'We do not support previews for this filetype.'; +} + +?>
Some MP4 files will play, some will not. There is unfortunately nothing we can do about this.
We do not support previews for this filetype.
'; + echo strip_tags($textcontent); + echo '
Some content may have been stripped from the file. Click download to see the original.