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

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

No files matched your search

+4 -2
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>";