From 23aeabdd9be49c342016557072f2431bd385ad5d Mon Sep 17 00:00:00 2001 From: Ubergeek Date: Fri, 28 Jun 2019 15:51:05 +0000 Subject: [PATCH] Niceified this a bit --- wiki.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/wiki.php b/wiki.php index dd1c380..ebeebde 100644 --- a/wiki.php +++ b/wiki.php @@ -1,8 +1,19 @@ "; -echo ( shell_exec("/usr/bin/pandoc $page.md") ); -print ""; +if ( $page == "") { + $page = "main"; + } + +print " + + Thunix Wiki - $page + + "; + +echo ( shell_exec("/usr/bin/pandoc /var/www/wiki.thunix.net/articles/$page.md") ); + +print " +"; ?>