aboutsummaryrefslogtreecommitdiff
path: root/includes/video
diff options
context:
space:
mode:
authorMinteck <46352972+Minteck@users.noreply.github.com>2021-07-20 01:15:15 +0200
committerMinteck <46352972+Minteck@users.noreply.github.com>2021-07-20 01:15:15 +0200
commitaf9e5ef458b93ef2003905e1ccc5665e7266c242 (patch)
tree989ac25a8b75578788cd7157308f37b9b83cf8f5 /includes/video
downloadmain-af9e5ef458b93ef2003905e1ccc5665e7266c242.tar.gz
main-af9e5ef458b93ef2003905e1ccc5665e7266c242.tar.bz2
main-af9e5ef458b93ef2003905e1ccc5665e7266c242.zip
Commit
Diffstat (limited to 'includes/video')
-rw-r--r--includes/video/list.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/includes/video/list.php b/includes/video/list.php
new file mode 100644
index 0000000..0f090bf
--- /dev/null
+++ b/includes/video/list.php
@@ -0,0 +1,13 @@
+<div class="list-group">
+ <?php
+
+ $articles = scandir($_SERVER['DOCUMENT_ROOT'] . "/creations/video");
+ $i = 1;
+ foreach ($articles as $article):
+
+ ?>
+ <?php if (trim($article) !== "." && trim($article) !== ".." && is_dir($_SERVER['DOCUMENT_ROOT'] . "/creations/video/" . $article)): ?>
+ <a href="/creations/video/<?= $article ?>" class="list-group-item list-group-item-action"><?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/creations/video/" . $article . "/title.txt") ?></a>
+ <?php endif;$i++; ?>
+ <?php endforeach; ?>
+</div> \ No newline at end of file