From e487929503dddef0cdd709918c2a192a24933f39 Mon Sep 17 00:00:00 2001 From: khuxkm Date: Tue, 28 Aug 2018 16:43:50 -0400 Subject: [PATCH] Add draft viewer (for in-development RFCs) TODO: have it fetch from gitea --- draft.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 draft.php diff --git a/draft.php b/draft.php new file mode 100644 index 0000000..6b49a74 --- /dev/null +++ b/draft.php @@ -0,0 +1,32 @@ +parse(file_get_contents($filename)); + $yml = $document->getYAML(); + $content = $document->getContent(); + $title = ($yml['title'] ?? 'invalid'); + $author_san = htmlspecialchars($yml['author']); + $description = "Draft {$_GET['name']}: {$yml['title']} by {$author_san}"; + include 'header.php'; +?> +

Draft :

+

Author:
+ +Updates: {$num}"; if(next($arr)) { echo ", "; }}?>
+ + +Updated by: {$num}"; if(next($arr)) { echo ", "; }}?>
+ + +