Niceified this a bit

This commit is contained in:
Ubergeek 2019-06-28 15:51:05 +00:00
parent b2cd357199
commit 23aeabdd9b
1 changed files with 15 additions and 4 deletions

View File

@ -2,7 +2,18 @@
$page = $_GET['page']; $page = $_GET['page'];
print "<html><body>"; if ( $page == "") {
echo ( shell_exec("/usr/bin/pandoc $page.md") ); $page = "main";
print "</body></html>"; }
print "<html>
<head>
<title>Thunix Wiki - $page</title>
</head>
<body>";
echo ( shell_exec("/usr/bin/pandoc /var/www/wiki.thunix.net/articles/$page.md") );
print " </body>
</html>";
?> ?>