diff options
Diffstat (limited to 'views/list')
| -rw-r--r-- | views/list/index.php | 22 | ||||
| -rw-r--r-- | views/list/meta.php | 4 |
2 files changed, 26 insertions, 0 deletions
diff --git a/views/list/index.php b/views/list/index.php new file mode 100644 index 0000000..01c18b4 --- /dev/null +++ b/views/list/index.php @@ -0,0 +1,22 @@ +<?php + $list = null; + $author = null; + + try { + $list = Database\ArchiveList::fromDB($lid); + $author = Database\User::fromDBuid($list->AuthorUID); + } + catch(Exception $e) {} +?> + +<?php if ($list !== null): ?> + <section> + <p><?= $list->Name ?></p> + <p><?= $list->Description ?></p> + <p><?= $author->Username ?></p> + </section> +<?php else: ?> + <p> + List doesn't exist + </p> +<?php endif; ?> diff --git a/views/list/meta.php b/views/list/meta.php new file mode 100644 index 0000000..137794e --- /dev/null +++ b/views/list/meta.php @@ -0,0 +1,4 @@ +<?php + +$lid = explode('/', $uri, 4)[2]; +$title = 'List'; |
