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

@ -1,9 +1,8 @@
<center><h1>Official Thunix Wiki.</h1></center> <!-- Make Image?--> ---
<!-- Buttons Here... --> # Main Page
#### Welcome to the Offical Thunix Wiki!
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test * [SSH and keys](ssh)
* [Email](email)
test * [Sandbox Page](sandbox)
<a href="tableofcontents">test link</a> ---
[tableofcontents](tableofcontents "TOC")

9
articles/sandbox.md Normal file
View File

@ -0,0 +1,9 @@
<center><h1>Official Thunix Wiki.</h1></center> <!-- Make Image?-->
<!-- Buttons Here... -->
#### Welcome to the Offical Thunix Wiki!
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;test
test
<a href="tableofcontents">test link</a>
[tableofcontents](tableofcontents "TOC")

2
includes/footer.md Normal file
View File

@ -0,0 +1,2 @@
---
All content in this wiki is under the CC-By-SA 4.0 or later license.

1
includes/header.md Normal file
View File

@ -0,0 +1 @@
# Thunix Wiki

View File

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