Made wiki.php portable, and added footer and header files

This commit is contained in:
Ubergeek
2019-06-28 22:32:40 +00:00
parent 0c842d5d97
commit 7d6c4cad11
5 changed files with 22 additions and 9 deletions

View File

@@ -9,10 +9,12 @@ if ( $page == "") {
print "<html>
<head>
<title>Thunix Wiki - $page</title>
<link rel='stylesheet' type='text/css' href='includes/theme.css'>
</head>
<body>";
echo ( shell_exec("/usr/bin/pandoc /var/www/wiki.thunix.net/articles/$page.md") );
echo ( shell_exec("/usr/bin/pandoc includes/header.md") );
echo ( shell_exec("/usr/bin/pandoc articles/$page.md") );
echo ( shell_exec("/usr/bin/pandoc includes/footer.md") );
print " </body>
</html>";